From b80435bc44ca4fc42e92b78c0fe82275757fe4e6 Mon Sep 17 00:00:00 2001 From: Koshik Raj Date: Wed, 7 Aug 2024 16:16:01 +0530 Subject: [PATCH] Updates --- assets/{ccip-2ba37519.js => ccip-56d8fab7.js} | 2 +- ...{index-5fee5d0f.css => index-2171e3b4.css} | 2 +- .../{index-97f9e2be.js => index-4948a23e.js} | 64 +++++++++---------- index.html | 4 +- 4 files changed, 36 insertions(+), 36 deletions(-) rename assets/{ccip-2ba37519.js => ccip-56d8fab7.js} (97%) rename assets/{index-5fee5d0f.css => index-2171e3b4.css} (99%) rename assets/{index-97f9e2be.js => index-4948a23e.js} (89%) diff --git a/assets/ccip-2ba37519.js b/assets/ccip-56d8fab7.js similarity index 97% rename from assets/ccip-2ba37519.js rename to assets/ccip-56d8fab7.js index a6ffe61..409cf0a 100644 --- a/assets/ccip-2ba37519.js +++ b/assets/ccip-56d8fab7.js @@ -1 +1 @@ -import{B as p,g as m,s as y,d as w,i as k,c as O,a as E,e as L,H as h,b as x}from"./index-97f9e2be.js";class M extends p{constructor({callbackSelector:s,cause:e,data:n,extraData:c,sender:u,urls:t}){var i;super(e.shortMessage||"An error occurred while fetching for an offchain result.",{cause:e,metaMessages:[...e.metaMessages||[],(i=e.metaMessages)!=null&&i.length?"":[],"Offchain Gateway Call:",t&&[" Gateway URL(s):",...t.map(f=>` ${m(f)}`)],` Sender: ${u}`,` Data: ${n}`,` Callback selector: ${s}`,` Extra data: ${c}`].flat()}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupError"})}}class R extends p{constructor({result:s,url:e}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${m(e)}`,`Response: ${y(s)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupResponseMalformedError"})}}class $ extends p{constructor({sender:s,to:e}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${e}`,`OffchainLookup sender address: ${s}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupSenderMismatchError"})}}const j="0x556f1830",S={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 v(o,{blockNumber:s,blockTag:e,data:n,to:c}){const{args:u}=w({data:n,abi:[S]}),[t,i,f,a,r]=u,{ccipRead:d}=o,b=d&&typeof(d==null?void 0:d.request)=="function"?d.request:q;try{if(!k(c,t))throw new $({sender:t,to:c});const l=await b({data:f,sender:t,urls:i}),{data:g}=await O(o,{blockNumber:s,blockTag:e,data:E([a,L([{type:"bytes"},{type:"bytes"}],[l,r])]),to:c});return g}catch(l){throw new M({callbackSelector:a,cause:l,data:n,extraData:r,sender:t,urls:i})}}async function q({data:o,sender:s,urls:e}){var c;let n=new Error("An unknown error occurred.");for(let u=0;u` ${m(f)}`)],` Sender: ${u}`,` Data: ${n}`,` Callback selector: ${s}`,` Extra data: ${c}`].flat()}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupError"})}}class R extends p{constructor({result:s,url:e}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${m(e)}`,`Response: ${y(s)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupResponseMalformedError"})}}class $ extends p{constructor({sender:s,to:e}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${e}`,`OffchainLookup sender address: ${s}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupSenderMismatchError"})}}const j="0x556f1830",S={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 v(o,{blockNumber:s,blockTag:e,data:n,to:c}){const{args:u}=w({data:n,abi:[S]}),[t,i,f,a,r]=u,{ccipRead:d}=o,b=d&&typeof(d==null?void 0:d.request)=="function"?d.request:q;try{if(!k(c,t))throw new $({sender:t,to:c});const l=await b({data:f,sender:t,urls:i}),{data:g}=await O(o,{blockNumber:s,blockTag:e,data:E([a,L([{type:"bytes"},{type:"bytes"}],[l,r])]),to:c});return g}catch(l){throw new M({callbackSelector:a,cause:l,data:n,extraData:r,sender:t,urls:i})}}async function q({data:o,sender:s,urls:e}){var c;let n=new Error("An unknown error occurred.");for(let u=0;u.m_d8b5e363{background-color:#00000080}:where([data-mantine-color-scheme=dark]) .m_c44ba933:hover{background-color:var(--mantine-color-dark-8)}:where([data-mantine-color-scheme=dark]) .m_c44ba933:hover>.m_d8b5e363{background-color:#ffffff80}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_c44ba933:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=light]) .m_c44ba933:active>.m_d8b5e363{background-color:#00000080}:where([data-mantine-color-scheme=dark]) .m_c44ba933:active{background-color:var(--mantine-color-dark-8)}:where([data-mantine-color-scheme=dark]) .m_c44ba933:active>.m_d8b5e363{background-color:#ffffff80}}.m_c44ba933:where([data-hidden],[data-state=hidden]){display:none}.m_c44ba933:where([data-orientation=vertical]){width:var(--scrollarea-scrollbar-size);top:0;bottom:var(--sa-corner-width);inset-inline-end:0}.m_c44ba933:where([data-orientation=horizontal]){height:var(--scrollarea-scrollbar-size);flex-direction:column;bottom:0;inset-inline-start:0;inset-inline-end:var(--sa-corner-width)}.m_d8b5e363{flex:1;border-radius:var(--scrollarea-scrollbar-size);position:relative;transition:background-color .15s ease;overflow:hidden}.m_d8b5e363:before{content:'""';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-width:calc(2.75rem * var(--mantine-scale));min-height:calc(2.75rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_d8b5e363{background-color:#0006}:where([data-mantine-color-scheme=dark]) .m_d8b5e363{background-color:#fff6}.m_21657268{position:absolute;opacity:0;transition:opacity .15s ease;display:block;inset-inline-end:0;bottom:0}:where([data-mantine-color-scheme=light]) .m_21657268{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_21657268{background-color:var(--mantine-color-dark-8)}.m_21657268:where([data-hovered]){opacity:1}.m_21657268:where([data-hidden]){display:none}.m_87cf2631{background-color:transparent;cursor:pointer;border:0;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-size:var(--mantine-font-size-md);text-align:left;text-decoration:none;color:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent}:where([dir=rtl]) .m_87cf2631{text-align:right}.m_515a97f8{border:0;clip:rect(0 0 0 0);height:calc(.0625rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));margin:calc(-.0625rem * var(--mantine-scale));overflow:hidden;padding:0;position:absolute;white-space:nowrap}.m_1b7284a3{--paper-radius: var(--mantine-radius-default);outline:0;-webkit-tap-highlight-color:transparent;display:block;touch-action:manipulation;text-decoration:none;border-radius:var(--paper-radius);box-shadow:var(--paper-shadow);background-color:var(--mantine-color-body)}:where([data-mantine-color-scheme=light]) .m_1b7284a3:where([data-with-border]){border:1px solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_1b7284a3:where([data-with-border]){border:1px solid var(--mantine-color-dark-4)}.m_38a85659{position:absolute;border:1px solid var(--popover-border-color);padding:var(--mantine-spacing-sm) var(--mantine-spacing-md);box-shadow:var(--popover-shadow, none);border-radius:var(--popover-radius, var(--mantine-radius-default))}.m_38a85659:focus{outline:none}:where([data-mantine-color-scheme=light]) .m_38a85659{--popover-border-color: var(--mantine-color-gray-2);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_38a85659{--popover-border-color: var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}.m_a31dc6c1{background-color:inherit;border:1px solid var(--popover-border-color);z-index:1}.m_5ae2e3c{--loader-size-xs: calc(1.125rem * var(--mantine-scale));--loader-size-sm: calc(1.375rem * var(--mantine-scale));--loader-size-md: calc(2.25rem * var(--mantine-scale));--loader-size-lg: calc(2.75rem * var(--mantine-scale));--loader-size-xl: calc(3.625rem * var(--mantine-scale));--loader-size: var(--loader-size-md);--loader-color: var(--mantine-primary-color-filled)}@keyframes m_5d2b3b9d{0%{transform:scale(.6);opacity:0}50%,to{transform:scale(1)}}.m_7a2bd4cd{position:relative;width:var(--loader-size);height:var(--loader-size);display:flex;gap:calc(var(--loader-size) / 5)}.m_870bb79{flex:1;background:var(--loader-color);animation:m_5d2b3b9d 1.2s cubic-bezier(0,.5,.5,1) infinite;border-radius:calc(.125rem * var(--mantine-scale))}.m_870bb79:nth-of-type(1){animation-delay:-.24s}.m_870bb79:nth-of-type(2){animation-delay:-.12s}.m_870bb79:nth-of-type(3){animation-delay:0}@keyframes m_aac34a1{0%,to{transform:scale(1);opacity:1}50%{transform:scale(.6);opacity:.5}}.m_4e3f22d7{display:flex;justify-content:center;align-items:center;gap:calc(var(--loader-size) / 10);position:relative;width:var(--loader-size);height:var(--loader-size)}.m_870c4af{width:calc(var(--loader-size) / 3 - var(--loader-size) / 15);height:calc(var(--loader-size) / 3 - var(--loader-size) / 15);border-radius:50%;background:var(--loader-color);animation:m_aac34a1 .8s infinite linear}.m_870c4af:nth-child(2){animation-delay:.4s}@keyframes m_f8e89c4b{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.m_b34414df{display:inline-block;width:var(--loader-size);height:var(--loader-size)}.m_b34414df:after{content:"";display:block;width:var(--loader-size);height:var(--loader-size);border-radius:calc(625rem * var(--mantine-scale));border-width:calc(var(--loader-size) / 8);border-style:solid;border-color:var(--loader-color) var(--loader-color) var(--loader-color) transparent;animation:m_f8e89c4b 1.2s linear infinite}.m_8d3f4000{--ai-size-xs: calc(1.125rem * var(--mantine-scale));--ai-size-sm: calc(1.375rem * var(--mantine-scale));--ai-size-md: calc(1.75rem * var(--mantine-scale));--ai-size-lg: calc(2.125rem * var(--mantine-scale));--ai-size-xl: calc(2.75rem * var(--mantine-scale));--ai-size-input-xs: calc(1.875rem * var(--mantine-scale));--ai-size-input-sm: calc(2.25rem * var(--mantine-scale));--ai-size-input-md: calc(2.625rem * var(--mantine-scale));--ai-size-input-lg: calc(3.125rem * var(--mantine-scale));--ai-size-input-xl: calc(3.75rem * var(--mantine-scale));--ai-size: var(--ai-size-md);--ai-color: var(--mantine-color-white);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;-webkit-user-select:none;user-select:none;overflow:hidden;width:var(--ai-size);height:var(--ai-size);min-width:var(--ai-size);min-height:var(--ai-size);border-radius:var(--ai-radius, var(--mantine-radius-default));background:var(--ai-bg, var(--mantine-primary-color-filled));color:var(--ai-color, var(--mantine-color-white));border:var(--ai-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);cursor:pointer}@media (hover: hover){.m_8d3f4000:hover:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--ai-hover, var(--mantine-primary-color-filled-hover));color:var(--ai-hover-color, var(--ai-color))}}@media (hover: none){.m_8d3f4000:active:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--ai-hover, var(--mantine-primary-color-filled-hover));color:var(--ai-hover-color, var(--ai-color))}}.m_8d3f4000[data-loading]{cursor:not-allowed}.m_8d3f4000[data-loading] .m_8d3afb97{opacity:0;transform:translateY(100%)}.m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){cursor:not-allowed;border:calc(.0625rem * var(--mantine-scale)) solid transparent}:where([data-mantine-color-scheme=light]) .m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){background-color:var(--mantine-color-gray-1);color:var(--mantine-color-gray-5)}:where([data-mantine-color-scheme=dark]) .m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){background-color:var(--mantine-color-dark-6);color:var(--mantine-color-dark-3)}.m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])):active{transform:none}.m_302b9fb1{inset:calc(-.0625rem * var(--mantine-scale));position:absolute;border-radius:var(--ai-radius, var(--mantine-radius-default));display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_302b9fb1{background-color:#ffffff59}:where([data-mantine-color-scheme=dark]) .m_302b9fb1{background-color:#00000059}.m_1a0f1b21{--ai-border-width: calc(.0625rem * var(--mantine-scale));display:flex}.m_1a0f1b21 :where(*):focus{position:relative;z-index:1}.m_1a0f1b21[data-orientation=horizontal]{flex-direction:row}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):first-child{border-end-end-radius:0;border-start-end-radius:0;border-inline-end-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):last-child{border-end-start-radius:0;border-start-start-radius:0;border-inline-start-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-inline-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical]{flex-direction:column}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):first-child{border-end-start-radius:0;border-end-end-radius:0;border-bottom-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):last-child{border-start-start-radius:0;border-start-end-radius:0;border-top-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-bottom-width:calc(var(--ai-border-width) / 2);border-top-width:calc(var(--ai-border-width) / 2)}.m_8d3afb97{display:flex;align-items:center;justify-content:center;transition:transform .15s ease,opacity .1s ease;width:100%;height:100%}.m_86a44da5{--cb-size-xs: calc(1.125rem * var(--mantine-scale));--cb-size-sm: calc(1.375rem * var(--mantine-scale));--cb-size-md: calc(1.75rem * var(--mantine-scale));--cb-size-lg: calc(2.125rem * var(--mantine-scale));--cb-size-xl: calc(2.75rem * var(--mantine-scale));--cb-size: var(--cb-size-md);--cb-icon-size: 70%;--cb-radius: var(--mantine-radius-default);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;-webkit-user-select:none;user-select:none;width:var(--cb-size);height:var(--cb-size);min-width:var(--cb-size);min-height:var(--cb-size);border-radius:var(--cb-radius)}:where([data-mantine-color-scheme=light]) .m_86a44da5{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_86a44da5{color:var(--mantine-color-dark-1)}.m_86a44da5[data-disabled],.m_86a44da5:disabled{cursor:not-allowed;opacity:.6}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_220c80f2:not([data-disabled],:disabled):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_220c80f2:not([data-disabled],:disabled):hover{background-color:var(--mantine-color-dark-6)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_220c80f2:not([data-disabled],:disabled):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_220c80f2:not([data-disabled],:disabled):active{background-color:var(--mantine-color-dark-6)}}.m_4081bf90{display:flex;flex-direction:row;flex-wrap:var(--group-wrap, wrap);justify-content:var(--group-justify, flex-start);align-items:var(--group-align, center);gap:var(--group-gap, var(--mantine-spacing-md))}.m_4081bf90:where([data-grow])>*{flex-grow:1;max-width:var(--group-child-width)}.m_9814e45f{top:0;right:0;bottom:0;left:0;position:absolute;background:var(--overlay-bg, rgba(0, 0, 0, .6));backdrop-filter:var(--overlay-filter);-webkit-backdrop-filter:var(--overlay-filter);border-radius:var(--overlay-radius, 0);z-index:var(--overlay-z-index)}.m_9814e45f:where([data-fixed]){position:fixed}.m_9814e45f:where([data-center]){display:flex;align-items:center;justify-content:center}.m_615af6c9{line-height:1;padding:0;margin:0;font-weight:400;font-size:var(--mantine-font-size-md)}.m_b5489c3c{display:flex;justify-content:space-between;align-items:center;padding:var(--mb-padding, var(--mantine-spacing-md));padding-inline-end:calc(var(--mb-padding, var(--mantine-spacing-md)) - calc(.3125rem * var(--mantine-scale)));position:sticky;top:0;background-color:var(--mantine-color-body);z-index:1000;min-height:calc(3.75rem * var(--mantine-scale))}.m_60c222c7{position:fixed;width:100%;top:0;bottom:0;z-index:var(--mb-z-index);pointer-events:none}.m_fd1ab0aa{pointer-events:all;box-shadow:var(--mb-shadow, var(--mantine-shadow-xl))}.m_606cb269{margin-inline-start:auto}.m_5df29311{padding:var(--mb-padding, var(--mantine-spacing-md));padding-top:var(--mb-padding, var(--mantine-spacing-md))}.m_5df29311:where(:not(:only-child)){padding-top:0}.m_6c018570{position:relative;margin-top:var(--input-margin-top, 0rem);margin-bottom:var(--input-margin-bottom, 0rem);--input-height-xs: calc(1.875rem * var(--mantine-scale));--input-height-sm: calc(2.25rem * var(--mantine-scale));--input-height-md: calc(2.625rem * var(--mantine-scale));--input-height-lg: calc(3.125rem * var(--mantine-scale));--input-height-xl: calc(3.75rem * var(--mantine-scale));--input-padding-y-xs: calc(.3125rem * var(--mantine-scale));--input-padding-y-sm: calc(.375rem * var(--mantine-scale));--input-padding-y-md: calc(.5rem * var(--mantine-scale));--input-padding-y-lg: calc(.625rem * var(--mantine-scale));--input-padding-y-xl: calc(.8125rem * var(--mantine-scale));--input-height: var(--input-height-sm);--input-radius: var(--mantine-radius-default);--input-cursor: text;--input-text-align: left;--input-line-height: calc(var(--input-height) - calc(.125rem * var(--mantine-scale)));--input-padding: calc(var(--input-height) / 3);--input-padding-inline-start: var(--input-padding);--input-padding-inline-end: var(--input-padding);--input-placeholder-color: var(--mantine-color-placeholder);--input-color: var(--mantine-color-text);--input-left-section-size: var(--input-left-section-width, calc(var(--input-height) - calc(.125rem * var(--mantine-scale))));--input-right-section-size: var( --input-right-section-width, calc(var(--input-height) - calc(.125rem * var(--mantine-scale))) );--input-size: var(--input-height);--section-y: calc(.0625rem * var(--mantine-scale));--left-section-start: calc(.0625rem * var(--mantine-scale));--left-section-border-radius: var(--input-radius) 0 0 var(--input-radius);--right-section-end: calc(.0625rem * var(--mantine-scale));--right-section-border-radius: 0 var(--input-radius) var(--input-radius) 0}.m_6c018570[data-variant=unstyled]{--input-padding: 0;--input-padding-y: 0;--input-padding-inline-start: 0;--input-padding-inline-end: 0}.m_6c018570[data-pointer]{--input-cursor: pointer}.m_6c018570[data-multiline]{--input-padding-y-xs: calc(.28125rem * var(--mantine-scale));--input-padding-y-sm: calc(.34375rem * var(--mantine-scale));--input-padding-y-md: calc(.4375rem * var(--mantine-scale));--input-padding-y-lg: calc(.59375rem * var(--mantine-scale));--input-padding-y-xl: calc(.8125rem * var(--mantine-scale));--input-size: auto;--input-line-height: var(--mantine-line-height);--input-padding-y: var(--input-padding-y-sm)}.m_6c018570[data-with-left-section]{--input-padding-inline-start: var(--input-left-section-size)}.m_6c018570[data-with-right-section]{--input-padding-inline-end: var(--input-right-section-size)}[data-mantine-color-scheme=light] .m_6c018570{--input-disabled-bg: var(--mantine-color-gray-1);--input-disabled-color: var(--mantine-color-gray-6)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=default]{--input-bd: var(--mantine-color-gray-4);--input-bg: var(--mantine-color-white);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=filled]{--input-bd: transparent;--input-bg: var(--mantine-color-gray-1);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=unstyled]{--input-bd: transparent;--input-bg: transparent;--input-bd-focus: transparent}[data-mantine-color-scheme=dark] .m_6c018570{--input-disabled-bg: var(--mantine-color-dark-6);--input-disabled-color: var(--mantine-color-dark-2)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=default]{--input-bd: var(--mantine-color-dark-4);--input-bg: var(--mantine-color-dark-6);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=filled]{--input-bd: transparent;--input-bg: var(--mantine-color-dark-5);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=unstyled]{--input-bd: transparent;--input-bg: transparent;--input-bd-focus: transparent}[data-mantine-color-scheme] .m_6c018570[data-error]:not([data-variant=unstyled]){--input-bd: var(--mantine-color-error)}[data-mantine-color-scheme] .m_6c018570[data-error]{--input-color: var(--mantine-color-error);--input-placeholder-color: var(--mantine-color-error);--input-section-color: var(--mantine-color-error)}:where([dir=rtl]) .m_6c018570{--input-text-align: right;--left-section-border-radius: 0 var(--input-radius) var(--input-radius) 0;--right-section-border-radius: var(--input-radius) 0 0 var(--input-radius)}.m_8fb7ebe7{-webkit-tap-highlight-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none;resize:var(--input-resize, none);display:block;width:100%;transition:border-color .1s ease;text-align:var(--input-text-align);color:var(--input-color);border:1px solid var(--input-bd);background-color:var(--input-bg);font-family:var(--input-font-family, var(--mantine-font-family));height:var(--input-size);min-height:var(--input-height);line-height:var(--input-line-height);font-size:var(--input-fz, var(--input-fz, var(--mantine-font-size-sm)));border-radius:var(--input-radius);padding-inline-start:var(--input-padding-inline-start);padding-inline-end:var(--input-padding-inline-end);padding-top:var(--input-padding-y, 0rem);padding-bottom:var(--input-padding-y, 0rem);cursor:var(--input-cursor);overflow:var(--input-overflow)}.m_8fb7ebe7[data-no-overflow]{--input-overflow: hidden}.m_8fb7ebe7[data-monospace]{--input-font-family: var(--mantine-font-family-monospace);--input-fz: calc(var(--input-fz, var(--mantine-font-size-sm)) - calc(.125rem * var(--mantine-scale)))}.m_8fb7ebe7:focus,.m_8fb7ebe7:focus-within{outline:none;--input-bd: var(--input-bd-focus)}[data-error] .m_8fb7ebe7:focus,[data-error] .m_8fb7ebe7:focus-within{--input-bd: var(--mantine-color-error)}.m_8fb7ebe7::placeholder{color:var(--input-placeholder-color);opacity:1}.m_8fb7ebe7::-webkit-inner-spin-button,.m_8fb7ebe7::-webkit-outer-spin-button,.m_8fb7ebe7::-webkit-search-decoration,.m_8fb7ebe7::-webkit-search-cancel-button,.m_8fb7ebe7::-webkit-search-results-button,.m_8fb7ebe7::-webkit-search-results-decoration{-webkit-appearance:none;-moz-appearance:none;appearance:none}.m_8fb7ebe7[type=number]{-moz-appearance:textfield}.m_8fb7ebe7:disabled,.m_8fb7ebe7[data-disabled]{cursor:not-allowed;opacity:.6;background-color:var(--input-disabled-bg);color:var(--input-disabled-color)}.m_8fb7ebe7:has(input:disabled){cursor:not-allowed;opacity:.6;background-color:var(--input-disabled-bg);color:var(--input-disabled-color)}.m_82577fc2{pointer-events:var(--section-pointer-events);position:absolute;z-index:1;inset-inline-start:var(--section-start);inset-inline-end:var(--section-end);bottom:var(--section-y);top:var(--section-y);display:flex;align-items:center;justify-content:center;width:var(--section-size);border-radius:var(--section-border-radius);color:var(--input-section-color, var(--mantine-color-dimmed))}.m_82577fc2[data-position=right]{--section-pointer-events: var(--input-right-section-pointer-events);--section-end: var(--right-section-end);--section-size: var(--input-right-section-size);--section-border-radius: var(--right-section-border-radius)}.m_82577fc2[data-position=left]{--section-pointer-events: var(--input-left-section-pointer-events);--section-start: var(--left-section-start);--section-size: var(--input-left-section-size);--section-border-radius: var(--left-section-border-radius)}.m_88bacfd0{color:var(--input-placeholder-color, var(--mantine-color-placeholder))}[data-error] .m_88bacfd0{--input-placeholder-color: var(--input-color, var(--mantine-color-placeholder))}.m_46b77525{line-height:var(--mantine-line-height)}.m_8fdc1311{display:inline-block;font-weight:500;word-break:break-word;cursor:default;-webkit-tap-highlight-color:transparent;font-size:var(--input-label-size, var(--mantine-font-size-sm))}.m_78a94662{color:var(--input-asterisk-color, var(--mantine-color-error))}.m_8f816625,.m_fe47ce59{word-wrap:break-word;line-height:1.2;display:block;margin:0;padding:0}.m_8f816625{color:var(--mantine-color-error);font-size:var(--input-error-size, calc(var(--mantine-font-size-sm) - calc(.125rem * var(--mantine-scale))))}.m_fe47ce59{color:var(--mantine-color-dimmed);font-size:var(--input-description-size, calc(var(--mantine-font-size-sm) - calc(.125rem * var(--mantine-scale))))}.m_8bffd616{display:flex}.m_96b553a6{--transition-duration: .15s;top:0;left:0;position:absolute;z-index:0;transition-property:transform,width,height;transition-timing-function:ease;transition-duration:0ms}.m_96b553a6:where([data-initialized]){transition-duration:var(--transition-duration)}.m_96b553a6:where([data-hidden]){background-color:red;display:none}.m_9bdbb667{--accordion-radius: var(--mantine-radius-default)}.m_df78851f{word-break:break-word}.m_4ba554d4{padding:var(--mantine-spacing-md);padding-top:calc(var(--mantine-spacing-xs) / 2)}.m_8fa820a0{margin:0;padding:0}.m_4ba585b8{width:100%;display:flex;align-items:center;flex-direction:row-reverse;padding-inline:var(--mantine-spacing-md);opacity:1;cursor:pointer;background-color:transparent}.m_4ba585b8:where([data-chevron-position=left]){flex-direction:row;padding-inline-start:0}:where([data-mantine-color-scheme=light]) .m_4ba585b8{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_4ba585b8{color:var(--mantine-color-dark-0)}.m_4ba585b8:where(:disabled,[data-disabled]){opacity:.4;cursor:not-allowed}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):hover,:where([data-mantine-color-scheme=light]) .m_4271d21b:where(:not(:disabled,[data-disabled])):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):hover,:where([data-mantine-color-scheme=dark]) .m_4271d21b:where(:not(:disabled,[data-disabled])):hover{background-color:var(--mantine-color-dark-6)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):active,:where([data-mantine-color-scheme=light]) .m_4271d21b:where(:not(:disabled,[data-disabled])):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):active,:where([data-mantine-color-scheme=dark]) .m_4271d21b:where(:not(:disabled,[data-disabled])):active{background-color:var(--mantine-color-dark-6)}}.m_df3ffa0f{color:inherit;font-weight:400;flex:1;overflow:hidden;text-overflow:ellipsis;padding-top:var(--mantine-spacing-sm);padding-bottom:var(--mantine-spacing-sm)}.m_3f35ae96{display:flex;align-items:center;justify-content:flex-start;transition:transform var(--accordion-transition-duration, .2s) ease;width:var(--accordion-chevron-size, calc(.9375rem * var(--mantine-scale)));min-width:var(--accordion-chevron-size, calc(.9375rem * var(--mantine-scale)));transform:rotate(0)}.m_3f35ae96:where([data-rotate]){transform:rotate(180deg)}.m_3f35ae96:where([data-position=left]){margin-inline-end:var(--mantine-spacing-md);margin-inline-start:var(--mantine-spacing-md)}.m_9bd771fe{display:flex;align-items:center;justify-content:center;margin-inline-end:var(--mantine-spacing-sm)}.m_9bd771fe:where([data-chevron-position=left]){margin-inline-end:0;margin-inline-start:var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_9bd7b098{--item-border-color: var(--mantine-color-gray-3);--item-filled-color: var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_9bd7b098{--item-border-color: var(--mantine-color-dark-4);--item-filled-color: var(--mantine-color-dark-6)}.m_fe19b709{border-bottom:1px solid var(--item-border-color)}.m_1f921b3b{border:1px solid var(--item-border-color);transition:background-color .15s ease}.m_1f921b3b:where([data-active]){background-color:var(--item-filled-color)}.m_1f921b3b:first-of-type{border-start-start-radius:var(--accordion-radius);border-start-end-radius:var(--accordion-radius)}.m_1f921b3b:first-of-type>[data-accordion-control]{border-start-start-radius:var(--accordion-radius);border-start-end-radius:var(--accordion-radius)}.m_1f921b3b:last-of-type{border-end-start-radius:var(--accordion-radius);border-end-end-radius:var(--accordion-radius)}.m_1f921b3b:last-of-type>[data-accordion-control]{border-end-start-radius:var(--accordion-radius);border-end-end-radius:var(--accordion-radius)}.m_1f921b3b+.m_1f921b3b{border-top:0}.m_2cdf939a{border-radius:var(--accordion-radius)}.m_2cdf939a:where([data-active]){background-color:var(--item-filled-color)}.m_9f59b069{background-color:var(--item-filled-color);border-radius:var(--accordion-radius);border:calc(.0625rem * var(--mantine-scale)) solid transparent;transition:background-color .15s ease}.m_9f59b069[data-active]{border-color:var(--item-border-color)}:where([data-mantine-color-scheme=light]) .m_9f59b069[data-active]{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_9f59b069[data-active]{background-color:var(--mantine-color-dark-7)}.m_9f59b069+.m_9f59b069{margin-top:var(--mantine-spacing-md)}.m_7f854edf{position:fixed;z-index:var(--affix-z-index);inset-inline-start:var(--affix-left);inset-inline-end:var(--affix-right);top:var(--affix-top);bottom:var(--affix-bottom)}.m_66836ed3{--alert-radius: var(--mantine-radius-default);--alert-bg: var(--mantine-primary-color-light);--alert-bd: calc(.0625rem * var(--mantine-scale)) solid transparent;--alert-color: var(--mantine-primary-color-light-color);padding:var(--mantine-spacing-md) var(--mantine-spacing-md);border-radius:var(--alert-radius);position:relative;overflow:hidden;background-color:var(--alert-bg);border:var(--alert-bd);color:var(--alert-color)}.m_a5d60502{display:flex}.m_667c2793{flex:1;display:flex;flex-direction:column;gap:var(--mantine-spacing-xs)}.m_6a03f287{display:flex;align-items:center;justify-content:space-between;font-size:var(--mantine-font-size-sm);font-weight:700}.m_6a03f287:where([data-with-close-button]){padding-inline-end:var(--mantine-spacing-md)}.m_698f4f23{display:block;overflow:hidden;text-overflow:ellipsis}.m_667f2a6a{line-height:1;width:calc(1.25rem * var(--mantine-scale));height:calc(1.25rem * var(--mantine-scale));display:flex;align-items:center;justify-content:flex-start;margin-inline-end:var(--mantine-spacing-md);margin-top:calc(.0625rem * var(--mantine-scale))}.m_7fa78076{text-overflow:ellipsis;overflow:hidden;font-size:var(--mantine-font-size-sm)}:where([data-mantine-color-scheme=light]) .m_7fa78076{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_7fa78076{color:var(--mantine-color-white)}.m_7fa78076:where([data-variant=filled]){color:var(--alert-color)}.m_7fa78076:where([data-variant=white]){color:var(--mantine-color-black)}.m_87f54839{width:calc(1.25rem * var(--mantine-scale));height:calc(1.25rem * var(--mantine-scale));color:var(--alert-color)}.m_b6d8b162{-webkit-tap-highlight-color:transparent;text-decoration:none;font-size:var(--text-fz, var(--mantine-font-size-md));line-height:var(--text-lh, var(--mantine-line-height-md));font-weight:400;margin:0;padding:0;color:var(--text-color)}.m_b6d8b162:where([data-truncate]){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.m_b6d8b162:where([data-truncate=start]){direction:rtl;text-align:right}:where([dir=rtl]) .m_b6d8b162:where([data-truncate=start]){direction:ltr;text-align:left}.m_b6d8b162:where([data-variant=gradient]){background-image:var(--text-gradient);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.m_b6d8b162:where([data-line-clamp]){overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:var(--text-line-clamp);-webkit-box-orient:vertical}.m_b6d8b162:where([data-inherit]){line-height:inherit;font-weight:inherit;font-size:inherit}.m_b6d8b162:where([data-inline]){line-height:1}.m_849cf0da{color:var(--mantine-color-anchor);text-decoration:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;display:inline;padding:0;margin:0;background-color:transparent;cursor:pointer}@media (hover: hover){.m_849cf0da:where([data-underline=hover]):hover{text-decoration:underline}}@media (hover: none){.m_849cf0da:where([data-underline=hover]):active{text-decoration:underline}}.m_849cf0da:where([data-underline=always]){text-decoration:underline}.m_89ab340[data-resizing]{--app-shell-transition-duration: 0ms !important}.m_89ab340[data-disabled]{--app-shell-header-offset: 0rem !important;--app-shell-navbar-offset: 0rem !important}[data-mantine-color-scheme=light] .m_89ab340{--app-shell-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_89ab340{--app-shell-border-color: var(--mantine-color-dark-4)}.m_45252eee,.m_9cdde9a,.m_3b16f56b,.m_8983817,.m_3840c879{transition-duration:var(--app-shell-transition-duration);transition-timing-function:var(--app-shell-transition-timing-function)}.m_45252eee,.m_9cdde9a{position:fixed;display:flex;flex-direction:column;top:var(--app-shell-header-offset, 0rem);height:calc(100dvh - var(--app-shell-header-offset, 0rem) - var(--app-shell-footer-offset, 0rem));background-color:var(--mantine-color-body);transition-property:transform,top,height}:where([data-layout=alt]) .m_45252eee,:where([data-layout=alt]) .m_9cdde9a{top:0rem;height:100dvh}.m_45252eee{inset-inline-start:0;width:var(--app-shell-navbar-width);transition-property:transform,top,height;transform:var(--app-shell-navbar-transform);z-index:var(--app-shell-navbar-z-index)}:where([dir=rtl]) .m_45252eee{transform:var(--app-shell-navbar-transform-rtl)}.m_45252eee:where([data-with-border]){border-inline-end:1px solid var(--app-shell-border-color)}.m_9cdde9a{inset-inline-end:0;width:var(--app-shell-aside-width);transform:var(--app-shell-aside-transform);z-index:var(--app-shell-aside-z-index)}:where([dir=rtl]) .m_9cdde9a{transform:var(--app-shell-aside-transform-rtl)}.m_9cdde9a:where([data-with-border]){border-inline-start:1px solid var(--app-shell-border-color)}.m_8983817{padding-inline-start:calc(var(--app-shell-navbar-offset, 0rem) + var(--app-shell-padding));padding-inline-end:calc(var(--app-shell-aside-offset, 0rem) + var(--app-shell-padding));padding-top:calc(var(--app-shell-header-offset, 0rem) + var(--app-shell-padding));padding-bottom:calc(var(--app-shell-footer-offset, 0rem) + var(--app-shell-padding));min-height:100dvh;transition-property:padding}.m_3b16f56b,.m_3840c879{position:fixed;inset-inline:0;transition-property:transform,left,right;background-color:var(--mantine-color-body)}:where([data-layout=alt]) .m_3b16f56b,:where([data-layout=alt]) .m_3840c879{inset-inline-start:var(--app-shell-navbar-offset, 0rem);inset-inline-end:var(--app-shell-aside-offset, 0rem)}.m_3b16f56b{top:0;height:var(--app-shell-header-height);background-color:var(--mantine-color-body);transform:var(--app-shell-header-transform);z-index:var(--app-shell-header-z-index)}.m_3b16f56b:where([data-with-border]){border-bottom:1px solid var(--app-shell-border-color)}.m_3840c879{bottom:0;height:calc(var(--app-shell-footer-height) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);transform:var(--app-shell-footer-transform);z-index:var(--app-shell-footer-z-index)}.m_3840c879:where([data-with-border]){border-top:1px solid var(--app-shell-border-color)}.m_6dcfc7c7{flex-grow:0}.m_6dcfc7c7:where([data-grow]){flex-grow:1}.m_71ac47fc{--ar-ratio: 1;position:relative;max-width:100%}.m_71ac47fc:before{content:"";height:0;display:block;padding-bottom:calc((1 / var(--ar-ratio)) * 100%)}.m_71ac47fc:after{content:"";display:table;clear:both}.m_71ac47fc>:where(*:not(style)){position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.m_71ac47fc>:where(img,video){object-fit:cover}.m_88b62a41{--combobox-padding: calc(.25rem * var(--mantine-scale));padding:var(--combobox-padding)}.m_88b62a41[data-hidden]{display:none}.m_88b62a41,.m_b2821a6e{--combobox-option-padding-xs: calc(.25rem * var(--mantine-scale)) calc(.5rem * var(--mantine-scale));--combobox-option-padding-sm: calc(.375rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale));--combobox-option-padding-md: calc(.5rem * var(--mantine-scale)) calc(.75rem * var(--mantine-scale));--combobox-option-padding-lg: calc(.625rem * var(--mantine-scale)) calc(1rem * var(--mantine-scale));--combobox-option-padding-xl: calc(.875rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));--combobox-option-padding: var(--combobox-option-padding-sm)}.m_92253aa5{padding:var(--combobox-option-padding);font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));border-radius:var(--mantine-radius-default);background-color:transparent;color:inherit;cursor:pointer;word-break:break-word}.m_92253aa5:where([data-combobox-selected]){background-color:var(--mantine-primary-color-filled);color:var(--mantine-color-white)}.m_92253aa5:where([data-combobox-disabled]){cursor:not-allowed;opacity:.35}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_92253aa5:hover:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_92253aa5:hover:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-dark-7)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_92253aa5:active:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_92253aa5:active:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-dark-7)}}.m_985517d8{margin-inline:calc(var(--combobox-padding) * -1);margin-top:calc(var(--combobox-padding) * -1);width:calc(100% + var(--combobox-padding) * 2);border-top-width:0;border-inline-width:0;border-end-start-radius:0;border-end-end-radius:0;margin-bottom:var(--combobox-padding);position:relative}:where([data-mantine-color-scheme=light]) .m_985517d8,:where([data-mantine-color-scheme=light]) .m_985517d8:focus{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_985517d8,:where([data-mantine-color-scheme=dark]) .m_985517d8:focus{border-color:var(--mantine-color-dark-4)}:where([data-mantine-color-scheme=light]) .m_985517d8{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_985517d8{background-color:var(--mantine-color-dark-7)}.m_2530cd1d{font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));text-align:center;padding:var(--combobox-option-padding);color:var(--mantine-color-dimmed)}.m_858f94bd,.m_82b967cb{font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));border:0 solid transparent;margin-inline:calc(var(--combobox-padding) * -1);padding:var(--combobox-option-padding)}:where([data-mantine-color-scheme=light]) .m_858f94bd,:where([data-mantine-color-scheme=light]) .m_82b967cb{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_858f94bd,:where([data-mantine-color-scheme=dark]) .m_82b967cb{border-color:var(--mantine-color-dark-4)}.m_82b967cb{border-top-width:calc(.0625rem * var(--mantine-scale));margin-top:var(--combobox-padding);margin-bottom:calc(var(--combobox-padding) * -1)}.m_858f94bd{border-bottom-width:calc(.0625rem * var(--mantine-scale));margin-bottom:var(--combobox-padding);margin-top:calc(var(--combobox-padding) * -1)}.m_254f3e4f:has(.m_2bb2e9e5:only-child){display:none}.m_2bb2e9e5{color:var(--mantine-color-dimmed);font-size:calc(var(--combobox-option-fz, var(--mantine-font-size-sm)) * .85);padding:var(--combobox-option-padding);font-weight:500;position:relative;display:flex;align-items:center}.m_2bb2e9e5:after{content:"";flex:1;inset-inline:0;height:calc(.0625rem * var(--mantine-scale));margin-inline-start:var(--mantine-spacing-xs)}:where([data-mantine-color-scheme=light]) .m_2bb2e9e5:after{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_2bb2e9e5:after{background-color:var(--mantine-color-dark-4)}.m_2bb2e9e5:only-child{display:none}.m_2943220b{--combobox-chevron-size-xs: calc(.875rem * var(--mantine-scale));--combobox-chevron-size-sm: calc(1.125rem * var(--mantine-scale));--combobox-chevron-size-md: calc(1.25rem * var(--mantine-scale));--combobox-chevron-size-lg: calc(1.5rem * var(--mantine-scale));--combobox-chevron-size-xl: calc(1.75rem * var(--mantine-scale));--combobox-chevron-size: var(--combobox-chevron-size-sm);width:var(--combobox-chevron-size);height:var(--combobox-chevron-size)}:where([data-mantine-color-scheme=light]) .m_2943220b{color:var(--mantine-color-gray-6)}:where([data-mantine-color-scheme=dark]) .m_2943220b{color:var(--mantine-color-dark-3)}.m_2943220b:where([data-error]){color:var(--mantine-color-error)}.m_390b5f4{display:flex;align-items:center;gap:calc(.5rem * var(--mantine-scale))}.m_390b5f4:where([data-reverse]){justify-content:space-between}.m_8ee53fc2{opacity:.4;width:.8em;min-width:.8em;height:.8em}:where([data-combobox-selected]) .m_8ee53fc2{opacity:1}.m_5f75b09e{--label-lh-xs: calc(1rem * var(--mantine-scale));--label-lh-sm: calc(1.25rem * var(--mantine-scale));--label-lh-md: calc(1.5rem * var(--mantine-scale));--label-lh-lg: calc(1.875rem * var(--mantine-scale));--label-lh-xl: calc(2.25rem * var(--mantine-scale));--label-lh: var(--label-lh-sm)}.m_5f75b09e[data-label-position=left]{--label-order: 1;--label-offset-end: var(--mantine-spacing-sm);--label-offset-start: 0}.m_5f75b09e[data-label-position=right]{--label-order: 2;--label-offset-end: 0;--label-offset-start: var(--mantine-spacing-sm)}.m_5f6e695e{display:flex}.m_d3ea56bb{--label-cursor: var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;display:inline-flex;flex-direction:column;font-size:var(--label-fz, var(--mantine-font-size-sm));line-height:var(--label-lh);cursor:var(--label-cursor);order:var(--label-order)}fieldset:disabled .m_d3ea56bb,.m_d3ea56bb[data-disabled]{--label-cursor: not-allowed}.m_8ee546b8{cursor:var(--label-cursor);color:inherit;padding-inline-start:var(--label-offset-start);padding-inline-end:var(--label-offset-end)}:where([data-mantine-color-scheme=light]) fieldset:disabled .m_8ee546b8,:where([data-mantine-color-scheme=light]) .m_8ee546b8:where([data-disabled]){color:var(--mantine-color-gray-5)}:where([data-mantine-color-scheme=dark]) fieldset:disabled .m_8ee546b8,:where([data-mantine-color-scheme=dark]) .m_8ee546b8:where([data-disabled]){color:var(--mantine-color-dark-3)}.m_328f68c0,.m_8e8a99cc{margin-top:calc(var(--mantine-spacing-xs) / 2);padding-inline-start:var(--label-offset-start);padding-inline-end:var(--label-offset-end)}.m_bf2d988c{--checkbox-size-xs: calc(1rem * var(--mantine-scale));--checkbox-size-sm: calc(1.25rem * var(--mantine-scale));--checkbox-size-md: calc(1.5rem * var(--mantine-scale));--checkbox-size-lg: calc(1.875rem * var(--mantine-scale));--checkbox-size-xl: calc(2.25rem * var(--mantine-scale));--checkbox-size: var(--checkbox-size-sm);--checkbox-color: var(--mantine-primary-color-filled);--checkbox-icon-color: var(--mantine-color-white)}.m_26062bec{position:relative;width:var(--checkbox-size);height:var(--checkbox-size);order:1}.m_26062bec:where([data-label-position=left]){order:2}.m_26063560{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--checkbox-size);height:var(--checkbox-size);border-radius:var(--checkbox-radius, var(--mantine-radius-default));padding:0;display:block;margin:0;transition:border-color .1s ease,background-color .1s ease;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent}:where([data-mantine-color-scheme=light]) .m_26063560{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_26063560{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_26063560:where([data-error]){border-color:var(--mantine-color-error)}.m_26063560[data-indeterminate],.m_26063560:checked{background-color:var(--checkbox-color);border-color:var(--checkbox-color)}.m_26063560[data-indeterminate]+.m_bf295423,.m_26063560:checked+.m_bf295423{opacity:1;transform:none}.m_26063560:disabled{cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_26063560:disabled{background-color:var(--mantine-color-gray-2);border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_26063560:disabled{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-6)}[data-mantine-color-scheme=light] .m_26063560:disabled+.m_bf295423{color:var(--mantine-color-gray-5)}[data-mantine-color-scheme=dark] .m_26063560:disabled+.m_bf295423{color:var(--mantine-color-dark-3)}.m_215c4542+.m_bf295423{color:var(--checkbox-color)}.m_215c4542[data-indeterminate]:not(:disabled),.m_215c4542:checked:not(:disabled){background-color:transparent;border-color:var(--checkbox-color)}.m_215c4542[data-indeterminate]:not(:disabled)+.m_bf295423,.m_215c4542:checked:not(:disabled)+.m_bf295423{color:var(--checkbox-color);opacity:1;transform:none}.m_bf295423{position:absolute;top:0;right:0;bottom:0;left:0;width:60%;margin:auto;color:var(--checkbox-icon-color);pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:0;transition:transform .1s ease,opacity .1s ease}.m_11def92b{--ag-spacing: var(--mantine-spacing-sm);--ag-offset: calc(var(--ag-spacing) * -1);display:flex;padding-inline-start:var(--ag-spacing)}.m_f85678b6{--avatar-size-xs: calc(1rem * var(--mantine-scale));--avatar-size-sm: calc(1.625rem * var(--mantine-scale));--avatar-size-md: calc(2.375rem * var(--mantine-scale));--avatar-size-lg: calc(3.5rem * var(--mantine-scale));--avatar-size-xl: calc(5.25rem * var(--mantine-scale));--avatar-size: var(--avatar-size-md);--avatar-radius: calc(62.5rem * var(--mantine-scale));--avatar-bg: var(--mantine-color-gray-light);--avatar-bd: calc(.0625rem * var(--mantine-scale)) solid transparent;--avatar-color: var(--mantine-color-gray-light-color);--avatar-placeholder-fz: calc(var(--avatar-size) / 2.5);-webkit-tap-highlight-color:transparent;position:relative;display:block;-webkit-user-select:none;user-select:none;overflow:hidden;border-radius:var(--avatar-radius);text-decoration:none;padding:0;width:var(--avatar-size);height:var(--avatar-size);min-width:var(--avatar-size)}.m_f85678b6:where([data-within-group]){margin-inline-start:var(--ag-offset);border:2px solid var(--mantine-color-body);background:var(--mantine-color-body)}.m_11f8ac07{object-fit:cover;width:100%;height:100%;display:block}.m_104cd71f{font-weight:700;display:flex;align-items:center;justify-content:center;width:100%;height:100%;-webkit-user-select:none;user-select:none;border-radius:var(--avatar-radius);font-size:var(--avatar-placeholder-fz);background:var(--avatar-bg);border:var(--avatar-bd);color:var(--avatar-color)}.m_104cd71f>[data-avatar-placeholder-icon]{width:70%;height:70%}.m_2ce0de02{background-size:cover;background-position:center;display:block;width:100%;border:0;text-decoration:none;border-radius:var(--bi-radius, 0)}.m_347db0ec{--badge-height-xs: calc(1rem * var(--mantine-scale));--badge-height-sm: calc(1.125rem * var(--mantine-scale));--badge-height-md: calc(1.25rem * var(--mantine-scale));--badge-height-lg: calc(1.625rem * var(--mantine-scale));--badge-height-xl: calc(2rem * var(--mantine-scale));--badge-fz-xs: calc(.5625rem * var(--mantine-scale));--badge-fz-sm: calc(.625rem * var(--mantine-scale));--badge-fz-md: calc(.6875rem * var(--mantine-scale));--badge-fz-lg: calc(.8125rem * var(--mantine-scale));--badge-fz-xl: calc(1rem * var(--mantine-scale));--badge-padding-x-xs: calc(.375rem * var(--mantine-scale));--badge-padding-x-sm: calc(.5rem * var(--mantine-scale));--badge-padding-x-md: calc(.625rem * var(--mantine-scale));--badge-padding-x-lg: calc(.75rem * var(--mantine-scale));--badge-padding-x-xl: calc(1rem * var(--mantine-scale));--badge-height: var(--badge-height-md);--badge-fz: var(--badge-fz-md);--badge-padding-x: var(--badge-padding-x-md);--badge-radius: calc(62.5rem * var(--mantine-scale));--badge-lh: calc(var(--badge-height) - calc(.125rem * var(--mantine-scale)));--badge-color: var(--mantine-color-white);--badge-bg: var(--mantine-primary-color-filled);--badge-bd: calc(.0625rem * var(--mantine-scale)) solid transparent;-webkit-tap-highlight-color:transparent;font-size:var(--badge-fz);border-radius:var(--badge-radius);height:var(--badge-height);line-height:var(--badge-lh);text-decoration:none;padding:0 var(--badge-padding-x);display:inline-flex;align-items:center;justify-content:center;width:fit-content;text-transform:uppercase;font-weight:700;letter-spacing:calc(.015625rem * var(--mantine-scale));cursor:inherit;text-overflow:ellipsis;overflow:hidden;color:var(--badge-color);background:var(--badge-bg);border:var(--badge-bd)}.m_347db0ec:where([data-block]){display:flex;width:100%}.m_347db0ec:where([data-circle]){padding-inline:calc(.125rem * var(--mantine-scale));width:var(--badge-height)}.m_fbd81e3d{--badge-dot-size: calc(var(--badge-height) / 3.4)}:where([data-mantine-color-scheme=light]) .m_fbd81e3d{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4);color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_fbd81e3d{background-color:var(--mantine-color-dark-5);border-color:var(--mantine-color-dark-5);color:var(--mantine-color-white)}.m_fbd81e3d:before{content:"";display:block;width:var(--badge-dot-size);height:var(--badge-dot-size);border-radius:var(--badge-dot-size);background-color:var(--badge-dot-color);margin-inline-end:var(--badge-dot-size)}.m_5add502a{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.m_91fdda9b{--badge-section-margin: calc(var(--mantine-spacing-xs) / 2);display:inline-flex;justify-content:center;align-items:center}.m_91fdda9b:where([data-position=left]){margin-inline-end:var(--badge-section-margin)}.m_91fdda9b:where([data-position=right]){margin-inline-start:var(--badge-section-margin)}.m_ddec01c0{--blockquote-border: 3px solid var(--bq-bd);position:relative;margin:0;border-inline-start:var(--blockquote-border);border-start-end-radius:var(--bq-radius);border-end-end-radius:var(--bq-radius);padding:var(--mantine-spacing-xl) calc(2.375rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_ddec01c0{background-color:var(--bq-bg-light)}:where([data-mantine-color-scheme=dark]) .m_ddec01c0{background-color:var(--bq-bg-dark)}.m_dde7bd57{--blockquote-icon-offset: calc(var(--bq-icon-size) / -2);position:absolute;color:var(--bq-bd);background-color:var(--mantine-color-body);display:flex;align-items:center;justify-content:center;top:var(--blockquote-icon-offset);inset-inline-start:var(--blockquote-icon-offset);width:var(--bq-icon-size);height:var(--bq-icon-size);border-radius:var(--bq-icon-size)}.m_dde51a35{display:block;margin-top:var(--mantine-spacing-md);opacity:.6;font-size:85%}.m_8b3717df{display:flex;align-items:center}.m_f678d540{line-height:1;white-space:nowrap;-webkit-tap-highlight-color:transparent}.m_3b8f2208{margin-inline:var(--bc-separator-margin, var(--mantine-spacing-xs));line-height:1;display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_3b8f2208{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_3b8f2208{color:var(--mantine-color-dark-2)}.m_fea6bf1a{--burger-size-xs: calc(.75rem * var(--mantine-scale));--burger-size-sm: calc(1.125rem * var(--mantine-scale));--burger-size-md: calc(1.5rem * var(--mantine-scale));--burger-size-lg: calc(2.125rem * var(--mantine-scale));--burger-size-xl: calc(2.625rem * var(--mantine-scale));--burger-size: var(--burger-size-md);width:calc(var(--burger-size) + var(--mantine-spacing-xs));height:calc(var(--burger-size) + var(--mantine-spacing-xs));padding:calc(var(--mantine-spacing-xs) / 2);cursor:pointer}:where([data-mantine-color-scheme=light]) .m_fea6bf1a{--burger-color: var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_fea6bf1a{--burger-color: var(--mantine-color-white)}.m_d4fb9cad{position:relative;-webkit-user-select:none;user-select:none}.m_d4fb9cad,.m_d4fb9cad:before,.m_d4fb9cad:after{display:block;width:var(--burger-size);height:calc(var(--burger-size) / 12);background-color:var(--burger-color);outline:calc(.0625rem * var(--mantine-scale)) solid transparent;transition-property:background-color,transform;transition-duration:var(--burger-transition-duration, .3s);transition-timing-function:var(--burger-transition-timing-function, ease)}.m_d4fb9cad:before,.m_d4fb9cad:after{position:absolute;content:"";inset-inline-start:0}.m_d4fb9cad:before{top:calc(var(--burger-size) / -3)}.m_d4fb9cad:after{top:calc(var(--burger-size) / 3)}.m_d4fb9cad[data-opened]{background-color:transparent}.m_d4fb9cad[data-opened]:before{transform:translateY(calc(var(--burger-size) / 3)) rotate(45deg)}.m_d4fb9cad[data-opened]:after{transform:translateY(calc(var(--burger-size) / -3)) rotate(-45deg)}.m_77c9d27d{--button-height-xs: calc(1.875rem * var(--mantine-scale));--button-height-sm: calc(2.25rem * var(--mantine-scale));--button-height-md: calc(2.625rem * var(--mantine-scale));--button-height-lg: calc(3.125rem * var(--mantine-scale));--button-height-xl: calc(3.75rem * var(--mantine-scale));--button-height-compact-xs: calc(1.375rem * var(--mantine-scale));--button-height-compact-sm: calc(1.625rem * var(--mantine-scale));--button-height-compact-md: calc(1.875rem * var(--mantine-scale));--button-height-compact-lg: calc(2.125rem * var(--mantine-scale));--button-height-compact-xl: calc(2.5rem * var(--mantine-scale));--button-padding-x-xs: calc(.875rem * var(--mantine-scale));--button-padding-x-sm: calc(1.125rem * var(--mantine-scale));--button-padding-x-md: calc(1.375rem * var(--mantine-scale));--button-padding-x-lg: calc(1.625rem * var(--mantine-scale));--button-padding-x-xl: calc(2rem * var(--mantine-scale));--button-padding-x-compact-xs: calc(.4375rem * var(--mantine-scale));--button-padding-x-compact-sm: calc(.5rem * var(--mantine-scale));--button-padding-x-compact-md: calc(.625rem * var(--mantine-scale));--button-padding-x-compact-lg: calc(.75rem * var(--mantine-scale));--button-padding-x-compact-xl: calc(.875rem * var(--mantine-scale));--button-height: var(--button-height-sm);--button-padding-x: var(--button-padding-x-sm);--button-color: var(--mantine-color-white);-webkit-user-select:none;user-select:none;font-weight:600;position:relative;line-height:1;text-align:center;overflow:hidden;width:auto;cursor:pointer;display:inline-block;border-radius:var(--button-radius, var(--mantine-radius-default));font-size:var(--button-fz, var(--mantine-font-size-sm));background:var(--button-bg, var(--mantine-primary-color-filled));border:var(--button-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--button-color, var(--mantine-color-white));height:var(--button-height, var(--button-height-sm));padding-inline:var(--button-padding-x, var(--button-padding-x-sm));vertical-align:middle}.m_77c9d27d:where([data-block]){display:block;width:100%}.m_77c9d27d:where([data-with-left-section]){padding-inline-start:calc(var(--button-padding-x) / 1.5)}.m_77c9d27d:where([data-with-right-section]){padding-inline-end:calc(var(--button-padding-x) / 1.5)}.m_77c9d27d:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){cursor:not-allowed;border:calc(.0625rem * var(--mantine-scale)) solid transparent;transform:none}:where([data-mantine-color-scheme=light]) .m_77c9d27d:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){color:var(--mantine-color-gray-5);background:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_77c9d27d:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){color:var(--mantine-color-dark-3);background:var(--mantine-color-dark-6)}.m_77c9d27d:before{content:"";pointer-events:none;position:absolute;inset:calc(-.0625rem * var(--mantine-scale));border-radius:var(--button-radius, var(--mantine-radius-default));transform:translateY(-100%);opacity:0;filter:blur(12px);transition:transform .15s ease,opacity .1s ease}:where([data-mantine-color-scheme=light]) .m_77c9d27d:before{background-color:#ffffff26}:where([data-mantine-color-scheme=dark]) .m_77c9d27d:before{background-color:#00000026}.m_77c9d27d:where([data-loading]){cursor:not-allowed;transform:none}.m_77c9d27d:where([data-loading]):before{transform:translateY(0);opacity:1}.m_77c9d27d:where([data-loading]) .m_80f1301b{opacity:0;transform:translateY(100%)}@media (hover: hover){.m_77c9d27d:hover:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--button-hover, var(--mantine-primary-color-filled-hover));color:var(--button-hover-color, var(--button-color))}}@media (hover: none){.m_77c9d27d:active:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--button-hover, var(--mantine-primary-color-filled-hover));color:var(--button-hover-color, var(--button-color))}}.m_80f1301b{display:flex;align-items:center;justify-content:var(--button-justify, center);height:100%;overflow:visible;transition:transform .15s ease,opacity .1s ease}.m_811560b9{white-space:nowrap;height:100%;overflow:hidden;display:flex;align-items:center;opacity:1}.m_811560b9:where([data-loading]){opacity:.2}.m_a74036a{display:flex;align-items:center}.m_a74036a:where([data-position=left]){margin-inline-end:var(--mantine-spacing-xs)}.m_a74036a:where([data-position=right]){margin-inline-start:var(--mantine-spacing-xs)}.m_a25b86ee{position:absolute;left:50%;top:50%}.m_80d6d844{--button-border-width: calc(.0625rem * var(--mantine-scale));display:flex}.m_80d6d844 :where(*):focus{position:relative;z-index:1}.m_80d6d844[data-orientation=horizontal]{flex-direction:row}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):first-child{border-end-end-radius:0;border-start-end-radius:0;border-inline-end-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):last-child{border-end-start-radius:0;border-start-start-radius:0;border-inline-start-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-inline-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical]{flex-direction:column}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):first-child{border-end-start-radius:0;border-end-end-radius:0;border-bottom-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):last-child{border-start-start-radius:0;border-start-end-radius:0;border-top-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-bottom-width:calc(var(--button-border-width) / 2);border-top-width:calc(var(--button-border-width) / 2)}.m_e615b15f{--card-padding: var(--mantine-spacing-md);position:relative;overflow:hidden;display:flex;flex-direction:column;padding:var(--card-padding);color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_e615b15f{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_e615b15f{background-color:var(--mantine-color-dark-6)}.m_599a2148{display:block;margin-inline:calc(var(--card-padding) * -1)}.m_599a2148:where(:first-child){margin-top:calc(var(--card-padding) * -1);border-top:none!important}.m_599a2148:where(:last-child){margin-bottom:calc(var(--card-padding) * -1);border-bottom:none!important}.m_599a2148:where([data-inherit-padding]){padding-inline:var(--card-padding)}.m_599a2148:where([data-with-border]){border-top:calc(.0625rem * var(--mantine-scale)) solid;border-bottom:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_599a2148{border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_599a2148{border-color:var(--mantine-color-dark-4)}.m_599a2148+.m_599a2148{border-top:none!important}.m_4451eb3a{display:flex;align-items:center;justify-content:center}.m_4451eb3a:where([data-inline]){display:inline-flex}.m_f59ffda3{--chip-size-xs: calc(1.4375rem * var(--mantine-scale));--chip-size-sm: calc(1.75rem * var(--mantine-scale));--chip-size-md: calc(2rem * var(--mantine-scale));--chip-size-lg: calc(2.25rem * var(--mantine-scale));--chip-size-xl: calc(2.5rem * var(--mantine-scale));--chip-icon-size-xs: calc(.625rem * var(--mantine-scale));--chip-icon-size-sm: calc(.75rem * var(--mantine-scale));--chip-icon-size-md: calc(.875rem * var(--mantine-scale));--chip-icon-size-lg: calc(1rem * var(--mantine-scale));--chip-icon-size-xl: calc(1.125rem * var(--mantine-scale));--chip-padding-xs: calc(1rem * var(--mantine-scale));--chip-padding-sm: calc(1.25rem * var(--mantine-scale));--chip-padding-md: calc(1.5rem * var(--mantine-scale));--chip-padding-lg: calc(1.75rem * var(--mantine-scale));--chip-padding-xl: calc(2rem * var(--mantine-scale));--chip-checked-padding-xs: calc(.46875rem * var(--mantine-scale));--chip-checked-padding-sm: calc(.625rem * var(--mantine-scale));--chip-checked-padding-md: calc(.73125rem * var(--mantine-scale));--chip-checked-padding-lg: calc(.84375rem * var(--mantine-scale));--chip-checked-padding-xl: calc(.78125rem * var(--mantine-scale));--chip-spacing-xs: calc(.625rem * var(--mantine-scale));--chip-spacing-sm: calc(.75rem * var(--mantine-scale));--chip-spacing-md: calc(1rem * var(--mantine-scale));--chip-spacing-lg: calc(1.25rem * var(--mantine-scale));--chip-spacing-xl: calc(1.375rem * var(--mantine-scale));--chip-size: var(--chip-size-sm);--chip-icon-size: var(--chip-icon-size-sm);--chip-padding: var(--chip-padding-sm);--chip-spacing: var(--chip-spacing-sm);--chip-checked-padding: var(--chip-checked-padding-sm);--chip-bg: var(--mantine-primary-color-filled);--chip-hover: var(--mantine-primary-color-filled-hover);--chip-color: var(--mantine-color-white);--chip-bd: calc(.0625rem * var(--mantine-scale)) solid transparent}.m_be049a53{display:inline-flex;align-items:center;-webkit-user-select:none;user-select:none;border-radius:var(--chip-radius, 1000rem);height:var(--chip-size);font-size:var(--chip-fz, var(--mantine-font-size-sm));line-height:calc(var(--chip-size) - calc(.125rem * var(--mantine-scale)));padding-inline:var(--chip-padding);cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent;border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-text)}.m_be049a53:where([data-checked]){padding:var(--chip-checked-padding)}.m_be049a53:where([data-disabled]){cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_be049a53:where([data-disabled]){background-color:var(--mantine-color-gray-2);color:var(--mantine-color-gray-5)}:where([data-mantine-color-scheme=dark]) .m_be049a53:where([data-disabled]){background-color:var(--mantine-color-dark-6);color:var(--mantine-color-dark-3)}:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]){background-color:var(--mantine-color-white);border:1px solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]){background-color:var(--mantine-color-dark-6);border:1px solid var(--mantine-color-dark-4)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]):hover{background-color:var(--mantine-color-dark-5)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]):active{background-color:var(--mantine-color-dark-5)}}.m_3904c1af:not([data-disabled]):where([data-checked]){--chip-icon-color: var(--chip-color);border:var(--chip-bd)}@media (hover: hover){.m_3904c1af:not([data-disabled]):where([data-checked]):hover{background-color:var(--chip-hover)}}@media (hover: none){.m_3904c1af:not([data-disabled]):where([data-checked]):active{background-color:var(--chip-hover)}}.m_fa109255:not([data-disabled]),.m_f7e165c3:not([data-disabled]){border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]),:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]),:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]){background-color:var(--mantine-color-dark-5)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]):hover,:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]):hover{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]):hover,:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]):hover{background-color:var(--mantine-color-dark-4)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]):active,:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]):active{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]):active,:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]):active{background-color:var(--mantine-color-dark-4)}}.m_fa109255:not([data-disabled]):where([data-checked]),.m_f7e165c3:not([data-disabled]):where([data-checked]){--chip-icon-color: var(--chip-color);color:var(--chip-color);background-color:var(--chip-bg)}@media (hover: hover){.m_fa109255:not([data-disabled]):where([data-checked]):hover,.m_f7e165c3:not([data-disabled]):where([data-checked]):hover{background-color:var(--chip-hover)}}@media (hover: none){.m_fa109255:not([data-disabled]):where([data-checked]):active,.m_f7e165c3:not([data-disabled]):where([data-checked]):active{background-color:var(--chip-hover)}}.m_9ac86df9{width:calc(var(--chip-icon-size) + (var(--chip-spacing) / 1.5));max-width:calc(var(--chip-icon-size) + (var(--chip-spacing) / 1.5));height:var(--chip-icon-size);display:flex;align-items:center;overflow:hidden}.m_d6d72580{width:var(--chip-icon-size);height:var(--chip-icon-size);display:block;color:var(--chip-icon-color, inherit)}.m_bde07329{width:0;height:0;padding:0;opacity:0;margin:0}.m_bde07329:focus-visible+.m_be049a53{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_b183c0a2{font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);padding:2px calc(var(--mantine-spacing-xs) / 2);border-radius:var(--mantine-radius-sm);font-size:var(--mantine-font-size-xs);margin:0;overflow:auto}:where([data-mantine-color-scheme=light]) .m_b183c0a2{background-color:var(--code-bg, var(--mantine-color-gray-1));color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_b183c0a2{background-color:var(--code-bg, var(--mantine-color-dark-5));color:var(--mantine-color-white)}.m_b183c0a2[data-block]{padding:var(--mantine-spacing-xs)}.m_de3d2490{--cs-size: calc(1.75rem * var(--mantine-scale));--cs-radius: calc(62.5rem * var(--mantine-scale));-webkit-tap-highlight-color:transparent;border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;line-height:1;position:relative;width:var(--cs-size);height:var(--cs-size);min-width:var(--cs-size);min-height:var(--cs-size);border-radius:var(--cs-radius);color:inherit;text-decoration:none}[data-mantine-color-scheme=light] .m_de3d2490{--alpha-overlay-color: var(--mantine-color-gray-3);--alpha-overlay-bg: var(--mantine-color-white)}[data-mantine-color-scheme=dark] .m_de3d2490{--alpha-overlay-color: var(--mantine-color-dark-4);--alpha-overlay-bg: var(--mantine-color-dark-7)}.m_862f3d1b{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--cs-radius)}.m_98ae7f22{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--cs-radius);z-index:1;box-shadow:#0000001a 0 0 0 calc(.0625rem * var(--mantine-scale)) inset,#00000026 0 0 calc(.25rem * var(--mantine-scale)) inset}.m_95709ac0{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--cs-radius);background-size:calc(.5rem * var(--mantine-scale)) calc(.5rem * var(--mantine-scale));background-position:0 0,0 calc(.25rem * var(--mantine-scale)),calc(.25rem * var(--mantine-scale)) calc(-.25rem * var(--mantine-scale)),calc(-.25rem * var(--mantine-scale)) 0;background-image:linear-gradient(45deg,var(--alpha-overlay-color) 25%,transparent 25%),linear-gradient(-45deg,var(--alpha-overlay-color) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--alpha-overlay-color) 75%),linear-gradient(-45deg,var(--alpha-overlay-bg) 75%,var(--alpha-overlay-color) 75%)}.m_93e74e3{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--cs-radius);z-index:2;display:flex;align-items:center;justify-content:center}.m_fee9c77{--cp-width-xs: calc(11.25rem * var(--mantine-scale));--cp-width-sm: calc(12.5rem * var(--mantine-scale));--cp-width-md: calc(15rem * var(--mantine-scale));--cp-width-lg: calc(17.5rem * var(--mantine-scale));--cp-width-xl: calc(20rem * var(--mantine-scale));--cp-preview-size-xs: calc(1.625rem * var(--mantine-scale));--cp-preview-size-sm: calc(2.125rem * var(--mantine-scale));--cp-preview-size-md: calc(2.625rem * var(--mantine-scale));--cp-preview-size-lg: calc(3.125rem * var(--mantine-scale));--cp-preview-size-xl: calc(3.375rem * var(--mantine-scale));--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));--cp-saturation-height-xs: calc(6.25rem * var(--mantine-scale));--cp-saturation-height-sm: calc(6.875rem * var(--mantine-scale));--cp-saturation-height-md: calc(7.5rem * var(--mantine-scale));--cp-saturation-height-lg: calc(8.75rem * var(--mantine-scale));--cp-saturation-height-xl: calc(10rem * var(--mantine-scale));--cp-preview-size: var(--cp-preview-size-sm);--cp-thumb-size: var(--cp-thumb-size-sm);--cp-saturation-height: var(--cp-saturation-height-sm);--cp-width: var(--cp-width-sm);--cp-body-spacing: var(--mantine-spacing-sm);width:var(--cp-width);padding:calc(.0625rem * var(--mantine-scale))}.m_fee9c77:where([data-full-width]){width:100%}.m_9dddfbac{width:var(--cp-preview-size);height:var(--cp-preview-size)}.m_bffecc3e{display:flex;padding-top:calc(var(--cp-body-spacing) / 2)}.m_3283bb96{flex:1}.m_3283bb96:not(:only-child){margin-inline-end:var(--mantine-spacing-xs)}.m_40d572ba{overflow:hidden;position:absolute;box-shadow:0 0 1px #0009;border:2px solid var(--mantine-color-white);width:var(--cp-thumb-size);height:var(--cp-thumb-size);border-radius:var(--cp-thumb-size);left:calc(var(--thumb-x-offset) - var(--cp-thumb-size) / 2);top:calc(var(--thumb-y-offset) - var(--cp-thumb-size) / 2)}.m_d8ee6fd8{height:unset!important;width:unset!important;min-width:0!important;min-height:0!important;margin:calc(.125rem * var(--mantine-scale));cursor:pointer;padding-bottom:calc(var(--cp-swatch-size) - calc(.25rem * var(--mantine-scale)));flex:0 0 calc(var(--cp-swatch-size) - calc(.25rem * var(--mantine-scale)))}.m_5711e686{margin-top:calc(.3125rem * var(--mantine-scale));margin-inline:calc(-.125rem * var(--mantine-scale));display:flex;flex-wrap:wrap}.m_202a296e{--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));-webkit-tap-highlight-color:transparent;position:relative;height:var(--cp-saturation-height);border-radius:var(--mantine-radius-sm);margin:calc(var(--cp-thumb-size) / 2)}.m_202a296e:where([data-focus-ring=auto]):focus:focus-visible .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_202a296e:where([data-focus-ring=always]):focus .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_11b3db02{position:absolute;border-radius:var(--mantine-radius-sm);inset:calc(var(--cp-thumb-size) * -1 / 2 - calc(.0625rem * var(--mantine-scale)))}.m_d856d47d{--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));--cp-thumb-size: var(--cp-thumb-size, calc(.75rem * var(--mantine-scale)));position:relative;height:calc(var(--cp-thumb-size) + calc(.125rem * var(--mantine-scale)));margin-inline:calc(var(--cp-thumb-size) / 2);outline:none}.m_d856d47d+.m_d856d47d{margin-top:calc(.375rem * var(--mantine-scale))}.m_d856d47d:where([data-focus-ring=auto]):focus:focus-visible .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_d856d47d:where([data-focus-ring=always]):focus .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}:where([data-mantine-color-scheme=light]) .m_d856d47d{--slider-checkers: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d856d47d{--slider-checkers: var(--mantine-color-dark-4)}.m_8f327113{position:absolute;top:0;bottom:0;inset-inline:calc(var(--cp-thumb-size) * -1 / 2 - calc(.0625rem * var(--mantine-scale)));border-radius:10000rem}.m_b077c2bc{--ci-eye-dropper-icon-size-xs: calc(.875rem * var(--mantine-scale));--ci-eye-dropper-icon-size-sm: calc(1rem * var(--mantine-scale));--ci-eye-dropper-icon-size-md: calc(1.125rem * var(--mantine-scale));--ci-eye-dropper-icon-size-lg: calc(1.25rem * var(--mantine-scale));--ci-eye-dropper-icon-size-xl: calc(1.375rem * var(--mantine-scale));--ci-eye-dropper-icon-size: var(--ci-eye-dropper-icon-size-sm)}.m_c5ccdcab{--ci-preview-size-xs: calc(1rem * var(--mantine-scale));--ci-preview-size-sm: calc(1.125rem * var(--mantine-scale));--ci-preview-size-md: calc(1.375rem * var(--mantine-scale));--ci-preview-size-lg: calc(1.75rem * var(--mantine-scale));--ci-preview-size-xl: calc(2.25rem * var(--mantine-scale));--ci-preview-size: var(--ci-preview-size-sm)}.m_5ece2cd7{padding:calc(.5rem * var(--mantine-scale))}.m_7485cace{--container-size-xs: calc(33.75rem * var(--mantine-scale));--container-size-sm: calc(45rem * var(--mantine-scale));--container-size-md: calc(60rem * var(--mantine-scale));--container-size-lg: calc(71.25rem * var(--mantine-scale));--container-size-xl: calc(82.5rem * var(--mantine-scale));--container-size: var(--container-size-md);max-width:var(--container-size);padding-inline:var(--mantine-spacing-md);margin-inline:auto}.m_7485cace:where([data-fluid]){max-width:100%}.m_e2125a27{--dialog-size-xs: calc(10rem * var(--mantine-scale));--dialog-size-sm: calc(12.5rem * var(--mantine-scale));--dialog-size-md: calc(21.25rem * var(--mantine-scale));--dialog-size-lg: calc(25rem * var(--mantine-scale));--dialog-size-xl: calc(31.25rem * var(--mantine-scale));--dialog-size: var(--dialog-size-md);position:relative;width:var(--dialog-size);max-width:calc(100vw - var(--mantine-spacing-xl) * 2);min-height:calc(3.125rem * var(--mantine-scale))}.m_5abab665{position:absolute;top:calc(var(--mantine-spacing-md) / 2);inset-inline-end:calc(var(--mantine-spacing-md) / 2)}.m_3eebeb36{--divider-size-xs: calc(.0625rem * var(--mantine-scale));--divider-size-sm: calc(.125rem * var(--mantine-scale));--divider-size-md: calc(.1875rem * var(--mantine-scale));--divider-size-lg: calc(.25rem * var(--mantine-scale));--divider-size-xl: calc(.3125rem * var(--mantine-scale));--divider-size: var(--divider-size-xs)}:where([data-mantine-color-scheme=light]) .m_3eebeb36{--divider-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_3eebeb36{--divider-color: var(--mantine-color-dark-4)}.m_3eebeb36:where([data-orientation=horizontal]){border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color)}.m_3eebeb36:where([data-orientation=vertical]){border-inline-start:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);height:auto;align-self:stretch}.m_3eebeb36:where([data-with-label]){border:0}.m_9e365f20{display:flex;align-items:center;font-size:var(--mantine-font-size-xs);color:var(--mantine-color-dimmed);white-space:nowrap}.m_9e365f20:where([data-position=left]):before{display:none}.m_9e365f20:where([data-position=right]):after{display:none}.m_9e365f20:before{content:"";flex:1;height:calc(.0625rem * var(--mantine-scale));border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);margin-inline-end:var(--mantine-spacing-xs)}.m_9e365f20:after{content:"";flex:1;height:calc(.0625rem * var(--mantine-scale));border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);margin-inline-start:var(--mantine-spacing-xs)}.m_f11b401e{--drawer-size-xs: calc(20rem * var(--mantine-scale));--drawer-size-sm: calc(23.75rem * var(--mantine-scale));--drawer-size-md: calc(27.5rem * var(--mantine-scale));--drawer-size-lg: calc(38.75rem * var(--mantine-scale));--drawer-size-xl: calc(48.75rem * var(--mantine-scale));--drawer-size: var(--drawer-size-md);--drawer-offset: 0rem}.m_5a7c2c9{z-index:1000}.m_b8a05bbd{flex:var(--drawer-flex, 0 0 var(--drawer-size));height:var(--drawer-height, calc(100% - var(--drawer-offset) * 2));margin:var(--drawer-offset);max-width:100%;max-height:100%;overflow-y:auto}.m_31cd769a{display:flex;justify-content:var(--drawer-justify, flex-start);align-items:var(--drawer-align, flex-start)}.m_e9408a47{padding:var(--mantine-spacing-lg);padding-top:var(--mantine-spacing-xs);border-radius:var(--fieldset-radius, var(--mantine-radius-default));min-inline-size:auto}.m_84c9523a{border:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_84c9523a{border-color:var(--mantine-color-gray-3);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_84c9523a{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-7)}.m_ef274e49{border:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_ef274e49{border-color:var(--mantine-color-gray-3);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_ef274e49{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}.m_eda993d3{padding:0;border:0;border-radius:0}.m_90794832{font-size:var(--mantine-font-size-sm)}.m_74ca27fe{padding:0;margin-bottom:var(--mantine-spacing-sm)}.m_410352e9{--grid-overflow: visible;--grid-margin: calc(var(--grid-gutter) / -2);--grid-col-padding: calc(var(--grid-gutter) / 2);overflow:var(--grid-overflow)}.m_dee7bd2f{width:calc(100% + var(--grid-gutter));display:flex;flex-wrap:wrap;justify-content:var(--grid-justify);align-items:var(--grid-align);margin:var(--grid-margin)}.m_96bdd299{--col-flex-grow: 0;--col-offset: 0rem;flex-shrink:0;order:var(--col-order);flex-basis:var(--col-flex-basis);width:var(--col-width);max-width:var(--col-max-width);flex-grow:var(--col-flex-grow);margin-inline-start:var(--col-offset);padding:var(--grid-col-padding)}.m_bcb3f3c2{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=light]) .m_bcb3f3c2{background-color:var(--mark-bg-light)}:where([data-mantine-color-scheme=dark]) .m_bcb3f3c2{background-color:var(--mark-bg-dark)}.m_9e117634{display:block;flex:0;object-fit:var(--image-object-fit, cover);width:100%;border-radius:var(--image-radius, 0)}@keyframes m_885901b1{0%{opacity:.6;transform:scale(0)}to{opacity:0;transform:scale(2.8)}}.m_e5262200{--indicator-size: calc(.625rem * var(--mantine-scale));--indicator-color: var(--mantine-primary-color-filled);position:relative;display:block}.m_e5262200:where([data-inline]){display:inline-block}.m_760d1fb1{position:absolute;top:var(--indicator-top);left:var(--indicator-left);right:var(--indicator-right);bottom:var(--indicator-bottom);transform:translate(var(--indicator-translate-x),var(--indicator-translate-y));min-width:var(--indicator-size);height:var(--indicator-size);border-radius:var(--indicator-radius, 1000rem);z-index:var(--indicator-z-index, 200);display:flex;align-items:center;justify-content:center;font-size:var(--mantine-font-size-xs);background-color:var(--indicator-color);color:var(--indicator-text-color, var(--mantine-color-white));white-space:nowrap}.m_760d1fb1:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-color:var(--indicator-color);border-radius:var(--indicator-radius, 1000rem);z-index:-1}.m_760d1fb1:where([data-with-label]){padding-inline:calc(var(--mantine-spacing-xs) / 2)}.m_760d1fb1:where([data-with-border]){border:2px solid var(--mantine-color-body)}.m_760d1fb1[data-processing]:before{animation:m_885901b1 1s linear infinite}.m_dc6f14e2{--kbd-fz-xs: calc(.625rem * var(--mantine-scale));--kbd-fz-sm: calc(.75rem * var(--mantine-scale));--kbd-fz-md: calc(.875rem * var(--mantine-scale));--kbd-fz-lg: calc(1rem * var(--mantine-scale));--kbd-fz-xl: calc(1.25rem * var(--mantine-scale));--kbd-fz: var(--kbd-fz-sm);--kbd-padding-xs: calc(.125rem * var(--mantine-scale)) calc(.25rem * var(--mantine-scale));--kbd-padding-sm: calc(.1875rem * var(--mantine-scale)) calc(.3125rem * var(--mantine-scale));--kbd-padding-md: calc(.25rem * var(--mantine-scale)) calc(.4375rem * var(--mantine-scale));--kbd-padding-lg: calc(.3125rem * var(--mantine-scale)) calc(.5625rem * var(--mantine-scale));--kbd-padding-xl: calc(.5rem * var(--mantine-scale)) calc(.875rem * var(--mantine-scale));--kbd-padding: var(--kbd-padding-sm);font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);font-weight:700;padding:var(--kbd-padding);font-size:var(--kbd-fz);border-radius:var(--mantine-radius-sm);border:calc(.0625rem * var(--mantine-scale)) solid;border-bottom-width:calc(.1875rem * var(--mantine-scale));unicode-bidi:embed}:where([data-mantine-color-scheme=light]) .m_dc6f14e2{border-color:var(--mantine-color-gray-3);color:var(--mantine-color-gray-7);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_dc6f14e2{border-color:var(--mantine-color-dark-4);color:var(--mantine-color-dark-0);background-color:var(--mantine-color-dark-6)}.m_abbac491{--list-fz: var(--mantine-font-size-md);--list-lh: var(--mantine-line-height-md);list-style-position:inside;font-size:var(--list-fz);line-height:var(--list-lh);margin:0;padding:0}.m_abbac491:where([data-with-padding]){padding-inline-start:var(--mantine-spacing-md)}.m_abb6bec2{white-space:nowrap;line-height:var(--list-lh)}.m_abb6bec2:where([data-with-icon]){list-style:none}.m_abb6bec2:where([data-with-icon]) .m_75cd9f71{--li-direction: row;--li-align: center}.m_abb6bec2:where(:not(:first-of-type)){margin-top:var(--list-spacing, 0)}.m_abb6bec2:where([data-centered]){line-height:1}.m_75cd9f71{display:inline-flex;flex-direction:var(--li-direction, column);align-items:var(--li-align, flex-start);white-space:normal}.m_60f83e5b{display:inline-block;vertical-align:middle;margin-inline-end:var(--mantine-spacing-sm)}.m_6e45937b{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;overflow:hidden;z-index:var(--lo-z-index)}.m_e8eb006c{position:relative;z-index:calc(var(--lo-z-index) + 1)}.m_df587f17{z-index:var(--lo-z-index)}.m_dc9b7c9f{padding:calc(.25rem * var(--mantine-scale))}.m_9bfac126{color:var(--mantine-color-dimmed);font-weight:500;font-size:var(--mantine-font-size-xs);padding:calc(var(--mantine-spacing-xs) / 2) var(--mantine-spacing-sm);cursor:default}.m_efdf90cb{margin-top:calc(.25rem * var(--mantine-scale));margin-bottom:calc(.25rem * var(--mantine-scale));border-top:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_efdf90cb{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_efdf90cb{border-color:var(--mantine-color-dark-4)}.m_99ac2aa1{font-size:var(--mantine-font-size-sm);width:100%;padding:calc(var(--mantine-spacing-xs) / 1.5) var(--mantine-spacing-sm);border-radius:var(--popover-radius, var(--mantine-radius-default));color:var(--menu-item-color, var(--mantine-color-text));display:flex;align-items:center;-webkit-user-select:none;user-select:none}.m_99ac2aa1:where([data-disabled],:disabled){color:var(--mantine-color-dimmed);opacity:.6;pointer-events:none}:where([data-mantine-color-scheme=light]) .m_99ac2aa1:where([data-hovered]){background-color:var(--menu-item-hover, var(--mantine-color-gray-1))}:where([data-mantine-color-scheme=dark]) .m_99ac2aa1:where([data-hovered]){background-color:var(--menu-item-hover, var(--mantine-color-dark-4))}.m_5476e0d3{flex:1}.m_8b75e504{display:flex;justify-content:center;align-items:center}.m_8b75e504:where([data-position=left]){margin-inline-end:var(--mantine-spacing-xs)}.m_8b75e504:where([data-position=right]){margin-inline-start:var(--mantine-spacing-xs)}.m_9df02822{--modal-size-xs: calc(20rem * var(--mantine-scale));--modal-size-sm: calc(23.75rem * var(--mantine-scale));--modal-size-md: calc(27.5rem * var(--mantine-scale));--modal-size-lg: calc(38.75rem * var(--mantine-scale));--modal-size-xl: calc(48.75rem * var(--mantine-scale));--modal-size: var(--modal-size-md);--modal-y-offset: 5dvh;--modal-x-offset: 5vw}.m_9df02822[data-full-screen]{--modal-border-radius: 0 !important}.m_9df02822[data-full-screen] .m_54c44539{--modal-content-flex: 0 0 100%;--modal-content-max-height: auto;--modal-content-height: 100dvh}.m_9df02822[data-full-screen] .m_1f958f16{--modal-inner-y-offset: 0;--modal-inner-x-offset: 0}.m_9df02822[data-centered] .m_1f958f16{--modal-inner-align: center}.m_d0e2b9cd{border-start-start-radius:var(--modal-radius, var(--mantine-radius-default));border-start-end-radius:var(--modal-radius, var(--mantine-radius-default))}.m_54c44539{flex:var(--modal-content-flex, 0 0 var(--modal-size));max-width:100%;max-height:var(--modal-content-max-height, calc(100dvh - var(--modal-y-offset) * 2));height:var(--modal-content-height, auto);overflow-y:auto}.m_54c44539[data-full-screen]{border-radius:0}.m_1f958f16{display:flex;justify-content:center;align-items:var(--modal-inner-align, flex-start);padding-top:var(--modal-inner-y-offset, var(--modal-y-offset));padding-bottom:var(--modal-inner-y-offset, var(--modal-y-offset));padding-inline:var(--modal-inner-x-offset, var(--modal-x-offset))}.m_7cda1cd6{--pill-fz-xs: calc(.625rem * var(--mantine-scale));--pill-fz-sm: calc(.75rem * var(--mantine-scale));--pill-fz-md: calc(.875rem * var(--mantine-scale));--pill-fz-lg: calc(1rem * var(--mantine-scale));--pill-fz-xl: calc(1.125rem * var(--mantine-scale));--pill-height-xs: calc(1.125rem * var(--mantine-scale));--pill-height-sm: calc(1.375rem * var(--mantine-scale));--pill-height-md: calc(1.5625rem * var(--mantine-scale));--pill-height-lg: calc(1.75rem * var(--mantine-scale));--pill-height-xl: calc(2rem * var(--mantine-scale));--pill-fz: var(--pill-fz-sm);--pill-height: var(--pill-height-sm);font-size:var(--pill-fz);flex:0;height:var(--pill-height);padding-inline:.8em;display:inline-flex;align-items:center;border-radius:var(--pill-radius, 1000rem);line-height:1;white-space:nowrap;user-select:none;-webkit-user-select:none;max-width:100%}:where([data-mantine-color-scheme=dark]) .m_7cda1cd6{background-color:var(--mantine-color-dark-7);color:var(--mantine-color-dark-0)}:where([data-mantine-color-scheme=light]) .m_7cda1cd6{color:var(--mantine-color-black)}.m_7cda1cd6:where([data-with-remove]:not(:has(button:disabled))){padding-inline-end:0}.m_7cda1cd6:where([data-disabled],:has(button:disabled)){cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_44da308b{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=light]) .m_44da308b:where([data-disabled],:has(button:disabled)){background-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=light]) .m_e3a01f8{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=light]) .m_e3a01f8:where([data-disabled],:has(button:disabled)){background-color:var(--mantine-color-gray-3)}.m_1e0e6180{cursor:inherit;overflow:hidden;height:100%;line-height:var(--pill-height);text-overflow:ellipsis}.m_ae386778{color:inherit;font-size:inherit;height:100%;min-height:unset;min-width:2em;width:unset;border-radius:0;padding-inline-start:.1em;padding-inline-end:.3em;flex:0}.m_7cda1cd6[data-disabled]>.m_ae386778,.m_ae386778:disabled{display:none;background-color:transparent;width:.8em;min-width:.8em;padding:0;cursor:not-allowed}.m_7cda1cd6[data-disabled]>.m_ae386778>svg,.m_ae386778:disabled>svg{display:none}.m_ae386778>svg{pointer-events:none}.m_1dcfd90b{--pg-gap-xs: calc(.375rem * var(--mantine-scale));--pg-gap-sm: calc(.5rem * var(--mantine-scale));--pg-gap-md: calc(.625rem * var(--mantine-scale));--pg-gap-lg: calc(.75rem * var(--mantine-scale));--pg-gap-xl: calc(.75rem * var(--mantine-scale));--pg-gap: var(--pg-gap-sm);display:flex;align-items:center;gap:var(--pg-gap);flex-wrap:wrap}.m_45c4369d{background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none;min-width:calc(6.25rem * var(--mantine-scale));flex:1;border:0;font-size:inherit;height:1.6em;color:inherit;padding:0}.m_45c4369d::placeholder{color:var(--input-placeholder-color);opacity:1}.m_45c4369d:where([data-type=hidden],[data-type=auto]){height:calc(.0625rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));top:0;left:0;pointer-events:none;position:absolute;opacity:0}.m_45c4369d:focus{outline:none}.m_45c4369d:where([data-type=auto]:focus){height:1.6em;visibility:visible;opacity:1;position:static}.m_45c4369d:where([data-pointer]:not([data-disabled],:disabled)){cursor:pointer}.m_45c4369d:where([data-disabled],:disabled){cursor:not-allowed}.m_f0824112{--nl-bg: var(--mantine-primary-color-light);--nl-hover: var(--mantine-primary-color-light-hover);--nl-color: var(--mantine-primary-color-light-color);display:flex;align-items:center;width:100%;padding:8px var(--mantine-spacing-sm);-webkit-user-select:none;user-select:none}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_f0824112:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_f0824112:hover{background-color:var(--mantine-color-dark-6)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_f0824112:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_f0824112:active{background-color:var(--mantine-color-dark-6)}}.m_f0824112:where([data-disabled]){opacity:.4;pointer-events:none}.m_f0824112:where([data-active]){background-color:var(--nl-bg);color:var(--nl-color)}@media (hover: hover){.m_f0824112:where([data-active]):hover{background-color:var(--nl-hover)}}@media (hover: none){.m_f0824112:where([data-active]):active{background-color:var(--nl-hover)}}.m_f0824112:where([data-active]) .m_57492dcc{--description-opacity: .9;--description-color: var(--nl-color)}.m_690090b5{display:flex;align-items:center;justify-content:center;transition:transform .15s ease}.m_690090b5>svg{display:block}.m_690090b5:where([data-position=left]){margin-inline-end:var(--mantine-spacing-sm)}.m_690090b5:where([data-position=right]){margin-inline-start:var(--mantine-spacing-sm)}.m_690090b5:where([data-rotate]){transform:rotate(90deg)}.m_1f6ac4c4{font-size:var(--mantine-font-size-sm)}.m_f07af9d2{flex:1;overflow:hidden;text-overflow:ellipsis}.m_f07af9d2:where([data-no-wrap]){white-space:nowrap}.m_57492dcc{display:block;font-size:var(--mantine-font-size-xs);opacity:var(--description-opacity, 1);color:var(--description-color, var(--mantine-color-dimmed));overflow:hidden;text-overflow:ellipsis}:where([data-no-wrap]) .m_57492dcc{white-space:nowrap}.m_e17b862f{padding-inline-start:var(--nl-offset, var(--mantine-spacing-lg))}.m_1fd8a00b{transform:rotate(-90deg)}.m_a513464{--notification-radius: var(--mantine-radius-default);--notification-color: var(--mantine-primary-color-filled);overflow:hidden;box-sizing:border-box;position:relative;display:flex;align-items:center;padding-inline-start:calc(1.375rem * var(--mantine-scale));padding-inline-end:var(--mantine-spacing-xs);padding-top:var(--mantine-spacing-xs);padding-bottom:var(--mantine-spacing-xs);border-radius:var(--notification-radius);box-shadow:var(--mantine-shadow-lg)}.m_a513464:before{content:"";display:block;position:absolute;width:calc(.375rem * var(--mantine-scale));top:var(--notification-radius);bottom:var(--notification-radius);inset-inline-start:calc(.25rem * var(--mantine-scale));border-radius:var(--notification-radius);background-color:var(--notification-color)}:where([data-mantine-color-scheme=light]) .m_a513464{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_a513464{background-color:var(--mantine-color-dark-6)}.m_a513464:where([data-with-icon]){padding-inline-start:var(--mantine-spacing-xs)}.m_a513464:where([data-with-icon]):before{display:none}:where([data-mantine-color-scheme=light]) .m_a513464:where([data-with-border]){border:1px solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_a513464:where([data-with-border]){border:1px solid var(--mantine-color-dark-4)}.m_a4ceffb{box-sizing:border-box;margin-inline-end:var(--mantine-spacing-md);width:calc(1.75rem * var(--mantine-scale));height:calc(1.75rem * var(--mantine-scale));border-radius:calc(1.75rem * var(--mantine-scale));display:flex;align-items:center;justify-content:center;background-color:var(--notification-color);color:var(--mantine-color-white)}.m_b0920b15{margin-inline-end:var(--mantine-spacing-md)}.m_a49ed24{flex:1;overflow:hidden;margin-inline-end:var(--mantine-spacing-xs)}.m_3feedf16{margin-bottom:calc(.125rem * var(--mantine-scale));overflow:hidden;text-overflow:ellipsis;font-size:var(--mantine-font-size-sm);line-height:var(--mantine-line-height-sm);font-weight:500}:where([data-mantine-color-scheme=light]) .m_3feedf16{color:var(--mantine-color-gray-9)}:where([data-mantine-color-scheme=dark]) .m_3feedf16{color:var(--mantine-color-white)}.m_3d733a3a{font-size:var(--mantine-font-size-sm);line-height:var(--mantine-line-height-sm);overflow:hidden;text-overflow:ellipsis}:where([data-mantine-color-scheme=light]) .m_3d733a3a{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_3d733a3a{color:var(--mantine-color-dark-0)}:where([data-mantine-color-scheme=light]) .m_3d733a3a:where([data-with-title]){color:var(--mantine-color-gray-6)}:where([data-mantine-color-scheme=dark]) .m_3d733a3a:where([data-with-title]){color:var(--mantine-color-dark-2)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_919a4d88:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_919a4d88:hover{background-color:var(--mantine-color-dark-8)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_919a4d88:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_919a4d88:active{background-color:var(--mantine-color-dark-8)}}.m_e2f5cd4e{--ni-right-section-width-xs: calc(1.0625rem * var(--mantine-scale));--ni-right-section-width-sm: calc(1.5rem * var(--mantine-scale));--ni-right-section-width-md: calc(1.6875rem * var(--mantine-scale));--ni-right-section-width-lg: calc(1.9375rem * var(--mantine-scale));--ni-right-section-width-xl: calc(2.125rem * var(--mantine-scale))}.m_95e17d22{--ni-chevron-size-xs: calc(.625rem * var(--mantine-scale));--ni-chevron-size-sm: calc(.875rem * var(--mantine-scale));--ni-chevron-size-md: calc(1rem * var(--mantine-scale));--ni-chevron-size-lg: calc(1.125rem * var(--mantine-scale));--ni-chevron-size-xl: calc(1.25rem * var(--mantine-scale));--ni-chevron-size: var(--ni-chevron-size-sm);display:flex;flex-direction:column;width:100%;height:calc(var(--input-height) - calc(.125rem * var(--mantine-scale)));max-width:calc(var(--ni-chevron-size) * 1.7);margin-inline-start:auto}.m_80b4b171{--control-border: 1px solid var(--input-bd);--control-radius: calc(var(--input-radius) - calc(.0625rem * var(--mantine-scale)));flex:0 0 50%;width:100%;padding:0;height:calc(var(--input-height) / 2 - calc(.0625rem * var(--mantine-scale)));border-inline-start:var(--control-border);display:flex;align-items:center;justify-content:center;color:var(--mantine-color-text);background-color:transparent;cursor:pointer}.m_80b4b171:where(:disabled){background-color:transparent;cursor:not-allowed;opacity:.6}:where([data-mantine-color-scheme=light]) .m_80b4b171:where(:disabled){color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_80b4b171:where(:disabled){color:var(--mantine-color-dark-3)}.m_e2f5cd4e[data-error] :where(.m_80b4b171){color:var(--mantine-color-error)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_80b4b171:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_80b4b171:hover{background-color:var(--mantine-color-dark-4)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_80b4b171:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_80b4b171:active{background-color:var(--mantine-color-dark-4)}}.m_80b4b171:where(:first-of-type){border-radius:0;border-start-end-radius:var(--control-radius)}.m_80b4b171:last-of-type{border-top:1 solid var(--input-bd);border-radius:0;border-end-end-radius:var(--control-radius)}.m_4addd315{--pagination-control-size-xs: calc(1.375rem * var(--mantine-scale));--pagination-control-size-sm: calc(1.625rem * var(--mantine-scale));--pagination-control-size-md: calc(2rem * var(--mantine-scale));--pagination-control-size-lg: calc(2.375rem * var(--mantine-scale));--pagination-control-size-xl: calc(2.75rem * var(--mantine-scale));--pagination-control-size: var(--pagination-control-size-md);--pagination-control-fz: var(--mantine-font-size-md);--pagination-active-bg: var(--mantine-primary-color-filled)}.m_326d024a{display:flex;align-items:center;justify-content:center;border:calc(.0625rem * var(--mantine-scale)) solid;cursor:pointer;color:var(--mantine-color-text);height:var(--pagination-control-size);min-width:var(--pagination-control-size);font-size:var(--pagination-control-fz);line-height:1;border-radius:var(--pagination-control-radius, var(--mantine-radius-default))}.m_326d024a:where([data-with-padding]){padding:calc(var(--pagination-control-size) / 4)}.m_326d024a:where(:disabled,[data-disabled]){cursor:not-allowed;opacity:.4}:where([data-mantine-color-scheme=light]) .m_326d024a{border-color:var(--mantine-color-gray-4);background-color:var(--mantine-color-white)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_326d024a:hover:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-gray-0)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_326d024a:active:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-gray-0)}}:where([data-mantine-color-scheme=dark]) .m_326d024a{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}@media (hover: hover){:where([data-mantine-color-scheme=dark]) .m_326d024a:hover:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-dark-5)}}@media (hover: none){:where([data-mantine-color-scheme=dark]) .m_326d024a:active:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-dark-5)}}.m_326d024a:where([data-active]){background-color:var(--pagination-active-bg);border-color:var(--pagination-active-bg);color:var(--pagination-active-color, var(--mantine-color-white))}@media (hover: hover){.m_326d024a:where([data-active]):hover{background-color:var(--pagination-active-bg)}}@media (hover: none){.m_326d024a:where([data-active]):active{background-color:var(--pagination-active-bg)}}.m_4ad7767d{height:var(--pagination-control-size);min-width:var(--pagination-control-size);display:flex;align-items:center;justify-content:center;pointer-events:none}.m_f61ca620{--psi-button-size-xs: calc(1.375rem * var(--mantine-scale));--psi-button-size-sm: calc(1.625rem * var(--mantine-scale));--psi-button-size-md: calc(1.75rem * var(--mantine-scale));--psi-button-size-lg: calc(2rem * var(--mantine-scale));--psi-button-size-xl: calc(2.5rem * var(--mantine-scale));--psi-icon-size-xs: calc(.75rem * var(--mantine-scale));--psi-icon-size-sm: calc(.9375rem * var(--mantine-scale));--psi-icon-size-md: calc(1.0625rem * var(--mantine-scale));--psi-icon-size-lg: calc(1.1875rem * var(--mantine-scale));--psi-icon-size-xl: calc(1.3125rem * var(--mantine-scale));--psi-button-size: var(--psi-button-size-sm);--psi-icon-size: var(--psi-icon-size-sm)}.m_ccf8da4c{position:relative;overflow:hidden}.m_f2d85dd2{font-family:var(--mantine-font-family);background-color:transparent;border:0;padding-inline-end:var(--input-padding-inline-end);padding-inline-start:var(--input-padding-inline-start);position:absolute;top:0;right:0;bottom:0;left:0;outline:0;font-size:inherit;line-height:var(--mantine-line-height);height:100%;width:100%;color:inherit}.m_ccf8da4c[data-disabled] .m_f2d85dd2,.m_f2d85dd2:disabled{cursor:not-allowed}.m_f2d85dd2::placeholder{color:var(--input-placeholder-color);opacity:1}.m_b1072d44{width:var(--psi-button-size);height:var(--psi-button-size);min-width:var(--psi-button-size);min-height:var(--psi-button-size)}.m_b1072d44:disabled{display:none}.m_f1cb205a{--pin-input-size-xs: calc(1.875rem * var(--mantine-scale));--pin-input-size-sm: calc(2.25rem * var(--mantine-scale));--pin-input-size-md: calc(2.625rem * var(--mantine-scale));--pin-input-size-lg: calc(3.125rem * var(--mantine-scale));--pin-input-size-xl: calc(3.75rem * var(--mantine-scale));--pin-input-size: var(--pin-input-size-sm)}.m_cb288ead{width:var(--pin-input-size);height:var(--pin-input-size)}@keyframes m_81a374bd{0%{background-position:0 0}to{background-position:calc(2.5rem * var(--mantine-scale)) 0}}.m_db6d6462{--progress-radius: var(--mantine-radius-default);--progress-size: var(--progress-size-md);--progress-size-xs: calc(.1875rem * var(--mantine-scale));--progress-size-sm: calc(.3125rem * var(--mantine-scale));--progress-size-md: calc(.5rem * var(--mantine-scale));--progress-size-lg: calc(.75rem * var(--mantine-scale));--progress-size-xl: calc(1rem * var(--mantine-scale));position:relative;height:var(--progress-size);border-radius:var(--progress-radius);overflow:hidden;display:flex}:where([data-mantine-color-scheme=light]) .m_db6d6462{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_db6d6462{background-color:var(--mantine-color-dark-4)}.m_2242eb65{background-color:var(--progress-section-color);height:100%;width:var(--progress-section-width);display:flex;align-items:center;justify-content:center;overflow:hidden;background-size:calc(1.25rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));transition:width var(--progress-transition-duration, .1s) ease}.m_2242eb65:where([data-striped]){background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.m_2242eb65:where([data-animated]){animation:m_81a374bd 1s linear infinite}.m_2242eb65:where(:last-of-type){border-radius:0;border-start-end-radius:var(--progress-radius);border-end-end-radius:var(--progress-radius)}.m_2242eb65:where(:first-of-type){border-radius:0;border-start-start-radius:var(--progress-radius);border-end-start-radius:var(--progress-radius)}.m_91e40b74{color:var(--progress-label-color, var(--mantine-color-white));font-weight:700;-webkit-user-select:none;user-select:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:min(calc(var(--progress-size) * .65),calc(1.125rem * var(--mantine-scale)));line-height:1;padding-inline:calc(.25rem * var(--mantine-scale))}.m_f3f1af94{--radio-size-xs: calc(1rem * var(--mantine-scale));--radio-size-sm: calc(1.25rem * var(--mantine-scale));--radio-size-md: calc(1.5rem * var(--mantine-scale));--radio-size-lg: calc(1.875rem * var(--mantine-scale));--radio-size-xl: calc(2.25rem * var(--mantine-scale));--radio-size: var(--radio-size-sm);--radio-icon-size-xs: calc(.375rem * var(--mantine-scale));--radio-icon-size-sm: calc(.5rem * var(--mantine-scale));--radio-icon-size-md: calc(.625rem * var(--mantine-scale));--radio-icon-size-lg: calc(.875rem * var(--mantine-scale));--radio-icon-size-xl: calc(1rem * var(--mantine-scale));--radio-icon-size: var(--radio-icon-size-sm);--radio-icon-color: var(--mantine-color-white)}.m_89c4f5e4{position:relative;width:var(--radio-size);height:var(--radio-size);order:1}.m_89c4f5e4:where([data-label-position=left]){order:2}.m_f3ed6b2b{color:var(--radio-icon-color);opacity:var(--radio-icon-opacity, 0);transform:var(--radio-icon-transform, scale(.2) translateY(calc(.625rem * var(--mantine-scale))));transition:opacity .1s ease,transform .2s ease;pointer-events:none;width:var(--radio-icon-size);height:var(--radio-icon-size);position:absolute;top:calc(50% - var(--radio-icon-size) / 2);left:calc(50% - var(--radio-icon-size) / 2)}.m_8a3dbb89{border:calc(.0625rem * var(--mantine-scale)) solid;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:var(--radio-size);height:var(--radio-size);border-radius:var(--radio-radius, var(--radio-size));margin:0;display:flex;align-items:center;justify-content:center;transition-property:background-color,border-color;transition-timing-function:ease;transition-duration:.1s;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent}:where([data-mantine-color-scheme=light]) .m_8a3dbb89{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_8a3dbb89{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_8a3dbb89:checked{background-color:var(--radio-color, var(--mantine-primary-color-filled));border-color:var(--radio-color, var(--mantine-primary-color-filled))}.m_8a3dbb89:checked+.m_f3ed6b2b{--radio-icon-opacity: 1;--radio-icon-transform: scale(1)}.m_8a3dbb89:disabled{cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_8a3dbb89:disabled{background-color:var(--mantine-color-gray-1);border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=light]) .m_8a3dbb89:disabled+.m_f3ed6b2b{--radio-icon-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_8a3dbb89:disabled{background-color:var(--mantine-color-dark-5);border-color:var(--mantine-color-dark-4)}:where([data-mantine-color-scheme=dark]) .m_8a3dbb89:disabled+.m_f3ed6b2b{--radio-icon-color: var(--mantine-color-dark-7)}.m_8a3dbb89:where([data-error]){border-color:var(--mantine-color-error)}.m_1bfe9d39+.m_f3ed6b2b{--radio-icon-color: var(--radio-color)}.m_1bfe9d39:checked:not(:disabled){background-color:transparent;border-color:var(--radio-color)}.m_1bfe9d39:checked:not(:disabled)+.m_f3ed6b2b{--radio-icon-color: var(--radio-color);--radio-icon-opacity: 1;--radio-icon-transform: none}.m_f8d312f2{--rating-size-xs: calc(.875rem * var(--mantine-scale));--rating-size-sm: calc(1.125rem * var(--mantine-scale));--rating-size-md: calc(1.25rem * var(--mantine-scale));--rating-size-lg: calc(1.75rem * var(--mantine-scale));--rating-size-xl: calc(2rem * var(--mantine-scale));display:flex;width:max-content}.m_f8d312f2:where(:has(input:disabled)){pointer-events:none}.m_61734bb7{position:relative;transition:transform .1s ease}.m_61734bb7:where([data-active]){z-index:1;transform:scale(1.1)}.m_5662a89a{width:var(--rating-size);height:var(--rating-size);display:block}:where([data-mantine-color-scheme=light]) .m_5662a89a{fill:var(--mantine-color-gray-3);stroke:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_5662a89a{fill:var(--mantine-color-dark-3);stroke:var(--mantine-color-dark-3)}.m_5662a89a:where([data-filled]){fill:var(--rating-color);stroke:var(--rating-color)}.m_211007ba{height:0;width:0;position:absolute;overflow:hidden;white-space:nowrap;opacity:0;-webkit-tap-highlight-color:transparent}.m_211007ba:focus-visible+label{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_21342ee4{display:block;cursor:pointer;position:absolute;top:0;left:0;z-index:var(--rating-item-z-index, 0);-webkit-tap-highlight-color:transparent}.m_21342ee4:where([data-read-only]){cursor:default}.m_21342ee4:where(:last-of-type){position:relative}.m_fae05d6a{clip-path:var(--rating-symbol-clip-path)}.m_1b3c8819{--tooltip-radius: var(--mantine-radius-default);position:absolute;padding:calc(var(--mantine-spacing-xs) / 2) var(--mantine-spacing-xs);pointer-events:none;font-size:var(--mantine-font-size-sm);white-space:nowrap;border-radius:var(--tooltip-radius)}:where([data-mantine-color-scheme=light]) .m_1b3c8819{background-color:var(--tooltip-bg, var(--mantine-color-gray-9));color:var(--tooltip-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_1b3c8819{background-color:var(--tooltip-bg, var(--mantine-color-gray-2));color:var(--tooltip-color, var(--mantine-color-black))}.m_1b3c8819:where([data-multiline]){white-space:normal}.m_f898399f{background-color:inherit;border:0;z-index:1}.m_b32e4812{position:relative;width:var(--rp-size);height:var(--rp-size);min-width:var(--rp-size);min-height:var(--rp-size)}.m_d43b5134{width:var(--rp-size);height:var(--rp-size);min-width:var(--rp-size);min-height:var(--rp-size);transform:rotate(-90deg)}.m_b1ca1fbf{stroke:var(--curve-color, var(--rp-curve-root-color))}[data-mantine-color-scheme=light] .m_b1ca1fbf{--rp-curve-root-color: var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_b1ca1fbf{--rp-curve-root-color: var(--mantine-color-dark-4)}.m_b23f9dc4{position:absolute;top:50%;transform:translateY(-50%);inset-inline:var(--rp-label-offset)}.m_cf365364{--sc-padding-xs: calc(.1875rem * var(--mantine-scale)) calc(.375rem * var(--mantine-scale));--sc-padding-sm: calc(.3125rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale));--sc-padding-md: calc(.4375rem * var(--mantine-scale)) calc(.875rem * var(--mantine-scale));--sc-padding-lg: calc(.5625rem * var(--mantine-scale)) calc(1rem * var(--mantine-scale));--sc-padding-xl: calc(.75rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));--sc-transition-duration: .2s;--sc-padding: var(--sc-padding-sm);--sc-transition-timing-function: ease;--sc-font-size: var(--mantine-font-size-sm);position:relative;display:inline-flex;flex-direction:row;width:auto;border-radius:var(--sc-radius, var(--mantine-radius-default));overflow:hidden;padding:calc(.25rem * var(--mantine-scale))}.m_cf365364:where([data-full-width]){display:flex}.m_cf365364:where([data-orientation=vertical]){display:flex;flex-direction:column;width:max-content}.m_cf365364:where([data-orientation=vertical]):where([data-full-width]){width:auto}:where([data-mantine-color-scheme=light]) .m_cf365364{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_cf365364{background-color:var(--mantine-color-dark-8)}.m_9e182ccd{position:absolute;display:block;z-index:1;border-radius:var(--sc-radius, var(--mantine-radius-default))}:where([data-mantine-color-scheme=light]) .m_9e182ccd{box-shadow:var(--sc-shadow, none);background-color:var(--sc-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_9e182ccd{box-shadow:none;background-color:var(--sc-color, var(--mantine-color-dark-5))}.m_1738fcb2{-webkit-tap-highlight-color:transparent;font-weight:500;display:block;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-user-select:none;user-select:none;border-radius:var(--sc-radius, var(--mantine-radius-default));font-size:var(--sc-font-size);padding:var(--sc-padding);transition:color var(--sc-transition-duration) var(--sc-transition-timing-function);cursor:pointer;outline:var(--segmented-control-outline, none)}:where([data-mantine-color-scheme=light]) .m_1738fcb2{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2{color:var(--mantine-color-dark-1)}.m_1738fcb2:where([data-read-only]){cursor:default}fieldset:disabled .m_1738fcb2,.m_1738fcb2:where([data-disabled]){cursor:not-allowed}:where([data-mantine-color-scheme=light]) fieldset:disabled .m_1738fcb2,:where([data-mantine-color-scheme=light]) .m_1738fcb2:where([data-disabled]){color:var(--mantine-color-gray-5)}:where([data-mantine-color-scheme=dark]) fieldset:disabled .m_1738fcb2,:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where([data-disabled]){color:var(--mantine-color-dark-3)}:where([data-mantine-color-scheme=light]) .m_1738fcb2:where([data-active]){color:var(--sc-label-color, var(--mantine-color-black))}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where([data-active]){color:var(--sc-label-color, var(--mantine-color-white))}.m_cf365364:where([data-initialized]) .m_1738fcb2:where([data-active]):before{display:none}.m_1738fcb2:where([data-active]):before{content:"";top:0;right:0;bottom:0;left:0;z-index:0;position:absolute;border-radius:var(--sc-radius, var(--mantine-radius-default))}:where([data-mantine-color-scheme=light]) .m_1738fcb2:where([data-active]):before{box-shadow:var(--sc-shadow, none);background-color:var(--sc-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where([data-active]):before{box-shadow:none;background-color:var(--sc-color, var(--mantine-color-dark-5))}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):hover{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):hover{color:var(--mantine-color-white)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):active{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):active{color:var(--mantine-color-white)}}@media (hover: hover){:where([data-mantine-color-scheme=light]) fieldset:disabled .m_1738fcb2:hover{color:var(--mantine-color-gray-5)!important}:where([data-mantine-color-scheme=dark]) fieldset:disabled .m_1738fcb2:hover{color:var(--mantine-color-dark-3)!important}}@media (hover: none){:where([data-mantine-color-scheme=light]) fieldset:disabled .m_1738fcb2:active{color:var(--mantine-color-gray-5)!important}:where([data-mantine-color-scheme=dark]) fieldset:disabled .m_1738fcb2:active{color:var(--mantine-color-dark-3)!important}}.m_1714d588{height:0;width:0;position:absolute;overflow:hidden;white-space:nowrap;opacity:0}.m_1714d588[data-focus-ring=auto]:focus:focus-visible+.m_1738fcb2{--segmented-control-outline: 2px solid var(--mantine-color-blue-filled)}.m_1714d588[data-focus-ring=always]:focus+.m_1738fcb2{--segmented-control-outline: 2px solid var(--mantine-color-blue-filled)}.m_69686b9b{position:relative;flex:1;z-index:2;transition:border-color var(--sc-transition-duration) var(--sc-transition-timing-function)}.m_cf365364[data-with-items-borders] :where(.m_69686b9b):before{content:"";position:absolute;top:0;bottom:0;inset-inline-start:0;background-color:var(--separator-color);width:calc(.0625rem * var(--mantine-scale));transition:background-color var(--sc-transition-duration) var(--sc-transition-timing-function)}.m_69686b9b[data-orientation=vertical]:before{top:0;inset-inline:0;bottom:auto;height:calc(.0625rem * var(--mantine-scale));width:auto}:where([data-mantine-color-scheme=light]) .m_69686b9b{--separator-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_69686b9b{--separator-color: var(--mantine-color-dark-4)}.m_69686b9b:first-of-type:before{--separator-color: transparent}[data-mantine-color-scheme] .m_69686b9b[data-active]:before,[data-mantine-color-scheme] .m_69686b9b[data-active]+.m_69686b9b:before{--separator-color: transparent}.m_78882f40{position:relative;z-index:2}.m_2415a157{display:grid;grid-template-columns:repeat(var(--sg-cols),minmax(0,1fr));gap:var(--sg-spacing-y) var(--sg-spacing-x)}@keyframes m_299c329c{0%,to{opacity:.4}50%{opacity:1}}.m_18320242{height:var(--skeleton-height, auto);width:var(--skeleton-width, 100%);border-radius:var(--skeleton-radius, var(--mantine-radius-default));position:relative;transform:translateZ(0);-webkit-transform:translateZ(0)}.m_18320242:where([data-animate]):after{animation:m_299c329c 1.5s linear infinite}.m_18320242:where([data-visible]){overflow:hidden}.m_18320242:where([data-visible]):before{position:absolute;content:"";top:0;right:0;bottom:0;left:0;z-index:10;background-color:var(--mantine-color-body)}.m_18320242:where([data-visible]):after{position:absolute;content:"";top:0;right:0;bottom:0;left:0;z-index:11}:where([data-mantine-color-scheme=light]) .m_18320242:where([data-visible]):after{background-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_18320242:where([data-visible]):after{background-color:var(--mantine-color-dark-4)}.m_dd36362e{--slider-size-xs: calc(.25rem * var(--mantine-scale));--slider-size-sm: calc(.375rem * var(--mantine-scale));--slider-size-md: calc(.5rem * var(--mantine-scale));--slider-size-lg: calc(.625rem * var(--mantine-scale));--slider-size-xl: calc(.75rem * var(--mantine-scale));--slider-size: var(--slider-size-md);--slider-radius: calc(62.5rem * var(--mantine-scale));--slider-color: var(--mantine-primary-color-filled);-webkit-tap-highlight-color:transparent;outline:none;height:calc(var(--slider-size) * 2);padding-inline:var(--slider-size);display:flex;flex-direction:column;align-items:center;touch-action:none;position:relative}[data-mantine-color-scheme=light] .m_dd36362e{--slider-track-bg: var(--mantine-color-gray-2);--slider-track-disabled-bg: var(--mantine-color-gray-4)}[data-mantine-color-scheme=dark] .m_dd36362e{--slider-track-bg: var(--mantine-color-dark-4);--slider-track-disabled-bg: var(--mantine-color-dark-3)}.m_c9357328{position:absolute;top:calc(-2.25rem * var(--mantine-scale));font-size:var(--mantine-font-size-xs);color:var(--mantine-color-white);padding:calc(var(--mantine-spacing-xs) / 2);border-radius:var(--mantine-radius-sm);white-space:nowrap;pointer-events:none;-webkit-user-select:none;user-select:none;touch-action:none}:where([data-mantine-color-scheme=light]) .m_c9357328{background-color:var(--mantine-color-gray-9)}:where([data-mantine-color-scheme=dark]) .m_c9357328{background-color:var(--mantine-color-dark-4)}.m_c9a9a60a{position:absolute;display:flex;height:var(--slider-thumb-size);width:var(--slider-thumb-size);border:calc(.25rem * var(--mantine-scale)) solid;transform:translate(-50%,-50%);color:var(--slider-color);top:50%;cursor:pointer;border-radius:var(--slider-radius);align-items:center;justify-content:center;transition:box-shadow .1s ease,transform .1s ease;z-index:3;-webkit-user-select:none;user-select:none;touch-action:none;outline-offset:calc(.125rem * var(--mantine-scale));left:var(--slider-thumb-offset)}:where([dir=rtl]) .m_c9a9a60a{left:auto;right:calc(var(--slider-thumb-offset) - var(--slider-thumb-size))}fieldset:disabled .m_c9a9a60a,.m_c9a9a60a:where([data-disabled]){display:none}.m_c9a9a60a:where([data-dragging]){transform:translate(-50%,-50%) scale(1.05);box-shadow:var(--mantine-shadow-sm)}:where([data-mantine-color-scheme=light]) .m_c9a9a60a{border-color:var(--slider-color);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_c9a9a60a{border-color:var(--mantine-color-white);background-color:var(--slider-color)}.m_a8645c2{display:flex;align-items:center;width:100%;height:calc(var(--slider-size) * 2);cursor:pointer}fieldset:disabled .m_a8645c2,.m_a8645c2:where([data-disabled]){cursor:not-allowed}.m_c9ade57f{position:relative;width:100%;height:var(--slider-size)}.m_c9ade57f:where([data-inverted]:not([data-disabled])){--track-bg: var(--slider-color)}fieldset:disabled .m_c9ade57f:where([data-inverted]),.m_c9ade57f:where([data-inverted][data-disabled]){--track-bg: var(--slider-track-disabled-bg)}.m_c9ade57f:before{content:"";position:absolute;top:0;bottom:0;border-radius:var(--slider-radius);inset-inline:calc(var(--slider-size) * -1);background-color:var(--track-bg, var(--slider-track-bg));z-index:0}.m_38aeed47{position:absolute;z-index:1;top:0;bottom:0;background-color:var(--slider-color);border-radius:var(--slider-radius);width:var(--slider-bar-width);inset-inline-start:var(--slider-bar-offset)}.m_38aeed47:where([data-inverted]){background-color:var(--slider-track-bg)}:where([data-mantine-color-scheme=light]) fieldset:disabled .m_38aeed47:where(:not([data-inverted])),:where([data-mantine-color-scheme=light]) .m_38aeed47:where([data-disabled]:not([data-inverted])){background-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) fieldset:disabled .m_38aeed47:where(:not([data-inverted])),:where([data-mantine-color-scheme=dark]) .m_38aeed47:where([data-disabled]:not([data-inverted])){background-color:var(--mantine-color-dark-3)}.m_b7b0423a{position:absolute;inset-inline-start:calc(var(--mark-offset) - var(--slider-size) / 2);top:0;z-index:2;height:0;pointer-events:none}.m_dd33bc19{border:calc(.125rem * var(--mantine-scale)) solid;height:var(--slider-size);width:var(--slider-size);border-radius:calc(62.5rem * var(--mantine-scale));transform:translate((calc(var(--slider-size) / -2)));background-color:var(--mantine-color-white);pointer-events:none}:where([data-mantine-color-scheme=light]) .m_dd33bc19{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_dd33bc19{border-color:var(--mantine-color-dark-4)}.m_dd33bc19:where([data-filled]){border-color:var(--slider-color)}:where([data-mantine-color-scheme=light]) .m_dd33bc19:where([data-filled]):where([data-disabled]){border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_dd33bc19:where([data-filled]):where([data-disabled]){border-color:var(--mantine-color-dark-3)}.m_68c77a5b{transform:translate(calc(-50% + var(--slider-size) / 2),calc(var(--mantine-spacing-xs) / 2));font-size:var(--mantine-font-size-sm);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none}:where([data-mantine-color-scheme=light]) .m_68c77a5b{color:var(--mantine-color-gray-6)}:where([data-mantine-color-scheme=dark]) .m_68c77a5b{color:var(--mantine-color-dark-2)}.m_559cce2d{position:relative}.m_559cce2d:where([data-has-spoiler]){margin-bottom:calc(1.5rem * var(--mantine-scale))}.m_b912df4e{display:flex;flex-direction:column;overflow:hidden;transition:max-height var(--spoiler-transition-duration, .2s) ease}.m_b9131032{position:absolute;inset-inline-start:0;top:100%;height:calc(1.5rem * var(--mantine-scale))}.m_6d731127{display:flex;flex-direction:column;align-items:var(--stack-align, stretch);justify-content:var(--stack-justify, flex-start);gap:var(--stack-gap, var(--mantine-spacing-md))}.m_cbb4ea7e{--stepper-icon-size-xs: calc(2.125rem * var(--mantine-scale));--stepper-icon-size-sm: calc(2.25rem * var(--mantine-scale));--stepper-icon-size-md: calc(2.625rem * var(--mantine-scale));--stepper-icon-size-lg: calc(3rem * var(--mantine-scale));--stepper-icon-size-xl: calc(3.25rem * var(--mantine-scale));--stepper-icon-size: var(--stepper-icon-size-md);--stepper-color: var(--mantine-primary-color-filled);--stepper-content-padding: var(--mantine-spacing-md);--stepper-spacing: var(--mantine-spacing-md);--stepper-radius: calc(62.5rem * var(--mantine-scale));--stepper-fz: var(--mantine-font-size-md)}.m_aaf89d0b{display:flex;flex-wrap:nowrap;align-items:center}.m_aaf89d0b:where([data-wrap]){flex-wrap:wrap;gap:var(--mantine-spacing-md) 0}.m_aaf89d0b:where([data-orientation=vertical]){flex-direction:column}.m_aaf89d0b:where([data-orientation=vertical]):where([data-icon-position=left]){align-items:flex-start}.m_aaf89d0b:where([data-orientation=vertical]):where([data-icon-position=right]){align-items:flex-end}.m_aaf89d0b:where([data-orientation=horizontal]){flex-direction:row}.m_2a371ac9{--separator-offset: calc(var(--stepper-icon-size) / 2 - calc(.0625rem * var(--mantine-scale)));transition:background-color .15s ease;flex:1}:where([data-mantine-color-scheme=light]) .m_2a371ac9{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_2a371ac9{background-color:var(--mantine-color-dark-2)}.m_2a371ac9:where([data-active]){background-color:var(--stepper-color)}.m_2a371ac9:where([data-orientation=horizontal]){height:calc(.125rem * var(--mantine-scale));margin-inline:var(--mantine-spacing-md)}.m_2a371ac9:where([data-orientation=vertical]){width:calc(.125rem * var(--mantine-scale));margin-top:calc(var(--mantine-spacing-xs) / 2);margin-bottom:calc(var(--mantine-spacing-xs) - calc(.125rem * var(--mantine-scale)))}.m_2a371ac9:where([data-orientation=vertical]):where([data-icon-position=left]){margin-inline-start:var(--separator-offset)}.m_2a371ac9:where([data-orientation=vertical]):where([data-icon-position=right]){margin-inline-end:var(--separator-offset)}.m_78da155d{padding-top:var(--stepper-content-padding)}.m_cbb57068{--step-color: var(--stepper-color);display:flex;cursor:default}.m_cbb57068:where([data-allow-click]){cursor:pointer}.m_cbb57068:where([data-icon-position=left]){flex-direction:row}.m_cbb57068:where([data-icon-position=right]){flex-direction:row-reverse}.m_f56b1e2c{align-items:center}.m_833edb7e{--separator-spacing: calc(var(--mantine-spacing-xs) / 2);justify-content:flex-start;min-height:calc(var(--stepper-icon-size) + var(--mantine-spacing-xl) + var(--separator-spacing));margin-top:var(--separator-spacing);overflow:hidden}.m_833edb7e:where(:first-of-type){margin-top:0}.m_833edb7e:where(:last-of-type) .m_6496b3f3{display:none}.m_818e70b{position:relative}.m_6496b3f3{top:calc(var(--stepper-icon-size) + var(--separator-spacing));inset-inline-start:calc(var(--stepper-icon-size) / 2);height:100vh;position:absolute;border-inline-start:calc(.125rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_6496b3f3{border-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_6496b3f3{border-color:var(--mantine-color-dark-5)}.m_6496b3f3:where([data-active]){border-color:var(--stepper-color)}.m_1959ad01{height:var(--stepper-icon-size);width:var(--stepper-icon-size);min-height:var(--stepper-icon-size);min-width:var(--stepper-icon-size);border-radius:var(--stepper-radius);font-size:var(--stepper-fz);display:flex;align-items:center;justify-content:center;position:relative;font-weight:700;transition:background-color .15s ease,border-color .15s ease;border:calc(.125rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_1959ad01{background-color:var(--mantine-color-gray-1);border-color:var(--mantine-color-gray-1);color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_1959ad01{background-color:var(--mantine-color-dark-5);border-color:var(--mantine-color-dark-5);color:var(--mantine-color-dark-1)}.m_1959ad01:where([data-progress]){border-color:var(--step-color)}.m_1959ad01:where([data-completed]){color:var(--stepper-icon-color, var(--mantine-color-white));background-color:var(--step-color);border-color:var(--step-color)}.m_a79331dc{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:var(--stepper-icon-color, var(--mantine-color-white))}.m_1956aa2a{display:flex;flex-direction:column}.m_1956aa2a:where([data-icon-position=left]){margin-inline-start:var(--mantine-spacing-sm)}.m_1956aa2a:where([data-icon-position=right]){text-align:right;margin-inline-end:var(--mantine-spacing-sm)}:where([dir=rtl]) .m_1956aa2a:where([data-icon-position=right]){text-align:left}.m_12051f6c{font-weight:500;font-size:var(--stepper-fz);line-height:1}.m_164eea74{margin-top:calc(var(--stepper-spacing) / 3);margin-bottom:calc(var(--stepper-spacing) / 3);font-size:calc(var(--stepper-fz) - calc(.125rem * var(--mantine-scale)));line-height:1;color:var(--mantine-color-dimmed)}.m_5f93f3bb{--switch-height-xs: calc(1rem * var(--mantine-scale));--switch-height-sm: calc(1.25rem * var(--mantine-scale));--switch-height-md: calc(1.5rem * var(--mantine-scale));--switch-height-lg: calc(1.875rem * var(--mantine-scale));--switch-height-xl: calc(2.25rem * var(--mantine-scale));--switch-width-xs: calc(2rem * var(--mantine-scale));--switch-width-sm: calc(2.375rem * var(--mantine-scale));--switch-width-md: calc(2.875rem * var(--mantine-scale));--switch-width-lg: calc(3.5rem * var(--mantine-scale));--switch-width-xl: calc(4.5rem * var(--mantine-scale));--switch-thumb-size-xs: calc(.75rem * var(--mantine-scale));--switch-thumb-size-sm: calc(.875rem * var(--mantine-scale));--switch-thumb-size-md: calc(1.125rem * var(--mantine-scale));--switch-thumb-size-lg: calc(1.375rem * var(--mantine-scale));--switch-thumb-size-xl: calc(1.75rem * var(--mantine-scale));--switch-label-font-size-xs: calc(.3125rem * var(--mantine-scale));--switch-label-font-size-sm: calc(.375rem * var(--mantine-scale));--switch-label-font-size-md: calc(.4375rem * var(--mantine-scale));--switch-label-font-size-lg: calc(.5625rem * var(--mantine-scale));--switch-label-font-size-xl: calc(.6875rem * var(--mantine-scale));--switch-track-label-padding-xs: calc(.0625rem * var(--mantine-scale));--switch-track-label-padding-sm: calc(.125rem * var(--mantine-scale));--switch-track-label-padding-md: calc(.125rem * var(--mantine-scale));--switch-track-label-padding-lg: calc(.1875rem * var(--mantine-scale));--switch-track-label-padding-xl: calc(.1875rem * var(--mantine-scale));--switch-height: var(--switch-height-sm);--switch-width: var(--switch-width-sm);--switch-thumb-size: var(--switch-thumb-size-sm);--switch-label-font-size: var(--switch-label-font-size-sm);--switch-track-label-padding: var(--switch-track-label-padding-sm);--switch-radius: calc(62.5rem * var(--mantine-scale));--switch-color: var(--mantine-primary-color-filled);position:relative}.m_926b4011{height:0;width:0;opacity:0;margin:0;padding:0;position:absolute;overflow:hidden;white-space:nowrap}.m_9307d992{-webkit-tap-highlight-color:transparent;cursor:var(--switch-cursor, var(--mantine-cursor-type));overflow:hidden;position:relative;border-radius:var(--switch-radius);background-color:var(--switch-bg);border:1px solid var(--switch-bd);height:var(--switch-height);min-width:var(--switch-width);margin:0;transition:background-color .15s ease,border-color .15s ease;-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;font-size:var(--switch-label-font-size);font-weight:600;order:var(--switch-order, 1);-webkit-user-select:none;user-select:none;z-index:0;line-height:0;color:var(--switch-text-color)}.m_926b4011:focus-visible+.m_9307d992{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_926b4011:checked+.m_9307d992{--switch-bg: var(--switch-color);--switch-bd: var(--switch-color);--switch-text-color: var(--mantine-color-white)}.m_926b4011:disabled+.m_9307d992,.m_926b4011[data-disabled]+.m_9307d992{--switch-bg: var(--switch-disabled-color);--switch-bd: var(--switch-disabled-color);--switch-cursor: not-allowed}[data-mantine-color-scheme=light] .m_9307d992{--switch-bg: var(--mantine-color-gray-2);--switch-bd: var(--mantine-color-gray-3);--switch-text-color: var(--mantine-color-gray-6);--switch-disabled-color: var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_9307d992{--switch-bg: var(--mantine-color-dark-6);--switch-bd: var(--mantine-color-dark-4);--switch-text-color: var(--mantine-color-dark-1);--switch-disabled-color: var(--mantine-color-dark-4)}.m_9307d992[data-error]{--switch-bd: var(--mantine-color-error)}.m_9307d992[data-label-position=left]{--switch-order: 2}.m_93039a1d{position:absolute;z-index:1;border-radius:var(--switch-radius);display:flex;background-color:var(--switch-thumb-bg, var(--mantine-color-white));height:var(--switch-thumb-size);width:var(--switch-thumb-size);border:1px solid var(--switch-thumb-bd);inset-inline-start:var(--switch-thumb-start, var(--switch-track-label-padding));transition:inset-inline-start .15s ease}.m_93039a1d>*{margin:auto}.m_926b4011:checked+*>.m_93039a1d{--switch-thumb-start: calc(100% - var(--switch-thumb-size) - var(--switch-track-label-padding));--switch-thumb-bd: var(--mantine-color-white)}.m_926b4011:disabled+*>.m_93039a1d,.m_926b4011[data-disabled]+*>.m_93039a1d{--switch-thumb-bd: var(--switch-thumb-bg-disabled);--switch-thumb-bg: var(--switch-thumb-bg-disabled)}[data-mantine-color-scheme=light] .m_93039a1d{--switch-thumb-bd: var(--mantine-color-gray-3);--switch-thumb-bg-disabled: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_93039a1d{--switch-thumb-bd: var(--mantine-color-white);--switch-thumb-bg-disabled: var(--mantine-color-dark-3)}.m_8277e082{height:100%;display:grid;place-content:center;min-width:calc(var(--switch-width) - var(--switch-thumb-size));padding-inline:var(--switch-track-label-padding);margin-inline-start:calc(var(--switch-thumb-size) + var(--switch-track-label-padding));transition:margin .15s ease}.m_926b4011:checked+*>.m_8277e082{margin-inline-end:calc(var(--switch-thumb-size) + var(--switch-track-label-padding));margin-inline-start:0}.m_b23fa0ef{width:100%;border-collapse:collapse;line-height:var(--mantine-line-height);font-size:var(--mantine-font-size-sm);table-layout:var(--table-layout, auto);caption-side:var(--table-caption-side, bottom);border:none}:where([data-mantine-color-scheme=light]) .m_b23fa0ef{--table-hover-color: var(--mantine-color-gray-1);--table-striped-color: var(--mantine-color-gray-0);--table-border-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_b23fa0ef{--table-hover-color: var(--mantine-color-dark-5);--table-striped-color: var(--mantine-color-dark-6);--table-border-color: var(--mantine-color-dark-4)}.m_b23fa0ef:where([data-with-table-border]){border:1px solid var(--table-border-color)}.m_4e7aa4f3{text-align:left}:where([dir=rtl]) .m_4e7aa4f3{text-align:right}.m_4e7aa4fd{border-bottom:none;background-color:transparent}@media (hover: hover){.m_4e7aa4fd:hover:where([data-hover]){background-color:var(--tr-hover-bg)}}@media (hover: none){.m_4e7aa4fd:active:where([data-hover]){background-color:var(--tr-hover-bg)}}.m_4e7aa4fd:where([data-with-row-border]){border-bottom:1px solid var(--table-border-color)}.m_4e7aa4ef,.m_4e7aa4f3{padding:var(--table-vertical-spacing) var(--table-horizontal-spacing, var(--mantine-spacing-xs))}.m_4e7aa4ef:where([data-with-column-border]:not(:last-child)),.m_4e7aa4f3:where([data-with-column-border]:not(:last-child)){border-inline-end:1px solid var(--table-border-color)}.m_b2404537 :where(tr):where([data-with-row-border]:last-of-type){border-bottom:none}.m_b2404537 :where(tr):where([data-striped=odd]:nth-of-type(odd)){background-color:var(--table-striped-color)}.m_b2404537 :where(tr):where([data-striped=even]:nth-of-type(2n)){background-color:var(--table-striped-color)}.m_b2404537 :where(tr)[data-hover]{--tr-hover-bg: var(--table-highlight-on-hover-color, var(--table-hover-color))}.m_b242d975{top:var(--table-sticky-header-offset, 0);z-index:1}.m_b242d975:where([data-sticky]){position:sticky;background-color:var(--mantine-color-body)}.m_9e5a3ac7{color:var(--mantine-color-dimmed)}.m_9e5a3ac7:where([data-side=top]){margin-bottom:var(--mantine-spacing-xs)}.m_9e5a3ac7:where([data-side=bottom]){margin-top:var(--mantine-spacing-xs)}.m_a100c15{overflow-x:var(--table-overflow)}.m_62259741{min-width:var(--table-min-width)}.m_89d60db1{display:var(--tabs-display);flex-direction:var(--tabs-flex-direction);--tab-justify: flex-start;--tabs-list-direction: row;--tabs-panel-grow: unset;--tabs-display: block;--tabs-flex-direction: row;--tabs-list-border-width: 0;--tabs-list-border-size: 0 0 var(--tabs-list-border-width) 0;--tabs-list-gap: unset;--tabs-list-line-bottom: 0;--tabs-list-line-top: unset;--tabs-list-line-start: 0;--tabs-list-line-end: 0;--tab-radius: var(--tabs-radius) var(--tabs-radius) 0 0;--tab-border-width: 0 0 var(--tabs-list-border-width) 0}.m_89d60db1[data-inverted]{--tabs-list-line-bottom: unset;--tabs-list-line-top: 0;--tab-radius: 0 0 var(--tabs-radius) var(--tabs-radius);--tab-border-width: var(--tabs-list-border-width) 0 0 0}.m_89d60db1[data-inverted] .m_576c9d4:before{top:0;bottom:unset}.m_89d60db1[data-orientation=vertical]{--tabs-list-line-start: unset;--tabs-list-line-end: 0;--tabs-list-line-top: 0;--tabs-list-line-bottom: 0;--tabs-list-border-size: 0 var(--tabs-list-border-width) 0 0;--tab-border-width: 0 var(--tabs-list-border-width) 0 0;--tab-radius: var(--tabs-radius) 0 0 var(--tabs-radius);--tabs-list-direction: column;--tabs-panel-grow: 1;--tabs-display: flex}[dir=rtl] .m_89d60db1[data-orientation=vertical]{--tabs-list-border-size: 0 0 0 var(--tabs-list-border-width);--tab-border-width: 0 0 0 var(--tabs-list-border-width);--tab-radius: 0 var(--tabs-radius) var(--tabs-radius) 0}.m_89d60db1[data-orientation=vertical][data-placement=right]{--tabs-flex-direction: row-reverse;--tabs-list-line-start: 0;--tabs-list-line-end: unset;--tabs-list-border-size: 0 0 0 var(--tabs-list-border-width);--tab-border-width: 0 0 0 var(--tabs-list-border-width);--tab-radius: 0 var(--tabs-radius) var(--tabs-radius) 0}[dir=rtl] .m_89d60db1[data-orientation=vertical][data-placement=right]{--tabs-list-border-size: 0 var(--tabs-list-border-width) 0 0;--tab-border-width: 0 var(--tabs-list-border-width) 0 0;--tab-radius: var(--tabs-radius) 0 0 var(--tabs-radius)}[data-mantine-color-scheme=light] .m_89d60db1{--tab-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_89d60db1{--tab-border-color: var(--mantine-color-dark-4)}.m_89d60db1[data-orientation=horizontal]{--tab-justify: center}.m_89d60db1[data-variant=default]{--tabs-list-border-width: calc(.125rem * var(--mantine-scale))}[data-mantine-color-scheme=light] .m_89d60db1[data-variant=default]{--tab-hover-color: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_89d60db1[data-variant=default]{--tab-hover-color: var(--mantine-color-dark-6)}.m_89d60db1[data-variant=outline]{--tabs-list-border-width: calc(.0625rem * var(--mantine-scale))}.m_89d60db1[data-variant=pills]{--tabs-list-gap: calc(var(--mantine-spacing-sm) / 2)}[data-mantine-color-scheme=light] .m_89d60db1[data-variant=pills]{--tab-hover-color: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_89d60db1[data-variant=pills]{--tab-hover-color: var(--mantine-color-dark-6)}.m_89d33d6d{display:flex;flex-wrap:wrap;justify-content:var(--tabs-justify, flex-start);flex-direction:var(--tabs-list-direction);gap:var(--tabs-list-gap);--tab-grow: unset}.m_89d33d6d[data-grow]{--tab-grow: 1}.m_b0c91715{flex-grow:var(--tabs-panel-grow)}.m_4ec4dce6{position:relative;padding:var(--mantine-spacing-xs) var(--mantine-spacing-md);font-size:var(--mantine-font-size-sm);white-space:nowrap;z-index:0;display:flex;align-items:center;line-height:1;-webkit-user-select:none;user-select:none;flex-grow:var(--tab-grow);justify-content:var(--tab-justify)}.m_4ec4dce6:disabled,.m_4ec4dce6[data-disabled]{opacity:.5;cursor:not-allowed}.m_4ec4dce6:focus{z-index:1}.m_fc420b1f{display:flex;align-items:center;justify-content:center;margin-left:var(--tab-section-margin-left, 0);margin-right:var(--tab-section-margin-right, 0)}.m_fc420b1f[data-position=left]:not(:only-child){--tab-section-margin-right: var(--mantine-spacing-xs)}[dir=rtl] .m_fc420b1f[data-position=left]:not(:only-child){--tab-section-margin-right: 0rem;--tab-section-margin-left: var(--mantine-spacing-xs)}.m_fc420b1f[data-position=right]:not(:only-child){--tab-section-margin-left: var(--mantine-spacing-xs)}[dir=rtl] .m_fc420b1f[data-position=right]:not(:only-child){--tab-section-margin-left: 0rem;--tab-section-margin-right: var(--mantine-spacing-xs)}.m_576c9d4{position:relative}.m_576c9d4:before{content:"";position:absolute;border-color:var(--tab-border-color);border-width:var(--tabs-list-border-size);border-style:solid;bottom:var(--tabs-list-line-bottom);inset-inline-start:var(--tabs-list-line-start);inset-inline-end:var(--tabs-list-line-end);top:var(--tabs-list-line-top)}.m_539e827b{border-radius:var(--tab-radius);border-width:var(--tab-border-width);border-style:solid;border-color:transparent;background-color:var(--tab-bg);--tab-bg: transparent}.m_539e827b:where([data-active]){border-color:var(--tabs-color)}@media (hover: hover){.m_539e827b:hover{--tab-bg: var(--tab-hover-color)}.m_539e827b:hover:where(:not([data-active])){border-color:var(--tab-border-color)}}@media (hover: none){.m_539e827b:active{--tab-bg: var(--tab-hover-color)}.m_539e827b:active:where(:not([data-active])){border-color:var(--tab-border-color)}}@media (hover: hover){.m_539e827b:disabled:hover,.m_539e827b[data-disabled]:hover{--tab-bg: transparent}}@media (hover: none){.m_539e827b:disabled:active,.m_539e827b[data-disabled]:active{--tab-bg: transparent}}.m_6772fbd5{position:relative}.m_6772fbd5:before{content:"";position:absolute;border-color:var(--tab-border-color);border-width:var(--tabs-list-border-size);border-style:solid;bottom:var(--tabs-list-line-bottom);inset-inline-start:var(--tabs-list-line-start);inset-inline-end:var(--tabs-list-line-end);top:var(--tabs-list-line-top)}.m_b59ab47c{border-top:calc(.0625rem * var(--mantine-scale)) solid transparent;border-bottom:calc(.0625rem * var(--mantine-scale)) solid transparent;border-right:calc(.0625rem * var(--mantine-scale)) solid transparent;border-left:calc(.0625rem * var(--mantine-scale)) solid transparent;border-top-color:var(--tab-border-top-color);border-bottom-color:var(--tab-border-bottom-color);border-radius:var(--tab-radius);position:relative;--tab-border-bottom-color: transparent;--tab-border-top-color: transparent;--tab-border-inline-end-color: transparent;--tab-border-inline-start-color: transparent}.m_b59ab47c:where([data-active]):before{content:"";position:absolute;background-color:var(--tab-border-color);bottom:var(--tab-before-bottom, calc(-.0625rem * var(--mantine-scale)));left:var(--tab-before-left, calc(-.0625rem * var(--mantine-scale)));right:var(--tab-before-right, auto);top:var(--tab-before-top, auto);width:calc(.0625rem * var(--mantine-scale));height:calc(.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active]):after{content:"";position:absolute;background-color:var(--tab-border-color);bottom:var(--tab-after-bottom, calc(-.0625rem * var(--mantine-scale)));right:var(--tab-after-right, calc(-.0625rem * var(--mantine-scale)));left:var(--tab-after-left, auto);top:var(--tab-after-top, auto);width:calc(.0625rem * var(--mantine-scale));height:calc(.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active]){border-top-color:var(--tab-border-top-color);border-bottom-color:var(--tab-border-bottom-color);border-inline-start-color:var(--tab-border-inline-start-color);border-inline-end-color:var(--tab-border-inline-end-color);--tab-border-top-color: var(--tab-border-color);--tab-border-inline-start-color: var(--tab-border-color);--tab-border-inline-end-color: var(--tab-border-color);--tab-border-bottom-color: var(--mantine-color-body)}.m_b59ab47c:where([data-active])[data-inverted]{--tab-border-bottom-color: var(--tab-border-color);--tab-border-top-color: var(--mantine-color-body);--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-bottom: auto;--tab-after-top: calc(-.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=left]{--tab-border-inline-end-color: var(--mantine-color-body);--tab-border-inline-start-color: var(--tab-border-color);--tab-border-bottom-color: var(--tab-border-color);--tab-before-right: calc(-.0625rem * var(--mantine-scale));--tab-before-left: auto;--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-left: auto;--tab-after-right: calc(-.0625rem * var(--mantine-scale))}[dir=rtl] .m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=left]{--tab-before-right: auto;--tab-before-left: calc(-.0625rem * var(--mantine-scale));--tab-after-left: calc(-.0625rem * var(--mantine-scale));--tab-after-right: auto}.m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=right]{--tab-border-inline-start-color: var(--mantine-color-body);--tab-border-inline-end-color: var(--tab-border-color);--tab-border-bottom-color: var(--tab-border-color);--tab-before-left: calc(-.0625rem * var(--mantine-scale));--tab-before-right: auto;--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-right: auto;--tab-after-left: calc(-.0625rem * var(--mantine-scale))}[dir=rtl] .m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=right]{--tab-before-left: auto;--tab-before-right: calc(-.0625rem * var(--mantine-scale));--tab-after-right: calc(-.0625rem * var(--mantine-scale));--tab-after-left: auto}.m_c3381914{border-radius:var(--tabs-radius);background-color:var(--tab-bg);color:var(--tab-color);--tab-bg: transparent;--tab-color: inherit}@media (hover: hover){.m_c3381914:not([data-disabled]):hover{--tab-bg: var(--tab-hover-color)}}@media (hover: none){.m_c3381914:not([data-disabled]):active{--tab-bg: var(--tab-hover-color)}}.m_c3381914[data-active][data-active]{--tab-bg: var(--tabs-color);--tab-color: var(--tabs-text-color, var(--mantine-color-white))}@media (hover: hover){.m_c3381914[data-active][data-active]:hover{--tab-bg: var(--tabs-color)}}@media (hover: none){.m_c3381914[data-active][data-active]:active{--tab-bg: var(--tabs-color)}}.m_7341320d{--ti-size-xs: calc(1.125rem * var(--mantine-scale));--ti-size-sm: calc(1.375rem * var(--mantine-scale));--ti-size-md: calc(1.75rem * var(--mantine-scale));--ti-size-lg: calc(2.125rem * var(--mantine-scale));--ti-size-xl: calc(2.75rem * var(--mantine-scale));--ti-size: var(--ti-size-md);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;-webkit-user-select:none;user-select:none;width:var(--ti-size);height:var(--ti-size);min-width:var(--ti-size);min-height:var(--ti-size);border-radius:var(--ti-radius, var(--mantine-radius-default));background:var(--ti-bg, var(--mantine-primary-color-filled));color:var(--ti-color, var(--mantine-color-white));border:var(--ti-bd, 1px solid transparent)}.m_43657ece{--offset: calc(var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2);--tl-bullet-size: calc(1.25rem * var(--mantine-scale));--tl-line-width: calc(.25rem * var(--mantine-scale));--tl-radius: calc(62.5rem * var(--mantine-scale));--tl-color: var(--mantine-primary-color-filled)}.m_43657ece:where([data-align=left]){padding-inline-start:var(--offset)}.m_43657ece:where([data-align=right]){padding-inline-end:var(--offset)}.m_2ebe8099{font-weight:500;line-height:1;margin-bottom:calc(var(--mantine-spacing-xs) / 2)}.m_436178ff{--item-border: var(--tl-line-width) var(--tli-border-style, solid) var(--item-border-color);position:relative;color:var(--mantine-color-text)}.m_436178ff:before{content:"";pointer-events:none;position:absolute;top:0;left:var(--timeline-line-left, 0);right:var(--timeline-line-right, 0);bottom:calc(var(--mantine-spacing-xl) * -1);border-inline-start:var(--item-border);display:var(--timeline-line-display, none)}.m_43657ece[data-align=left] .m_436178ff:before{--timeline-line-left: calc(var(--tl-line-width) * -1);--timeline-line-right: auto}[dir=rtl] .m_43657ece[data-align=left] .m_436178ff:before{--timeline-line-left: auto;--timeline-line-right: calc(var(--tl-line-width) * -1)}.m_43657ece[data-align=right] .m_436178ff:before{--timeline-line-left: auto;--timeline-line-right: calc(var(--tl-line-width) * -1)}[dir=rtl] .m_43657ece[data-align=right] .m_436178ff:before{--timeline-line-left: calc(var(--tl-line-width) * -1);--timeline-line-right: auto}.m_43657ece:where([data-align=left]) .m_436178ff{padding-inline-start:var(--offset);text-align:left}.m_43657ece:where([data-align=right]) .m_436178ff{padding-inline-end:var(--offset);text-align:right}:where([data-mantine-color-scheme=light]) .m_436178ff{--item-border-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_436178ff{--item-border-color: var(--mantine-color-dark-4)}.m_436178ff:where([data-line-active]):before{border-color:var(--tli-color, var(--tl-color))}.m_436178ff:where(:not(:last-of-type)){--timeline-line-display: block}.m_436178ff:where(:not(:first-of-type)){margin-top:var(--mantine-spacing-xl)}.m_8affcee1{width:var(--tl-bullet-size);height:var(--tl-bullet-size);border-radius:var(--tli-radius, var(--tl-radius));border:var(--tl-line-width) solid;background-color:var(--mantine-color-body);position:absolute;top:0;display:flex;align-items:center;justify-content:center;color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_8affcee1{border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_8affcee1{border-color:var(--mantine-color-dark-4)}.m_43657ece:where([data-align=left]) .m_8affcee1{left:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1);right:auto}:where([dir=rtl]) .m_43657ece:where([data-align=left]) .m_8affcee1{left:auto;right:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1)}.m_43657ece:where([data-align=right]) .m_8affcee1{left:auto;right:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1)}:where([dir=rtl]) .m_43657ece:where([data-align=right]) .m_8affcee1{left:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1);right:auto}.m_8affcee1:where([data-with-child]){border-width:var(--tl-line-width)}:where([data-mantine-color-scheme=light]) .m_8affcee1:where([data-with-child]){background-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_8affcee1:where([data-with-child]){background-color:var(--mantine-color-dark-4)}.m_8affcee1:where([data-active]){border-color:var(--tli-color, var(--tl-color));background-color:var(--mantine-color-white);color:var(--tl-icon-color, var(--mantine-color-white))}.m_8affcee1:where([data-active]):where([data-with-child]){background-color:var(--tli-color, var(--tl-color));color:var(--tl-icon-color, var(--mantine-color-white))}.m_43657ece:where([data-align=left]) .m_540e8f41{padding-inline-start:var(--offset);text-align:left}:where([dir=rtl]) .m_43657ece:where([data-align=left]) .m_540e8f41{text-align:right}.m_43657ece:where([data-align=right]) .m_540e8f41{padding-inline-end:var(--offset);text-align:right}:where([dir=rtl]) .m_43657ece:where([data-align=right]) .m_540e8f41{text-align:left}.m_8a5d1357{margin:0;font-weight:var(--title-fw);font-size:var(--title-fz);line-height:var(--title-lh);font-family:var(--mantine-font-family-headings);text-wrap:var(--title-text-wrap, var(--mantine-heading-text-wrap))}.m_8a5d1357:where([data-line-clamp]){overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:var(--title-line-clamp);-webkit-box-orient:vertical}.m_d6493fad :first-child{margin-top:0}.m_d6493fad :last-child{margin-bottom:0}.m_d6493fad :where(h1,h2,h3,h4,h5,h6){margin-bottom:var(--mantine-spacing-xs);text-wrap:var(--mantine-heading-text-wrap)}.m_d6493fad :where(h1){margin-top:calc(1.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h1-font-size);line-height:var(--mantine-h1-line-height);font-weight:var(--mantine-h1-font-weight)}.m_d6493fad :where(h2){margin-top:var(--mantine-spacing-xl);font-size:var(--mantine-h2-font-size);line-height:var(--mantine-h2-line-height);font-weight:var(--mantine-h2-font-weight)}.m_d6493fad :where(h3){margin-top:calc(.8 * var(--mantine-spacing-xl));font-size:var(--mantine-h3-font-size);line-height:var(--mantine-h3-line-height);font-weight:var(--mantine-h3-font-weight)}.m_d6493fad :where(h4){margin-top:calc(.8 * var(--mantine-spacing-xl));font-size:var(--mantine-h4-font-size);line-height:var(--mantine-h4-line-height);font-weight:var(--mantine-h4-font-weight)}.m_d6493fad :where(h5){margin-top:calc(.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h5-font-size);line-height:var(--mantine-h5-line-height);font-weight:var(--mantine-h5-font-weight)}.m_d6493fad :where(h6){margin-top:calc(.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h6-font-size);line-height:var(--mantine-h6-line-height);font-weight:var(--mantine-h6-font-weight)}.m_d6493fad :where(img){max-width:100%;margin-bottom:var(--mantine-spacing-xs)}.m_d6493fad :where(p){margin-top:0;margin-bottom:var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_d6493fad :where(mark){background-color:var(--mantine-color-yellow-2);color:inherit}:where([data-mantine-color-scheme=dark]) .m_d6493fad :where(mark){background-color:var(--mantine-color-yellow-5);color:var(--mantine-color-black)}.m_d6493fad :where(a){color:var(--mantine-color-anchor);text-decoration:none}@media (hover: hover){.m_d6493fad :where(a):hover{text-decoration:underline}}@media (hover: none){.m_d6493fad :where(a):active{text-decoration:underline}}.m_d6493fad :where(hr){margin-top:var(--mantine-spacing-md);margin-bottom:var(--mantine-spacing-md);border:0;border-top:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_d6493fad :where(hr){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d6493fad :where(hr){border-color:var(--mantine-color-dark-3)}.m_d6493fad :where(pre){padding:var(--mantine-spacing-xs);line-height:var(--mantine-line-height);margin:0;margin-top:var(--mantine-spacing-md);margin-bottom:var(--mantine-spacing-md);overflow-x:auto;font-family:var(--mantine-font-family-monospace);font-size:var(--mantine-font-size-xs);border-radius:var(--mantine-radius-sm)}:where([data-mantine-color-scheme=light]) .m_d6493fad :where(pre){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d6493fad :where(pre){background-color:var(--mantine-color-dark-8)}.m_d6493fad :where(pre) :where(code){background-color:transparent;padding:0;border-radius:0;color:inherit;border:0}.m_d6493fad :where(kbd){--kbd-fz: calc(.75rem * var(--mantine-scale));--kbd-padding: calc(.1875rem * var(--mantine-scale)) calc(.3125rem * var(--mantine-scale));font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);font-weight:700;padding:var(--kbd-padding);font-size:var(--kbd-fz);border-radius:var(--mantine-radius-sm);border:calc(.0625rem * var(--mantine-scale)) solid;border-bottom-width:calc(.1875rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_d6493fad :where(kbd){border-color:var(--mantine-color-gray-3);color:var(--mantine-color-gray-7);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d6493fad :where(kbd){border-color:var(--mantine-color-dark-3);color:var(--mantine-color-dark-0);background-color:var(--mantine-color-dark-5)}.m_d6493fad :where(code){line-height:var(--mantine-line-height);padding:calc(.0625rem * var(--mantine-scale)) calc(.3125rem * var(--mantine-scale));border-radius:var(--mantine-radius-sm);font-family:var(--mantine-font-family-monospace);font-size:var(--mantine-font-size-xs)}:where([data-mantine-color-scheme=light]) .m_d6493fad :where(code){background-color:var(--mantine-color-gray-0);color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_d6493fad :where(code){background-color:var(--mantine-color-dark-5);color:var(--mantine-color-white)}.m_d6493fad :where(ul,ol):not([data-type=taskList]){margin-bottom:var(--mantine-spacing-md);padding-inline-start:calc(2.375rem * var(--mantine-scale))}.m_d6493fad :where(ul,ol):not([data-type=taskList]) :where(li){margin-bottom:var(--mantine-spacing-xs)}.m_d6493fad :where(table){width:100%;border-collapse:collapse;caption-side:bottom;margin-bottom:var(--mantine-spacing-md)}.m_d6493fad :where(table) :where(caption){margin-top:var(--mantine-spacing-xs);font-size:var(--mantine-font-size-sm);color:var(--mantine-color-gray-6)}.m_d6493fad :where(table) :where(th){text-align:left;font-weight:700;color:var(--mantine-color-gray-7);font-size:var(--mantine-font-size-sm);padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm)}.m_d6493fad :where(table) :where(thead th){border-bottom:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--mantine-color-gray-3)}.m_d6493fad :where(table) :where(tfoot th){border-top:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--mantine-color-gray-3)}.m_d6493fad :where(table) :where(td){padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm);border-bottom:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--mantine-color-gray-3);font-size:var(--mantine-font-size-sm)}.m_d6493fad :where(table) :where(tr:last-of-type td){border-bottom:0}.m_d6493fad :where(blockquote){font-size:var(--mantine-font-size-lg);line-height:var(--mantine-line-height);margin:var(--mantine-spacing-md) 0;border-radius:var(--mantine-radius-sm);padding:var(--mantine-spacing-md) var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_d6493fad :where(blockquote){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d6493fad :where(blockquote){background-color:var(--mantine-color-dark-8)}.m_468e7eda{padding-top:0;padding-bottom:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.m_468e7eda::-webkit-calendar-picker-indicator{display:none}.m_468e7eda::-webkit-clear-button{display:none}.m_468e7eda::-webkit-datetime-edit-hour-field,.m_468e7eda::-webkit-datetime-edit-minute-field,.m_468e7eda::-webkit-datetime-edit-second-field{padding-top:0;max-height:calc(1.875rem * var(--mantine-scale));display:inline}.m_468e7eda::-webkit-datetime-edit-hour-field:focus,.m_468e7eda::-webkit-datetime-edit-minute-field:focus,.m_468e7eda::-webkit-datetime-edit-second-field:focus{background-color:var(--mantine-primary-color-filled);color:var(--mantine-color-white)}.m_396ce5cb{--day-size-xs: calc(1.875rem * var(--mantine-scale));--day-size-sm: calc(2.25rem * var(--mantine-scale));--day-size-md: calc(2.625rem * var(--mantine-scale));--day-size-lg: calc(3rem * var(--mantine-scale));--day-size-xl: calc(3.375rem * var(--mantine-scale));--day-size: var(--day-size-sm);width:var(--day-size, var(--day-size-sm));height:var(--day-size, var(--day-size-sm));font-size:calc(var(--day-size) / 2.8);display:inline-flex;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;background-color:transparent;border-radius:var(--mantine-radius-default);color:var(--mantine-color-text);opacity:1}@media (hover: hover){[data-mantine-color-scheme=light] .m_396ce5cb:hover:where(:not([data-static],[data-disabled],[data-selected],[data-in-range])){background-color:var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_396ce5cb:hover:where(:not([data-static],[data-disabled],[data-selected],[data-in-range])){background-color:var(--mantine-color-dark-5)}}@media (hover: none){[data-mantine-color-scheme=light] .m_396ce5cb:active:where(:not([data-static],[data-disabled],[data-selected],[data-in-range])){background-color:var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_396ce5cb:active:where(:not([data-static],[data-disabled],[data-selected],[data-in-range])){background-color:var(--mantine-color-dark-5)}}.m_396ce5cb:where([data-static]){-webkit-user-select:auto;user-select:auto;cursor:default}.m_396ce5cb:where([data-weekend]){color:var(--mantine-color-red-6)}.m_396ce5cb:where([data-outside]){color:var(--mantine-color-dimmed);opacity:.5}.m_396ce5cb:where(:disabled,[data-disabled]){color:var(--mantine-color-dimmed);cursor:not-allowed;opacity:.5}.m_396ce5cb:where([data-hidden]){display:none}.m_396ce5cb:where([data-in-range]){background-color:var(--mantine-primary-color-light-hover);border-radius:0}@media (hover: hover){.m_396ce5cb:where([data-in-range]):hover:where(:not([data-disabled],[data-static])){background-color:var(--mantine-primary-color-light)}}@media (hover: none){.m_396ce5cb:where([data-in-range]):active:where(:not([data-disabled],[data-static])){background-color:var(--mantine-primary-color-light)}}.m_396ce5cb:where([data-first-in-range]){border-radius:0;border-start-start-radius:var(--mantine-radius-default);border-end-start-radius:var(--mantine-radius-default)}.m_396ce5cb:where([data-last-in-range]){border-radius:0;border-end-end-radius:var(--mantine-radius-default);border-start-end-radius:var(--mantine-radius-default)}.m_396ce5cb:where([data-last-in-range][data-first-in-range]){border-radius:var(--mantine-radius-default)}.m_396ce5cb:where([data-selected]){background-color:var(--mantine-primary-color-filled);color:var(--mantine-primary-color-contrast)}@media (hover: hover){.m_396ce5cb:where([data-selected]):hover:where(:not([data-disabled],[data-static])){background-color:var(--mantine-primary-color-filled-hover)}}@media (hover: none){.m_396ce5cb:where([data-selected]):active:where(:not([data-disabled],[data-static])){background-color:var(--mantine-primary-color-filled-hover)}}.m_18a3eca{color:var(--mantine-color-dimmed);font-weight:400;font-size:var(--wr-fz, var(--mantine-font-size-sm));text-transform:capitalize;padding-bottom:calc(var(--wr-spacing, var(--mantine-spacing-sm)) / 2)}.m_cc9820d3{border-collapse:collapse;table-layout:fixed}.m_8f457cd5{padding:0}.m_8f457cd5:where([data-with-spacing]){padding:calc(.03125rem * var(--mantine-scale))}.m_dc6a3c71{--dpc-size-xs: calc(1.875rem * var(--mantine-scale));--dpc-size-sm: calc(2.25rem * var(--mantine-scale));--dpc-size-md: calc(2.625rem * var(--mantine-scale));--dpc-size-lg: calc(3rem * var(--mantine-scale));--dpc-size-xl: calc(3.375rem * var(--mantine-scale));--dpc-size: var(--dpc-size-sm);font-size:var(--dpc-fz, var(--mantine-font-size-sm));height:var(--dpc-size);width:calc((var(--dpc-size) * 7) / 3 + calc(.09375rem * var(--mantine-scale)));display:flex;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;background-color:transparent;color:var(--mantine-color-text);opacity:1;border-radius:var(--mantine-radius-default)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_dc6a3c71:hover:where(:not([data-disabled],:disabled)){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_dc6a3c71:hover:where(:not([data-disabled],:disabled)){background-color:var(--mantine-color-dark-5)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_dc6a3c71:active:where(:not([data-disabled],:disabled)){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_dc6a3c71:active:where(:not([data-disabled],:disabled)){background-color:var(--mantine-color-dark-5)}}.m_dc6a3c71:where(:disabled,[data-disabled]){color:var(--mantine-color-dimmed);cursor:not-allowed;opacity:.5}.m_dc6a3c71:where([data-selected]){background-color:var(--mantine-primary-color-filled);color:var(--mantine-primary-color-contrast, var(--mantine-color-white))}@media (hover: hover){.m_dc6a3c71:where([data-selected]):hover{background-color:var(--mantine-primary-color-filled-hover)}}@media (hover: none){.m_dc6a3c71:where([data-selected]):active{background-color:var(--mantine-primary-color-filled-hover)}}.m_dc6a3c71:where([data-in-range]){background-color:var(--mantine-primary-color-light-hover);border-radius:0}@media (hover: hover){.m_dc6a3c71:where([data-in-range]):hover{background-color:var(--mantine-primary-color-light)}}@media (hover: none){.m_dc6a3c71:where([data-in-range]):active{background-color:var(--mantine-primary-color-light)}}.m_dc6a3c71:where([data-first-in-range]){border-radius:0;border-start-start-radius:var(--mantine-radius-default);border-end-start-radius:var(--mantine-radius-default)}.m_dc6a3c71:where([data-last-in-range]){border-radius:0;border-end-end-radius:var(--mantine-radius-default);border-start-end-radius:var(--mantine-radius-default)}.m_dc6a3c71:where([data-first-in-range][data-last-in-range]){border-radius:var(--mantine-radius-default)}.m_9206547b{border-collapse:collapse;border-width:0}.m_c5a19c7d{padding:0}.m_c5a19c7d:where([data-with-spacing]){padding:calc(.03125rem * var(--mantine-scale))}.m_2a6c32d{border-collapse:collapse;border-width:0;cursor:pointer}.m_fe27622f{padding:0}.m_fe27622f:where([data-with-spacing]){padding:calc(.03125rem * var(--mantine-scale))}.m_730a79ed{--dch-control-size-xs: calc(1.875rem * var(--mantine-scale));--dch-control-size-sm: calc(2.25rem * var(--mantine-scale));--dch-control-size-md: calc(2.625rem * var(--mantine-scale));--dch-control-size-lg: calc(3rem * var(--mantine-scale));--dch-control-size-xl: calc(3.375rem * var(--mantine-scale));--dch-control-size: var(--dch-control-size-sm);display:flex;max-width:calc(var(--dch-control-size) * 7 + calc(.4375rem * var(--mantine-scale)));margin-bottom:var(--mantine-spacing-xs)}.m_f6645d97,.m_2351eeb0{height:var(--dch-control-size);border-radius:var(--mantine-radius-default);display:flex;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none;opacity:1;cursor:pointer}@media (hover: hover){[data-mantine-color-scheme=light] .m_f6645d97:hover:where(:not([data-disabled],:disabled)),[data-mantine-color-scheme=light] .m_2351eeb0:hover:where(:not([data-disabled],:disabled)){background-color:var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_f6645d97:hover:where(:not([data-disabled],:disabled)),[data-mantine-color-scheme=dark] .m_2351eeb0:hover:where(:not([data-disabled],:disabled)){background-color:var(--mantine-color-dark-5)}}@media (hover: none){[data-mantine-color-scheme=light] .m_f6645d97:active:where(:not([data-disabled],:disabled)),[data-mantine-color-scheme=light] .m_2351eeb0:active:where(:not([data-disabled],:disabled)){background-color:var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_f6645d97:active:where(:not([data-disabled],:disabled)),[data-mantine-color-scheme=dark] .m_2351eeb0:active:where(:not([data-disabled],:disabled)){background-color:var(--mantine-color-dark-5)}}.m_f6645d97:where(:disabled,[data-disabled]),.m_2351eeb0:where(:disabled,[data-disabled]){opacity:.2;cursor:not-allowed}.m_2351eeb0{width:var(--dch-control-size)}.m_f6645d97{flex:1;font-size:var(--dch-fz, var(--mantine-font-size-sm));font-weight:500;text-transform:capitalize}.m_367dc749{width:60%;height:60%}.m_367dc749:where([data-direction=next]){transform:rotate(270deg)}:where([dir=rtl]) .m_367dc749:where([data-direction=next]){transform:rotate(90deg)}.m_367dc749:where([data-direction=previous]){transform:rotate(90deg)}:where([dir=rtl]) .m_367dc749:where([data-direction=previous]){transform:rotate(270deg)}.m_30b26e33{display:flex;gap:var(--mantine-spacing-md)}.m_6fa5e2aa{cursor:pointer;line-height:unset}.m_6fa5e2aa:where([data-read-only]){cursor:default}.m_208d2562{display:flex;align-items:stretch;margin-top:var(--mantine-spacing-md)}.m_62ee059{flex:1;margin-inline-end:var(--mantine-spacing-md)}._nav_mbz2l_1{height:64px;margin-top:20px}@media (max-width: 900px):{._nav_mbz2l_1{max-width:100%;min-width:100%;width:100%}}._nav_mbz2l_1{gap:2rem;align-items:"center"}._wrapper_mbz2l_20{max-width:900px;border-radius:8px;margin:10px auto 0}._maincontainer_mbz2l_31{display:flex;align-items:center;justify-content:space-between;flex-direction:row}@media (max-width: 500px){._network_mbz2l_42{visibility:hidden}}._buttonContainer_mbz2l_49{width:30px;height:30px;padding:2px;border-radius:4px,}._container_mbz2l_59{padding-left:20px;padding-right:20px;display:flex;align-items:center;justify-content:center;flex-direction:row}._mode_mbz2l_68{display:"flex";align-items:"center";justify-content:"center";flex-direction:"row"}._root_mbz2l_78{position:"relative"}._icon_mbz2l_85{pointer-events:"none";position:"absolute";z-index:1;top:3}._iconLight_mbz2l_92{left:4}._iconDark_mbz2l_97{right:4}._homeContainer_4uavj_2{max-width:500px;margin:0 auto}._avatar_4uavj_10{height:200px;width:200px}._avatarContainer_4uavj_17{display:flex;align-items:center;margin:20px;justify-content:center;flex-direction:row}._safe_4uavj_26{width:130px;margin:20px}._safeContainer_4uavj_33{display:flex;align-items:center;justify-content:center;flex-direction:column}._formContainer_4uavj_41{border-radius:12px;border:0px solid #4a4a4a;padding:80px}._heading_4uavj_48{font-size:43px;background:#00ff00;background:-webkit-linear-gradient(to left,#00c6ff 0%,#0072ff 100%);background:-moz-linear-gradient(to left,#00c6ff 0%,#0072ff 100%);background:linear-gradient(to left,#00c6ff 0%,#0072ff 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-align:center;font-weight:700;margin-bottom:0}._actions_4uavj_61{margin-top:20px;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:20px;margin-bottom:20px}._links_4uavj_71{margin-top:0;font-size:35px;text-align:center;font-weight:700;color:var(--mantine-color-gray-7)}[data-mantine-color-scheme=dark] ._links_4uavj_71{color:var(--mantine-color-white-2)}._subHeading_4uavj_79{padding-top:15px;font-size:16px;text-align:center}._inputContainer_4uavj_85{display:flex;flex-direction:column;gap:10px;margin-top:20px}._selectGroup_4uavj_96{display:flex;align-items:center;justify-content:center}._btn_4uavj_102{background-image:linear-gradient(to right,#00c6ff 0%,#0072ff 51%,#610ad3 100%);transition:.5s;background-size:200% auto;color:#fff}._btn_4uavj_102:hover{background-position:right center;background-image:linear-gradient(to right,#0072ff 0%,#00c6ff 51%,#610ad3 100%);text-decoration:none}._helperText_4uavj_120{font-size:16px}._mode_4uavj_124{padding-left:20px;display:"flex";align-items:"center";justify-content:"center";flex-direction:"row"}._successContainer_4uavj_134{width:600px;margin:80px auto 0;border-radius:12px;border:0px solid #4a4a4a;background-color:#fff;box-shadow:0 1px 2px #1018280d}._network_4uavj_144{width:100%;height:40px;margin-left:5px}._copyContainer_4uavj_153{display:flex;align-items:center;gap:20px}._goBack_4uavj_159{margin-top:20px}._input_4uavj_85{width:100%;cursor:pointer}@media screen and (max-width: 600px){._successContainer_4uavj_134{width:100%}._copyContainer_4uavj_153{flex-direction:column}._input_4uavj_85{width:100%;cursor:pointer}._btn_4uavj_102{width:100%}}._accountContainer_114lp_3{max-width:500px;margin:80px auto 0;border-radius:12px;border:0px solid #4a4a4a;background-color:#fff d}._formContainer_114lp_15{padding:20px;display:flex;align-items:center;justify-content:center;flex-direction:column}._avatarContainer_114lp_24{display:flex;align-items:center;justify-content:center;flex-direction:column}._balance_114lp_32{display:flex;font-size:30px;font-weight:700;align-items:center;justify-content:center}._avatar_114lp_24{height:60px;width:60px;margin-top:20px;margin-bottom:20px;border-radius:50%}._heading_114lp_50{font-size:40px;background:#00ff00;background:-webkit-linear-gradient(to left,#00c6ff 0%,#0072ff 100%);background:-moz-linear-gradient(to left,#00c6ff 0%,#0072ff 100%);background:linear-gradient(to left,#00c6ff 0%,#0072ff 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-align:center;font-weight:700;margin-bottom:0}._btn_114lp_64{background-image:linear-gradient(to right,#00c6ff 0%,#0072ff 51%,#610ad3 100%);transition:.5s;background-size:200% auto;color:#fff}._btn_114lp_64:hover{background-position:right center;background-image:linear-gradient(to right,#0072ff 0%,#00c6ff 51%,#610ad3 100%);text-decoration:none}._actionsContainer_114lp_78{display:flex;align-items:center;justify-content:center;flex-direction:column}._subHeading_114lp_86{padding-top:15px;font-size:16px;font-weight:600;text-align:center}._normaltext_114lp_93{padding-top:15px;font-size:16px;text-align:center}._card_114lp_99{position:relative;overflow:visible;padding:var(--mantine-spacing-xl)}._footerHeading_114lp_108{font-size:14px;text-align:center}._balanceContainer_114lp_113{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:5px}._actions_114lp_78{margin-top:20px;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:20px;margin-bottom:20px}._inputContainer_114lp_131{justify-content:center;gap:20px;display:flex;flex-direction:column;margin-bottom:20px}._accountInputContainer_114lp_141{display:flex;flex-direction:column} +*,*:before,*:after{box-sizing:border-box}input,button,textarea,select{font:inherit}button,select{text-transform:none}body{margin:0;font-family:var(--mantine-font-family);font-size:var(--mantine-font-size-md);line-height:var(--mantine-line-height);background-color:var(--mantine-color-body);color:var(--mantine-color-text);-webkit-font-smoothing:var(--mantine-webkit-font-smoothing);-moz-osx-font-smoothing:var(--mantine-moz-font-smoothing)}@media screen and (max-device-width: 31.25em){body{-webkit-text-size-adjust:100%}}@media (prefers-reduced-motion: reduce){[data-respect-reduced-motion] [data-reduce-motion]{transition:none;animation:none}}[data-mantine-color-scheme=light] .mantine-light-hidden,[data-mantine-color-scheme=dark] .mantine-dark-hidden{display:none}.mantine-focus-auto:focus-visible{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.mantine-focus-always:focus{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.mantine-focus-never:focus{outline:none}.mantine-active:active{transform:translateY(calc(.0625rem * var(--mantine-scale)))}:where([dir=rtl]) .mantine-rotate-rtl{transform:rotate(180deg)}:root{color-scheme:var(--mantine-color-scheme);--mantine-z-index-app: 100;--mantine-z-index-modal: 200;--mantine-z-index-popover: 300;--mantine-z-index-overlay: 400;--mantine-z-index-max: 9999;--mantine-scale: 1;--mantine-cursor-type: default;--mantine-webkit-font-smoothing: antialiased;--mantine-color-scheme: light dark;--mantine-moz-font-smoothing: grayscale;--mantine-color-white: #fff;--mantine-color-black: #000;--mantine-line-height: 1.55;--mantine-font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;--mantine-font-family-monospace: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;--mantine-font-family-headings: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;--mantine-heading-font-weight: 700;--mantine-radius-default: calc(.25rem * var(--mantine-scale));--mantine-primary-color-0: var(--mantine-color-blue-0);--mantine-primary-color-1: var(--mantine-color-blue-1);--mantine-primary-color-2: var(--mantine-color-blue-2);--mantine-primary-color-3: var(--mantine-color-blue-3);--mantine-primary-color-4: var(--mantine-color-blue-4);--mantine-primary-color-5: var(--mantine-color-blue-5);--mantine-primary-color-6: var(--mantine-color-blue-6);--mantine-primary-color-7: var(--mantine-color-blue-7);--mantine-primary-color-8: var(--mantine-color-blue-8);--mantine-primary-color-9: var(--mantine-color-blue-9);--mantine-primary-color-filled: var(--mantine-color-blue-filled);--mantine-primary-color-filled-hover: var(--mantine-color-blue-filled-hover);--mantine-primary-color-light: var(--mantine-color-blue-light);--mantine-primary-color-light-hover: var(--mantine-color-blue-light-hover);--mantine-primary-color-light-color: var(--mantine-color-blue-light-color);--mantine-breakpoint-xs: 36em;--mantine-breakpoint-sm: 48em;--mantine-breakpoint-md: 62em;--mantine-breakpoint-lg: 75em;--mantine-breakpoint-xl: 88em;--mantine-spacing-xs: calc(.625rem * var(--mantine-scale));--mantine-spacing-sm: calc(.75rem * var(--mantine-scale));--mantine-spacing-md: calc(1rem * var(--mantine-scale));--mantine-spacing-lg: calc(1.25rem * var(--mantine-scale));--mantine-spacing-xl: calc(2rem * var(--mantine-scale));--mantine-font-size-xs: calc(.75rem * var(--mantine-scale));--mantine-font-size-sm: calc(.875rem * var(--mantine-scale));--mantine-font-size-md: calc(1rem * var(--mantine-scale));--mantine-font-size-lg: calc(1.125rem * var(--mantine-scale));--mantine-font-size-xl: calc(1.25rem * var(--mantine-scale));--mantine-line-height-xs: 1.4;--mantine-line-height-sm: 1.45;--mantine-line-height-md: 1.55;--mantine-line-height-lg: 1.6;--mantine-line-height-xl: 1.65;--mantine-shadow-xs: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), 0 calc(.0625rem * var(--mantine-scale)) calc(.125rem * var(--mantine-scale)) rgba(0, 0, 0, .1);--mantine-shadow-sm: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(.625rem * var(--mantine-scale)) calc(.9375rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(.4375rem * var(--mantine-scale)) calc(.4375rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale));--mantine-shadow-md: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(1.25rem * var(--mantine-scale)) calc(1.5625rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(.625rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale));--mantine-shadow-lg: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(1.75rem * var(--mantine-scale)) calc(1.4375rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(.75rem * var(--mantine-scale)) calc(.75rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale));--mantine-shadow-xl: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(2.25rem * var(--mantine-scale)) calc(1.75rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(1.0625rem * var(--mantine-scale)) calc(1.0625rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale));--mantine-radius-xs: calc(.125rem * var(--mantine-scale));--mantine-radius-sm: calc(.25rem * var(--mantine-scale));--mantine-radius-md: calc(.5rem * var(--mantine-scale));--mantine-radius-lg: calc(1rem * var(--mantine-scale));--mantine-radius-xl: calc(2rem * var(--mantine-scale));--mantine-color-dark-0: #c9c9c9;--mantine-color-dark-1: #b8b8b8;--mantine-color-dark-2: #828282;--mantine-color-dark-3: #696969;--mantine-color-dark-4: #424242;--mantine-color-dark-5: #3b3b3b;--mantine-color-dark-6: #2e2e2e;--mantine-color-dark-7: #242424;--mantine-color-dark-8: #1f1f1f;--mantine-color-dark-9: #141414;--mantine-color-gray-0: #f8f9fa;--mantine-color-gray-1: #f1f3f5;--mantine-color-gray-2: #e9ecef;--mantine-color-gray-3: #dee2e6;--mantine-color-gray-4: #ced4da;--mantine-color-gray-5: #adb5bd;--mantine-color-gray-6: #868e96;--mantine-color-gray-7: #495057;--mantine-color-gray-8: #343a40;--mantine-color-gray-9: #212529;--mantine-color-red-0: #fff5f5;--mantine-color-red-1: #ffe3e3;--mantine-color-red-2: #ffc9c9;--mantine-color-red-3: #ffa8a8;--mantine-color-red-4: #ff8787;--mantine-color-red-5: #ff6b6b;--mantine-color-red-6: #fa5252;--mantine-color-red-7: #f03e3e;--mantine-color-red-8: #e03131;--mantine-color-red-9: #c92a2a;--mantine-color-pink-0: #fff0f6;--mantine-color-pink-1: #ffdeeb;--mantine-color-pink-2: #fcc2d7;--mantine-color-pink-3: #faa2c1;--mantine-color-pink-4: #f783ac;--mantine-color-pink-5: #f06595;--mantine-color-pink-6: #e64980;--mantine-color-pink-7: #d6336c;--mantine-color-pink-8: #c2255c;--mantine-color-pink-9: #a61e4d;--mantine-color-grape-0: #f8f0fc;--mantine-color-grape-1: #f3d9fa;--mantine-color-grape-2: #eebefa;--mantine-color-grape-3: #e599f7;--mantine-color-grape-4: #da77f2;--mantine-color-grape-5: #cc5de8;--mantine-color-grape-6: #be4bdb;--mantine-color-grape-7: #ae3ec9;--mantine-color-grape-8: #9c36b5;--mantine-color-grape-9: #862e9c;--mantine-color-violet-0: #f3f0ff;--mantine-color-violet-1: #e5dbff;--mantine-color-violet-2: #d0bfff;--mantine-color-violet-3: #b197fc;--mantine-color-violet-4: #9775fa;--mantine-color-violet-5: #845ef7;--mantine-color-violet-6: #7950f2;--mantine-color-violet-7: #7048e8;--mantine-color-violet-8: #6741d9;--mantine-color-violet-9: #5f3dc4;--mantine-color-indigo-0: #edf2ff;--mantine-color-indigo-1: #dbe4ff;--mantine-color-indigo-2: #bac8ff;--mantine-color-indigo-3: #91a7ff;--mantine-color-indigo-4: #748ffc;--mantine-color-indigo-5: #5c7cfa;--mantine-color-indigo-6: #4c6ef5;--mantine-color-indigo-7: #4263eb;--mantine-color-indigo-8: #3b5bdb;--mantine-color-indigo-9: #364fc7;--mantine-color-blue-0: #e7f5ff;--mantine-color-blue-1: #d0ebff;--mantine-color-blue-2: #a5d8ff;--mantine-color-blue-3: #74c0fc;--mantine-color-blue-4: #4dabf7;--mantine-color-blue-5: #339af0;--mantine-color-blue-6: #228be6;--mantine-color-blue-7: #1c7ed6;--mantine-color-blue-8: #1971c2;--mantine-color-blue-9: #1864ab;--mantine-color-cyan-0: #e3fafc;--mantine-color-cyan-1: #c5f6fa;--mantine-color-cyan-2: #99e9f2;--mantine-color-cyan-3: #66d9e8;--mantine-color-cyan-4: #3bc9db;--mantine-color-cyan-5: #22b8cf;--mantine-color-cyan-6: #15aabf;--mantine-color-cyan-7: #1098ad;--mantine-color-cyan-8: #0c8599;--mantine-color-cyan-9: #0b7285;--mantine-color-teal-0: #e6fcf5;--mantine-color-teal-1: #c3fae8;--mantine-color-teal-2: #96f2d7;--mantine-color-teal-3: #63e6be;--mantine-color-teal-4: #38d9a9;--mantine-color-teal-5: #20c997;--mantine-color-teal-6: #12b886;--mantine-color-teal-7: #0ca678;--mantine-color-teal-8: #099268;--mantine-color-teal-9: #087f5b;--mantine-color-green-0: #ebfbee;--mantine-color-green-1: #d3f9d8;--mantine-color-green-2: #b2f2bb;--mantine-color-green-3: #8ce99a;--mantine-color-green-4: #69db7c;--mantine-color-green-5: #51cf66;--mantine-color-green-6: #40c057;--mantine-color-green-7: #37b24d;--mantine-color-green-8: #2f9e44;--mantine-color-green-9: #2b8a3e;--mantine-color-lime-0: #f4fce3;--mantine-color-lime-1: #e9fac8;--mantine-color-lime-2: #d8f5a2;--mantine-color-lime-3: #c0eb75;--mantine-color-lime-4: #a9e34b;--mantine-color-lime-5: #94d82d;--mantine-color-lime-6: #82c91e;--mantine-color-lime-7: #74b816;--mantine-color-lime-8: #66a80f;--mantine-color-lime-9: #5c940d;--mantine-color-yellow-0: #fff9db;--mantine-color-yellow-1: #fff3bf;--mantine-color-yellow-2: #ffec99;--mantine-color-yellow-3: #ffe066;--mantine-color-yellow-4: #ffd43b;--mantine-color-yellow-5: #fcc419;--mantine-color-yellow-6: #fab005;--mantine-color-yellow-7: #f59f00;--mantine-color-yellow-8: #f08c00;--mantine-color-yellow-9: #e67700;--mantine-color-orange-0: #fff4e6;--mantine-color-orange-1: #ffe8cc;--mantine-color-orange-2: #ffd8a8;--mantine-color-orange-3: #ffc078;--mantine-color-orange-4: #ffa94d;--mantine-color-orange-5: #ff922b;--mantine-color-orange-6: #fd7e14;--mantine-color-orange-7: #f76707;--mantine-color-orange-8: #e8590c;--mantine-color-orange-9: #d9480f;--mantine-h1-font-size: calc(2.125rem * var(--mantine-scale));--mantine-h1-line-height: 1.3;--mantine-h1-font-weight: 700;--mantine-h2-font-size: calc(1.625rem * var(--mantine-scale));--mantine-h2-line-height: 1.35;--mantine-h2-font-weight: 700;--mantine-h3-font-size: calc(1.375rem * var(--mantine-scale));--mantine-h3-line-height: 1.4;--mantine-h3-font-weight: 700;--mantine-h4-font-size: calc(1.125rem * var(--mantine-scale));--mantine-h4-line-height: 1.45;--mantine-h4-font-weight: 700;--mantine-h5-font-size: calc(1rem * var(--mantine-scale));--mantine-h5-line-height: 1.5;--mantine-h5-font-weight: 700;--mantine-h6-font-size: calc(.875rem * var(--mantine-scale));--mantine-h6-line-height: 1.5;--mantine-h6-font-weight: 700}:root[data-mantine-color-scheme=dark]{--mantine-color-scheme: dark;--mantine-primary-color-contrast: var(--mantine-color-white);--mantine-color-bright: var(--mantine-color-white);--mantine-color-text: var(--mantine-color-dark-0);--mantine-color-body: var(--mantine-color-dark-7);--mantine-color-error: var(--mantine-color-red-8);--mantine-color-placeholder: var(--mantine-color-dark-3);--mantine-color-anchor: var(--mantine-color-blue-4);--mantine-color-default: var(--mantine-color-dark-6);--mantine-color-default-hover: var(--mantine-color-dark-5);--mantine-color-default-color: var(--mantine-color-white);--mantine-color-default-border: var(--mantine-color-dark-4);--mantine-color-dimmed: var(--mantine-color-dark-2);--mantine-color-dark-text: var(--mantine-color-dark-4);--mantine-color-dark-filled: var(--mantine-color-dark-8);--mantine-color-dark-filled-hover: var(--mantine-color-dark-7);--mantine-color-dark-light: rgba(36, 36, 36, .15);--mantine-color-dark-light-hover: rgba(36, 36, 36, .2);--mantine-color-dark-light-color: var(--mantine-color-dark-3);--mantine-color-dark-outline: var(--mantine-color-dark-4);--mantine-color-dark-outline-hover: rgba(36, 36, 36, .05);--mantine-color-gray-text: var(--mantine-color-gray-4);--mantine-color-gray-filled: var(--mantine-color-gray-8);--mantine-color-gray-filled-hover: var(--mantine-color-gray-9);--mantine-color-gray-light: rgba(134, 142, 150, .15);--mantine-color-gray-light-hover: rgba(134, 142, 150, .2);--mantine-color-gray-light-color: var(--mantine-color-gray-3);--mantine-color-gray-outline: var(--mantine-color-gray-4);--mantine-color-gray-outline-hover: rgba(206, 212, 218, .05);--mantine-color-red-text: var(--mantine-color-red-4);--mantine-color-red-filled: var(--mantine-color-red-8);--mantine-color-red-filled-hover: var(--mantine-color-red-9);--mantine-color-red-light: rgba(250, 82, 82, .15);--mantine-color-red-light-hover: rgba(250, 82, 82, .2);--mantine-color-red-light-color: var(--mantine-color-red-3);--mantine-color-red-outline: var(--mantine-color-red-4);--mantine-color-red-outline-hover: rgba(255, 135, 135, .05);--mantine-color-pink-text: var(--mantine-color-pink-4);--mantine-color-pink-filled: var(--mantine-color-pink-8);--mantine-color-pink-filled-hover: var(--mantine-color-pink-9);--mantine-color-pink-light: rgba(230, 73, 128, .15);--mantine-color-pink-light-hover: rgba(230, 73, 128, .2);--mantine-color-pink-light-color: var(--mantine-color-pink-3);--mantine-color-pink-outline: var(--mantine-color-pink-4);--mantine-color-pink-outline-hover: rgba(247, 131, 172, .05);--mantine-color-grape-text: var(--mantine-color-grape-4);--mantine-color-grape-filled: var(--mantine-color-grape-8);--mantine-color-grape-filled-hover: var(--mantine-color-grape-9);--mantine-color-grape-light: rgba(190, 75, 219, .15);--mantine-color-grape-light-hover: rgba(190, 75, 219, .2);--mantine-color-grape-light-color: var(--mantine-color-grape-3);--mantine-color-grape-outline: var(--mantine-color-grape-4);--mantine-color-grape-outline-hover: rgba(218, 119, 242, .05);--mantine-color-violet-text: var(--mantine-color-violet-4);--mantine-color-violet-filled: var(--mantine-color-violet-8);--mantine-color-violet-filled-hover: var(--mantine-color-violet-9);--mantine-color-violet-light: rgba(121, 80, 242, .15);--mantine-color-violet-light-hover: rgba(121, 80, 242, .2);--mantine-color-violet-light-color: var(--mantine-color-violet-3);--mantine-color-violet-outline: var(--mantine-color-violet-4);--mantine-color-violet-outline-hover: rgba(151, 117, 250, .05);--mantine-color-indigo-text: var(--mantine-color-indigo-4);--mantine-color-indigo-filled: var(--mantine-color-indigo-8);--mantine-color-indigo-filled-hover: var(--mantine-color-indigo-9);--mantine-color-indigo-light: rgba(76, 110, 245, .15);--mantine-color-indigo-light-hover: rgba(76, 110, 245, .2);--mantine-color-indigo-light-color: var(--mantine-color-indigo-3);--mantine-color-indigo-outline: var(--mantine-color-indigo-4);--mantine-color-indigo-outline-hover: rgba(116, 143, 252, .05);--mantine-color-blue-text: var(--mantine-color-blue-4);--mantine-color-blue-filled: var(--mantine-color-blue-8);--mantine-color-blue-filled-hover: var(--mantine-color-blue-9);--mantine-color-blue-light: rgba(34, 139, 230, .15);--mantine-color-blue-light-hover: rgba(34, 139, 230, .2);--mantine-color-blue-light-color: var(--mantine-color-blue-3);--mantine-color-blue-outline: var(--mantine-color-blue-4);--mantine-color-blue-outline-hover: rgba(77, 171, 247, .05);--mantine-color-cyan-text: var(--mantine-color-cyan-4);--mantine-color-cyan-filled: var(--mantine-color-cyan-8);--mantine-color-cyan-filled-hover: var(--mantine-color-cyan-9);--mantine-color-cyan-light: rgba(21, 170, 191, .15);--mantine-color-cyan-light-hover: rgba(21, 170, 191, .2);--mantine-color-cyan-light-color: var(--mantine-color-cyan-3);--mantine-color-cyan-outline: var(--mantine-color-cyan-4);--mantine-color-cyan-outline-hover: rgba(59, 201, 219, .05);--mantine-color-teal-text: var(--mantine-color-teal-4);--mantine-color-teal-filled: var(--mantine-color-teal-8);--mantine-color-teal-filled-hover: var(--mantine-color-teal-9);--mantine-color-teal-light: rgba(18, 184, 134, .15);--mantine-color-teal-light-hover: rgba(18, 184, 134, .2);--mantine-color-teal-light-color: var(--mantine-color-teal-3);--mantine-color-teal-outline: var(--mantine-color-teal-4);--mantine-color-teal-outline-hover: rgba(56, 217, 169, .05);--mantine-color-green-text: var(--mantine-color-green-4);--mantine-color-green-filled: var(--mantine-color-green-8);--mantine-color-green-filled-hover: var(--mantine-color-green-9);--mantine-color-green-light: rgba(64, 192, 87, .15);--mantine-color-green-light-hover: rgba(64, 192, 87, .2);--mantine-color-green-light-color: var(--mantine-color-green-3);--mantine-color-green-outline: var(--mantine-color-green-4);--mantine-color-green-outline-hover: rgba(105, 219, 124, .05);--mantine-color-lime-text: var(--mantine-color-lime-4);--mantine-color-lime-filled: var(--mantine-color-lime-8);--mantine-color-lime-filled-hover: var(--mantine-color-lime-9);--mantine-color-lime-light: rgba(130, 201, 30, .15);--mantine-color-lime-light-hover: rgba(130, 201, 30, .2);--mantine-color-lime-light-color: var(--mantine-color-lime-3);--mantine-color-lime-outline: var(--mantine-color-lime-4);--mantine-color-lime-outline-hover: rgba(169, 227, 75, .05);--mantine-color-yellow-text: var(--mantine-color-yellow-4);--mantine-color-yellow-filled: var(--mantine-color-yellow-8);--mantine-color-yellow-filled-hover: var(--mantine-color-yellow-9);--mantine-color-yellow-light: rgba(250, 176, 5, .15);--mantine-color-yellow-light-hover: rgba(250, 176, 5, .2);--mantine-color-yellow-light-color: var(--mantine-color-yellow-3);--mantine-color-yellow-outline: var(--mantine-color-yellow-4);--mantine-color-yellow-outline-hover: rgba(255, 212, 59, .05);--mantine-color-orange-text: var(--mantine-color-orange-4);--mantine-color-orange-filled: var(--mantine-color-orange-8);--mantine-color-orange-filled-hover: var(--mantine-color-orange-9);--mantine-color-orange-light: rgba(253, 126, 20, .15);--mantine-color-orange-light-hover: rgba(253, 126, 20, .2);--mantine-color-orange-light-color: var(--mantine-color-orange-3);--mantine-color-orange-outline: var(--mantine-color-orange-4);--mantine-color-orange-outline-hover: rgba(255, 169, 77, .05)}:root[data-mantine-color-scheme=light]{--mantine-color-scheme: light;--mantine-color-bright: var(--mantine-color-black);--mantine-color-text: var(--mantine-color-black);--mantine-color-body: var(--mantine-color-white);--mantine-primary-color-contrast: var(--mantine-color-white);--mantine-color-error: var(--mantine-color-red-6);--mantine-color-placeholder: var(--mantine-color-gray-5);--mantine-color-anchor: var(--mantine-primary-color-filled);--mantine-color-default: var(--mantine-color-white);--mantine-color-default-hover: var(--mantine-color-gray-0);--mantine-color-default-color: var(--mantine-color-gray-9);--mantine-color-default-border: var(--mantine-color-gray-4);--mantine-color-dimmed: var(--mantine-color-gray-6);--mantine-color-dark-text: var(--mantine-color-dark-filled);--mantine-color-dark-filled: var(--mantine-color-dark-6);--mantine-color-dark-filled-hover: var(--mantine-color-dark-7);--mantine-color-dark-light: rgba(56, 56, 56, .1);--mantine-color-dark-light-hover: rgba(56, 56, 56, .12);--mantine-color-dark-light-color: var(--mantine-color-dark-6);--mantine-color-dark-outline: var(--mantine-color-dark-6);--mantine-color-dark-outline-hover: rgba(56, 56, 56, .05);--mantine-color-gray-text: var(--mantine-color-gray-filled);--mantine-color-gray-filled: var(--mantine-color-gray-6);--mantine-color-gray-filled-hover: var(--mantine-color-gray-7);--mantine-color-gray-light: rgba(134, 142, 150, .1);--mantine-color-gray-light-hover: rgba(134, 142, 150, .12);--mantine-color-gray-light-color: var(--mantine-color-gray-6);--mantine-color-gray-outline: var(--mantine-color-gray-6);--mantine-color-gray-outline-hover: rgba(134, 142, 150, .05);--mantine-color-red-text: var(--mantine-color-red-filled);--mantine-color-red-filled: var(--mantine-color-red-6);--mantine-color-red-filled-hover: var(--mantine-color-red-7);--mantine-color-red-light: rgba(250, 82, 82, .1);--mantine-color-red-light-hover: rgba(250, 82, 82, .12);--mantine-color-red-light-color: var(--mantine-color-red-6);--mantine-color-red-outline: var(--mantine-color-red-6);--mantine-color-red-outline-hover: rgba(250, 82, 82, .05);--mantine-color-pink-text: var(--mantine-color-pink-filled);--mantine-color-pink-filled: var(--mantine-color-pink-6);--mantine-color-pink-filled-hover: var(--mantine-color-pink-7);--mantine-color-pink-light: rgba(230, 73, 128, .1);--mantine-color-pink-light-hover: rgba(230, 73, 128, .12);--mantine-color-pink-light-color: var(--mantine-color-pink-6);--mantine-color-pink-outline: var(--mantine-color-pink-6);--mantine-color-pink-outline-hover: rgba(230, 73, 128, .05);--mantine-color-grape-text: var(--mantine-color-grape-filled);--mantine-color-grape-filled: var(--mantine-color-grape-6);--mantine-color-grape-filled-hover: var(--mantine-color-grape-7);--mantine-color-grape-light: rgba(190, 75, 219, .1);--mantine-color-grape-light-hover: rgba(190, 75, 219, .12);--mantine-color-grape-light-color: var(--mantine-color-grape-6);--mantine-color-grape-outline: var(--mantine-color-grape-6);--mantine-color-grape-outline-hover: rgba(190, 75, 219, .05);--mantine-color-violet-text: var(--mantine-color-violet-filled);--mantine-color-violet-filled: var(--mantine-color-violet-6);--mantine-color-violet-filled-hover: var(--mantine-color-violet-7);--mantine-color-violet-light: rgba(121, 80, 242, .1);--mantine-color-violet-light-hover: rgba(121, 80, 242, .12);--mantine-color-violet-light-color: var(--mantine-color-violet-6);--mantine-color-violet-outline: var(--mantine-color-violet-6);--mantine-color-violet-outline-hover: rgba(121, 80, 242, .05);--mantine-color-indigo-text: var(--mantine-color-indigo-filled);--mantine-color-indigo-filled: var(--mantine-color-indigo-6);--mantine-color-indigo-filled-hover: var(--mantine-color-indigo-7);--mantine-color-indigo-light: rgba(76, 110, 245, .1);--mantine-color-indigo-light-hover: rgba(76, 110, 245, .12);--mantine-color-indigo-light-color: var(--mantine-color-indigo-6);--mantine-color-indigo-outline: var(--mantine-color-indigo-6);--mantine-color-indigo-outline-hover: rgba(76, 110, 245, .05);--mantine-color-blue-text: var(--mantine-color-blue-filled);--mantine-color-blue-filled: var(--mantine-color-blue-6);--mantine-color-blue-filled-hover: var(--mantine-color-blue-7);--mantine-color-blue-light: rgba(34, 139, 230, .1);--mantine-color-blue-light-hover: rgba(34, 139, 230, .12);--mantine-color-blue-light-color: var(--mantine-color-blue-6);--mantine-color-blue-outline: var(--mantine-color-blue-6);--mantine-color-blue-outline-hover: rgba(34, 139, 230, .05);--mantine-color-cyan-text: var(--mantine-color-cyan-filled);--mantine-color-cyan-filled: var(--mantine-color-cyan-6);--mantine-color-cyan-filled-hover: var(--mantine-color-cyan-7);--mantine-color-cyan-light: rgba(21, 170, 191, .1);--mantine-color-cyan-light-hover: rgba(21, 170, 191, .12);--mantine-color-cyan-light-color: var(--mantine-color-cyan-6);--mantine-color-cyan-outline: var(--mantine-color-cyan-6);--mantine-color-cyan-outline-hover: rgba(21, 170, 191, .05);--mantine-color-teal-text: var(--mantine-color-teal-filled);--mantine-color-teal-filled: var(--mantine-color-teal-6);--mantine-color-teal-filled-hover: var(--mantine-color-teal-7);--mantine-color-teal-light: rgba(18, 184, 134, .1);--mantine-color-teal-light-hover: rgba(18, 184, 134, .12);--mantine-color-teal-light-color: var(--mantine-color-teal-6);--mantine-color-teal-outline: var(--mantine-color-teal-6);--mantine-color-teal-outline-hover: rgba(18, 184, 134, .05);--mantine-color-green-text: var(--mantine-color-green-filled);--mantine-color-green-filled: var(--mantine-color-green-6);--mantine-color-green-filled-hover: var(--mantine-color-green-7);--mantine-color-green-light: rgba(64, 192, 87, .1);--mantine-color-green-light-hover: rgba(64, 192, 87, .12);--mantine-color-green-light-color: var(--mantine-color-green-6);--mantine-color-green-outline: var(--mantine-color-green-6);--mantine-color-green-outline-hover: rgba(64, 192, 87, .05);--mantine-color-lime-text: var(--mantine-color-lime-filled);--mantine-color-lime-filled: var(--mantine-color-lime-6);--mantine-color-lime-filled-hover: var(--mantine-color-lime-7);--mantine-color-lime-light: rgba(130, 201, 30, .1);--mantine-color-lime-light-hover: rgba(130, 201, 30, .12);--mantine-color-lime-light-color: var(--mantine-color-lime-6);--mantine-color-lime-outline: var(--mantine-color-lime-6);--mantine-color-lime-outline-hover: rgba(130, 201, 30, .05);--mantine-color-yellow-text: var(--mantine-color-yellow-filled);--mantine-color-yellow-filled: var(--mantine-color-yellow-6);--mantine-color-yellow-filled-hover: var(--mantine-color-yellow-7);--mantine-color-yellow-light: rgba(250, 176, 5, .1);--mantine-color-yellow-light-hover: rgba(250, 176, 5, .12);--mantine-color-yellow-light-color: var(--mantine-color-yellow-6);--mantine-color-yellow-outline: var(--mantine-color-yellow-6);--mantine-color-yellow-outline-hover: rgba(250, 176, 5, .05);--mantine-color-orange-text: var(--mantine-color-orange-filled);--mantine-color-orange-filled: var(--mantine-color-orange-6);--mantine-color-orange-filled-hover: var(--mantine-color-orange-7);--mantine-color-orange-light: rgba(253, 126, 20, .1);--mantine-color-orange-light-hover: rgba(253, 126, 20, .12);--mantine-color-orange-light-color: var(--mantine-color-orange-6);--mantine-color-orange-outline: var(--mantine-color-orange-6);--mantine-color-orange-outline-hover: rgba(253, 126, 20, .05)}.m_d57069b5{--scrollarea-scrollbar-size: calc(.75rem * var(--mantine-scale));position:relative;overflow:hidden}.m_c0783ff9{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;width:100%;height:100%}.m_c0783ff9::-webkit-scrollbar{display:none}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=y]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=y]){padding-inline-end:var(--scrollarea-scrollbar-size);padding-inline-start:unset}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=x]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=x]){padding-bottom:var(--scrollarea-scrollbar-size)}.m_f8f631dd{min-width:100%;display:table}.m_c44ba933{-webkit-user-select:none;user-select:none;touch-action:none;box-sizing:border-box;transition:background-color .15s ease,opacity .15s ease;padding:calc(var(--scrollarea-scrollbar-size) / 5);display:flex;background-color:transparent;flex-direction:row}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_c44ba933:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=light]) .m_c44ba933:hover>.m_d8b5e363{background-color:#00000080}:where([data-mantine-color-scheme=dark]) .m_c44ba933:hover{background-color:var(--mantine-color-dark-8)}:where([data-mantine-color-scheme=dark]) .m_c44ba933:hover>.m_d8b5e363{background-color:#ffffff80}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_c44ba933:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=light]) .m_c44ba933:active>.m_d8b5e363{background-color:#00000080}:where([data-mantine-color-scheme=dark]) .m_c44ba933:active{background-color:var(--mantine-color-dark-8)}:where([data-mantine-color-scheme=dark]) .m_c44ba933:active>.m_d8b5e363{background-color:#ffffff80}}.m_c44ba933:where([data-hidden],[data-state=hidden]){display:none}.m_c44ba933:where([data-orientation=vertical]){width:var(--scrollarea-scrollbar-size);top:0;bottom:var(--sa-corner-width);inset-inline-end:0}.m_c44ba933:where([data-orientation=horizontal]){height:var(--scrollarea-scrollbar-size);flex-direction:column;bottom:0;inset-inline-start:0;inset-inline-end:var(--sa-corner-width)}.m_d8b5e363{flex:1;border-radius:var(--scrollarea-scrollbar-size);position:relative;transition:background-color .15s ease;overflow:hidden}.m_d8b5e363:before{content:'""';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-width:calc(2.75rem * var(--mantine-scale));min-height:calc(2.75rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_d8b5e363{background-color:#0006}:where([data-mantine-color-scheme=dark]) .m_d8b5e363{background-color:#fff6}.m_21657268{position:absolute;opacity:0;transition:opacity .15s ease;display:block;inset-inline-end:0;bottom:0}:where([data-mantine-color-scheme=light]) .m_21657268{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_21657268{background-color:var(--mantine-color-dark-8)}.m_21657268:where([data-hovered]){opacity:1}.m_21657268:where([data-hidden]){display:none}.m_87cf2631{background-color:transparent;cursor:pointer;border:0;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-size:var(--mantine-font-size-md);text-align:left;text-decoration:none;color:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent}:where([dir=rtl]) .m_87cf2631{text-align:right}.m_515a97f8{border:0;clip:rect(0 0 0 0);height:calc(.0625rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));margin:calc(-.0625rem * var(--mantine-scale));overflow:hidden;padding:0;position:absolute;white-space:nowrap}.m_1b7284a3{--paper-radius: var(--mantine-radius-default);outline:0;-webkit-tap-highlight-color:transparent;display:block;touch-action:manipulation;text-decoration:none;border-radius:var(--paper-radius);box-shadow:var(--paper-shadow);background-color:var(--mantine-color-body)}:where([data-mantine-color-scheme=light]) .m_1b7284a3:where([data-with-border]){border:1px solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_1b7284a3:where([data-with-border]){border:1px solid var(--mantine-color-dark-4)}.m_38a85659{position:absolute;border:1px solid var(--popover-border-color);padding:var(--mantine-spacing-sm) var(--mantine-spacing-md);box-shadow:var(--popover-shadow, none);border-radius:var(--popover-radius, var(--mantine-radius-default))}.m_38a85659:focus{outline:none}:where([data-mantine-color-scheme=light]) .m_38a85659{--popover-border-color: var(--mantine-color-gray-2);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_38a85659{--popover-border-color: var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}.m_a31dc6c1{background-color:inherit;border:1px solid var(--popover-border-color);z-index:1}.m_5ae2e3c{--loader-size-xs: calc(1.125rem * var(--mantine-scale));--loader-size-sm: calc(1.375rem * var(--mantine-scale));--loader-size-md: calc(2.25rem * var(--mantine-scale));--loader-size-lg: calc(2.75rem * var(--mantine-scale));--loader-size-xl: calc(3.625rem * var(--mantine-scale));--loader-size: var(--loader-size-md);--loader-color: var(--mantine-primary-color-filled)}@keyframes m_5d2b3b9d{0%{transform:scale(.6);opacity:0}50%,to{transform:scale(1)}}.m_7a2bd4cd{position:relative;width:var(--loader-size);height:var(--loader-size);display:flex;gap:calc(var(--loader-size) / 5)}.m_870bb79{flex:1;background:var(--loader-color);animation:m_5d2b3b9d 1.2s cubic-bezier(0,.5,.5,1) infinite;border-radius:calc(.125rem * var(--mantine-scale))}.m_870bb79:nth-of-type(1){animation-delay:-.24s}.m_870bb79:nth-of-type(2){animation-delay:-.12s}.m_870bb79:nth-of-type(3){animation-delay:0}@keyframes m_aac34a1{0%,to{transform:scale(1);opacity:1}50%{transform:scale(.6);opacity:.5}}.m_4e3f22d7{display:flex;justify-content:center;align-items:center;gap:calc(var(--loader-size) / 10);position:relative;width:var(--loader-size);height:var(--loader-size)}.m_870c4af{width:calc(var(--loader-size) / 3 - var(--loader-size) / 15);height:calc(var(--loader-size) / 3 - var(--loader-size) / 15);border-radius:50%;background:var(--loader-color);animation:m_aac34a1 .8s infinite linear}.m_870c4af:nth-child(2){animation-delay:.4s}@keyframes m_f8e89c4b{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.m_b34414df{display:inline-block;width:var(--loader-size);height:var(--loader-size)}.m_b34414df:after{content:"";display:block;width:var(--loader-size);height:var(--loader-size);border-radius:calc(625rem * var(--mantine-scale));border-width:calc(var(--loader-size) / 8);border-style:solid;border-color:var(--loader-color) var(--loader-color) var(--loader-color) transparent;animation:m_f8e89c4b 1.2s linear infinite}.m_8d3f4000{--ai-size-xs: calc(1.125rem * var(--mantine-scale));--ai-size-sm: calc(1.375rem * var(--mantine-scale));--ai-size-md: calc(1.75rem * var(--mantine-scale));--ai-size-lg: calc(2.125rem * var(--mantine-scale));--ai-size-xl: calc(2.75rem * var(--mantine-scale));--ai-size-input-xs: calc(1.875rem * var(--mantine-scale));--ai-size-input-sm: calc(2.25rem * var(--mantine-scale));--ai-size-input-md: calc(2.625rem * var(--mantine-scale));--ai-size-input-lg: calc(3.125rem * var(--mantine-scale));--ai-size-input-xl: calc(3.75rem * var(--mantine-scale));--ai-size: var(--ai-size-md);--ai-color: var(--mantine-color-white);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;-webkit-user-select:none;user-select:none;overflow:hidden;width:var(--ai-size);height:var(--ai-size);min-width:var(--ai-size);min-height:var(--ai-size);border-radius:var(--ai-radius, var(--mantine-radius-default));background:var(--ai-bg, var(--mantine-primary-color-filled));color:var(--ai-color, var(--mantine-color-white));border:var(--ai-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);cursor:pointer}@media (hover: hover){.m_8d3f4000:hover:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--ai-hover, var(--mantine-primary-color-filled-hover));color:var(--ai-hover-color, var(--ai-color))}}@media (hover: none){.m_8d3f4000:active:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--ai-hover, var(--mantine-primary-color-filled-hover));color:var(--ai-hover-color, var(--ai-color))}}.m_8d3f4000[data-loading]{cursor:not-allowed}.m_8d3f4000[data-loading] .m_8d3afb97{opacity:0;transform:translateY(100%)}.m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){cursor:not-allowed;border:calc(.0625rem * var(--mantine-scale)) solid transparent}:where([data-mantine-color-scheme=light]) .m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){background-color:var(--mantine-color-gray-1);color:var(--mantine-color-gray-5)}:where([data-mantine-color-scheme=dark]) .m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){background-color:var(--mantine-color-dark-6);color:var(--mantine-color-dark-3)}.m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])):active{transform:none}.m_302b9fb1{inset:calc(-.0625rem * var(--mantine-scale));position:absolute;border-radius:var(--ai-radius, var(--mantine-radius-default));display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_302b9fb1{background-color:#ffffff59}:where([data-mantine-color-scheme=dark]) .m_302b9fb1{background-color:#00000059}.m_1a0f1b21{--ai-border-width: calc(.0625rem * var(--mantine-scale));display:flex}.m_1a0f1b21 :where(*):focus{position:relative;z-index:1}.m_1a0f1b21[data-orientation=horizontal]{flex-direction:row}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):first-child{border-end-end-radius:0;border-start-end-radius:0;border-inline-end-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):last-child{border-end-start-radius:0;border-start-start-radius:0;border-inline-start-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-inline-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical]{flex-direction:column}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):first-child{border-end-start-radius:0;border-end-end-radius:0;border-bottom-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):last-child{border-start-start-radius:0;border-start-end-radius:0;border-top-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-bottom-width:calc(var(--ai-border-width) / 2);border-top-width:calc(var(--ai-border-width) / 2)}.m_8d3afb97{display:flex;align-items:center;justify-content:center;transition:transform .15s ease,opacity .1s ease;width:100%;height:100%}.m_86a44da5{--cb-size-xs: calc(1.125rem * var(--mantine-scale));--cb-size-sm: calc(1.375rem * var(--mantine-scale));--cb-size-md: calc(1.75rem * var(--mantine-scale));--cb-size-lg: calc(2.125rem * var(--mantine-scale));--cb-size-xl: calc(2.75rem * var(--mantine-scale));--cb-size: var(--cb-size-md);--cb-icon-size: 70%;--cb-radius: var(--mantine-radius-default);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;-webkit-user-select:none;user-select:none;width:var(--cb-size);height:var(--cb-size);min-width:var(--cb-size);min-height:var(--cb-size);border-radius:var(--cb-radius)}:where([data-mantine-color-scheme=light]) .m_86a44da5{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_86a44da5{color:var(--mantine-color-dark-1)}.m_86a44da5[data-disabled],.m_86a44da5:disabled{cursor:not-allowed;opacity:.6}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_220c80f2:not([data-disabled],:disabled):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_220c80f2:not([data-disabled],:disabled):hover{background-color:var(--mantine-color-dark-6)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_220c80f2:not([data-disabled],:disabled):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_220c80f2:not([data-disabled],:disabled):active{background-color:var(--mantine-color-dark-6)}}.m_4081bf90{display:flex;flex-direction:row;flex-wrap:var(--group-wrap, wrap);justify-content:var(--group-justify, flex-start);align-items:var(--group-align, center);gap:var(--group-gap, var(--mantine-spacing-md))}.m_4081bf90:where([data-grow])>*{flex-grow:1;max-width:var(--group-child-width)}.m_9814e45f{top:0;right:0;bottom:0;left:0;position:absolute;background:var(--overlay-bg, rgba(0, 0, 0, .6));backdrop-filter:var(--overlay-filter);-webkit-backdrop-filter:var(--overlay-filter);border-radius:var(--overlay-radius, 0);z-index:var(--overlay-z-index)}.m_9814e45f:where([data-fixed]){position:fixed}.m_9814e45f:where([data-center]){display:flex;align-items:center;justify-content:center}.m_615af6c9{line-height:1;padding:0;margin:0;font-weight:400;font-size:var(--mantine-font-size-md)}.m_b5489c3c{display:flex;justify-content:space-between;align-items:center;padding:var(--mb-padding, var(--mantine-spacing-md));padding-inline-end:calc(var(--mb-padding, var(--mantine-spacing-md)) - calc(.3125rem * var(--mantine-scale)));position:sticky;top:0;background-color:var(--mantine-color-body);z-index:1000;min-height:calc(3.75rem * var(--mantine-scale))}.m_60c222c7{position:fixed;width:100%;top:0;bottom:0;z-index:var(--mb-z-index);pointer-events:none}.m_fd1ab0aa{pointer-events:all;box-shadow:var(--mb-shadow, var(--mantine-shadow-xl))}.m_606cb269{margin-inline-start:auto}.m_5df29311{padding:var(--mb-padding, var(--mantine-spacing-md));padding-top:var(--mb-padding, var(--mantine-spacing-md))}.m_5df29311:where(:not(:only-child)){padding-top:0}.m_6c018570{position:relative;margin-top:var(--input-margin-top, 0rem);margin-bottom:var(--input-margin-bottom, 0rem);--input-height-xs: calc(1.875rem * var(--mantine-scale));--input-height-sm: calc(2.25rem * var(--mantine-scale));--input-height-md: calc(2.625rem * var(--mantine-scale));--input-height-lg: calc(3.125rem * var(--mantine-scale));--input-height-xl: calc(3.75rem * var(--mantine-scale));--input-padding-y-xs: calc(.3125rem * var(--mantine-scale));--input-padding-y-sm: calc(.375rem * var(--mantine-scale));--input-padding-y-md: calc(.5rem * var(--mantine-scale));--input-padding-y-lg: calc(.625rem * var(--mantine-scale));--input-padding-y-xl: calc(.8125rem * var(--mantine-scale));--input-height: var(--input-height-sm);--input-radius: var(--mantine-radius-default);--input-cursor: text;--input-text-align: left;--input-line-height: calc(var(--input-height) - calc(.125rem * var(--mantine-scale)));--input-padding: calc(var(--input-height) / 3);--input-padding-inline-start: var(--input-padding);--input-padding-inline-end: var(--input-padding);--input-placeholder-color: var(--mantine-color-placeholder);--input-color: var(--mantine-color-text);--input-left-section-size: var(--input-left-section-width, calc(var(--input-height) - calc(.125rem * var(--mantine-scale))));--input-right-section-size: var( --input-right-section-width, calc(var(--input-height) - calc(.125rem * var(--mantine-scale))) );--input-size: var(--input-height);--section-y: calc(.0625rem * var(--mantine-scale));--left-section-start: calc(.0625rem * var(--mantine-scale));--left-section-border-radius: var(--input-radius) 0 0 var(--input-radius);--right-section-end: calc(.0625rem * var(--mantine-scale));--right-section-border-radius: 0 var(--input-radius) var(--input-radius) 0}.m_6c018570[data-variant=unstyled]{--input-padding: 0;--input-padding-y: 0;--input-padding-inline-start: 0;--input-padding-inline-end: 0}.m_6c018570[data-pointer]{--input-cursor: pointer}.m_6c018570[data-multiline]{--input-padding-y-xs: calc(.28125rem * var(--mantine-scale));--input-padding-y-sm: calc(.34375rem * var(--mantine-scale));--input-padding-y-md: calc(.4375rem * var(--mantine-scale));--input-padding-y-lg: calc(.59375rem * var(--mantine-scale));--input-padding-y-xl: calc(.8125rem * var(--mantine-scale));--input-size: auto;--input-line-height: var(--mantine-line-height);--input-padding-y: var(--input-padding-y-sm)}.m_6c018570[data-with-left-section]{--input-padding-inline-start: var(--input-left-section-size)}.m_6c018570[data-with-right-section]{--input-padding-inline-end: var(--input-right-section-size)}[data-mantine-color-scheme=light] .m_6c018570{--input-disabled-bg: var(--mantine-color-gray-1);--input-disabled-color: var(--mantine-color-gray-6)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=default]{--input-bd: var(--mantine-color-gray-4);--input-bg: var(--mantine-color-white);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=filled]{--input-bd: transparent;--input-bg: var(--mantine-color-gray-1);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=unstyled]{--input-bd: transparent;--input-bg: transparent;--input-bd-focus: transparent}[data-mantine-color-scheme=dark] .m_6c018570{--input-disabled-bg: var(--mantine-color-dark-6);--input-disabled-color: var(--mantine-color-dark-2)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=default]{--input-bd: var(--mantine-color-dark-4);--input-bg: var(--mantine-color-dark-6);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=filled]{--input-bd: transparent;--input-bg: var(--mantine-color-dark-5);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=unstyled]{--input-bd: transparent;--input-bg: transparent;--input-bd-focus: transparent}[data-mantine-color-scheme] .m_6c018570[data-error]:not([data-variant=unstyled]){--input-bd: var(--mantine-color-error)}[data-mantine-color-scheme] .m_6c018570[data-error]{--input-color: var(--mantine-color-error);--input-placeholder-color: var(--mantine-color-error);--input-section-color: var(--mantine-color-error)}:where([dir=rtl]) .m_6c018570{--input-text-align: right;--left-section-border-radius: 0 var(--input-radius) var(--input-radius) 0;--right-section-border-radius: var(--input-radius) 0 0 var(--input-radius)}.m_8fb7ebe7{-webkit-tap-highlight-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none;resize:var(--input-resize, none);display:block;width:100%;transition:border-color .1s ease;text-align:var(--input-text-align);color:var(--input-color);border:1px solid var(--input-bd);background-color:var(--input-bg);font-family:var(--input-font-family, var(--mantine-font-family));height:var(--input-size);min-height:var(--input-height);line-height:var(--input-line-height);font-size:var(--input-fz, var(--input-fz, var(--mantine-font-size-sm)));border-radius:var(--input-radius);padding-inline-start:var(--input-padding-inline-start);padding-inline-end:var(--input-padding-inline-end);padding-top:var(--input-padding-y, 0rem);padding-bottom:var(--input-padding-y, 0rem);cursor:var(--input-cursor);overflow:var(--input-overflow)}.m_8fb7ebe7[data-no-overflow]{--input-overflow: hidden}.m_8fb7ebe7[data-monospace]{--input-font-family: var(--mantine-font-family-monospace);--input-fz: calc(var(--input-fz, var(--mantine-font-size-sm)) - calc(.125rem * var(--mantine-scale)))}.m_8fb7ebe7:focus,.m_8fb7ebe7:focus-within{outline:none;--input-bd: var(--input-bd-focus)}[data-error] .m_8fb7ebe7:focus,[data-error] .m_8fb7ebe7:focus-within{--input-bd: var(--mantine-color-error)}.m_8fb7ebe7::placeholder{color:var(--input-placeholder-color);opacity:1}.m_8fb7ebe7::-webkit-inner-spin-button,.m_8fb7ebe7::-webkit-outer-spin-button,.m_8fb7ebe7::-webkit-search-decoration,.m_8fb7ebe7::-webkit-search-cancel-button,.m_8fb7ebe7::-webkit-search-results-button,.m_8fb7ebe7::-webkit-search-results-decoration{-webkit-appearance:none;-moz-appearance:none;appearance:none}.m_8fb7ebe7[type=number]{-moz-appearance:textfield}.m_8fb7ebe7:disabled,.m_8fb7ebe7[data-disabled]{cursor:not-allowed;opacity:.6;background-color:var(--input-disabled-bg);color:var(--input-disabled-color)}.m_8fb7ebe7:has(input:disabled){cursor:not-allowed;opacity:.6;background-color:var(--input-disabled-bg);color:var(--input-disabled-color)}.m_82577fc2{pointer-events:var(--section-pointer-events);position:absolute;z-index:1;inset-inline-start:var(--section-start);inset-inline-end:var(--section-end);bottom:var(--section-y);top:var(--section-y);display:flex;align-items:center;justify-content:center;width:var(--section-size);border-radius:var(--section-border-radius);color:var(--input-section-color, var(--mantine-color-dimmed))}.m_82577fc2[data-position=right]{--section-pointer-events: var(--input-right-section-pointer-events);--section-end: var(--right-section-end);--section-size: var(--input-right-section-size);--section-border-radius: var(--right-section-border-radius)}.m_82577fc2[data-position=left]{--section-pointer-events: var(--input-left-section-pointer-events);--section-start: var(--left-section-start);--section-size: var(--input-left-section-size);--section-border-radius: var(--left-section-border-radius)}.m_88bacfd0{color:var(--input-placeholder-color, var(--mantine-color-placeholder))}[data-error] .m_88bacfd0{--input-placeholder-color: var(--input-color, var(--mantine-color-placeholder))}.m_46b77525{line-height:var(--mantine-line-height)}.m_8fdc1311{display:inline-block;font-weight:500;word-break:break-word;cursor:default;-webkit-tap-highlight-color:transparent;font-size:var(--input-label-size, var(--mantine-font-size-sm))}.m_78a94662{color:var(--input-asterisk-color, var(--mantine-color-error))}.m_8f816625,.m_fe47ce59{word-wrap:break-word;line-height:1.2;display:block;margin:0;padding:0}.m_8f816625{color:var(--mantine-color-error);font-size:var(--input-error-size, calc(var(--mantine-font-size-sm) - calc(.125rem * var(--mantine-scale))))}.m_fe47ce59{color:var(--mantine-color-dimmed);font-size:var(--input-description-size, calc(var(--mantine-font-size-sm) - calc(.125rem * var(--mantine-scale))))}.m_8bffd616{display:flex}.m_96b553a6{--transition-duration: .15s;top:0;left:0;position:absolute;z-index:0;transition-property:transform,width,height;transition-timing-function:ease;transition-duration:0ms}.m_96b553a6:where([data-initialized]){transition-duration:var(--transition-duration)}.m_96b553a6:where([data-hidden]){background-color:red;display:none}.m_9bdbb667{--accordion-radius: var(--mantine-radius-default)}.m_df78851f{word-break:break-word}.m_4ba554d4{padding:var(--mantine-spacing-md);padding-top:calc(var(--mantine-spacing-xs) / 2)}.m_8fa820a0{margin:0;padding:0}.m_4ba585b8{width:100%;display:flex;align-items:center;flex-direction:row-reverse;padding-inline:var(--mantine-spacing-md);opacity:1;cursor:pointer;background-color:transparent}.m_4ba585b8:where([data-chevron-position=left]){flex-direction:row;padding-inline-start:0}:where([data-mantine-color-scheme=light]) .m_4ba585b8{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_4ba585b8{color:var(--mantine-color-dark-0)}.m_4ba585b8:where(:disabled,[data-disabled]){opacity:.4;cursor:not-allowed}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):hover,:where([data-mantine-color-scheme=light]) .m_4271d21b:where(:not(:disabled,[data-disabled])):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):hover,:where([data-mantine-color-scheme=dark]) .m_4271d21b:where(:not(:disabled,[data-disabled])):hover{background-color:var(--mantine-color-dark-6)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):active,:where([data-mantine-color-scheme=light]) .m_4271d21b:where(:not(:disabled,[data-disabled])):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):active,:where([data-mantine-color-scheme=dark]) .m_4271d21b:where(:not(:disabled,[data-disabled])):active{background-color:var(--mantine-color-dark-6)}}.m_df3ffa0f{color:inherit;font-weight:400;flex:1;overflow:hidden;text-overflow:ellipsis;padding-top:var(--mantine-spacing-sm);padding-bottom:var(--mantine-spacing-sm)}.m_3f35ae96{display:flex;align-items:center;justify-content:flex-start;transition:transform var(--accordion-transition-duration, .2s) ease;width:var(--accordion-chevron-size, calc(.9375rem * var(--mantine-scale)));min-width:var(--accordion-chevron-size, calc(.9375rem * var(--mantine-scale)));transform:rotate(0)}.m_3f35ae96:where([data-rotate]){transform:rotate(180deg)}.m_3f35ae96:where([data-position=left]){margin-inline-end:var(--mantine-spacing-md);margin-inline-start:var(--mantine-spacing-md)}.m_9bd771fe{display:flex;align-items:center;justify-content:center;margin-inline-end:var(--mantine-spacing-sm)}.m_9bd771fe:where([data-chevron-position=left]){margin-inline-end:0;margin-inline-start:var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_9bd7b098{--item-border-color: var(--mantine-color-gray-3);--item-filled-color: var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_9bd7b098{--item-border-color: var(--mantine-color-dark-4);--item-filled-color: var(--mantine-color-dark-6)}.m_fe19b709{border-bottom:1px solid var(--item-border-color)}.m_1f921b3b{border:1px solid var(--item-border-color);transition:background-color .15s ease}.m_1f921b3b:where([data-active]){background-color:var(--item-filled-color)}.m_1f921b3b:first-of-type{border-start-start-radius:var(--accordion-radius);border-start-end-radius:var(--accordion-radius)}.m_1f921b3b:first-of-type>[data-accordion-control]{border-start-start-radius:var(--accordion-radius);border-start-end-radius:var(--accordion-radius)}.m_1f921b3b:last-of-type{border-end-start-radius:var(--accordion-radius);border-end-end-radius:var(--accordion-radius)}.m_1f921b3b:last-of-type>[data-accordion-control]{border-end-start-radius:var(--accordion-radius);border-end-end-radius:var(--accordion-radius)}.m_1f921b3b+.m_1f921b3b{border-top:0}.m_2cdf939a{border-radius:var(--accordion-radius)}.m_2cdf939a:where([data-active]){background-color:var(--item-filled-color)}.m_9f59b069{background-color:var(--item-filled-color);border-radius:var(--accordion-radius);border:calc(.0625rem * var(--mantine-scale)) solid transparent;transition:background-color .15s ease}.m_9f59b069[data-active]{border-color:var(--item-border-color)}:where([data-mantine-color-scheme=light]) .m_9f59b069[data-active]{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_9f59b069[data-active]{background-color:var(--mantine-color-dark-7)}.m_9f59b069+.m_9f59b069{margin-top:var(--mantine-spacing-md)}.m_7f854edf{position:fixed;z-index:var(--affix-z-index);inset-inline-start:var(--affix-left);inset-inline-end:var(--affix-right);top:var(--affix-top);bottom:var(--affix-bottom)}.m_66836ed3{--alert-radius: var(--mantine-radius-default);--alert-bg: var(--mantine-primary-color-light);--alert-bd: calc(.0625rem * var(--mantine-scale)) solid transparent;--alert-color: var(--mantine-primary-color-light-color);padding:var(--mantine-spacing-md) var(--mantine-spacing-md);border-radius:var(--alert-radius);position:relative;overflow:hidden;background-color:var(--alert-bg);border:var(--alert-bd);color:var(--alert-color)}.m_a5d60502{display:flex}.m_667c2793{flex:1;display:flex;flex-direction:column;gap:var(--mantine-spacing-xs)}.m_6a03f287{display:flex;align-items:center;justify-content:space-between;font-size:var(--mantine-font-size-sm);font-weight:700}.m_6a03f287:where([data-with-close-button]){padding-inline-end:var(--mantine-spacing-md)}.m_698f4f23{display:block;overflow:hidden;text-overflow:ellipsis}.m_667f2a6a{line-height:1;width:calc(1.25rem * var(--mantine-scale));height:calc(1.25rem * var(--mantine-scale));display:flex;align-items:center;justify-content:flex-start;margin-inline-end:var(--mantine-spacing-md);margin-top:calc(.0625rem * var(--mantine-scale))}.m_7fa78076{text-overflow:ellipsis;overflow:hidden;font-size:var(--mantine-font-size-sm)}:where([data-mantine-color-scheme=light]) .m_7fa78076{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_7fa78076{color:var(--mantine-color-white)}.m_7fa78076:where([data-variant=filled]){color:var(--alert-color)}.m_7fa78076:where([data-variant=white]){color:var(--mantine-color-black)}.m_87f54839{width:calc(1.25rem * var(--mantine-scale));height:calc(1.25rem * var(--mantine-scale));color:var(--alert-color)}.m_b6d8b162{-webkit-tap-highlight-color:transparent;text-decoration:none;font-size:var(--text-fz, var(--mantine-font-size-md));line-height:var(--text-lh, var(--mantine-line-height-md));font-weight:400;margin:0;padding:0;color:var(--text-color)}.m_b6d8b162:where([data-truncate]){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.m_b6d8b162:where([data-truncate=start]){direction:rtl;text-align:right}:where([dir=rtl]) .m_b6d8b162:where([data-truncate=start]){direction:ltr;text-align:left}.m_b6d8b162:where([data-variant=gradient]){background-image:var(--text-gradient);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.m_b6d8b162:where([data-line-clamp]){overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:var(--text-line-clamp);-webkit-box-orient:vertical}.m_b6d8b162:where([data-inherit]){line-height:inherit;font-weight:inherit;font-size:inherit}.m_b6d8b162:where([data-inline]){line-height:1}.m_849cf0da{color:var(--mantine-color-anchor);text-decoration:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;display:inline;padding:0;margin:0;background-color:transparent;cursor:pointer}@media (hover: hover){.m_849cf0da:where([data-underline=hover]):hover{text-decoration:underline}}@media (hover: none){.m_849cf0da:where([data-underline=hover]):active{text-decoration:underline}}.m_849cf0da:where([data-underline=always]){text-decoration:underline}.m_89ab340[data-resizing]{--app-shell-transition-duration: 0ms !important}.m_89ab340[data-disabled]{--app-shell-header-offset: 0rem !important;--app-shell-navbar-offset: 0rem !important}[data-mantine-color-scheme=light] .m_89ab340{--app-shell-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_89ab340{--app-shell-border-color: var(--mantine-color-dark-4)}.m_45252eee,.m_9cdde9a,.m_3b16f56b,.m_8983817,.m_3840c879{transition-duration:var(--app-shell-transition-duration);transition-timing-function:var(--app-shell-transition-timing-function)}.m_45252eee,.m_9cdde9a{position:fixed;display:flex;flex-direction:column;top:var(--app-shell-header-offset, 0rem);height:calc(100dvh - var(--app-shell-header-offset, 0rem) - var(--app-shell-footer-offset, 0rem));background-color:var(--mantine-color-body);transition-property:transform,top,height}:where([data-layout=alt]) .m_45252eee,:where([data-layout=alt]) .m_9cdde9a{top:0rem;height:100dvh}.m_45252eee{inset-inline-start:0;width:var(--app-shell-navbar-width);transition-property:transform,top,height;transform:var(--app-shell-navbar-transform);z-index:var(--app-shell-navbar-z-index)}:where([dir=rtl]) .m_45252eee{transform:var(--app-shell-navbar-transform-rtl)}.m_45252eee:where([data-with-border]){border-inline-end:1px solid var(--app-shell-border-color)}.m_9cdde9a{inset-inline-end:0;width:var(--app-shell-aside-width);transform:var(--app-shell-aside-transform);z-index:var(--app-shell-aside-z-index)}:where([dir=rtl]) .m_9cdde9a{transform:var(--app-shell-aside-transform-rtl)}.m_9cdde9a:where([data-with-border]){border-inline-start:1px solid var(--app-shell-border-color)}.m_8983817{padding-inline-start:calc(var(--app-shell-navbar-offset, 0rem) + var(--app-shell-padding));padding-inline-end:calc(var(--app-shell-aside-offset, 0rem) + var(--app-shell-padding));padding-top:calc(var(--app-shell-header-offset, 0rem) + var(--app-shell-padding));padding-bottom:calc(var(--app-shell-footer-offset, 0rem) + var(--app-shell-padding));min-height:100dvh;transition-property:padding}.m_3b16f56b,.m_3840c879{position:fixed;inset-inline:0;transition-property:transform,left,right;background-color:var(--mantine-color-body)}:where([data-layout=alt]) .m_3b16f56b,:where([data-layout=alt]) .m_3840c879{inset-inline-start:var(--app-shell-navbar-offset, 0rem);inset-inline-end:var(--app-shell-aside-offset, 0rem)}.m_3b16f56b{top:0;height:var(--app-shell-header-height);background-color:var(--mantine-color-body);transform:var(--app-shell-header-transform);z-index:var(--app-shell-header-z-index)}.m_3b16f56b:where([data-with-border]){border-bottom:1px solid var(--app-shell-border-color)}.m_3840c879{bottom:0;height:calc(var(--app-shell-footer-height) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);transform:var(--app-shell-footer-transform);z-index:var(--app-shell-footer-z-index)}.m_3840c879:where([data-with-border]){border-top:1px solid var(--app-shell-border-color)}.m_6dcfc7c7{flex-grow:0}.m_6dcfc7c7:where([data-grow]){flex-grow:1}.m_71ac47fc{--ar-ratio: 1;position:relative;max-width:100%}.m_71ac47fc:before{content:"";height:0;display:block;padding-bottom:calc((1 / var(--ar-ratio)) * 100%)}.m_71ac47fc:after{content:"";display:table;clear:both}.m_71ac47fc>:where(*:not(style)){position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.m_71ac47fc>:where(img,video){object-fit:cover}.m_88b62a41{--combobox-padding: calc(.25rem * var(--mantine-scale));padding:var(--combobox-padding)}.m_88b62a41[data-hidden]{display:none}.m_88b62a41,.m_b2821a6e{--combobox-option-padding-xs: calc(.25rem * var(--mantine-scale)) calc(.5rem * var(--mantine-scale));--combobox-option-padding-sm: calc(.375rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale));--combobox-option-padding-md: calc(.5rem * var(--mantine-scale)) calc(.75rem * var(--mantine-scale));--combobox-option-padding-lg: calc(.625rem * var(--mantine-scale)) calc(1rem * var(--mantine-scale));--combobox-option-padding-xl: calc(.875rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));--combobox-option-padding: var(--combobox-option-padding-sm)}.m_92253aa5{padding:var(--combobox-option-padding);font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));border-radius:var(--mantine-radius-default);background-color:transparent;color:inherit;cursor:pointer;word-break:break-word}.m_92253aa5:where([data-combobox-selected]){background-color:var(--mantine-primary-color-filled);color:var(--mantine-color-white)}.m_92253aa5:where([data-combobox-disabled]){cursor:not-allowed;opacity:.35}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_92253aa5:hover:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_92253aa5:hover:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-dark-7)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_92253aa5:active:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_92253aa5:active:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-dark-7)}}.m_985517d8{margin-inline:calc(var(--combobox-padding) * -1);margin-top:calc(var(--combobox-padding) * -1);width:calc(100% + var(--combobox-padding) * 2);border-top-width:0;border-inline-width:0;border-end-start-radius:0;border-end-end-radius:0;margin-bottom:var(--combobox-padding);position:relative}:where([data-mantine-color-scheme=light]) .m_985517d8,:where([data-mantine-color-scheme=light]) .m_985517d8:focus{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_985517d8,:where([data-mantine-color-scheme=dark]) .m_985517d8:focus{border-color:var(--mantine-color-dark-4)}:where([data-mantine-color-scheme=light]) .m_985517d8{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_985517d8{background-color:var(--mantine-color-dark-7)}.m_2530cd1d{font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));text-align:center;padding:var(--combobox-option-padding);color:var(--mantine-color-dimmed)}.m_858f94bd,.m_82b967cb{font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));border:0 solid transparent;margin-inline:calc(var(--combobox-padding) * -1);padding:var(--combobox-option-padding)}:where([data-mantine-color-scheme=light]) .m_858f94bd,:where([data-mantine-color-scheme=light]) .m_82b967cb{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_858f94bd,:where([data-mantine-color-scheme=dark]) .m_82b967cb{border-color:var(--mantine-color-dark-4)}.m_82b967cb{border-top-width:calc(.0625rem * var(--mantine-scale));margin-top:var(--combobox-padding);margin-bottom:calc(var(--combobox-padding) * -1)}.m_858f94bd{border-bottom-width:calc(.0625rem * var(--mantine-scale));margin-bottom:var(--combobox-padding);margin-top:calc(var(--combobox-padding) * -1)}.m_254f3e4f:has(.m_2bb2e9e5:only-child){display:none}.m_2bb2e9e5{color:var(--mantine-color-dimmed);font-size:calc(var(--combobox-option-fz, var(--mantine-font-size-sm)) * .85);padding:var(--combobox-option-padding);font-weight:500;position:relative;display:flex;align-items:center}.m_2bb2e9e5:after{content:"";flex:1;inset-inline:0;height:calc(.0625rem * var(--mantine-scale));margin-inline-start:var(--mantine-spacing-xs)}:where([data-mantine-color-scheme=light]) .m_2bb2e9e5:after{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_2bb2e9e5:after{background-color:var(--mantine-color-dark-4)}.m_2bb2e9e5:only-child{display:none}.m_2943220b{--combobox-chevron-size-xs: calc(.875rem * var(--mantine-scale));--combobox-chevron-size-sm: calc(1.125rem * var(--mantine-scale));--combobox-chevron-size-md: calc(1.25rem * var(--mantine-scale));--combobox-chevron-size-lg: calc(1.5rem * var(--mantine-scale));--combobox-chevron-size-xl: calc(1.75rem * var(--mantine-scale));--combobox-chevron-size: var(--combobox-chevron-size-sm);width:var(--combobox-chevron-size);height:var(--combobox-chevron-size)}:where([data-mantine-color-scheme=light]) .m_2943220b{color:var(--mantine-color-gray-6)}:where([data-mantine-color-scheme=dark]) .m_2943220b{color:var(--mantine-color-dark-3)}.m_2943220b:where([data-error]){color:var(--mantine-color-error)}.m_390b5f4{display:flex;align-items:center;gap:calc(.5rem * var(--mantine-scale))}.m_390b5f4:where([data-reverse]){justify-content:space-between}.m_8ee53fc2{opacity:.4;width:.8em;min-width:.8em;height:.8em}:where([data-combobox-selected]) .m_8ee53fc2{opacity:1}.m_5f75b09e{--label-lh-xs: calc(1rem * var(--mantine-scale));--label-lh-sm: calc(1.25rem * var(--mantine-scale));--label-lh-md: calc(1.5rem * var(--mantine-scale));--label-lh-lg: calc(1.875rem * var(--mantine-scale));--label-lh-xl: calc(2.25rem * var(--mantine-scale));--label-lh: var(--label-lh-sm)}.m_5f75b09e[data-label-position=left]{--label-order: 1;--label-offset-end: var(--mantine-spacing-sm);--label-offset-start: 0}.m_5f75b09e[data-label-position=right]{--label-order: 2;--label-offset-end: 0;--label-offset-start: var(--mantine-spacing-sm)}.m_5f6e695e{display:flex}.m_d3ea56bb{--label-cursor: var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;display:inline-flex;flex-direction:column;font-size:var(--label-fz, var(--mantine-font-size-sm));line-height:var(--label-lh);cursor:var(--label-cursor);order:var(--label-order)}fieldset:disabled .m_d3ea56bb,.m_d3ea56bb[data-disabled]{--label-cursor: not-allowed}.m_8ee546b8{cursor:var(--label-cursor);color:inherit;padding-inline-start:var(--label-offset-start);padding-inline-end:var(--label-offset-end)}:where([data-mantine-color-scheme=light]) fieldset:disabled .m_8ee546b8,:where([data-mantine-color-scheme=light]) .m_8ee546b8:where([data-disabled]){color:var(--mantine-color-gray-5)}:where([data-mantine-color-scheme=dark]) fieldset:disabled .m_8ee546b8,:where([data-mantine-color-scheme=dark]) .m_8ee546b8:where([data-disabled]){color:var(--mantine-color-dark-3)}.m_328f68c0,.m_8e8a99cc{margin-top:calc(var(--mantine-spacing-xs) / 2);padding-inline-start:var(--label-offset-start);padding-inline-end:var(--label-offset-end)}.m_bf2d988c{--checkbox-size-xs: calc(1rem * var(--mantine-scale));--checkbox-size-sm: calc(1.25rem * var(--mantine-scale));--checkbox-size-md: calc(1.5rem * var(--mantine-scale));--checkbox-size-lg: calc(1.875rem * var(--mantine-scale));--checkbox-size-xl: calc(2.25rem * var(--mantine-scale));--checkbox-size: var(--checkbox-size-sm);--checkbox-color: var(--mantine-primary-color-filled);--checkbox-icon-color: var(--mantine-color-white)}.m_26062bec{position:relative;width:var(--checkbox-size);height:var(--checkbox-size);order:1}.m_26062bec:where([data-label-position=left]){order:2}.m_26063560{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--checkbox-size);height:var(--checkbox-size);border-radius:var(--checkbox-radius, var(--mantine-radius-default));padding:0;display:block;margin:0;transition:border-color .1s ease,background-color .1s ease;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent}:where([data-mantine-color-scheme=light]) .m_26063560{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_26063560{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_26063560:where([data-error]){border-color:var(--mantine-color-error)}.m_26063560[data-indeterminate],.m_26063560:checked{background-color:var(--checkbox-color);border-color:var(--checkbox-color)}.m_26063560[data-indeterminate]+.m_bf295423,.m_26063560:checked+.m_bf295423{opacity:1;transform:none}.m_26063560:disabled{cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_26063560:disabled{background-color:var(--mantine-color-gray-2);border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_26063560:disabled{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-6)}[data-mantine-color-scheme=light] .m_26063560:disabled+.m_bf295423{color:var(--mantine-color-gray-5)}[data-mantine-color-scheme=dark] .m_26063560:disabled+.m_bf295423{color:var(--mantine-color-dark-3)}.m_215c4542+.m_bf295423{color:var(--checkbox-color)}.m_215c4542[data-indeterminate]:not(:disabled),.m_215c4542:checked:not(:disabled){background-color:transparent;border-color:var(--checkbox-color)}.m_215c4542[data-indeterminate]:not(:disabled)+.m_bf295423,.m_215c4542:checked:not(:disabled)+.m_bf295423{color:var(--checkbox-color);opacity:1;transform:none}.m_bf295423{position:absolute;top:0;right:0;bottom:0;left:0;width:60%;margin:auto;color:var(--checkbox-icon-color);pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:0;transition:transform .1s ease,opacity .1s ease}.m_11def92b{--ag-spacing: var(--mantine-spacing-sm);--ag-offset: calc(var(--ag-spacing) * -1);display:flex;padding-inline-start:var(--ag-spacing)}.m_f85678b6{--avatar-size-xs: calc(1rem * var(--mantine-scale));--avatar-size-sm: calc(1.625rem * var(--mantine-scale));--avatar-size-md: calc(2.375rem * var(--mantine-scale));--avatar-size-lg: calc(3.5rem * var(--mantine-scale));--avatar-size-xl: calc(5.25rem * var(--mantine-scale));--avatar-size: var(--avatar-size-md);--avatar-radius: calc(62.5rem * var(--mantine-scale));--avatar-bg: var(--mantine-color-gray-light);--avatar-bd: calc(.0625rem * var(--mantine-scale)) solid transparent;--avatar-color: var(--mantine-color-gray-light-color);--avatar-placeholder-fz: calc(var(--avatar-size) / 2.5);-webkit-tap-highlight-color:transparent;position:relative;display:block;-webkit-user-select:none;user-select:none;overflow:hidden;border-radius:var(--avatar-radius);text-decoration:none;padding:0;width:var(--avatar-size);height:var(--avatar-size);min-width:var(--avatar-size)}.m_f85678b6:where([data-within-group]){margin-inline-start:var(--ag-offset);border:2px solid var(--mantine-color-body);background:var(--mantine-color-body)}.m_11f8ac07{object-fit:cover;width:100%;height:100%;display:block}.m_104cd71f{font-weight:700;display:flex;align-items:center;justify-content:center;width:100%;height:100%;-webkit-user-select:none;user-select:none;border-radius:var(--avatar-radius);font-size:var(--avatar-placeholder-fz);background:var(--avatar-bg);border:var(--avatar-bd);color:var(--avatar-color)}.m_104cd71f>[data-avatar-placeholder-icon]{width:70%;height:70%}.m_2ce0de02{background-size:cover;background-position:center;display:block;width:100%;border:0;text-decoration:none;border-radius:var(--bi-radius, 0)}.m_347db0ec{--badge-height-xs: calc(1rem * var(--mantine-scale));--badge-height-sm: calc(1.125rem * var(--mantine-scale));--badge-height-md: calc(1.25rem * var(--mantine-scale));--badge-height-lg: calc(1.625rem * var(--mantine-scale));--badge-height-xl: calc(2rem * var(--mantine-scale));--badge-fz-xs: calc(.5625rem * var(--mantine-scale));--badge-fz-sm: calc(.625rem * var(--mantine-scale));--badge-fz-md: calc(.6875rem * var(--mantine-scale));--badge-fz-lg: calc(.8125rem * var(--mantine-scale));--badge-fz-xl: calc(1rem * var(--mantine-scale));--badge-padding-x-xs: calc(.375rem * var(--mantine-scale));--badge-padding-x-sm: calc(.5rem * var(--mantine-scale));--badge-padding-x-md: calc(.625rem * var(--mantine-scale));--badge-padding-x-lg: calc(.75rem * var(--mantine-scale));--badge-padding-x-xl: calc(1rem * var(--mantine-scale));--badge-height: var(--badge-height-md);--badge-fz: var(--badge-fz-md);--badge-padding-x: var(--badge-padding-x-md);--badge-radius: calc(62.5rem * var(--mantine-scale));--badge-lh: calc(var(--badge-height) - calc(.125rem * var(--mantine-scale)));--badge-color: var(--mantine-color-white);--badge-bg: var(--mantine-primary-color-filled);--badge-bd: calc(.0625rem * var(--mantine-scale)) solid transparent;-webkit-tap-highlight-color:transparent;font-size:var(--badge-fz);border-radius:var(--badge-radius);height:var(--badge-height);line-height:var(--badge-lh);text-decoration:none;padding:0 var(--badge-padding-x);display:inline-flex;align-items:center;justify-content:center;width:fit-content;text-transform:uppercase;font-weight:700;letter-spacing:calc(.015625rem * var(--mantine-scale));cursor:inherit;text-overflow:ellipsis;overflow:hidden;color:var(--badge-color);background:var(--badge-bg);border:var(--badge-bd)}.m_347db0ec:where([data-block]){display:flex;width:100%}.m_347db0ec:where([data-circle]){padding-inline:calc(.125rem * var(--mantine-scale));width:var(--badge-height)}.m_fbd81e3d{--badge-dot-size: calc(var(--badge-height) / 3.4)}:where([data-mantine-color-scheme=light]) .m_fbd81e3d{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4);color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_fbd81e3d{background-color:var(--mantine-color-dark-5);border-color:var(--mantine-color-dark-5);color:var(--mantine-color-white)}.m_fbd81e3d:before{content:"";display:block;width:var(--badge-dot-size);height:var(--badge-dot-size);border-radius:var(--badge-dot-size);background-color:var(--badge-dot-color);margin-inline-end:var(--badge-dot-size)}.m_5add502a{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.m_91fdda9b{--badge-section-margin: calc(var(--mantine-spacing-xs) / 2);display:inline-flex;justify-content:center;align-items:center}.m_91fdda9b:where([data-position=left]){margin-inline-end:var(--badge-section-margin)}.m_91fdda9b:where([data-position=right]){margin-inline-start:var(--badge-section-margin)}.m_ddec01c0{--blockquote-border: 3px solid var(--bq-bd);position:relative;margin:0;border-inline-start:var(--blockquote-border);border-start-end-radius:var(--bq-radius);border-end-end-radius:var(--bq-radius);padding:var(--mantine-spacing-xl) calc(2.375rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_ddec01c0{background-color:var(--bq-bg-light)}:where([data-mantine-color-scheme=dark]) .m_ddec01c0{background-color:var(--bq-bg-dark)}.m_dde7bd57{--blockquote-icon-offset: calc(var(--bq-icon-size) / -2);position:absolute;color:var(--bq-bd);background-color:var(--mantine-color-body);display:flex;align-items:center;justify-content:center;top:var(--blockquote-icon-offset);inset-inline-start:var(--blockquote-icon-offset);width:var(--bq-icon-size);height:var(--bq-icon-size);border-radius:var(--bq-icon-size)}.m_dde51a35{display:block;margin-top:var(--mantine-spacing-md);opacity:.6;font-size:85%}.m_8b3717df{display:flex;align-items:center}.m_f678d540{line-height:1;white-space:nowrap;-webkit-tap-highlight-color:transparent}.m_3b8f2208{margin-inline:var(--bc-separator-margin, var(--mantine-spacing-xs));line-height:1;display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_3b8f2208{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_3b8f2208{color:var(--mantine-color-dark-2)}.m_fea6bf1a{--burger-size-xs: calc(.75rem * var(--mantine-scale));--burger-size-sm: calc(1.125rem * var(--mantine-scale));--burger-size-md: calc(1.5rem * var(--mantine-scale));--burger-size-lg: calc(2.125rem * var(--mantine-scale));--burger-size-xl: calc(2.625rem * var(--mantine-scale));--burger-size: var(--burger-size-md);width:calc(var(--burger-size) + var(--mantine-spacing-xs));height:calc(var(--burger-size) + var(--mantine-spacing-xs));padding:calc(var(--mantine-spacing-xs) / 2);cursor:pointer}:where([data-mantine-color-scheme=light]) .m_fea6bf1a{--burger-color: var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_fea6bf1a{--burger-color: var(--mantine-color-white)}.m_d4fb9cad{position:relative;-webkit-user-select:none;user-select:none}.m_d4fb9cad,.m_d4fb9cad:before,.m_d4fb9cad:after{display:block;width:var(--burger-size);height:calc(var(--burger-size) / 12);background-color:var(--burger-color);outline:calc(.0625rem * var(--mantine-scale)) solid transparent;transition-property:background-color,transform;transition-duration:var(--burger-transition-duration, .3s);transition-timing-function:var(--burger-transition-timing-function, ease)}.m_d4fb9cad:before,.m_d4fb9cad:after{position:absolute;content:"";inset-inline-start:0}.m_d4fb9cad:before{top:calc(var(--burger-size) / -3)}.m_d4fb9cad:after{top:calc(var(--burger-size) / 3)}.m_d4fb9cad[data-opened]{background-color:transparent}.m_d4fb9cad[data-opened]:before{transform:translateY(calc(var(--burger-size) / 3)) rotate(45deg)}.m_d4fb9cad[data-opened]:after{transform:translateY(calc(var(--burger-size) / -3)) rotate(-45deg)}.m_77c9d27d{--button-height-xs: calc(1.875rem * var(--mantine-scale));--button-height-sm: calc(2.25rem * var(--mantine-scale));--button-height-md: calc(2.625rem * var(--mantine-scale));--button-height-lg: calc(3.125rem * var(--mantine-scale));--button-height-xl: calc(3.75rem * var(--mantine-scale));--button-height-compact-xs: calc(1.375rem * var(--mantine-scale));--button-height-compact-sm: calc(1.625rem * var(--mantine-scale));--button-height-compact-md: calc(1.875rem * var(--mantine-scale));--button-height-compact-lg: calc(2.125rem * var(--mantine-scale));--button-height-compact-xl: calc(2.5rem * var(--mantine-scale));--button-padding-x-xs: calc(.875rem * var(--mantine-scale));--button-padding-x-sm: calc(1.125rem * var(--mantine-scale));--button-padding-x-md: calc(1.375rem * var(--mantine-scale));--button-padding-x-lg: calc(1.625rem * var(--mantine-scale));--button-padding-x-xl: calc(2rem * var(--mantine-scale));--button-padding-x-compact-xs: calc(.4375rem * var(--mantine-scale));--button-padding-x-compact-sm: calc(.5rem * var(--mantine-scale));--button-padding-x-compact-md: calc(.625rem * var(--mantine-scale));--button-padding-x-compact-lg: calc(.75rem * var(--mantine-scale));--button-padding-x-compact-xl: calc(.875rem * var(--mantine-scale));--button-height: var(--button-height-sm);--button-padding-x: var(--button-padding-x-sm);--button-color: var(--mantine-color-white);-webkit-user-select:none;user-select:none;font-weight:600;position:relative;line-height:1;text-align:center;overflow:hidden;width:auto;cursor:pointer;display:inline-block;border-radius:var(--button-radius, var(--mantine-radius-default));font-size:var(--button-fz, var(--mantine-font-size-sm));background:var(--button-bg, var(--mantine-primary-color-filled));border:var(--button-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--button-color, var(--mantine-color-white));height:var(--button-height, var(--button-height-sm));padding-inline:var(--button-padding-x, var(--button-padding-x-sm));vertical-align:middle}.m_77c9d27d:where([data-block]){display:block;width:100%}.m_77c9d27d:where([data-with-left-section]){padding-inline-start:calc(var(--button-padding-x) / 1.5)}.m_77c9d27d:where([data-with-right-section]){padding-inline-end:calc(var(--button-padding-x) / 1.5)}.m_77c9d27d:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){cursor:not-allowed;border:calc(.0625rem * var(--mantine-scale)) solid transparent;transform:none}:where([data-mantine-color-scheme=light]) .m_77c9d27d:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){color:var(--mantine-color-gray-5);background:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_77c9d27d:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){color:var(--mantine-color-dark-3);background:var(--mantine-color-dark-6)}.m_77c9d27d:before{content:"";pointer-events:none;position:absolute;inset:calc(-.0625rem * var(--mantine-scale));border-radius:var(--button-radius, var(--mantine-radius-default));transform:translateY(-100%);opacity:0;filter:blur(12px);transition:transform .15s ease,opacity .1s ease}:where([data-mantine-color-scheme=light]) .m_77c9d27d:before{background-color:#ffffff26}:where([data-mantine-color-scheme=dark]) .m_77c9d27d:before{background-color:#00000026}.m_77c9d27d:where([data-loading]){cursor:not-allowed;transform:none}.m_77c9d27d:where([data-loading]):before{transform:translateY(0);opacity:1}.m_77c9d27d:where([data-loading]) .m_80f1301b{opacity:0;transform:translateY(100%)}@media (hover: hover){.m_77c9d27d:hover:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--button-hover, var(--mantine-primary-color-filled-hover));color:var(--button-hover-color, var(--button-color))}}@media (hover: none){.m_77c9d27d:active:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--button-hover, var(--mantine-primary-color-filled-hover));color:var(--button-hover-color, var(--button-color))}}.m_80f1301b{display:flex;align-items:center;justify-content:var(--button-justify, center);height:100%;overflow:visible;transition:transform .15s ease,opacity .1s ease}.m_811560b9{white-space:nowrap;height:100%;overflow:hidden;display:flex;align-items:center;opacity:1}.m_811560b9:where([data-loading]){opacity:.2}.m_a74036a{display:flex;align-items:center}.m_a74036a:where([data-position=left]){margin-inline-end:var(--mantine-spacing-xs)}.m_a74036a:where([data-position=right]){margin-inline-start:var(--mantine-spacing-xs)}.m_a25b86ee{position:absolute;left:50%;top:50%}.m_80d6d844{--button-border-width: calc(.0625rem * var(--mantine-scale));display:flex}.m_80d6d844 :where(*):focus{position:relative;z-index:1}.m_80d6d844[data-orientation=horizontal]{flex-direction:row}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):first-child{border-end-end-radius:0;border-start-end-radius:0;border-inline-end-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):last-child{border-end-start-radius:0;border-start-start-radius:0;border-inline-start-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-inline-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical]{flex-direction:column}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):first-child{border-end-start-radius:0;border-end-end-radius:0;border-bottom-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):last-child{border-start-start-radius:0;border-start-end-radius:0;border-top-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-bottom-width:calc(var(--button-border-width) / 2);border-top-width:calc(var(--button-border-width) / 2)}.m_e615b15f{--card-padding: var(--mantine-spacing-md);position:relative;overflow:hidden;display:flex;flex-direction:column;padding:var(--card-padding);color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_e615b15f{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_e615b15f{background-color:var(--mantine-color-dark-6)}.m_599a2148{display:block;margin-inline:calc(var(--card-padding) * -1)}.m_599a2148:where(:first-child){margin-top:calc(var(--card-padding) * -1);border-top:none!important}.m_599a2148:where(:last-child){margin-bottom:calc(var(--card-padding) * -1);border-bottom:none!important}.m_599a2148:where([data-inherit-padding]){padding-inline:var(--card-padding)}.m_599a2148:where([data-with-border]){border-top:calc(.0625rem * var(--mantine-scale)) solid;border-bottom:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_599a2148{border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_599a2148{border-color:var(--mantine-color-dark-4)}.m_599a2148+.m_599a2148{border-top:none!important}.m_4451eb3a{display:flex;align-items:center;justify-content:center}.m_4451eb3a:where([data-inline]){display:inline-flex}.m_f59ffda3{--chip-size-xs: calc(1.4375rem * var(--mantine-scale));--chip-size-sm: calc(1.75rem * var(--mantine-scale));--chip-size-md: calc(2rem * var(--mantine-scale));--chip-size-lg: calc(2.25rem * var(--mantine-scale));--chip-size-xl: calc(2.5rem * var(--mantine-scale));--chip-icon-size-xs: calc(.625rem * var(--mantine-scale));--chip-icon-size-sm: calc(.75rem * var(--mantine-scale));--chip-icon-size-md: calc(.875rem * var(--mantine-scale));--chip-icon-size-lg: calc(1rem * var(--mantine-scale));--chip-icon-size-xl: calc(1.125rem * var(--mantine-scale));--chip-padding-xs: calc(1rem * var(--mantine-scale));--chip-padding-sm: calc(1.25rem * var(--mantine-scale));--chip-padding-md: calc(1.5rem * var(--mantine-scale));--chip-padding-lg: calc(1.75rem * var(--mantine-scale));--chip-padding-xl: calc(2rem * var(--mantine-scale));--chip-checked-padding-xs: calc(.46875rem * var(--mantine-scale));--chip-checked-padding-sm: calc(.625rem * var(--mantine-scale));--chip-checked-padding-md: calc(.73125rem * var(--mantine-scale));--chip-checked-padding-lg: calc(.84375rem * var(--mantine-scale));--chip-checked-padding-xl: calc(.78125rem * var(--mantine-scale));--chip-spacing-xs: calc(.625rem * var(--mantine-scale));--chip-spacing-sm: calc(.75rem * var(--mantine-scale));--chip-spacing-md: calc(1rem * var(--mantine-scale));--chip-spacing-lg: calc(1.25rem * var(--mantine-scale));--chip-spacing-xl: calc(1.375rem * var(--mantine-scale));--chip-size: var(--chip-size-sm);--chip-icon-size: var(--chip-icon-size-sm);--chip-padding: var(--chip-padding-sm);--chip-spacing: var(--chip-spacing-sm);--chip-checked-padding: var(--chip-checked-padding-sm);--chip-bg: var(--mantine-primary-color-filled);--chip-hover: var(--mantine-primary-color-filled-hover);--chip-color: var(--mantine-color-white);--chip-bd: calc(.0625rem * var(--mantine-scale)) solid transparent}.m_be049a53{display:inline-flex;align-items:center;-webkit-user-select:none;user-select:none;border-radius:var(--chip-radius, 1000rem);height:var(--chip-size);font-size:var(--chip-fz, var(--mantine-font-size-sm));line-height:calc(var(--chip-size) - calc(.125rem * var(--mantine-scale)));padding-inline:var(--chip-padding);cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent;border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-text)}.m_be049a53:where([data-checked]){padding:var(--chip-checked-padding)}.m_be049a53:where([data-disabled]){cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_be049a53:where([data-disabled]){background-color:var(--mantine-color-gray-2);color:var(--mantine-color-gray-5)}:where([data-mantine-color-scheme=dark]) .m_be049a53:where([data-disabled]){background-color:var(--mantine-color-dark-6);color:var(--mantine-color-dark-3)}:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]){background-color:var(--mantine-color-white);border:1px solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]){background-color:var(--mantine-color-dark-6);border:1px solid var(--mantine-color-dark-4)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]):hover{background-color:var(--mantine-color-dark-5)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]):active{background-color:var(--mantine-color-dark-5)}}.m_3904c1af:not([data-disabled]):where([data-checked]){--chip-icon-color: var(--chip-color);border:var(--chip-bd)}@media (hover: hover){.m_3904c1af:not([data-disabled]):where([data-checked]):hover{background-color:var(--chip-hover)}}@media (hover: none){.m_3904c1af:not([data-disabled]):where([data-checked]):active{background-color:var(--chip-hover)}}.m_fa109255:not([data-disabled]),.m_f7e165c3:not([data-disabled]){border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]),:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]),:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]){background-color:var(--mantine-color-dark-5)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]):hover,:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]):hover{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]):hover,:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]):hover{background-color:var(--mantine-color-dark-4)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]):active,:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]):active{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]):active,:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]):active{background-color:var(--mantine-color-dark-4)}}.m_fa109255:not([data-disabled]):where([data-checked]),.m_f7e165c3:not([data-disabled]):where([data-checked]){--chip-icon-color: var(--chip-color);color:var(--chip-color);background-color:var(--chip-bg)}@media (hover: hover){.m_fa109255:not([data-disabled]):where([data-checked]):hover,.m_f7e165c3:not([data-disabled]):where([data-checked]):hover{background-color:var(--chip-hover)}}@media (hover: none){.m_fa109255:not([data-disabled]):where([data-checked]):active,.m_f7e165c3:not([data-disabled]):where([data-checked]):active{background-color:var(--chip-hover)}}.m_9ac86df9{width:calc(var(--chip-icon-size) + (var(--chip-spacing) / 1.5));max-width:calc(var(--chip-icon-size) + (var(--chip-spacing) / 1.5));height:var(--chip-icon-size);display:flex;align-items:center;overflow:hidden}.m_d6d72580{width:var(--chip-icon-size);height:var(--chip-icon-size);display:block;color:var(--chip-icon-color, inherit)}.m_bde07329{width:0;height:0;padding:0;opacity:0;margin:0}.m_bde07329:focus-visible+.m_be049a53{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_b183c0a2{font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);padding:2px calc(var(--mantine-spacing-xs) / 2);border-radius:var(--mantine-radius-sm);font-size:var(--mantine-font-size-xs);margin:0;overflow:auto}:where([data-mantine-color-scheme=light]) .m_b183c0a2{background-color:var(--code-bg, var(--mantine-color-gray-1));color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_b183c0a2{background-color:var(--code-bg, var(--mantine-color-dark-5));color:var(--mantine-color-white)}.m_b183c0a2[data-block]{padding:var(--mantine-spacing-xs)}.m_de3d2490{--cs-size: calc(1.75rem * var(--mantine-scale));--cs-radius: calc(62.5rem * var(--mantine-scale));-webkit-tap-highlight-color:transparent;border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;line-height:1;position:relative;width:var(--cs-size);height:var(--cs-size);min-width:var(--cs-size);min-height:var(--cs-size);border-radius:var(--cs-radius);color:inherit;text-decoration:none}[data-mantine-color-scheme=light] .m_de3d2490{--alpha-overlay-color: var(--mantine-color-gray-3);--alpha-overlay-bg: var(--mantine-color-white)}[data-mantine-color-scheme=dark] .m_de3d2490{--alpha-overlay-color: var(--mantine-color-dark-4);--alpha-overlay-bg: var(--mantine-color-dark-7)}.m_862f3d1b{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--cs-radius)}.m_98ae7f22{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--cs-radius);z-index:1;box-shadow:#0000001a 0 0 0 calc(.0625rem * var(--mantine-scale)) inset,#00000026 0 0 calc(.25rem * var(--mantine-scale)) inset}.m_95709ac0{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--cs-radius);background-size:calc(.5rem * var(--mantine-scale)) calc(.5rem * var(--mantine-scale));background-position:0 0,0 calc(.25rem * var(--mantine-scale)),calc(.25rem * var(--mantine-scale)) calc(-.25rem * var(--mantine-scale)),calc(-.25rem * var(--mantine-scale)) 0;background-image:linear-gradient(45deg,var(--alpha-overlay-color) 25%,transparent 25%),linear-gradient(-45deg,var(--alpha-overlay-color) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--alpha-overlay-color) 75%),linear-gradient(-45deg,var(--alpha-overlay-bg) 75%,var(--alpha-overlay-color) 75%)}.m_93e74e3{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--cs-radius);z-index:2;display:flex;align-items:center;justify-content:center}.m_fee9c77{--cp-width-xs: calc(11.25rem * var(--mantine-scale));--cp-width-sm: calc(12.5rem * var(--mantine-scale));--cp-width-md: calc(15rem * var(--mantine-scale));--cp-width-lg: calc(17.5rem * var(--mantine-scale));--cp-width-xl: calc(20rem * var(--mantine-scale));--cp-preview-size-xs: calc(1.625rem * var(--mantine-scale));--cp-preview-size-sm: calc(2.125rem * var(--mantine-scale));--cp-preview-size-md: calc(2.625rem * var(--mantine-scale));--cp-preview-size-lg: calc(3.125rem * var(--mantine-scale));--cp-preview-size-xl: calc(3.375rem * var(--mantine-scale));--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));--cp-saturation-height-xs: calc(6.25rem * var(--mantine-scale));--cp-saturation-height-sm: calc(6.875rem * var(--mantine-scale));--cp-saturation-height-md: calc(7.5rem * var(--mantine-scale));--cp-saturation-height-lg: calc(8.75rem * var(--mantine-scale));--cp-saturation-height-xl: calc(10rem * var(--mantine-scale));--cp-preview-size: var(--cp-preview-size-sm);--cp-thumb-size: var(--cp-thumb-size-sm);--cp-saturation-height: var(--cp-saturation-height-sm);--cp-width: var(--cp-width-sm);--cp-body-spacing: var(--mantine-spacing-sm);width:var(--cp-width);padding:calc(.0625rem * var(--mantine-scale))}.m_fee9c77:where([data-full-width]){width:100%}.m_9dddfbac{width:var(--cp-preview-size);height:var(--cp-preview-size)}.m_bffecc3e{display:flex;padding-top:calc(var(--cp-body-spacing) / 2)}.m_3283bb96{flex:1}.m_3283bb96:not(:only-child){margin-inline-end:var(--mantine-spacing-xs)}.m_40d572ba{overflow:hidden;position:absolute;box-shadow:0 0 1px #0009;border:2px solid var(--mantine-color-white);width:var(--cp-thumb-size);height:var(--cp-thumb-size);border-radius:var(--cp-thumb-size);left:calc(var(--thumb-x-offset) - var(--cp-thumb-size) / 2);top:calc(var(--thumb-y-offset) - var(--cp-thumb-size) / 2)}.m_d8ee6fd8{height:unset!important;width:unset!important;min-width:0!important;min-height:0!important;margin:calc(.125rem * var(--mantine-scale));cursor:pointer;padding-bottom:calc(var(--cp-swatch-size) - calc(.25rem * var(--mantine-scale)));flex:0 0 calc(var(--cp-swatch-size) - calc(.25rem * var(--mantine-scale)))}.m_5711e686{margin-top:calc(.3125rem * var(--mantine-scale));margin-inline:calc(-.125rem * var(--mantine-scale));display:flex;flex-wrap:wrap}.m_202a296e{--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));-webkit-tap-highlight-color:transparent;position:relative;height:var(--cp-saturation-height);border-radius:var(--mantine-radius-sm);margin:calc(var(--cp-thumb-size) / 2)}.m_202a296e:where([data-focus-ring=auto]):focus:focus-visible .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_202a296e:where([data-focus-ring=always]):focus .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_11b3db02{position:absolute;border-radius:var(--mantine-radius-sm);inset:calc(var(--cp-thumb-size) * -1 / 2 - calc(.0625rem * var(--mantine-scale)))}.m_d856d47d{--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));--cp-thumb-size: var(--cp-thumb-size, calc(.75rem * var(--mantine-scale)));position:relative;height:calc(var(--cp-thumb-size) + calc(.125rem * var(--mantine-scale)));margin-inline:calc(var(--cp-thumb-size) / 2);outline:none}.m_d856d47d+.m_d856d47d{margin-top:calc(.375rem * var(--mantine-scale))}.m_d856d47d:where([data-focus-ring=auto]):focus:focus-visible .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_d856d47d:where([data-focus-ring=always]):focus .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}:where([data-mantine-color-scheme=light]) .m_d856d47d{--slider-checkers: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d856d47d{--slider-checkers: var(--mantine-color-dark-4)}.m_8f327113{position:absolute;top:0;bottom:0;inset-inline:calc(var(--cp-thumb-size) * -1 / 2 - calc(.0625rem * var(--mantine-scale)));border-radius:10000rem}.m_b077c2bc{--ci-eye-dropper-icon-size-xs: calc(.875rem * var(--mantine-scale));--ci-eye-dropper-icon-size-sm: calc(1rem * var(--mantine-scale));--ci-eye-dropper-icon-size-md: calc(1.125rem * var(--mantine-scale));--ci-eye-dropper-icon-size-lg: calc(1.25rem * var(--mantine-scale));--ci-eye-dropper-icon-size-xl: calc(1.375rem * var(--mantine-scale));--ci-eye-dropper-icon-size: var(--ci-eye-dropper-icon-size-sm)}.m_c5ccdcab{--ci-preview-size-xs: calc(1rem * var(--mantine-scale));--ci-preview-size-sm: calc(1.125rem * var(--mantine-scale));--ci-preview-size-md: calc(1.375rem * var(--mantine-scale));--ci-preview-size-lg: calc(1.75rem * var(--mantine-scale));--ci-preview-size-xl: calc(2.25rem * var(--mantine-scale));--ci-preview-size: var(--ci-preview-size-sm)}.m_5ece2cd7{padding:calc(.5rem * var(--mantine-scale))}.m_7485cace{--container-size-xs: calc(33.75rem * var(--mantine-scale));--container-size-sm: calc(45rem * var(--mantine-scale));--container-size-md: calc(60rem * var(--mantine-scale));--container-size-lg: calc(71.25rem * var(--mantine-scale));--container-size-xl: calc(82.5rem * var(--mantine-scale));--container-size: var(--container-size-md);max-width:var(--container-size);padding-inline:var(--mantine-spacing-md);margin-inline:auto}.m_7485cace:where([data-fluid]){max-width:100%}.m_e2125a27{--dialog-size-xs: calc(10rem * var(--mantine-scale));--dialog-size-sm: calc(12.5rem * var(--mantine-scale));--dialog-size-md: calc(21.25rem * var(--mantine-scale));--dialog-size-lg: calc(25rem * var(--mantine-scale));--dialog-size-xl: calc(31.25rem * var(--mantine-scale));--dialog-size: var(--dialog-size-md);position:relative;width:var(--dialog-size);max-width:calc(100vw - var(--mantine-spacing-xl) * 2);min-height:calc(3.125rem * var(--mantine-scale))}.m_5abab665{position:absolute;top:calc(var(--mantine-spacing-md) / 2);inset-inline-end:calc(var(--mantine-spacing-md) / 2)}.m_3eebeb36{--divider-size-xs: calc(.0625rem * var(--mantine-scale));--divider-size-sm: calc(.125rem * var(--mantine-scale));--divider-size-md: calc(.1875rem * var(--mantine-scale));--divider-size-lg: calc(.25rem * var(--mantine-scale));--divider-size-xl: calc(.3125rem * var(--mantine-scale));--divider-size: var(--divider-size-xs)}:where([data-mantine-color-scheme=light]) .m_3eebeb36{--divider-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_3eebeb36{--divider-color: var(--mantine-color-dark-4)}.m_3eebeb36:where([data-orientation=horizontal]){border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color)}.m_3eebeb36:where([data-orientation=vertical]){border-inline-start:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);height:auto;align-self:stretch}.m_3eebeb36:where([data-with-label]){border:0}.m_9e365f20{display:flex;align-items:center;font-size:var(--mantine-font-size-xs);color:var(--mantine-color-dimmed);white-space:nowrap}.m_9e365f20:where([data-position=left]):before{display:none}.m_9e365f20:where([data-position=right]):after{display:none}.m_9e365f20:before{content:"";flex:1;height:calc(.0625rem * var(--mantine-scale));border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);margin-inline-end:var(--mantine-spacing-xs)}.m_9e365f20:after{content:"";flex:1;height:calc(.0625rem * var(--mantine-scale));border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);margin-inline-start:var(--mantine-spacing-xs)}.m_f11b401e{--drawer-size-xs: calc(20rem * var(--mantine-scale));--drawer-size-sm: calc(23.75rem * var(--mantine-scale));--drawer-size-md: calc(27.5rem * var(--mantine-scale));--drawer-size-lg: calc(38.75rem * var(--mantine-scale));--drawer-size-xl: calc(48.75rem * var(--mantine-scale));--drawer-size: var(--drawer-size-md);--drawer-offset: 0rem}.m_5a7c2c9{z-index:1000}.m_b8a05bbd{flex:var(--drawer-flex, 0 0 var(--drawer-size));height:var(--drawer-height, calc(100% - var(--drawer-offset) * 2));margin:var(--drawer-offset);max-width:100%;max-height:100%;overflow-y:auto}.m_31cd769a{display:flex;justify-content:var(--drawer-justify, flex-start);align-items:var(--drawer-align, flex-start)}.m_e9408a47{padding:var(--mantine-spacing-lg);padding-top:var(--mantine-spacing-xs);border-radius:var(--fieldset-radius, var(--mantine-radius-default));min-inline-size:auto}.m_84c9523a{border:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_84c9523a{border-color:var(--mantine-color-gray-3);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_84c9523a{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-7)}.m_ef274e49{border:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_ef274e49{border-color:var(--mantine-color-gray-3);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_ef274e49{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}.m_eda993d3{padding:0;border:0;border-radius:0}.m_90794832{font-size:var(--mantine-font-size-sm)}.m_74ca27fe{padding:0;margin-bottom:var(--mantine-spacing-sm)}.m_410352e9{--grid-overflow: visible;--grid-margin: calc(var(--grid-gutter) / -2);--grid-col-padding: calc(var(--grid-gutter) / 2);overflow:var(--grid-overflow)}.m_dee7bd2f{width:calc(100% + var(--grid-gutter));display:flex;flex-wrap:wrap;justify-content:var(--grid-justify);align-items:var(--grid-align);margin:var(--grid-margin)}.m_96bdd299{--col-flex-grow: 0;--col-offset: 0rem;flex-shrink:0;order:var(--col-order);flex-basis:var(--col-flex-basis);width:var(--col-width);max-width:var(--col-max-width);flex-grow:var(--col-flex-grow);margin-inline-start:var(--col-offset);padding:var(--grid-col-padding)}.m_bcb3f3c2{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=light]) .m_bcb3f3c2{background-color:var(--mark-bg-light)}:where([data-mantine-color-scheme=dark]) .m_bcb3f3c2{background-color:var(--mark-bg-dark)}.m_9e117634{display:block;flex:0;object-fit:var(--image-object-fit, cover);width:100%;border-radius:var(--image-radius, 0)}@keyframes m_885901b1{0%{opacity:.6;transform:scale(0)}to{opacity:0;transform:scale(2.8)}}.m_e5262200{--indicator-size: calc(.625rem * var(--mantine-scale));--indicator-color: var(--mantine-primary-color-filled);position:relative;display:block}.m_e5262200:where([data-inline]){display:inline-block}.m_760d1fb1{position:absolute;top:var(--indicator-top);left:var(--indicator-left);right:var(--indicator-right);bottom:var(--indicator-bottom);transform:translate(var(--indicator-translate-x),var(--indicator-translate-y));min-width:var(--indicator-size);height:var(--indicator-size);border-radius:var(--indicator-radius, 1000rem);z-index:var(--indicator-z-index, 200);display:flex;align-items:center;justify-content:center;font-size:var(--mantine-font-size-xs);background-color:var(--indicator-color);color:var(--indicator-text-color, var(--mantine-color-white));white-space:nowrap}.m_760d1fb1:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-color:var(--indicator-color);border-radius:var(--indicator-radius, 1000rem);z-index:-1}.m_760d1fb1:where([data-with-label]){padding-inline:calc(var(--mantine-spacing-xs) / 2)}.m_760d1fb1:where([data-with-border]){border:2px solid var(--mantine-color-body)}.m_760d1fb1[data-processing]:before{animation:m_885901b1 1s linear infinite}.m_dc6f14e2{--kbd-fz-xs: calc(.625rem * var(--mantine-scale));--kbd-fz-sm: calc(.75rem * var(--mantine-scale));--kbd-fz-md: calc(.875rem * var(--mantine-scale));--kbd-fz-lg: calc(1rem * var(--mantine-scale));--kbd-fz-xl: calc(1.25rem * var(--mantine-scale));--kbd-fz: var(--kbd-fz-sm);--kbd-padding-xs: calc(.125rem * var(--mantine-scale)) calc(.25rem * var(--mantine-scale));--kbd-padding-sm: calc(.1875rem * var(--mantine-scale)) calc(.3125rem * var(--mantine-scale));--kbd-padding-md: calc(.25rem * var(--mantine-scale)) calc(.4375rem * var(--mantine-scale));--kbd-padding-lg: calc(.3125rem * var(--mantine-scale)) calc(.5625rem * var(--mantine-scale));--kbd-padding-xl: calc(.5rem * var(--mantine-scale)) calc(.875rem * var(--mantine-scale));--kbd-padding: var(--kbd-padding-sm);font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);font-weight:700;padding:var(--kbd-padding);font-size:var(--kbd-fz);border-radius:var(--mantine-radius-sm);border:calc(.0625rem * var(--mantine-scale)) solid;border-bottom-width:calc(.1875rem * var(--mantine-scale));unicode-bidi:embed}:where([data-mantine-color-scheme=light]) .m_dc6f14e2{border-color:var(--mantine-color-gray-3);color:var(--mantine-color-gray-7);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_dc6f14e2{border-color:var(--mantine-color-dark-4);color:var(--mantine-color-dark-0);background-color:var(--mantine-color-dark-6)}.m_abbac491{--list-fz: var(--mantine-font-size-md);--list-lh: var(--mantine-line-height-md);list-style-position:inside;font-size:var(--list-fz);line-height:var(--list-lh);margin:0;padding:0}.m_abbac491:where([data-with-padding]){padding-inline-start:var(--mantine-spacing-md)}.m_abb6bec2{white-space:nowrap;line-height:var(--list-lh)}.m_abb6bec2:where([data-with-icon]){list-style:none}.m_abb6bec2:where([data-with-icon]) .m_75cd9f71{--li-direction: row;--li-align: center}.m_abb6bec2:where(:not(:first-of-type)){margin-top:var(--list-spacing, 0)}.m_abb6bec2:where([data-centered]){line-height:1}.m_75cd9f71{display:inline-flex;flex-direction:var(--li-direction, column);align-items:var(--li-align, flex-start);white-space:normal}.m_60f83e5b{display:inline-block;vertical-align:middle;margin-inline-end:var(--mantine-spacing-sm)}.m_6e45937b{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;overflow:hidden;z-index:var(--lo-z-index)}.m_e8eb006c{position:relative;z-index:calc(var(--lo-z-index) + 1)}.m_df587f17{z-index:var(--lo-z-index)}.m_dc9b7c9f{padding:calc(.25rem * var(--mantine-scale))}.m_9bfac126{color:var(--mantine-color-dimmed);font-weight:500;font-size:var(--mantine-font-size-xs);padding:calc(var(--mantine-spacing-xs) / 2) var(--mantine-spacing-sm);cursor:default}.m_efdf90cb{margin-top:calc(.25rem * var(--mantine-scale));margin-bottom:calc(.25rem * var(--mantine-scale));border-top:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_efdf90cb{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_efdf90cb{border-color:var(--mantine-color-dark-4)}.m_99ac2aa1{font-size:var(--mantine-font-size-sm);width:100%;padding:calc(var(--mantine-spacing-xs) / 1.5) var(--mantine-spacing-sm);border-radius:var(--popover-radius, var(--mantine-radius-default));color:var(--menu-item-color, var(--mantine-color-text));display:flex;align-items:center;-webkit-user-select:none;user-select:none}.m_99ac2aa1:where([data-disabled],:disabled){color:var(--mantine-color-dimmed);opacity:.6;pointer-events:none}:where([data-mantine-color-scheme=light]) .m_99ac2aa1:where([data-hovered]){background-color:var(--menu-item-hover, var(--mantine-color-gray-1))}:where([data-mantine-color-scheme=dark]) .m_99ac2aa1:where([data-hovered]){background-color:var(--menu-item-hover, var(--mantine-color-dark-4))}.m_5476e0d3{flex:1}.m_8b75e504{display:flex;justify-content:center;align-items:center}.m_8b75e504:where([data-position=left]){margin-inline-end:var(--mantine-spacing-xs)}.m_8b75e504:where([data-position=right]){margin-inline-start:var(--mantine-spacing-xs)}.m_9df02822{--modal-size-xs: calc(20rem * var(--mantine-scale));--modal-size-sm: calc(23.75rem * var(--mantine-scale));--modal-size-md: calc(27.5rem * var(--mantine-scale));--modal-size-lg: calc(38.75rem * var(--mantine-scale));--modal-size-xl: calc(48.75rem * var(--mantine-scale));--modal-size: var(--modal-size-md);--modal-y-offset: 5dvh;--modal-x-offset: 5vw}.m_9df02822[data-full-screen]{--modal-border-radius: 0 !important}.m_9df02822[data-full-screen] .m_54c44539{--modal-content-flex: 0 0 100%;--modal-content-max-height: auto;--modal-content-height: 100dvh}.m_9df02822[data-full-screen] .m_1f958f16{--modal-inner-y-offset: 0;--modal-inner-x-offset: 0}.m_9df02822[data-centered] .m_1f958f16{--modal-inner-align: center}.m_d0e2b9cd{border-start-start-radius:var(--modal-radius, var(--mantine-radius-default));border-start-end-radius:var(--modal-radius, var(--mantine-radius-default))}.m_54c44539{flex:var(--modal-content-flex, 0 0 var(--modal-size));max-width:100%;max-height:var(--modal-content-max-height, calc(100dvh - var(--modal-y-offset) * 2));height:var(--modal-content-height, auto);overflow-y:auto}.m_54c44539[data-full-screen]{border-radius:0}.m_1f958f16{display:flex;justify-content:center;align-items:var(--modal-inner-align, flex-start);padding-top:var(--modal-inner-y-offset, var(--modal-y-offset));padding-bottom:var(--modal-inner-y-offset, var(--modal-y-offset));padding-inline:var(--modal-inner-x-offset, var(--modal-x-offset))}.m_7cda1cd6{--pill-fz-xs: calc(.625rem * var(--mantine-scale));--pill-fz-sm: calc(.75rem * var(--mantine-scale));--pill-fz-md: calc(.875rem * var(--mantine-scale));--pill-fz-lg: calc(1rem * var(--mantine-scale));--pill-fz-xl: calc(1.125rem * var(--mantine-scale));--pill-height-xs: calc(1.125rem * var(--mantine-scale));--pill-height-sm: calc(1.375rem * var(--mantine-scale));--pill-height-md: calc(1.5625rem * var(--mantine-scale));--pill-height-lg: calc(1.75rem * var(--mantine-scale));--pill-height-xl: calc(2rem * var(--mantine-scale));--pill-fz: var(--pill-fz-sm);--pill-height: var(--pill-height-sm);font-size:var(--pill-fz);flex:0;height:var(--pill-height);padding-inline:.8em;display:inline-flex;align-items:center;border-radius:var(--pill-radius, 1000rem);line-height:1;white-space:nowrap;user-select:none;-webkit-user-select:none;max-width:100%}:where([data-mantine-color-scheme=dark]) .m_7cda1cd6{background-color:var(--mantine-color-dark-7);color:var(--mantine-color-dark-0)}:where([data-mantine-color-scheme=light]) .m_7cda1cd6{color:var(--mantine-color-black)}.m_7cda1cd6:where([data-with-remove]:not(:has(button:disabled))){padding-inline-end:0}.m_7cda1cd6:where([data-disabled],:has(button:disabled)){cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_44da308b{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=light]) .m_44da308b:where([data-disabled],:has(button:disabled)){background-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=light]) .m_e3a01f8{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=light]) .m_e3a01f8:where([data-disabled],:has(button:disabled)){background-color:var(--mantine-color-gray-3)}.m_1e0e6180{cursor:inherit;overflow:hidden;height:100%;line-height:var(--pill-height);text-overflow:ellipsis}.m_ae386778{color:inherit;font-size:inherit;height:100%;min-height:unset;min-width:2em;width:unset;border-radius:0;padding-inline-start:.1em;padding-inline-end:.3em;flex:0}.m_7cda1cd6[data-disabled]>.m_ae386778,.m_ae386778:disabled{display:none;background-color:transparent;width:.8em;min-width:.8em;padding:0;cursor:not-allowed}.m_7cda1cd6[data-disabled]>.m_ae386778>svg,.m_ae386778:disabled>svg{display:none}.m_ae386778>svg{pointer-events:none}.m_1dcfd90b{--pg-gap-xs: calc(.375rem * var(--mantine-scale));--pg-gap-sm: calc(.5rem * var(--mantine-scale));--pg-gap-md: calc(.625rem * var(--mantine-scale));--pg-gap-lg: calc(.75rem * var(--mantine-scale));--pg-gap-xl: calc(.75rem * var(--mantine-scale));--pg-gap: var(--pg-gap-sm);display:flex;align-items:center;gap:var(--pg-gap);flex-wrap:wrap}.m_45c4369d{background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none;min-width:calc(6.25rem * var(--mantine-scale));flex:1;border:0;font-size:inherit;height:1.6em;color:inherit;padding:0}.m_45c4369d::placeholder{color:var(--input-placeholder-color);opacity:1}.m_45c4369d:where([data-type=hidden],[data-type=auto]){height:calc(.0625rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));top:0;left:0;pointer-events:none;position:absolute;opacity:0}.m_45c4369d:focus{outline:none}.m_45c4369d:where([data-type=auto]:focus){height:1.6em;visibility:visible;opacity:1;position:static}.m_45c4369d:where([data-pointer]:not([data-disabled],:disabled)){cursor:pointer}.m_45c4369d:where([data-disabled],:disabled){cursor:not-allowed}.m_f0824112{--nl-bg: var(--mantine-primary-color-light);--nl-hover: var(--mantine-primary-color-light-hover);--nl-color: var(--mantine-primary-color-light-color);display:flex;align-items:center;width:100%;padding:8px var(--mantine-spacing-sm);-webkit-user-select:none;user-select:none}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_f0824112:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_f0824112:hover{background-color:var(--mantine-color-dark-6)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_f0824112:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_f0824112:active{background-color:var(--mantine-color-dark-6)}}.m_f0824112:where([data-disabled]){opacity:.4;pointer-events:none}.m_f0824112:where([data-active]){background-color:var(--nl-bg);color:var(--nl-color)}@media (hover: hover){.m_f0824112:where([data-active]):hover{background-color:var(--nl-hover)}}@media (hover: none){.m_f0824112:where([data-active]):active{background-color:var(--nl-hover)}}.m_f0824112:where([data-active]) .m_57492dcc{--description-opacity: .9;--description-color: var(--nl-color)}.m_690090b5{display:flex;align-items:center;justify-content:center;transition:transform .15s ease}.m_690090b5>svg{display:block}.m_690090b5:where([data-position=left]){margin-inline-end:var(--mantine-spacing-sm)}.m_690090b5:where([data-position=right]){margin-inline-start:var(--mantine-spacing-sm)}.m_690090b5:where([data-rotate]){transform:rotate(90deg)}.m_1f6ac4c4{font-size:var(--mantine-font-size-sm)}.m_f07af9d2{flex:1;overflow:hidden;text-overflow:ellipsis}.m_f07af9d2:where([data-no-wrap]){white-space:nowrap}.m_57492dcc{display:block;font-size:var(--mantine-font-size-xs);opacity:var(--description-opacity, 1);color:var(--description-color, var(--mantine-color-dimmed));overflow:hidden;text-overflow:ellipsis}:where([data-no-wrap]) .m_57492dcc{white-space:nowrap}.m_e17b862f{padding-inline-start:var(--nl-offset, var(--mantine-spacing-lg))}.m_1fd8a00b{transform:rotate(-90deg)}.m_a513464{--notification-radius: var(--mantine-radius-default);--notification-color: var(--mantine-primary-color-filled);overflow:hidden;box-sizing:border-box;position:relative;display:flex;align-items:center;padding-inline-start:calc(1.375rem * var(--mantine-scale));padding-inline-end:var(--mantine-spacing-xs);padding-top:var(--mantine-spacing-xs);padding-bottom:var(--mantine-spacing-xs);border-radius:var(--notification-radius);box-shadow:var(--mantine-shadow-lg)}.m_a513464:before{content:"";display:block;position:absolute;width:calc(.375rem * var(--mantine-scale));top:var(--notification-radius);bottom:var(--notification-radius);inset-inline-start:calc(.25rem * var(--mantine-scale));border-radius:var(--notification-radius);background-color:var(--notification-color)}:where([data-mantine-color-scheme=light]) .m_a513464{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_a513464{background-color:var(--mantine-color-dark-6)}.m_a513464:where([data-with-icon]){padding-inline-start:var(--mantine-spacing-xs)}.m_a513464:where([data-with-icon]):before{display:none}:where([data-mantine-color-scheme=light]) .m_a513464:where([data-with-border]){border:1px solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_a513464:where([data-with-border]){border:1px solid var(--mantine-color-dark-4)}.m_a4ceffb{box-sizing:border-box;margin-inline-end:var(--mantine-spacing-md);width:calc(1.75rem * var(--mantine-scale));height:calc(1.75rem * var(--mantine-scale));border-radius:calc(1.75rem * var(--mantine-scale));display:flex;align-items:center;justify-content:center;background-color:var(--notification-color);color:var(--mantine-color-white)}.m_b0920b15{margin-inline-end:var(--mantine-spacing-md)}.m_a49ed24{flex:1;overflow:hidden;margin-inline-end:var(--mantine-spacing-xs)}.m_3feedf16{margin-bottom:calc(.125rem * var(--mantine-scale));overflow:hidden;text-overflow:ellipsis;font-size:var(--mantine-font-size-sm);line-height:var(--mantine-line-height-sm);font-weight:500}:where([data-mantine-color-scheme=light]) .m_3feedf16{color:var(--mantine-color-gray-9)}:where([data-mantine-color-scheme=dark]) .m_3feedf16{color:var(--mantine-color-white)}.m_3d733a3a{font-size:var(--mantine-font-size-sm);line-height:var(--mantine-line-height-sm);overflow:hidden;text-overflow:ellipsis}:where([data-mantine-color-scheme=light]) .m_3d733a3a{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_3d733a3a{color:var(--mantine-color-dark-0)}:where([data-mantine-color-scheme=light]) .m_3d733a3a:where([data-with-title]){color:var(--mantine-color-gray-6)}:where([data-mantine-color-scheme=dark]) .m_3d733a3a:where([data-with-title]){color:var(--mantine-color-dark-2)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_919a4d88:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_919a4d88:hover{background-color:var(--mantine-color-dark-8)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_919a4d88:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_919a4d88:active{background-color:var(--mantine-color-dark-8)}}.m_e2f5cd4e{--ni-right-section-width-xs: calc(1.0625rem * var(--mantine-scale));--ni-right-section-width-sm: calc(1.5rem * var(--mantine-scale));--ni-right-section-width-md: calc(1.6875rem * var(--mantine-scale));--ni-right-section-width-lg: calc(1.9375rem * var(--mantine-scale));--ni-right-section-width-xl: calc(2.125rem * var(--mantine-scale))}.m_95e17d22{--ni-chevron-size-xs: calc(.625rem * var(--mantine-scale));--ni-chevron-size-sm: calc(.875rem * var(--mantine-scale));--ni-chevron-size-md: calc(1rem * var(--mantine-scale));--ni-chevron-size-lg: calc(1.125rem * var(--mantine-scale));--ni-chevron-size-xl: calc(1.25rem * var(--mantine-scale));--ni-chevron-size: var(--ni-chevron-size-sm);display:flex;flex-direction:column;width:100%;height:calc(var(--input-height) - calc(.125rem * var(--mantine-scale)));max-width:calc(var(--ni-chevron-size) * 1.7);margin-inline-start:auto}.m_80b4b171{--control-border: 1px solid var(--input-bd);--control-radius: calc(var(--input-radius) - calc(.0625rem * var(--mantine-scale)));flex:0 0 50%;width:100%;padding:0;height:calc(var(--input-height) / 2 - calc(.0625rem * var(--mantine-scale)));border-inline-start:var(--control-border);display:flex;align-items:center;justify-content:center;color:var(--mantine-color-text);background-color:transparent;cursor:pointer}.m_80b4b171:where(:disabled){background-color:transparent;cursor:not-allowed;opacity:.6}:where([data-mantine-color-scheme=light]) .m_80b4b171:where(:disabled){color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_80b4b171:where(:disabled){color:var(--mantine-color-dark-3)}.m_e2f5cd4e[data-error] :where(.m_80b4b171){color:var(--mantine-color-error)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_80b4b171:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_80b4b171:hover{background-color:var(--mantine-color-dark-4)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_80b4b171:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_80b4b171:active{background-color:var(--mantine-color-dark-4)}}.m_80b4b171:where(:first-of-type){border-radius:0;border-start-end-radius:var(--control-radius)}.m_80b4b171:last-of-type{border-top:1 solid var(--input-bd);border-radius:0;border-end-end-radius:var(--control-radius)}.m_4addd315{--pagination-control-size-xs: calc(1.375rem * var(--mantine-scale));--pagination-control-size-sm: calc(1.625rem * var(--mantine-scale));--pagination-control-size-md: calc(2rem * var(--mantine-scale));--pagination-control-size-lg: calc(2.375rem * var(--mantine-scale));--pagination-control-size-xl: calc(2.75rem * var(--mantine-scale));--pagination-control-size: var(--pagination-control-size-md);--pagination-control-fz: var(--mantine-font-size-md);--pagination-active-bg: var(--mantine-primary-color-filled)}.m_326d024a{display:flex;align-items:center;justify-content:center;border:calc(.0625rem * var(--mantine-scale)) solid;cursor:pointer;color:var(--mantine-color-text);height:var(--pagination-control-size);min-width:var(--pagination-control-size);font-size:var(--pagination-control-fz);line-height:1;border-radius:var(--pagination-control-radius, var(--mantine-radius-default))}.m_326d024a:where([data-with-padding]){padding:calc(var(--pagination-control-size) / 4)}.m_326d024a:where(:disabled,[data-disabled]){cursor:not-allowed;opacity:.4}:where([data-mantine-color-scheme=light]) .m_326d024a{border-color:var(--mantine-color-gray-4);background-color:var(--mantine-color-white)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_326d024a:hover:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-gray-0)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_326d024a:active:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-gray-0)}}:where([data-mantine-color-scheme=dark]) .m_326d024a{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}@media (hover: hover){:where([data-mantine-color-scheme=dark]) .m_326d024a:hover:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-dark-5)}}@media (hover: none){:where([data-mantine-color-scheme=dark]) .m_326d024a:active:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-dark-5)}}.m_326d024a:where([data-active]){background-color:var(--pagination-active-bg);border-color:var(--pagination-active-bg);color:var(--pagination-active-color, var(--mantine-color-white))}@media (hover: hover){.m_326d024a:where([data-active]):hover{background-color:var(--pagination-active-bg)}}@media (hover: none){.m_326d024a:where([data-active]):active{background-color:var(--pagination-active-bg)}}.m_4ad7767d{height:var(--pagination-control-size);min-width:var(--pagination-control-size);display:flex;align-items:center;justify-content:center;pointer-events:none}.m_f61ca620{--psi-button-size-xs: calc(1.375rem * var(--mantine-scale));--psi-button-size-sm: calc(1.625rem * var(--mantine-scale));--psi-button-size-md: calc(1.75rem * var(--mantine-scale));--psi-button-size-lg: calc(2rem * var(--mantine-scale));--psi-button-size-xl: calc(2.5rem * var(--mantine-scale));--psi-icon-size-xs: calc(.75rem * var(--mantine-scale));--psi-icon-size-sm: calc(.9375rem * var(--mantine-scale));--psi-icon-size-md: calc(1.0625rem * var(--mantine-scale));--psi-icon-size-lg: calc(1.1875rem * var(--mantine-scale));--psi-icon-size-xl: calc(1.3125rem * var(--mantine-scale));--psi-button-size: var(--psi-button-size-sm);--psi-icon-size: var(--psi-icon-size-sm)}.m_ccf8da4c{position:relative;overflow:hidden}.m_f2d85dd2{font-family:var(--mantine-font-family);background-color:transparent;border:0;padding-inline-end:var(--input-padding-inline-end);padding-inline-start:var(--input-padding-inline-start);position:absolute;top:0;right:0;bottom:0;left:0;outline:0;font-size:inherit;line-height:var(--mantine-line-height);height:100%;width:100%;color:inherit}.m_ccf8da4c[data-disabled] .m_f2d85dd2,.m_f2d85dd2:disabled{cursor:not-allowed}.m_f2d85dd2::placeholder{color:var(--input-placeholder-color);opacity:1}.m_b1072d44{width:var(--psi-button-size);height:var(--psi-button-size);min-width:var(--psi-button-size);min-height:var(--psi-button-size)}.m_b1072d44:disabled{display:none}.m_f1cb205a{--pin-input-size-xs: calc(1.875rem * var(--mantine-scale));--pin-input-size-sm: calc(2.25rem * var(--mantine-scale));--pin-input-size-md: calc(2.625rem * var(--mantine-scale));--pin-input-size-lg: calc(3.125rem * var(--mantine-scale));--pin-input-size-xl: calc(3.75rem * var(--mantine-scale));--pin-input-size: var(--pin-input-size-sm)}.m_cb288ead{width:var(--pin-input-size);height:var(--pin-input-size)}@keyframes m_81a374bd{0%{background-position:0 0}to{background-position:calc(2.5rem * var(--mantine-scale)) 0}}.m_db6d6462{--progress-radius: var(--mantine-radius-default);--progress-size: var(--progress-size-md);--progress-size-xs: calc(.1875rem * var(--mantine-scale));--progress-size-sm: calc(.3125rem * var(--mantine-scale));--progress-size-md: calc(.5rem * var(--mantine-scale));--progress-size-lg: calc(.75rem * var(--mantine-scale));--progress-size-xl: calc(1rem * var(--mantine-scale));position:relative;height:var(--progress-size);border-radius:var(--progress-radius);overflow:hidden;display:flex}:where([data-mantine-color-scheme=light]) .m_db6d6462{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_db6d6462{background-color:var(--mantine-color-dark-4)}.m_2242eb65{background-color:var(--progress-section-color);height:100%;width:var(--progress-section-width);display:flex;align-items:center;justify-content:center;overflow:hidden;background-size:calc(1.25rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));transition:width var(--progress-transition-duration, .1s) ease}.m_2242eb65:where([data-striped]){background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.m_2242eb65:where([data-animated]){animation:m_81a374bd 1s linear infinite}.m_2242eb65:where(:last-of-type){border-radius:0;border-start-end-radius:var(--progress-radius);border-end-end-radius:var(--progress-radius)}.m_2242eb65:where(:first-of-type){border-radius:0;border-start-start-radius:var(--progress-radius);border-end-start-radius:var(--progress-radius)}.m_91e40b74{color:var(--progress-label-color, var(--mantine-color-white));font-weight:700;-webkit-user-select:none;user-select:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:min(calc(var(--progress-size) * .65),calc(1.125rem * var(--mantine-scale)));line-height:1;padding-inline:calc(.25rem * var(--mantine-scale))}.m_f3f1af94{--radio-size-xs: calc(1rem * var(--mantine-scale));--radio-size-sm: calc(1.25rem * var(--mantine-scale));--radio-size-md: calc(1.5rem * var(--mantine-scale));--radio-size-lg: calc(1.875rem * var(--mantine-scale));--radio-size-xl: calc(2.25rem * var(--mantine-scale));--radio-size: var(--radio-size-sm);--radio-icon-size-xs: calc(.375rem * var(--mantine-scale));--radio-icon-size-sm: calc(.5rem * var(--mantine-scale));--radio-icon-size-md: calc(.625rem * var(--mantine-scale));--radio-icon-size-lg: calc(.875rem * var(--mantine-scale));--radio-icon-size-xl: calc(1rem * var(--mantine-scale));--radio-icon-size: var(--radio-icon-size-sm);--radio-icon-color: var(--mantine-color-white)}.m_89c4f5e4{position:relative;width:var(--radio-size);height:var(--radio-size);order:1}.m_89c4f5e4:where([data-label-position=left]){order:2}.m_f3ed6b2b{color:var(--radio-icon-color);opacity:var(--radio-icon-opacity, 0);transform:var(--radio-icon-transform, scale(.2) translateY(calc(.625rem * var(--mantine-scale))));transition:opacity .1s ease,transform .2s ease;pointer-events:none;width:var(--radio-icon-size);height:var(--radio-icon-size);position:absolute;top:calc(50% - var(--radio-icon-size) / 2);left:calc(50% - var(--radio-icon-size) / 2)}.m_8a3dbb89{border:calc(.0625rem * var(--mantine-scale)) solid;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:var(--radio-size);height:var(--radio-size);border-radius:var(--radio-radius, var(--radio-size));margin:0;display:flex;align-items:center;justify-content:center;transition-property:background-color,border-color;transition-timing-function:ease;transition-duration:.1s;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent}:where([data-mantine-color-scheme=light]) .m_8a3dbb89{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_8a3dbb89{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_8a3dbb89:checked{background-color:var(--radio-color, var(--mantine-primary-color-filled));border-color:var(--radio-color, var(--mantine-primary-color-filled))}.m_8a3dbb89:checked+.m_f3ed6b2b{--radio-icon-opacity: 1;--radio-icon-transform: scale(1)}.m_8a3dbb89:disabled{cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_8a3dbb89:disabled{background-color:var(--mantine-color-gray-1);border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=light]) .m_8a3dbb89:disabled+.m_f3ed6b2b{--radio-icon-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_8a3dbb89:disabled{background-color:var(--mantine-color-dark-5);border-color:var(--mantine-color-dark-4)}:where([data-mantine-color-scheme=dark]) .m_8a3dbb89:disabled+.m_f3ed6b2b{--radio-icon-color: var(--mantine-color-dark-7)}.m_8a3dbb89:where([data-error]){border-color:var(--mantine-color-error)}.m_1bfe9d39+.m_f3ed6b2b{--radio-icon-color: var(--radio-color)}.m_1bfe9d39:checked:not(:disabled){background-color:transparent;border-color:var(--radio-color)}.m_1bfe9d39:checked:not(:disabled)+.m_f3ed6b2b{--radio-icon-color: var(--radio-color);--radio-icon-opacity: 1;--radio-icon-transform: none}.m_f8d312f2{--rating-size-xs: calc(.875rem * var(--mantine-scale));--rating-size-sm: calc(1.125rem * var(--mantine-scale));--rating-size-md: calc(1.25rem * var(--mantine-scale));--rating-size-lg: calc(1.75rem * var(--mantine-scale));--rating-size-xl: calc(2rem * var(--mantine-scale));display:flex;width:max-content}.m_f8d312f2:where(:has(input:disabled)){pointer-events:none}.m_61734bb7{position:relative;transition:transform .1s ease}.m_61734bb7:where([data-active]){z-index:1;transform:scale(1.1)}.m_5662a89a{width:var(--rating-size);height:var(--rating-size);display:block}:where([data-mantine-color-scheme=light]) .m_5662a89a{fill:var(--mantine-color-gray-3);stroke:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_5662a89a{fill:var(--mantine-color-dark-3);stroke:var(--mantine-color-dark-3)}.m_5662a89a:where([data-filled]){fill:var(--rating-color);stroke:var(--rating-color)}.m_211007ba{height:0;width:0;position:absolute;overflow:hidden;white-space:nowrap;opacity:0;-webkit-tap-highlight-color:transparent}.m_211007ba:focus-visible+label{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_21342ee4{display:block;cursor:pointer;position:absolute;top:0;left:0;z-index:var(--rating-item-z-index, 0);-webkit-tap-highlight-color:transparent}.m_21342ee4:where([data-read-only]){cursor:default}.m_21342ee4:where(:last-of-type){position:relative}.m_fae05d6a{clip-path:var(--rating-symbol-clip-path)}.m_1b3c8819{--tooltip-radius: var(--mantine-radius-default);position:absolute;padding:calc(var(--mantine-spacing-xs) / 2) var(--mantine-spacing-xs);pointer-events:none;font-size:var(--mantine-font-size-sm);white-space:nowrap;border-radius:var(--tooltip-radius)}:where([data-mantine-color-scheme=light]) .m_1b3c8819{background-color:var(--tooltip-bg, var(--mantine-color-gray-9));color:var(--tooltip-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_1b3c8819{background-color:var(--tooltip-bg, var(--mantine-color-gray-2));color:var(--tooltip-color, var(--mantine-color-black))}.m_1b3c8819:where([data-multiline]){white-space:normal}.m_f898399f{background-color:inherit;border:0;z-index:1}.m_b32e4812{position:relative;width:var(--rp-size);height:var(--rp-size);min-width:var(--rp-size);min-height:var(--rp-size)}.m_d43b5134{width:var(--rp-size);height:var(--rp-size);min-width:var(--rp-size);min-height:var(--rp-size);transform:rotate(-90deg)}.m_b1ca1fbf{stroke:var(--curve-color, var(--rp-curve-root-color))}[data-mantine-color-scheme=light] .m_b1ca1fbf{--rp-curve-root-color: var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_b1ca1fbf{--rp-curve-root-color: var(--mantine-color-dark-4)}.m_b23f9dc4{position:absolute;top:50%;transform:translateY(-50%);inset-inline:var(--rp-label-offset)}.m_cf365364{--sc-padding-xs: calc(.1875rem * var(--mantine-scale)) calc(.375rem * var(--mantine-scale));--sc-padding-sm: calc(.3125rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale));--sc-padding-md: calc(.4375rem * var(--mantine-scale)) calc(.875rem * var(--mantine-scale));--sc-padding-lg: calc(.5625rem * var(--mantine-scale)) calc(1rem * var(--mantine-scale));--sc-padding-xl: calc(.75rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));--sc-transition-duration: .2s;--sc-padding: var(--sc-padding-sm);--sc-transition-timing-function: ease;--sc-font-size: var(--mantine-font-size-sm);position:relative;display:inline-flex;flex-direction:row;width:auto;border-radius:var(--sc-radius, var(--mantine-radius-default));overflow:hidden;padding:calc(.25rem * var(--mantine-scale))}.m_cf365364:where([data-full-width]){display:flex}.m_cf365364:where([data-orientation=vertical]){display:flex;flex-direction:column;width:max-content}.m_cf365364:where([data-orientation=vertical]):where([data-full-width]){width:auto}:where([data-mantine-color-scheme=light]) .m_cf365364{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_cf365364{background-color:var(--mantine-color-dark-8)}.m_9e182ccd{position:absolute;display:block;z-index:1;border-radius:var(--sc-radius, var(--mantine-radius-default))}:where([data-mantine-color-scheme=light]) .m_9e182ccd{box-shadow:var(--sc-shadow, none);background-color:var(--sc-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_9e182ccd{box-shadow:none;background-color:var(--sc-color, var(--mantine-color-dark-5))}.m_1738fcb2{-webkit-tap-highlight-color:transparent;font-weight:500;display:block;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-user-select:none;user-select:none;border-radius:var(--sc-radius, var(--mantine-radius-default));font-size:var(--sc-font-size);padding:var(--sc-padding);transition:color var(--sc-transition-duration) var(--sc-transition-timing-function);cursor:pointer;outline:var(--segmented-control-outline, none)}:where([data-mantine-color-scheme=light]) .m_1738fcb2{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2{color:var(--mantine-color-dark-1)}.m_1738fcb2:where([data-read-only]){cursor:default}fieldset:disabled .m_1738fcb2,.m_1738fcb2:where([data-disabled]){cursor:not-allowed}:where([data-mantine-color-scheme=light]) fieldset:disabled .m_1738fcb2,:where([data-mantine-color-scheme=light]) .m_1738fcb2:where([data-disabled]){color:var(--mantine-color-gray-5)}:where([data-mantine-color-scheme=dark]) fieldset:disabled .m_1738fcb2,:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where([data-disabled]){color:var(--mantine-color-dark-3)}:where([data-mantine-color-scheme=light]) .m_1738fcb2:where([data-active]){color:var(--sc-label-color, var(--mantine-color-black))}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where([data-active]){color:var(--sc-label-color, var(--mantine-color-white))}.m_cf365364:where([data-initialized]) .m_1738fcb2:where([data-active]):before{display:none}.m_1738fcb2:where([data-active]):before{content:"";top:0;right:0;bottom:0;left:0;z-index:0;position:absolute;border-radius:var(--sc-radius, var(--mantine-radius-default))}:where([data-mantine-color-scheme=light]) .m_1738fcb2:where([data-active]):before{box-shadow:var(--sc-shadow, none);background-color:var(--sc-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where([data-active]):before{box-shadow:none;background-color:var(--sc-color, var(--mantine-color-dark-5))}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):hover{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):hover{color:var(--mantine-color-white)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):active{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):active{color:var(--mantine-color-white)}}@media (hover: hover){:where([data-mantine-color-scheme=light]) fieldset:disabled .m_1738fcb2:hover{color:var(--mantine-color-gray-5)!important}:where([data-mantine-color-scheme=dark]) fieldset:disabled .m_1738fcb2:hover{color:var(--mantine-color-dark-3)!important}}@media (hover: none){:where([data-mantine-color-scheme=light]) fieldset:disabled .m_1738fcb2:active{color:var(--mantine-color-gray-5)!important}:where([data-mantine-color-scheme=dark]) fieldset:disabled .m_1738fcb2:active{color:var(--mantine-color-dark-3)!important}}.m_1714d588{height:0;width:0;position:absolute;overflow:hidden;white-space:nowrap;opacity:0}.m_1714d588[data-focus-ring=auto]:focus:focus-visible+.m_1738fcb2{--segmented-control-outline: 2px solid var(--mantine-color-blue-filled)}.m_1714d588[data-focus-ring=always]:focus+.m_1738fcb2{--segmented-control-outline: 2px solid var(--mantine-color-blue-filled)}.m_69686b9b{position:relative;flex:1;z-index:2;transition:border-color var(--sc-transition-duration) var(--sc-transition-timing-function)}.m_cf365364[data-with-items-borders] :where(.m_69686b9b):before{content:"";position:absolute;top:0;bottom:0;inset-inline-start:0;background-color:var(--separator-color);width:calc(.0625rem * var(--mantine-scale));transition:background-color var(--sc-transition-duration) var(--sc-transition-timing-function)}.m_69686b9b[data-orientation=vertical]:before{top:0;inset-inline:0;bottom:auto;height:calc(.0625rem * var(--mantine-scale));width:auto}:where([data-mantine-color-scheme=light]) .m_69686b9b{--separator-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_69686b9b{--separator-color: var(--mantine-color-dark-4)}.m_69686b9b:first-of-type:before{--separator-color: transparent}[data-mantine-color-scheme] .m_69686b9b[data-active]:before,[data-mantine-color-scheme] .m_69686b9b[data-active]+.m_69686b9b:before{--separator-color: transparent}.m_78882f40{position:relative;z-index:2}.m_2415a157{display:grid;grid-template-columns:repeat(var(--sg-cols),minmax(0,1fr));gap:var(--sg-spacing-y) var(--sg-spacing-x)}@keyframes m_299c329c{0%,to{opacity:.4}50%{opacity:1}}.m_18320242{height:var(--skeleton-height, auto);width:var(--skeleton-width, 100%);border-radius:var(--skeleton-radius, var(--mantine-radius-default));position:relative;transform:translateZ(0);-webkit-transform:translateZ(0)}.m_18320242:where([data-animate]):after{animation:m_299c329c 1.5s linear infinite}.m_18320242:where([data-visible]){overflow:hidden}.m_18320242:where([data-visible]):before{position:absolute;content:"";top:0;right:0;bottom:0;left:0;z-index:10;background-color:var(--mantine-color-body)}.m_18320242:where([data-visible]):after{position:absolute;content:"";top:0;right:0;bottom:0;left:0;z-index:11}:where([data-mantine-color-scheme=light]) .m_18320242:where([data-visible]):after{background-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_18320242:where([data-visible]):after{background-color:var(--mantine-color-dark-4)}.m_dd36362e{--slider-size-xs: calc(.25rem * var(--mantine-scale));--slider-size-sm: calc(.375rem * var(--mantine-scale));--slider-size-md: calc(.5rem * var(--mantine-scale));--slider-size-lg: calc(.625rem * var(--mantine-scale));--slider-size-xl: calc(.75rem * var(--mantine-scale));--slider-size: var(--slider-size-md);--slider-radius: calc(62.5rem * var(--mantine-scale));--slider-color: var(--mantine-primary-color-filled);-webkit-tap-highlight-color:transparent;outline:none;height:calc(var(--slider-size) * 2);padding-inline:var(--slider-size);display:flex;flex-direction:column;align-items:center;touch-action:none;position:relative}[data-mantine-color-scheme=light] .m_dd36362e{--slider-track-bg: var(--mantine-color-gray-2);--slider-track-disabled-bg: var(--mantine-color-gray-4)}[data-mantine-color-scheme=dark] .m_dd36362e{--slider-track-bg: var(--mantine-color-dark-4);--slider-track-disabled-bg: var(--mantine-color-dark-3)}.m_c9357328{position:absolute;top:calc(-2.25rem * var(--mantine-scale));font-size:var(--mantine-font-size-xs);color:var(--mantine-color-white);padding:calc(var(--mantine-spacing-xs) / 2);border-radius:var(--mantine-radius-sm);white-space:nowrap;pointer-events:none;-webkit-user-select:none;user-select:none;touch-action:none}:where([data-mantine-color-scheme=light]) .m_c9357328{background-color:var(--mantine-color-gray-9)}:where([data-mantine-color-scheme=dark]) .m_c9357328{background-color:var(--mantine-color-dark-4)}.m_c9a9a60a{position:absolute;display:flex;height:var(--slider-thumb-size);width:var(--slider-thumb-size);border:calc(.25rem * var(--mantine-scale)) solid;transform:translate(-50%,-50%);color:var(--slider-color);top:50%;cursor:pointer;border-radius:var(--slider-radius);align-items:center;justify-content:center;transition:box-shadow .1s ease,transform .1s ease;z-index:3;-webkit-user-select:none;user-select:none;touch-action:none;outline-offset:calc(.125rem * var(--mantine-scale));left:var(--slider-thumb-offset)}:where([dir=rtl]) .m_c9a9a60a{left:auto;right:calc(var(--slider-thumb-offset) - var(--slider-thumb-size))}fieldset:disabled .m_c9a9a60a,.m_c9a9a60a:where([data-disabled]){display:none}.m_c9a9a60a:where([data-dragging]){transform:translate(-50%,-50%) scale(1.05);box-shadow:var(--mantine-shadow-sm)}:where([data-mantine-color-scheme=light]) .m_c9a9a60a{border-color:var(--slider-color);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_c9a9a60a{border-color:var(--mantine-color-white);background-color:var(--slider-color)}.m_a8645c2{display:flex;align-items:center;width:100%;height:calc(var(--slider-size) * 2);cursor:pointer}fieldset:disabled .m_a8645c2,.m_a8645c2:where([data-disabled]){cursor:not-allowed}.m_c9ade57f{position:relative;width:100%;height:var(--slider-size)}.m_c9ade57f:where([data-inverted]:not([data-disabled])){--track-bg: var(--slider-color)}fieldset:disabled .m_c9ade57f:where([data-inverted]),.m_c9ade57f:where([data-inverted][data-disabled]){--track-bg: var(--slider-track-disabled-bg)}.m_c9ade57f:before{content:"";position:absolute;top:0;bottom:0;border-radius:var(--slider-radius);inset-inline:calc(var(--slider-size) * -1);background-color:var(--track-bg, var(--slider-track-bg));z-index:0}.m_38aeed47{position:absolute;z-index:1;top:0;bottom:0;background-color:var(--slider-color);border-radius:var(--slider-radius);width:var(--slider-bar-width);inset-inline-start:var(--slider-bar-offset)}.m_38aeed47:where([data-inverted]){background-color:var(--slider-track-bg)}:where([data-mantine-color-scheme=light]) fieldset:disabled .m_38aeed47:where(:not([data-inverted])),:where([data-mantine-color-scheme=light]) .m_38aeed47:where([data-disabled]:not([data-inverted])){background-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) fieldset:disabled .m_38aeed47:where(:not([data-inverted])),:where([data-mantine-color-scheme=dark]) .m_38aeed47:where([data-disabled]:not([data-inverted])){background-color:var(--mantine-color-dark-3)}.m_b7b0423a{position:absolute;inset-inline-start:calc(var(--mark-offset) - var(--slider-size) / 2);top:0;z-index:2;height:0;pointer-events:none}.m_dd33bc19{border:calc(.125rem * var(--mantine-scale)) solid;height:var(--slider-size);width:var(--slider-size);border-radius:calc(62.5rem * var(--mantine-scale));transform:translate((calc(var(--slider-size) / -2)));background-color:var(--mantine-color-white);pointer-events:none}:where([data-mantine-color-scheme=light]) .m_dd33bc19{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_dd33bc19{border-color:var(--mantine-color-dark-4)}.m_dd33bc19:where([data-filled]){border-color:var(--slider-color)}:where([data-mantine-color-scheme=light]) .m_dd33bc19:where([data-filled]):where([data-disabled]){border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_dd33bc19:where([data-filled]):where([data-disabled]){border-color:var(--mantine-color-dark-3)}.m_68c77a5b{transform:translate(calc(-50% + var(--slider-size) / 2),calc(var(--mantine-spacing-xs) / 2));font-size:var(--mantine-font-size-sm);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none}:where([data-mantine-color-scheme=light]) .m_68c77a5b{color:var(--mantine-color-gray-6)}:where([data-mantine-color-scheme=dark]) .m_68c77a5b{color:var(--mantine-color-dark-2)}.m_559cce2d{position:relative}.m_559cce2d:where([data-has-spoiler]){margin-bottom:calc(1.5rem * var(--mantine-scale))}.m_b912df4e{display:flex;flex-direction:column;overflow:hidden;transition:max-height var(--spoiler-transition-duration, .2s) ease}.m_b9131032{position:absolute;inset-inline-start:0;top:100%;height:calc(1.5rem * var(--mantine-scale))}.m_6d731127{display:flex;flex-direction:column;align-items:var(--stack-align, stretch);justify-content:var(--stack-justify, flex-start);gap:var(--stack-gap, var(--mantine-spacing-md))}.m_cbb4ea7e{--stepper-icon-size-xs: calc(2.125rem * var(--mantine-scale));--stepper-icon-size-sm: calc(2.25rem * var(--mantine-scale));--stepper-icon-size-md: calc(2.625rem * var(--mantine-scale));--stepper-icon-size-lg: calc(3rem * var(--mantine-scale));--stepper-icon-size-xl: calc(3.25rem * var(--mantine-scale));--stepper-icon-size: var(--stepper-icon-size-md);--stepper-color: var(--mantine-primary-color-filled);--stepper-content-padding: var(--mantine-spacing-md);--stepper-spacing: var(--mantine-spacing-md);--stepper-radius: calc(62.5rem * var(--mantine-scale));--stepper-fz: var(--mantine-font-size-md)}.m_aaf89d0b{display:flex;flex-wrap:nowrap;align-items:center}.m_aaf89d0b:where([data-wrap]){flex-wrap:wrap;gap:var(--mantine-spacing-md) 0}.m_aaf89d0b:where([data-orientation=vertical]){flex-direction:column}.m_aaf89d0b:where([data-orientation=vertical]):where([data-icon-position=left]){align-items:flex-start}.m_aaf89d0b:where([data-orientation=vertical]):where([data-icon-position=right]){align-items:flex-end}.m_aaf89d0b:where([data-orientation=horizontal]){flex-direction:row}.m_2a371ac9{--separator-offset: calc(var(--stepper-icon-size) / 2 - calc(.0625rem * var(--mantine-scale)));transition:background-color .15s ease;flex:1}:where([data-mantine-color-scheme=light]) .m_2a371ac9{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_2a371ac9{background-color:var(--mantine-color-dark-2)}.m_2a371ac9:where([data-active]){background-color:var(--stepper-color)}.m_2a371ac9:where([data-orientation=horizontal]){height:calc(.125rem * var(--mantine-scale));margin-inline:var(--mantine-spacing-md)}.m_2a371ac9:where([data-orientation=vertical]){width:calc(.125rem * var(--mantine-scale));margin-top:calc(var(--mantine-spacing-xs) / 2);margin-bottom:calc(var(--mantine-spacing-xs) - calc(.125rem * var(--mantine-scale)))}.m_2a371ac9:where([data-orientation=vertical]):where([data-icon-position=left]){margin-inline-start:var(--separator-offset)}.m_2a371ac9:where([data-orientation=vertical]):where([data-icon-position=right]){margin-inline-end:var(--separator-offset)}.m_78da155d{padding-top:var(--stepper-content-padding)}.m_cbb57068{--step-color: var(--stepper-color);display:flex;cursor:default}.m_cbb57068:where([data-allow-click]){cursor:pointer}.m_cbb57068:where([data-icon-position=left]){flex-direction:row}.m_cbb57068:where([data-icon-position=right]){flex-direction:row-reverse}.m_f56b1e2c{align-items:center}.m_833edb7e{--separator-spacing: calc(var(--mantine-spacing-xs) / 2);justify-content:flex-start;min-height:calc(var(--stepper-icon-size) + var(--mantine-spacing-xl) + var(--separator-spacing));margin-top:var(--separator-spacing);overflow:hidden}.m_833edb7e:where(:first-of-type){margin-top:0}.m_833edb7e:where(:last-of-type) .m_6496b3f3{display:none}.m_818e70b{position:relative}.m_6496b3f3{top:calc(var(--stepper-icon-size) + var(--separator-spacing));inset-inline-start:calc(var(--stepper-icon-size) / 2);height:100vh;position:absolute;border-inline-start:calc(.125rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_6496b3f3{border-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_6496b3f3{border-color:var(--mantine-color-dark-5)}.m_6496b3f3:where([data-active]){border-color:var(--stepper-color)}.m_1959ad01{height:var(--stepper-icon-size);width:var(--stepper-icon-size);min-height:var(--stepper-icon-size);min-width:var(--stepper-icon-size);border-radius:var(--stepper-radius);font-size:var(--stepper-fz);display:flex;align-items:center;justify-content:center;position:relative;font-weight:700;transition:background-color .15s ease,border-color .15s ease;border:calc(.125rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_1959ad01{background-color:var(--mantine-color-gray-1);border-color:var(--mantine-color-gray-1);color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_1959ad01{background-color:var(--mantine-color-dark-5);border-color:var(--mantine-color-dark-5);color:var(--mantine-color-dark-1)}.m_1959ad01:where([data-progress]){border-color:var(--step-color)}.m_1959ad01:where([data-completed]){color:var(--stepper-icon-color, var(--mantine-color-white));background-color:var(--step-color);border-color:var(--step-color)}.m_a79331dc{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:var(--stepper-icon-color, var(--mantine-color-white))}.m_1956aa2a{display:flex;flex-direction:column}.m_1956aa2a:where([data-icon-position=left]){margin-inline-start:var(--mantine-spacing-sm)}.m_1956aa2a:where([data-icon-position=right]){text-align:right;margin-inline-end:var(--mantine-spacing-sm)}:where([dir=rtl]) .m_1956aa2a:where([data-icon-position=right]){text-align:left}.m_12051f6c{font-weight:500;font-size:var(--stepper-fz);line-height:1}.m_164eea74{margin-top:calc(var(--stepper-spacing) / 3);margin-bottom:calc(var(--stepper-spacing) / 3);font-size:calc(var(--stepper-fz) - calc(.125rem * var(--mantine-scale)));line-height:1;color:var(--mantine-color-dimmed)}.m_5f93f3bb{--switch-height-xs: calc(1rem * var(--mantine-scale));--switch-height-sm: calc(1.25rem * var(--mantine-scale));--switch-height-md: calc(1.5rem * var(--mantine-scale));--switch-height-lg: calc(1.875rem * var(--mantine-scale));--switch-height-xl: calc(2.25rem * var(--mantine-scale));--switch-width-xs: calc(2rem * var(--mantine-scale));--switch-width-sm: calc(2.375rem * var(--mantine-scale));--switch-width-md: calc(2.875rem * var(--mantine-scale));--switch-width-lg: calc(3.5rem * var(--mantine-scale));--switch-width-xl: calc(4.5rem * var(--mantine-scale));--switch-thumb-size-xs: calc(.75rem * var(--mantine-scale));--switch-thumb-size-sm: calc(.875rem * var(--mantine-scale));--switch-thumb-size-md: calc(1.125rem * var(--mantine-scale));--switch-thumb-size-lg: calc(1.375rem * var(--mantine-scale));--switch-thumb-size-xl: calc(1.75rem * var(--mantine-scale));--switch-label-font-size-xs: calc(.3125rem * var(--mantine-scale));--switch-label-font-size-sm: calc(.375rem * var(--mantine-scale));--switch-label-font-size-md: calc(.4375rem * var(--mantine-scale));--switch-label-font-size-lg: calc(.5625rem * var(--mantine-scale));--switch-label-font-size-xl: calc(.6875rem * var(--mantine-scale));--switch-track-label-padding-xs: calc(.0625rem * var(--mantine-scale));--switch-track-label-padding-sm: calc(.125rem * var(--mantine-scale));--switch-track-label-padding-md: calc(.125rem * var(--mantine-scale));--switch-track-label-padding-lg: calc(.1875rem * var(--mantine-scale));--switch-track-label-padding-xl: calc(.1875rem * var(--mantine-scale));--switch-height: var(--switch-height-sm);--switch-width: var(--switch-width-sm);--switch-thumb-size: var(--switch-thumb-size-sm);--switch-label-font-size: var(--switch-label-font-size-sm);--switch-track-label-padding: var(--switch-track-label-padding-sm);--switch-radius: calc(62.5rem * var(--mantine-scale));--switch-color: var(--mantine-primary-color-filled);position:relative}.m_926b4011{height:0;width:0;opacity:0;margin:0;padding:0;position:absolute;overflow:hidden;white-space:nowrap}.m_9307d992{-webkit-tap-highlight-color:transparent;cursor:var(--switch-cursor, var(--mantine-cursor-type));overflow:hidden;position:relative;border-radius:var(--switch-radius);background-color:var(--switch-bg);border:1px solid var(--switch-bd);height:var(--switch-height);min-width:var(--switch-width);margin:0;transition:background-color .15s ease,border-color .15s ease;-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;font-size:var(--switch-label-font-size);font-weight:600;order:var(--switch-order, 1);-webkit-user-select:none;user-select:none;z-index:0;line-height:0;color:var(--switch-text-color)}.m_926b4011:focus-visible+.m_9307d992{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_926b4011:checked+.m_9307d992{--switch-bg: var(--switch-color);--switch-bd: var(--switch-color);--switch-text-color: var(--mantine-color-white)}.m_926b4011:disabled+.m_9307d992,.m_926b4011[data-disabled]+.m_9307d992{--switch-bg: var(--switch-disabled-color);--switch-bd: var(--switch-disabled-color);--switch-cursor: not-allowed}[data-mantine-color-scheme=light] .m_9307d992{--switch-bg: var(--mantine-color-gray-2);--switch-bd: var(--mantine-color-gray-3);--switch-text-color: var(--mantine-color-gray-6);--switch-disabled-color: var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_9307d992{--switch-bg: var(--mantine-color-dark-6);--switch-bd: var(--mantine-color-dark-4);--switch-text-color: var(--mantine-color-dark-1);--switch-disabled-color: var(--mantine-color-dark-4)}.m_9307d992[data-error]{--switch-bd: var(--mantine-color-error)}.m_9307d992[data-label-position=left]{--switch-order: 2}.m_93039a1d{position:absolute;z-index:1;border-radius:var(--switch-radius);display:flex;background-color:var(--switch-thumb-bg, var(--mantine-color-white));height:var(--switch-thumb-size);width:var(--switch-thumb-size);border:1px solid var(--switch-thumb-bd);inset-inline-start:var(--switch-thumb-start, var(--switch-track-label-padding));transition:inset-inline-start .15s ease}.m_93039a1d>*{margin:auto}.m_926b4011:checked+*>.m_93039a1d{--switch-thumb-start: calc(100% - var(--switch-thumb-size) - var(--switch-track-label-padding));--switch-thumb-bd: var(--mantine-color-white)}.m_926b4011:disabled+*>.m_93039a1d,.m_926b4011[data-disabled]+*>.m_93039a1d{--switch-thumb-bd: var(--switch-thumb-bg-disabled);--switch-thumb-bg: var(--switch-thumb-bg-disabled)}[data-mantine-color-scheme=light] .m_93039a1d{--switch-thumb-bd: var(--mantine-color-gray-3);--switch-thumb-bg-disabled: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_93039a1d{--switch-thumb-bd: var(--mantine-color-white);--switch-thumb-bg-disabled: var(--mantine-color-dark-3)}.m_8277e082{height:100%;display:grid;place-content:center;min-width:calc(var(--switch-width) - var(--switch-thumb-size));padding-inline:var(--switch-track-label-padding);margin-inline-start:calc(var(--switch-thumb-size) + var(--switch-track-label-padding));transition:margin .15s ease}.m_926b4011:checked+*>.m_8277e082{margin-inline-end:calc(var(--switch-thumb-size) + var(--switch-track-label-padding));margin-inline-start:0}.m_b23fa0ef{width:100%;border-collapse:collapse;line-height:var(--mantine-line-height);font-size:var(--mantine-font-size-sm);table-layout:var(--table-layout, auto);caption-side:var(--table-caption-side, bottom);border:none}:where([data-mantine-color-scheme=light]) .m_b23fa0ef{--table-hover-color: var(--mantine-color-gray-1);--table-striped-color: var(--mantine-color-gray-0);--table-border-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_b23fa0ef{--table-hover-color: var(--mantine-color-dark-5);--table-striped-color: var(--mantine-color-dark-6);--table-border-color: var(--mantine-color-dark-4)}.m_b23fa0ef:where([data-with-table-border]){border:1px solid var(--table-border-color)}.m_4e7aa4f3{text-align:left}:where([dir=rtl]) .m_4e7aa4f3{text-align:right}.m_4e7aa4fd{border-bottom:none;background-color:transparent}@media (hover: hover){.m_4e7aa4fd:hover:where([data-hover]){background-color:var(--tr-hover-bg)}}@media (hover: none){.m_4e7aa4fd:active:where([data-hover]){background-color:var(--tr-hover-bg)}}.m_4e7aa4fd:where([data-with-row-border]){border-bottom:1px solid var(--table-border-color)}.m_4e7aa4ef,.m_4e7aa4f3{padding:var(--table-vertical-spacing) var(--table-horizontal-spacing, var(--mantine-spacing-xs))}.m_4e7aa4ef:where([data-with-column-border]:not(:last-child)),.m_4e7aa4f3:where([data-with-column-border]:not(:last-child)){border-inline-end:1px solid var(--table-border-color)}.m_b2404537 :where(tr):where([data-with-row-border]:last-of-type){border-bottom:none}.m_b2404537 :where(tr):where([data-striped=odd]:nth-of-type(odd)){background-color:var(--table-striped-color)}.m_b2404537 :where(tr):where([data-striped=even]:nth-of-type(2n)){background-color:var(--table-striped-color)}.m_b2404537 :where(tr)[data-hover]{--tr-hover-bg: var(--table-highlight-on-hover-color, var(--table-hover-color))}.m_b242d975{top:var(--table-sticky-header-offset, 0);z-index:1}.m_b242d975:where([data-sticky]){position:sticky;background-color:var(--mantine-color-body)}.m_9e5a3ac7{color:var(--mantine-color-dimmed)}.m_9e5a3ac7:where([data-side=top]){margin-bottom:var(--mantine-spacing-xs)}.m_9e5a3ac7:where([data-side=bottom]){margin-top:var(--mantine-spacing-xs)}.m_a100c15{overflow-x:var(--table-overflow)}.m_62259741{min-width:var(--table-min-width)}.m_89d60db1{display:var(--tabs-display);flex-direction:var(--tabs-flex-direction);--tab-justify: flex-start;--tabs-list-direction: row;--tabs-panel-grow: unset;--tabs-display: block;--tabs-flex-direction: row;--tabs-list-border-width: 0;--tabs-list-border-size: 0 0 var(--tabs-list-border-width) 0;--tabs-list-gap: unset;--tabs-list-line-bottom: 0;--tabs-list-line-top: unset;--tabs-list-line-start: 0;--tabs-list-line-end: 0;--tab-radius: var(--tabs-radius) var(--tabs-radius) 0 0;--tab-border-width: 0 0 var(--tabs-list-border-width) 0}.m_89d60db1[data-inverted]{--tabs-list-line-bottom: unset;--tabs-list-line-top: 0;--tab-radius: 0 0 var(--tabs-radius) var(--tabs-radius);--tab-border-width: var(--tabs-list-border-width) 0 0 0}.m_89d60db1[data-inverted] .m_576c9d4:before{top:0;bottom:unset}.m_89d60db1[data-orientation=vertical]{--tabs-list-line-start: unset;--tabs-list-line-end: 0;--tabs-list-line-top: 0;--tabs-list-line-bottom: 0;--tabs-list-border-size: 0 var(--tabs-list-border-width) 0 0;--tab-border-width: 0 var(--tabs-list-border-width) 0 0;--tab-radius: var(--tabs-radius) 0 0 var(--tabs-radius);--tabs-list-direction: column;--tabs-panel-grow: 1;--tabs-display: flex}[dir=rtl] .m_89d60db1[data-orientation=vertical]{--tabs-list-border-size: 0 0 0 var(--tabs-list-border-width);--tab-border-width: 0 0 0 var(--tabs-list-border-width);--tab-radius: 0 var(--tabs-radius) var(--tabs-radius) 0}.m_89d60db1[data-orientation=vertical][data-placement=right]{--tabs-flex-direction: row-reverse;--tabs-list-line-start: 0;--tabs-list-line-end: unset;--tabs-list-border-size: 0 0 0 var(--tabs-list-border-width);--tab-border-width: 0 0 0 var(--tabs-list-border-width);--tab-radius: 0 var(--tabs-radius) var(--tabs-radius) 0}[dir=rtl] .m_89d60db1[data-orientation=vertical][data-placement=right]{--tabs-list-border-size: 0 var(--tabs-list-border-width) 0 0;--tab-border-width: 0 var(--tabs-list-border-width) 0 0;--tab-radius: var(--tabs-radius) 0 0 var(--tabs-radius)}[data-mantine-color-scheme=light] .m_89d60db1{--tab-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_89d60db1{--tab-border-color: var(--mantine-color-dark-4)}.m_89d60db1[data-orientation=horizontal]{--tab-justify: center}.m_89d60db1[data-variant=default]{--tabs-list-border-width: calc(.125rem * var(--mantine-scale))}[data-mantine-color-scheme=light] .m_89d60db1[data-variant=default]{--tab-hover-color: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_89d60db1[data-variant=default]{--tab-hover-color: var(--mantine-color-dark-6)}.m_89d60db1[data-variant=outline]{--tabs-list-border-width: calc(.0625rem * var(--mantine-scale))}.m_89d60db1[data-variant=pills]{--tabs-list-gap: calc(var(--mantine-spacing-sm) / 2)}[data-mantine-color-scheme=light] .m_89d60db1[data-variant=pills]{--tab-hover-color: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_89d60db1[data-variant=pills]{--tab-hover-color: var(--mantine-color-dark-6)}.m_89d33d6d{display:flex;flex-wrap:wrap;justify-content:var(--tabs-justify, flex-start);flex-direction:var(--tabs-list-direction);gap:var(--tabs-list-gap);--tab-grow: unset}.m_89d33d6d[data-grow]{--tab-grow: 1}.m_b0c91715{flex-grow:var(--tabs-panel-grow)}.m_4ec4dce6{position:relative;padding:var(--mantine-spacing-xs) var(--mantine-spacing-md);font-size:var(--mantine-font-size-sm);white-space:nowrap;z-index:0;display:flex;align-items:center;line-height:1;-webkit-user-select:none;user-select:none;flex-grow:var(--tab-grow);justify-content:var(--tab-justify)}.m_4ec4dce6:disabled,.m_4ec4dce6[data-disabled]{opacity:.5;cursor:not-allowed}.m_4ec4dce6:focus{z-index:1}.m_fc420b1f{display:flex;align-items:center;justify-content:center;margin-left:var(--tab-section-margin-left, 0);margin-right:var(--tab-section-margin-right, 0)}.m_fc420b1f[data-position=left]:not(:only-child){--tab-section-margin-right: var(--mantine-spacing-xs)}[dir=rtl] .m_fc420b1f[data-position=left]:not(:only-child){--tab-section-margin-right: 0rem;--tab-section-margin-left: var(--mantine-spacing-xs)}.m_fc420b1f[data-position=right]:not(:only-child){--tab-section-margin-left: var(--mantine-spacing-xs)}[dir=rtl] .m_fc420b1f[data-position=right]:not(:only-child){--tab-section-margin-left: 0rem;--tab-section-margin-right: var(--mantine-spacing-xs)}.m_576c9d4{position:relative}.m_576c9d4:before{content:"";position:absolute;border-color:var(--tab-border-color);border-width:var(--tabs-list-border-size);border-style:solid;bottom:var(--tabs-list-line-bottom);inset-inline-start:var(--tabs-list-line-start);inset-inline-end:var(--tabs-list-line-end);top:var(--tabs-list-line-top)}.m_539e827b{border-radius:var(--tab-radius);border-width:var(--tab-border-width);border-style:solid;border-color:transparent;background-color:var(--tab-bg);--tab-bg: transparent}.m_539e827b:where([data-active]){border-color:var(--tabs-color)}@media (hover: hover){.m_539e827b:hover{--tab-bg: var(--tab-hover-color)}.m_539e827b:hover:where(:not([data-active])){border-color:var(--tab-border-color)}}@media (hover: none){.m_539e827b:active{--tab-bg: var(--tab-hover-color)}.m_539e827b:active:where(:not([data-active])){border-color:var(--tab-border-color)}}@media (hover: hover){.m_539e827b:disabled:hover,.m_539e827b[data-disabled]:hover{--tab-bg: transparent}}@media (hover: none){.m_539e827b:disabled:active,.m_539e827b[data-disabled]:active{--tab-bg: transparent}}.m_6772fbd5{position:relative}.m_6772fbd5:before{content:"";position:absolute;border-color:var(--tab-border-color);border-width:var(--tabs-list-border-size);border-style:solid;bottom:var(--tabs-list-line-bottom);inset-inline-start:var(--tabs-list-line-start);inset-inline-end:var(--tabs-list-line-end);top:var(--tabs-list-line-top)}.m_b59ab47c{border-top:calc(.0625rem * var(--mantine-scale)) solid transparent;border-bottom:calc(.0625rem * var(--mantine-scale)) solid transparent;border-right:calc(.0625rem * var(--mantine-scale)) solid transparent;border-left:calc(.0625rem * var(--mantine-scale)) solid transparent;border-top-color:var(--tab-border-top-color);border-bottom-color:var(--tab-border-bottom-color);border-radius:var(--tab-radius);position:relative;--tab-border-bottom-color: transparent;--tab-border-top-color: transparent;--tab-border-inline-end-color: transparent;--tab-border-inline-start-color: transparent}.m_b59ab47c:where([data-active]):before{content:"";position:absolute;background-color:var(--tab-border-color);bottom:var(--tab-before-bottom, calc(-.0625rem * var(--mantine-scale)));left:var(--tab-before-left, calc(-.0625rem * var(--mantine-scale)));right:var(--tab-before-right, auto);top:var(--tab-before-top, auto);width:calc(.0625rem * var(--mantine-scale));height:calc(.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active]):after{content:"";position:absolute;background-color:var(--tab-border-color);bottom:var(--tab-after-bottom, calc(-.0625rem * var(--mantine-scale)));right:var(--tab-after-right, calc(-.0625rem * var(--mantine-scale)));left:var(--tab-after-left, auto);top:var(--tab-after-top, auto);width:calc(.0625rem * var(--mantine-scale));height:calc(.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active]){border-top-color:var(--tab-border-top-color);border-bottom-color:var(--tab-border-bottom-color);border-inline-start-color:var(--tab-border-inline-start-color);border-inline-end-color:var(--tab-border-inline-end-color);--tab-border-top-color: var(--tab-border-color);--tab-border-inline-start-color: var(--tab-border-color);--tab-border-inline-end-color: var(--tab-border-color);--tab-border-bottom-color: var(--mantine-color-body)}.m_b59ab47c:where([data-active])[data-inverted]{--tab-border-bottom-color: var(--tab-border-color);--tab-border-top-color: var(--mantine-color-body);--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-bottom: auto;--tab-after-top: calc(-.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=left]{--tab-border-inline-end-color: var(--mantine-color-body);--tab-border-inline-start-color: var(--tab-border-color);--tab-border-bottom-color: var(--tab-border-color);--tab-before-right: calc(-.0625rem * var(--mantine-scale));--tab-before-left: auto;--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-left: auto;--tab-after-right: calc(-.0625rem * var(--mantine-scale))}[dir=rtl] .m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=left]{--tab-before-right: auto;--tab-before-left: calc(-.0625rem * var(--mantine-scale));--tab-after-left: calc(-.0625rem * var(--mantine-scale));--tab-after-right: auto}.m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=right]{--tab-border-inline-start-color: var(--mantine-color-body);--tab-border-inline-end-color: var(--tab-border-color);--tab-border-bottom-color: var(--tab-border-color);--tab-before-left: calc(-.0625rem * var(--mantine-scale));--tab-before-right: auto;--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-right: auto;--tab-after-left: calc(-.0625rem * var(--mantine-scale))}[dir=rtl] .m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=right]{--tab-before-left: auto;--tab-before-right: calc(-.0625rem * var(--mantine-scale));--tab-after-right: calc(-.0625rem * var(--mantine-scale));--tab-after-left: auto}.m_c3381914{border-radius:var(--tabs-radius);background-color:var(--tab-bg);color:var(--tab-color);--tab-bg: transparent;--tab-color: inherit}@media (hover: hover){.m_c3381914:not([data-disabled]):hover{--tab-bg: var(--tab-hover-color)}}@media (hover: none){.m_c3381914:not([data-disabled]):active{--tab-bg: var(--tab-hover-color)}}.m_c3381914[data-active][data-active]{--tab-bg: var(--tabs-color);--tab-color: var(--tabs-text-color, var(--mantine-color-white))}@media (hover: hover){.m_c3381914[data-active][data-active]:hover{--tab-bg: var(--tabs-color)}}@media (hover: none){.m_c3381914[data-active][data-active]:active{--tab-bg: var(--tabs-color)}}.m_7341320d{--ti-size-xs: calc(1.125rem * var(--mantine-scale));--ti-size-sm: calc(1.375rem * var(--mantine-scale));--ti-size-md: calc(1.75rem * var(--mantine-scale));--ti-size-lg: calc(2.125rem * var(--mantine-scale));--ti-size-xl: calc(2.75rem * var(--mantine-scale));--ti-size: var(--ti-size-md);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;-webkit-user-select:none;user-select:none;width:var(--ti-size);height:var(--ti-size);min-width:var(--ti-size);min-height:var(--ti-size);border-radius:var(--ti-radius, var(--mantine-radius-default));background:var(--ti-bg, var(--mantine-primary-color-filled));color:var(--ti-color, var(--mantine-color-white));border:var(--ti-bd, 1px solid transparent)}.m_43657ece{--offset: calc(var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2);--tl-bullet-size: calc(1.25rem * var(--mantine-scale));--tl-line-width: calc(.25rem * var(--mantine-scale));--tl-radius: calc(62.5rem * var(--mantine-scale));--tl-color: var(--mantine-primary-color-filled)}.m_43657ece:where([data-align=left]){padding-inline-start:var(--offset)}.m_43657ece:where([data-align=right]){padding-inline-end:var(--offset)}.m_2ebe8099{font-weight:500;line-height:1;margin-bottom:calc(var(--mantine-spacing-xs) / 2)}.m_436178ff{--item-border: var(--tl-line-width) var(--tli-border-style, solid) var(--item-border-color);position:relative;color:var(--mantine-color-text)}.m_436178ff:before{content:"";pointer-events:none;position:absolute;top:0;left:var(--timeline-line-left, 0);right:var(--timeline-line-right, 0);bottom:calc(var(--mantine-spacing-xl) * -1);border-inline-start:var(--item-border);display:var(--timeline-line-display, none)}.m_43657ece[data-align=left] .m_436178ff:before{--timeline-line-left: calc(var(--tl-line-width) * -1);--timeline-line-right: auto}[dir=rtl] .m_43657ece[data-align=left] .m_436178ff:before{--timeline-line-left: auto;--timeline-line-right: calc(var(--tl-line-width) * -1)}.m_43657ece[data-align=right] .m_436178ff:before{--timeline-line-left: auto;--timeline-line-right: calc(var(--tl-line-width) * -1)}[dir=rtl] .m_43657ece[data-align=right] .m_436178ff:before{--timeline-line-left: calc(var(--tl-line-width) * -1);--timeline-line-right: auto}.m_43657ece:where([data-align=left]) .m_436178ff{padding-inline-start:var(--offset);text-align:left}.m_43657ece:where([data-align=right]) .m_436178ff{padding-inline-end:var(--offset);text-align:right}:where([data-mantine-color-scheme=light]) .m_436178ff{--item-border-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_436178ff{--item-border-color: var(--mantine-color-dark-4)}.m_436178ff:where([data-line-active]):before{border-color:var(--tli-color, var(--tl-color))}.m_436178ff:where(:not(:last-of-type)){--timeline-line-display: block}.m_436178ff:where(:not(:first-of-type)){margin-top:var(--mantine-spacing-xl)}.m_8affcee1{width:var(--tl-bullet-size);height:var(--tl-bullet-size);border-radius:var(--tli-radius, var(--tl-radius));border:var(--tl-line-width) solid;background-color:var(--mantine-color-body);position:absolute;top:0;display:flex;align-items:center;justify-content:center;color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_8affcee1{border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_8affcee1{border-color:var(--mantine-color-dark-4)}.m_43657ece:where([data-align=left]) .m_8affcee1{left:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1);right:auto}:where([dir=rtl]) .m_43657ece:where([data-align=left]) .m_8affcee1{left:auto;right:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1)}.m_43657ece:where([data-align=right]) .m_8affcee1{left:auto;right:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1)}:where([dir=rtl]) .m_43657ece:where([data-align=right]) .m_8affcee1{left:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1);right:auto}.m_8affcee1:where([data-with-child]){border-width:var(--tl-line-width)}:where([data-mantine-color-scheme=light]) .m_8affcee1:where([data-with-child]){background-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_8affcee1:where([data-with-child]){background-color:var(--mantine-color-dark-4)}.m_8affcee1:where([data-active]){border-color:var(--tli-color, var(--tl-color));background-color:var(--mantine-color-white);color:var(--tl-icon-color, var(--mantine-color-white))}.m_8affcee1:where([data-active]):where([data-with-child]){background-color:var(--tli-color, var(--tl-color));color:var(--tl-icon-color, var(--mantine-color-white))}.m_43657ece:where([data-align=left]) .m_540e8f41{padding-inline-start:var(--offset);text-align:left}:where([dir=rtl]) .m_43657ece:where([data-align=left]) .m_540e8f41{text-align:right}.m_43657ece:where([data-align=right]) .m_540e8f41{padding-inline-end:var(--offset);text-align:right}:where([dir=rtl]) .m_43657ece:where([data-align=right]) .m_540e8f41{text-align:left}.m_8a5d1357{margin:0;font-weight:var(--title-fw);font-size:var(--title-fz);line-height:var(--title-lh);font-family:var(--mantine-font-family-headings);text-wrap:var(--title-text-wrap, var(--mantine-heading-text-wrap))}.m_8a5d1357:where([data-line-clamp]){overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:var(--title-line-clamp);-webkit-box-orient:vertical}.m_d6493fad :first-child{margin-top:0}.m_d6493fad :last-child{margin-bottom:0}.m_d6493fad :where(h1,h2,h3,h4,h5,h6){margin-bottom:var(--mantine-spacing-xs);text-wrap:var(--mantine-heading-text-wrap)}.m_d6493fad :where(h1){margin-top:calc(1.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h1-font-size);line-height:var(--mantine-h1-line-height);font-weight:var(--mantine-h1-font-weight)}.m_d6493fad :where(h2){margin-top:var(--mantine-spacing-xl);font-size:var(--mantine-h2-font-size);line-height:var(--mantine-h2-line-height);font-weight:var(--mantine-h2-font-weight)}.m_d6493fad :where(h3){margin-top:calc(.8 * var(--mantine-spacing-xl));font-size:var(--mantine-h3-font-size);line-height:var(--mantine-h3-line-height);font-weight:var(--mantine-h3-font-weight)}.m_d6493fad :where(h4){margin-top:calc(.8 * var(--mantine-spacing-xl));font-size:var(--mantine-h4-font-size);line-height:var(--mantine-h4-line-height);font-weight:var(--mantine-h4-font-weight)}.m_d6493fad :where(h5){margin-top:calc(.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h5-font-size);line-height:var(--mantine-h5-line-height);font-weight:var(--mantine-h5-font-weight)}.m_d6493fad :where(h6){margin-top:calc(.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h6-font-size);line-height:var(--mantine-h6-line-height);font-weight:var(--mantine-h6-font-weight)}.m_d6493fad :where(img){max-width:100%;margin-bottom:var(--mantine-spacing-xs)}.m_d6493fad :where(p){margin-top:0;margin-bottom:var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_d6493fad :where(mark){background-color:var(--mantine-color-yellow-2);color:inherit}:where([data-mantine-color-scheme=dark]) .m_d6493fad :where(mark){background-color:var(--mantine-color-yellow-5);color:var(--mantine-color-black)}.m_d6493fad :where(a){color:var(--mantine-color-anchor);text-decoration:none}@media (hover: hover){.m_d6493fad :where(a):hover{text-decoration:underline}}@media (hover: none){.m_d6493fad :where(a):active{text-decoration:underline}}.m_d6493fad :where(hr){margin-top:var(--mantine-spacing-md);margin-bottom:var(--mantine-spacing-md);border:0;border-top:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_d6493fad :where(hr){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d6493fad :where(hr){border-color:var(--mantine-color-dark-3)}.m_d6493fad :where(pre){padding:var(--mantine-spacing-xs);line-height:var(--mantine-line-height);margin:0;margin-top:var(--mantine-spacing-md);margin-bottom:var(--mantine-spacing-md);overflow-x:auto;font-family:var(--mantine-font-family-monospace);font-size:var(--mantine-font-size-xs);border-radius:var(--mantine-radius-sm)}:where([data-mantine-color-scheme=light]) .m_d6493fad :where(pre){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d6493fad :where(pre){background-color:var(--mantine-color-dark-8)}.m_d6493fad :where(pre) :where(code){background-color:transparent;padding:0;border-radius:0;color:inherit;border:0}.m_d6493fad :where(kbd){--kbd-fz: calc(.75rem * var(--mantine-scale));--kbd-padding: calc(.1875rem * var(--mantine-scale)) calc(.3125rem * var(--mantine-scale));font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);font-weight:700;padding:var(--kbd-padding);font-size:var(--kbd-fz);border-radius:var(--mantine-radius-sm);border:calc(.0625rem * var(--mantine-scale)) solid;border-bottom-width:calc(.1875rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_d6493fad :where(kbd){border-color:var(--mantine-color-gray-3);color:var(--mantine-color-gray-7);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d6493fad :where(kbd){border-color:var(--mantine-color-dark-3);color:var(--mantine-color-dark-0);background-color:var(--mantine-color-dark-5)}.m_d6493fad :where(code){line-height:var(--mantine-line-height);padding:calc(.0625rem * var(--mantine-scale)) calc(.3125rem * var(--mantine-scale));border-radius:var(--mantine-radius-sm);font-family:var(--mantine-font-family-monospace);font-size:var(--mantine-font-size-xs)}:where([data-mantine-color-scheme=light]) .m_d6493fad :where(code){background-color:var(--mantine-color-gray-0);color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_d6493fad :where(code){background-color:var(--mantine-color-dark-5);color:var(--mantine-color-white)}.m_d6493fad :where(ul,ol):not([data-type=taskList]){margin-bottom:var(--mantine-spacing-md);padding-inline-start:calc(2.375rem * var(--mantine-scale))}.m_d6493fad :where(ul,ol):not([data-type=taskList]) :where(li){margin-bottom:var(--mantine-spacing-xs)}.m_d6493fad :where(table){width:100%;border-collapse:collapse;caption-side:bottom;margin-bottom:var(--mantine-spacing-md)}.m_d6493fad :where(table) :where(caption){margin-top:var(--mantine-spacing-xs);font-size:var(--mantine-font-size-sm);color:var(--mantine-color-gray-6)}.m_d6493fad :where(table) :where(th){text-align:left;font-weight:700;color:var(--mantine-color-gray-7);font-size:var(--mantine-font-size-sm);padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm)}.m_d6493fad :where(table) :where(thead th){border-bottom:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--mantine-color-gray-3)}.m_d6493fad :where(table) :where(tfoot th){border-top:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--mantine-color-gray-3)}.m_d6493fad :where(table) :where(td){padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm);border-bottom:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--mantine-color-gray-3);font-size:var(--mantine-font-size-sm)}.m_d6493fad :where(table) :where(tr:last-of-type td){border-bottom:0}.m_d6493fad :where(blockquote){font-size:var(--mantine-font-size-lg);line-height:var(--mantine-line-height);margin:var(--mantine-spacing-md) 0;border-radius:var(--mantine-radius-sm);padding:var(--mantine-spacing-md) var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_d6493fad :where(blockquote){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d6493fad :where(blockquote){background-color:var(--mantine-color-dark-8)}.m_468e7eda{padding-top:0;padding-bottom:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.m_468e7eda::-webkit-calendar-picker-indicator{display:none}.m_468e7eda::-webkit-clear-button{display:none}.m_468e7eda::-webkit-datetime-edit-hour-field,.m_468e7eda::-webkit-datetime-edit-minute-field,.m_468e7eda::-webkit-datetime-edit-second-field{padding-top:0;max-height:calc(1.875rem * var(--mantine-scale));display:inline}.m_468e7eda::-webkit-datetime-edit-hour-field:focus,.m_468e7eda::-webkit-datetime-edit-minute-field:focus,.m_468e7eda::-webkit-datetime-edit-second-field:focus{background-color:var(--mantine-primary-color-filled);color:var(--mantine-color-white)}.m_396ce5cb{--day-size-xs: calc(1.875rem * var(--mantine-scale));--day-size-sm: calc(2.25rem * var(--mantine-scale));--day-size-md: calc(2.625rem * var(--mantine-scale));--day-size-lg: calc(3rem * var(--mantine-scale));--day-size-xl: calc(3.375rem * var(--mantine-scale));--day-size: var(--day-size-sm);width:var(--day-size, var(--day-size-sm));height:var(--day-size, var(--day-size-sm));font-size:calc(var(--day-size) / 2.8);display:inline-flex;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;background-color:transparent;border-radius:var(--mantine-radius-default);color:var(--mantine-color-text);opacity:1}@media (hover: hover){[data-mantine-color-scheme=light] .m_396ce5cb:hover:where(:not([data-static],[data-disabled],[data-selected],[data-in-range])){background-color:var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_396ce5cb:hover:where(:not([data-static],[data-disabled],[data-selected],[data-in-range])){background-color:var(--mantine-color-dark-5)}}@media (hover: none){[data-mantine-color-scheme=light] .m_396ce5cb:active:where(:not([data-static],[data-disabled],[data-selected],[data-in-range])){background-color:var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_396ce5cb:active:where(:not([data-static],[data-disabled],[data-selected],[data-in-range])){background-color:var(--mantine-color-dark-5)}}.m_396ce5cb:where([data-static]){-webkit-user-select:auto;user-select:auto;cursor:default}.m_396ce5cb:where([data-weekend]){color:var(--mantine-color-red-6)}.m_396ce5cb:where([data-outside]){color:var(--mantine-color-dimmed);opacity:.5}.m_396ce5cb:where(:disabled,[data-disabled]){color:var(--mantine-color-dimmed);cursor:not-allowed;opacity:.5}.m_396ce5cb:where([data-hidden]){display:none}.m_396ce5cb:where([data-in-range]){background-color:var(--mantine-primary-color-light-hover);border-radius:0}@media (hover: hover){.m_396ce5cb:where([data-in-range]):hover:where(:not([data-disabled],[data-static])){background-color:var(--mantine-primary-color-light)}}@media (hover: none){.m_396ce5cb:where([data-in-range]):active:where(:not([data-disabled],[data-static])){background-color:var(--mantine-primary-color-light)}}.m_396ce5cb:where([data-first-in-range]){border-radius:0;border-start-start-radius:var(--mantine-radius-default);border-end-start-radius:var(--mantine-radius-default)}.m_396ce5cb:where([data-last-in-range]){border-radius:0;border-end-end-radius:var(--mantine-radius-default);border-start-end-radius:var(--mantine-radius-default)}.m_396ce5cb:where([data-last-in-range][data-first-in-range]){border-radius:var(--mantine-radius-default)}.m_396ce5cb:where([data-selected]){background-color:var(--mantine-primary-color-filled);color:var(--mantine-primary-color-contrast)}@media (hover: hover){.m_396ce5cb:where([data-selected]):hover:where(:not([data-disabled],[data-static])){background-color:var(--mantine-primary-color-filled-hover)}}@media (hover: none){.m_396ce5cb:where([data-selected]):active:where(:not([data-disabled],[data-static])){background-color:var(--mantine-primary-color-filled-hover)}}.m_18a3eca{color:var(--mantine-color-dimmed);font-weight:400;font-size:var(--wr-fz, var(--mantine-font-size-sm));text-transform:capitalize;padding-bottom:calc(var(--wr-spacing, var(--mantine-spacing-sm)) / 2)}.m_cc9820d3{border-collapse:collapse;table-layout:fixed}.m_8f457cd5{padding:0}.m_8f457cd5:where([data-with-spacing]){padding:calc(.03125rem * var(--mantine-scale))}.m_dc6a3c71{--dpc-size-xs: calc(1.875rem * var(--mantine-scale));--dpc-size-sm: calc(2.25rem * var(--mantine-scale));--dpc-size-md: calc(2.625rem * var(--mantine-scale));--dpc-size-lg: calc(3rem * var(--mantine-scale));--dpc-size-xl: calc(3.375rem * var(--mantine-scale));--dpc-size: var(--dpc-size-sm);font-size:var(--dpc-fz, var(--mantine-font-size-sm));height:var(--dpc-size);width:calc((var(--dpc-size) * 7) / 3 + calc(.09375rem * var(--mantine-scale)));display:flex;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;background-color:transparent;color:var(--mantine-color-text);opacity:1;border-radius:var(--mantine-radius-default)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_dc6a3c71:hover:where(:not([data-disabled],:disabled)){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_dc6a3c71:hover:where(:not([data-disabled],:disabled)){background-color:var(--mantine-color-dark-5)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_dc6a3c71:active:where(:not([data-disabled],:disabled)){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_dc6a3c71:active:where(:not([data-disabled],:disabled)){background-color:var(--mantine-color-dark-5)}}.m_dc6a3c71:where(:disabled,[data-disabled]){color:var(--mantine-color-dimmed);cursor:not-allowed;opacity:.5}.m_dc6a3c71:where([data-selected]){background-color:var(--mantine-primary-color-filled);color:var(--mantine-primary-color-contrast, var(--mantine-color-white))}@media (hover: hover){.m_dc6a3c71:where([data-selected]):hover{background-color:var(--mantine-primary-color-filled-hover)}}@media (hover: none){.m_dc6a3c71:where([data-selected]):active{background-color:var(--mantine-primary-color-filled-hover)}}.m_dc6a3c71:where([data-in-range]){background-color:var(--mantine-primary-color-light-hover);border-radius:0}@media (hover: hover){.m_dc6a3c71:where([data-in-range]):hover{background-color:var(--mantine-primary-color-light)}}@media (hover: none){.m_dc6a3c71:where([data-in-range]):active{background-color:var(--mantine-primary-color-light)}}.m_dc6a3c71:where([data-first-in-range]){border-radius:0;border-start-start-radius:var(--mantine-radius-default);border-end-start-radius:var(--mantine-radius-default)}.m_dc6a3c71:where([data-last-in-range]){border-radius:0;border-end-end-radius:var(--mantine-radius-default);border-start-end-radius:var(--mantine-radius-default)}.m_dc6a3c71:where([data-first-in-range][data-last-in-range]){border-radius:var(--mantine-radius-default)}.m_9206547b{border-collapse:collapse;border-width:0}.m_c5a19c7d{padding:0}.m_c5a19c7d:where([data-with-spacing]){padding:calc(.03125rem * var(--mantine-scale))}.m_2a6c32d{border-collapse:collapse;border-width:0;cursor:pointer}.m_fe27622f{padding:0}.m_fe27622f:where([data-with-spacing]){padding:calc(.03125rem * var(--mantine-scale))}.m_730a79ed{--dch-control-size-xs: calc(1.875rem * var(--mantine-scale));--dch-control-size-sm: calc(2.25rem * var(--mantine-scale));--dch-control-size-md: calc(2.625rem * var(--mantine-scale));--dch-control-size-lg: calc(3rem * var(--mantine-scale));--dch-control-size-xl: calc(3.375rem * var(--mantine-scale));--dch-control-size: var(--dch-control-size-sm);display:flex;max-width:calc(var(--dch-control-size) * 7 + calc(.4375rem * var(--mantine-scale)));margin-bottom:var(--mantine-spacing-xs)}.m_f6645d97,.m_2351eeb0{height:var(--dch-control-size);border-radius:var(--mantine-radius-default);display:flex;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none;opacity:1;cursor:pointer}@media (hover: hover){[data-mantine-color-scheme=light] .m_f6645d97:hover:where(:not([data-disabled],:disabled)),[data-mantine-color-scheme=light] .m_2351eeb0:hover:where(:not([data-disabled],:disabled)){background-color:var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_f6645d97:hover:where(:not([data-disabled],:disabled)),[data-mantine-color-scheme=dark] .m_2351eeb0:hover:where(:not([data-disabled],:disabled)){background-color:var(--mantine-color-dark-5)}}@media (hover: none){[data-mantine-color-scheme=light] .m_f6645d97:active:where(:not([data-disabled],:disabled)),[data-mantine-color-scheme=light] .m_2351eeb0:active:where(:not([data-disabled],:disabled)){background-color:var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_f6645d97:active:where(:not([data-disabled],:disabled)),[data-mantine-color-scheme=dark] .m_2351eeb0:active:where(:not([data-disabled],:disabled)){background-color:var(--mantine-color-dark-5)}}.m_f6645d97:where(:disabled,[data-disabled]),.m_2351eeb0:where(:disabled,[data-disabled]){opacity:.2;cursor:not-allowed}.m_2351eeb0{width:var(--dch-control-size)}.m_f6645d97{flex:1;font-size:var(--dch-fz, var(--mantine-font-size-sm));font-weight:500;text-transform:capitalize}.m_367dc749{width:60%;height:60%}.m_367dc749:where([data-direction=next]){transform:rotate(270deg)}:where([dir=rtl]) .m_367dc749:where([data-direction=next]){transform:rotate(90deg)}.m_367dc749:where([data-direction=previous]){transform:rotate(90deg)}:where([dir=rtl]) .m_367dc749:where([data-direction=previous]){transform:rotate(270deg)}.m_30b26e33{display:flex;gap:var(--mantine-spacing-md)}.m_6fa5e2aa{cursor:pointer;line-height:unset}.m_6fa5e2aa:where([data-read-only]){cursor:default}.m_208d2562{display:flex;align-items:stretch;margin-top:var(--mantine-spacing-md)}.m_62ee059{flex:1;margin-inline-end:var(--mantine-spacing-md)}._nav_mbz2l_1{height:64px;margin-top:20px}@media (max-width: 900px):{._nav_mbz2l_1{max-width:100%;min-width:100%;width:100%}}._nav_mbz2l_1{gap:2rem;align-items:"center"}._wrapper_mbz2l_20{max-width:900px;border-radius:8px;margin:10px auto 0}._maincontainer_mbz2l_31{display:flex;align-items:center;justify-content:space-between;flex-direction:row}@media (max-width: 500px){._network_mbz2l_42{visibility:hidden}}._buttonContainer_mbz2l_49{width:30px;height:30px;padding:2px;border-radius:4px,}._container_mbz2l_59{padding-left:20px;padding-right:20px;display:flex;align-items:center;justify-content:center;flex-direction:row}._mode_mbz2l_68{display:"flex";align-items:"center";justify-content:"center";flex-direction:"row"}._root_mbz2l_78{position:"relative"}._icon_mbz2l_85{pointer-events:"none";position:"absolute";z-index:1;top:3}._iconLight_mbz2l_92{left:4}._iconDark_mbz2l_97{right:4}._homeContainer_4uavj_2{max-width:500px;margin:0 auto}._avatar_4uavj_10{height:200px;width:200px}._avatarContainer_4uavj_17{display:flex;align-items:center;margin:20px;justify-content:center;flex-direction:row}._safe_4uavj_26{width:130px;margin:20px}._safeContainer_4uavj_33{display:flex;align-items:center;justify-content:center;flex-direction:column}._formContainer_4uavj_41{border-radius:12px;border:0px solid #4a4a4a;padding:80px}._heading_4uavj_48{font-size:43px;background:#00ff00;background:-webkit-linear-gradient(to left,#00c6ff 0%,#0072ff 100%);background:-moz-linear-gradient(to left,#00c6ff 0%,#0072ff 100%);background:linear-gradient(to left,#00c6ff 0%,#0072ff 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-align:center;font-weight:700;margin-bottom:0}._actions_4uavj_61{margin-top:20px;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:20px;margin-bottom:20px}._links_4uavj_71{margin-top:0;font-size:35px;text-align:center;font-weight:700;color:var(--mantine-color-gray-7)}[data-mantine-color-scheme=dark] ._links_4uavj_71{color:var(--mantine-color-white-2)}._subHeading_4uavj_79{padding-top:15px;font-size:16px;text-align:center}._inputContainer_4uavj_85{display:flex;flex-direction:column;gap:10px;margin-top:20px}._selectGroup_4uavj_96{display:flex;align-items:center;justify-content:center}._btn_4uavj_102{background-image:linear-gradient(to right,#00c6ff 0%,#0072ff 51%,#610ad3 100%);transition:.5s;background-size:200% auto;color:#fff}._btn_4uavj_102:hover{background-position:right center;background-image:linear-gradient(to right,#0072ff 0%,#00c6ff 51%,#610ad3 100%);text-decoration:none}._helperText_4uavj_120{font-size:16px}._mode_4uavj_124{padding-left:20px;display:"flex";align-items:"center";justify-content:"center";flex-direction:"row"}._successContainer_4uavj_134{width:600px;margin:80px auto 0;border-radius:12px;border:0px solid #4a4a4a;background-color:#fff;box-shadow:0 1px 2px #1018280d}._network_4uavj_144{width:100%;height:40px;margin-left:5px}._copyContainer_4uavj_153{display:flex;align-items:center;gap:20px}._goBack_4uavj_159{margin-top:20px}._input_4uavj_85{width:100%;cursor:pointer}@media screen and (max-width: 600px){._successContainer_4uavj_134{width:100%}._copyContainer_4uavj_153{flex-direction:column}._input_4uavj_85{width:100%;cursor:pointer}._btn_4uavj_102{width:100%}}._accountContainer_1ohy2_3{max-width:500px;margin:80px auto 0;border-radius:12px;border:0px solid #4a4a4a;background-color:#fff d}._formContainer_1ohy2_15{padding:20px;display:flex;align-items:center;justify-content:center;flex-direction:column}._avatarContainer_1ohy2_24{display:flex;align-items:center;justify-content:center;flex-direction:column}._balance_1ohy2_32{display:flex;font-size:30px;font-weight:700;align-items:center;justify-content:center}._avatar_1ohy2_24{height:60px;width:60px;margin-top:20px;margin-bottom:20px;border-radius:50%}._heading_1ohy2_50{font-size:40px;background:#00ff00;background:-webkit-linear-gradient(to left,#00c6ff 0%,#0072ff 100%);background:-moz-linear-gradient(to left,#00c6ff 0%,#0072ff 100%);background:linear-gradient(to left,#00c6ff 0%,#0072ff 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-align:center;font-weight:700;margin-bottom:0}._btn_1ohy2_64{background-image:linear-gradient(to right,#00c6ff 0%,#0072ff 51%,#610ad3 100%);transition:.5s;background-size:200% auto;color:#fff}._btn_1ohy2_64:hover{background-position:right center;background-image:linear-gradient(to right,#0072ff 0%,#00c6ff 51%,#610ad3 100%);text-decoration:none}._actionsContainer_1ohy2_78{display:flex;align-items:center;justify-content:center;flex-direction:column}._subHeading_1ohy2_86{padding-top:15px;font-size:16px;font-weight:600;text-align:center}._normaltext_1ohy2_93{padding-top:15px;font-size:16px;text-align:center}._card_1ohy2_99{position:relative;overflow:visible;padding:var(--mantine-spacing-xl);width:100%}._footerHeading_1ohy2_108{font-size:14px;text-align:center}._balanceContainer_1ohy2_113{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:5px}._actions_1ohy2_78{margin-top:20px;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:20px;margin-bottom:20px}._inputContainer_1ohy2_131{justify-content:center;gap:20px;display:flex;flex-direction:column;margin-bottom:20px}._accountInputContainer_1ohy2_141{display:flex;flex-direction:column} diff --git a/assets/index-97f9e2be.js b/assets/index-4948a23e.js similarity index 89% rename from assets/index-97f9e2be.js rename to assets/index-4948a23e.js index 577c84f..7684e71 100644 --- a/assets/index-97f9e2be.js +++ b/assets/index-4948a23e.js @@ -1,9 +1,9 @@ -var a1=Object.defineProperty;var s1=(c,a,d)=>a in c?a1(c,a,{enumerable:!0,configurable:!0,writable:!0,value:d}):c[a]=d;var Gr=(c,a,d)=>(s1(c,typeof a!="symbol"?a+"":a,d),d),Lo=(c,a,d)=>{if(!a.has(c))throw TypeError("Cannot "+d)};var or=(c,a,d)=>(Lo(c,a,"read from private field"),d?d.call(c):a.get(c)),Vr=(c,a,d)=>{if(a.has(c))throw TypeError("Cannot add the same private member more than once");a instanceof WeakSet?a.add(c):a.set(c,d)},yr=(c,a,d,et)=>(Lo(c,a,"write to private field"),et?et.call(c,d):a.set(c,d),d);var Ws=(c,a,d,et)=>({set _(nt){yr(c,a,nt,d)},get _(){return or(c,a,et)}}),Wr=(c,a,d)=>(Lo(c,a,"access private method"),d);function _mergeNamespaces(c,a){for(var d=0;det[nt]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const nt of document.querySelectorAll('link[rel="modulepreload"]'))et(nt);new MutationObserver(nt=>{for(const tt of nt)if(tt.type==="childList")for(const bt of tt.addedNodes)bt.tagName==="LINK"&&bt.rel==="modulepreload"&&et(bt)}).observe(document,{childList:!0,subtree:!0});function d(nt){const tt={};return nt.integrity&&(tt.integrity=nt.integrity),nt.referrerPolicy&&(tt.referrerPolicy=nt.referrerPolicy),nt.crossOrigin==="use-credentials"?tt.credentials="include":nt.crossOrigin==="anonymous"?tt.credentials="omit":tt.credentials="same-origin",tt}function et(nt){if(nt.ep)return;nt.ep=!0;const tt=d(nt);fetch(nt.href,tt)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var bufferPolyfill={},base64Js={};base64Js.byteLength=byteLength;base64Js.toByteArray=toByteArray;base64Js.fromByteArray=fromByteArray;var lookup=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i=0,len=code.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var d=c.indexOf("=");d===-1&&(d=a);var et=d===a?0:4-d%4;return[d,et]}function byteLength(c){var a=getLens(c),d=a[0],et=a[1];return(d+et)*3/4-et}function _byteLength(c,a,d){return(a+d)*3/4-d}function toByteArray(c){var a,d=getLens(c),et=d[0],nt=d[1],tt=new Arr(_byteLength(c,et,nt)),bt=0,gt=nt>0?et-4:et,wt;for(wt=0;wt>16&255,tt[bt++]=a>>8&255,tt[bt++]=a&255;return nt===2&&(a=revLookup[c.charCodeAt(wt)]<<2|revLookup[c.charCodeAt(wt+1)]>>4,tt[bt++]=a&255),nt===1&&(a=revLookup[c.charCodeAt(wt)]<<10|revLookup[c.charCodeAt(wt+1)]<<4|revLookup[c.charCodeAt(wt+2)]>>2,tt[bt++]=a>>8&255,tt[bt++]=a&255),tt}function tripletToBase64(c){return lookup[c>>18&63]+lookup[c>>12&63]+lookup[c>>6&63]+lookup[c&63]}function encodeChunk(c,a,d){for(var et,nt=[],tt=a;ttgt?gt:bt+tt));return et===1?(a=c[d-1],nt.push(lookup[a>>2]+lookup[a<<4&63]+"==")):et===2&&(a=(c[d-2]<<8)+c[d-1],nt.push(lookup[a>>10]+lookup[a>>4&63]+lookup[a<<2&63]+"=")),nt.join("")}var ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ieee754.read=function(c,a,d,et,nt){var tt,bt,gt=nt*8-et-1,wt=(1<>1,Mt=-7,_t=d?nt-1:0,Tt=d?-1:1,Bt=c[a+_t];for(_t+=Tt,tt=Bt&(1<<-Mt)-1,Bt>>=-Mt,Mt+=gt;Mt>0;tt=tt*256+c[a+_t],_t+=Tt,Mt-=8);for(bt=tt&(1<<-Mt)-1,tt>>=-Mt,Mt+=et;Mt>0;bt=bt*256+c[a+_t],_t+=Tt,Mt-=8);if(tt===0)tt=1-St;else{if(tt===wt)return bt?NaN:(Bt?-1:1)*(1/0);bt=bt+Math.pow(2,et),tt=tt-St}return(Bt?-1:1)*bt*Math.pow(2,tt-et)};ieee754.write=function(c,a,d,et,nt,tt){var bt,gt,wt,St=tt*8-nt-1,Mt=(1<>1,Tt=nt===23?Math.pow(2,-24)-Math.pow(2,-77):0,Bt=et?0:tt-1,kt=et?1:-1,It=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(gt=isNaN(a)?1:0,bt=Mt):(bt=Math.floor(Math.log(a)/Math.LN2),a*(wt=Math.pow(2,-bt))<1&&(bt--,wt*=2),bt+_t>=1?a+=Tt/wt:a+=Tt*Math.pow(2,1-_t),a*wt>=2&&(bt++,wt/=2),bt+_t>=Mt?(gt=0,bt=Mt):bt+_t>=1?(gt=(a*wt-1)*Math.pow(2,nt),bt=bt+_t):(gt=a*Math.pow(2,_t-1)*Math.pow(2,nt),bt=0));nt>=8;c[d+Bt]=gt&255,Bt+=kt,gt/=256,nt-=8);for(bt=bt<0;c[d+Bt]=bt&255,Bt+=kt,bt/=256,St-=8);c[d+Bt-kt]|=It*128};/*! +var a1=Object.defineProperty;var s1=(c,a,d)=>a in c?a1(c,a,{enumerable:!0,configurable:!0,writable:!0,value:d}):c[a]=d;var Gr=(c,a,d)=>(s1(c,typeof a!="symbol"?a+"":a,d),d),Lo=(c,a,d)=>{if(!a.has(c))throw TypeError("Cannot "+d)};var or=(c,a,d)=>(Lo(c,a,"read from private field"),d?d.call(c):a.get(c)),Vr=(c,a,d)=>{if(a.has(c))throw TypeError("Cannot add the same private member more than once");a instanceof WeakSet?a.add(c):a.set(c,d)},yr=(c,a,d,et)=>(Lo(c,a,"write to private field"),et?et.call(c,d):a.set(c,d),d);var Ws=(c,a,d,et)=>({set _(nt){yr(c,a,nt,d)},get _(){return or(c,a,et)}}),Wr=(c,a,d)=>(Lo(c,a,"access private method"),d);function _mergeNamespaces(c,a){for(var d=0;det[nt]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const nt of document.querySelectorAll('link[rel="modulepreload"]'))et(nt);new MutationObserver(nt=>{for(const tt of nt)if(tt.type==="childList")for(const bt of tt.addedNodes)bt.tagName==="LINK"&&bt.rel==="modulepreload"&&et(bt)}).observe(document,{childList:!0,subtree:!0});function d(nt){const tt={};return nt.integrity&&(tt.integrity=nt.integrity),nt.referrerPolicy&&(tt.referrerPolicy=nt.referrerPolicy),nt.crossOrigin==="use-credentials"?tt.credentials="include":nt.crossOrigin==="anonymous"?tt.credentials="omit":tt.credentials="same-origin",tt}function et(nt){if(nt.ep)return;nt.ep=!0;const tt=d(nt);fetch(nt.href,tt)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var bufferPolyfill={},base64Js={};base64Js.byteLength=byteLength;base64Js.toByteArray=toByteArray;base64Js.fromByteArray=fromByteArray;var lookup=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i=0,len=code.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var d=c.indexOf("=");d===-1&&(d=a);var et=d===a?0:4-d%4;return[d,et]}function byteLength(c){var a=getLens(c),d=a[0],et=a[1];return(d+et)*3/4-et}function _byteLength(c,a,d){return(a+d)*3/4-d}function toByteArray(c){var a,d=getLens(c),et=d[0],nt=d[1],tt=new Arr(_byteLength(c,et,nt)),bt=0,gt=nt>0?et-4:et,wt;for(wt=0;wt>16&255,tt[bt++]=a>>8&255,tt[bt++]=a&255;return nt===2&&(a=revLookup[c.charCodeAt(wt)]<<2|revLookup[c.charCodeAt(wt+1)]>>4,tt[bt++]=a&255),nt===1&&(a=revLookup[c.charCodeAt(wt)]<<10|revLookup[c.charCodeAt(wt+1)]<<4|revLookup[c.charCodeAt(wt+2)]>>2,tt[bt++]=a>>8&255,tt[bt++]=a&255),tt}function tripletToBase64(c){return lookup[c>>18&63]+lookup[c>>12&63]+lookup[c>>6&63]+lookup[c&63]}function encodeChunk(c,a,d){for(var et,nt=[],tt=a;ttgt?gt:bt+tt));return et===1?(a=c[d-1],nt.push(lookup[a>>2]+lookup[a<<4&63]+"==")):et===2&&(a=(c[d-2]<<8)+c[d-1],nt.push(lookup[a>>10]+lookup[a>>4&63]+lookup[a<<2&63]+"=")),nt.join("")}var ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ieee754.read=function(c,a,d,et,nt){var tt,bt,gt=nt*8-et-1,wt=(1<>1,Mt=-7,_t=d?nt-1:0,Tt=d?-1:1,Rt=c[a+_t];for(_t+=Tt,tt=Rt&(1<<-Mt)-1,Rt>>=-Mt,Mt+=gt;Mt>0;tt=tt*256+c[a+_t],_t+=Tt,Mt-=8);for(bt=tt&(1<<-Mt)-1,tt>>=-Mt,Mt+=et;Mt>0;bt=bt*256+c[a+_t],_t+=Tt,Mt-=8);if(tt===0)tt=1-St;else{if(tt===wt)return bt?NaN:(Rt?-1:1)*(1/0);bt=bt+Math.pow(2,et),tt=tt-St}return(Rt?-1:1)*bt*Math.pow(2,tt-et)};ieee754.write=function(c,a,d,et,nt,tt){var bt,gt,wt,St=tt*8-nt-1,Mt=(1<>1,Tt=nt===23?Math.pow(2,-24)-Math.pow(2,-77):0,Rt=et?0:tt-1,kt=et?1:-1,It=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(gt=isNaN(a)?1:0,bt=Mt):(bt=Math.floor(Math.log(a)/Math.LN2),a*(wt=Math.pow(2,-bt))<1&&(bt--,wt*=2),bt+_t>=1?a+=Tt/wt:a+=Tt*Math.pow(2,1-_t),a*wt>=2&&(bt++,wt/=2),bt+_t>=Mt?(gt=0,bt=Mt):bt+_t>=1?(gt=(a*wt-1)*Math.pow(2,nt),bt=bt+_t):(gt=a*Math.pow(2,_t-1)*Math.pow(2,nt),bt=0));nt>=8;c[d+Rt]=gt&255,Rt+=kt,gt/=256,nt-=8);for(bt=bt<0;c[d+Rt]=bt&255,Rt+=kt,bt/=256,St-=8);c[d+Rt-kt]|=It*128};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */(function(c){const a=base64Js,d=ieee754,et=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;c.Buffer=gt,c.SlowBuffer=Nt,c.INSPECT_MAX_BYTES=50;const nt=2147483647;c.kMaxLength=nt,gt.TYPED_ARRAY_SUPPORT=tt(),!gt.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 tt(){try{const Qt=new Uint8Array(1),jt={foo:function(){return 42}};return Object.setPrototypeOf(jt,Uint8Array.prototype),Object.setPrototypeOf(Qt,jt),Qt.foo()===42}catch{return!1}}Object.defineProperty(gt.prototype,"parent",{enumerable:!0,get:function(){if(gt.isBuffer(this))return this.buffer}}),Object.defineProperty(gt.prototype,"offset",{enumerable:!0,get:function(){if(gt.isBuffer(this))return this.byteOffset}});function bt(Qt){if(Qt>nt)throw new RangeError('The value "'+Qt+'" is invalid for option "size"');const jt=new Uint8Array(Qt);return Object.setPrototypeOf(jt,gt.prototype),jt}function gt(Qt,jt,Wt){if(typeof Qt=="number"){if(typeof jt=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _t(Qt)}return wt(Qt,jt,Wt)}gt.poolSize=8192;function wt(Qt,jt,Wt){if(typeof Qt=="string")return Tt(Qt,jt);if(ArrayBuffer.isView(Qt))return kt(Qt);if(Qt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Qt);if(Sr(Qt,ArrayBuffer)||Qt&&Sr(Qt.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Sr(Qt,SharedArrayBuffer)||Qt&&Sr(Qt.buffer,SharedArrayBuffer)))return It(Qt,jt,Wt);if(typeof Qt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const nr=Qt.valueOf&&Qt.valueOf();if(nr!=null&&nr!==Qt)return gt.from(nr,jt,Wt);const fr=Lt(Qt);if(fr)return fr;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Qt[Symbol.toPrimitive]=="function")return gt.from(Qt[Symbol.toPrimitive]("string"),jt,Wt);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Qt)}gt.from=function(Qt,jt,Wt){return wt(Qt,jt,Wt)},Object.setPrototypeOf(gt.prototype,Uint8Array.prototype),Object.setPrototypeOf(gt,Uint8Array);function St(Qt){if(typeof Qt!="number")throw new TypeError('"size" argument must be of type number');if(Qt<0)throw new RangeError('The value "'+Qt+'" is invalid for option "size"')}function Mt(Qt,jt,Wt){return St(Qt),Qt<=0?bt(Qt):jt!==void 0?typeof Wt=="string"?bt(Qt).fill(jt,Wt):bt(Qt).fill(jt):bt(Qt)}gt.alloc=function(Qt,jt,Wt){return Mt(Qt,jt,Wt)};function _t(Qt){return St(Qt),bt(Qt<0?0:Ot(Qt)|0)}gt.allocUnsafe=function(Qt){return _t(Qt)},gt.allocUnsafeSlow=function(Qt){return _t(Qt)};function Tt(Qt,jt){if((typeof jt!="string"||jt==="")&&(jt="utf8"),!gt.isEncoding(jt))throw new TypeError("Unknown encoding: "+jt);const Wt=Ft(Qt,jt)|0;let nr=bt(Wt);const fr=nr.write(Qt,jt);return fr!==Wt&&(nr=nr.slice(0,fr)),nr}function Bt(Qt){const jt=Qt.length<0?0:Ot(Qt.length)|0,Wt=bt(jt);for(let nr=0;nr=nt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+nt.toString(16)+" bytes");return Qt|0}function Nt(Qt){return+Qt!=Qt&&(Qt=0),gt.alloc(+Qt)}gt.isBuffer=function(jt){return jt!=null&&jt._isBuffer===!0&&jt!==gt.prototype},gt.compare=function(jt,Wt){if(Sr(jt,Uint8Array)&&(jt=gt.from(jt,jt.offset,jt.byteLength)),Sr(Wt,Uint8Array)&&(Wt=gt.from(Wt,Wt.offset,Wt.byteLength)),!gt.isBuffer(jt)||!gt.isBuffer(Wt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(jt===Wt)return 0;let nr=jt.length,fr=Wt.length;for(let Er=0,pr=Math.min(nr,fr);Erfr.length?(gt.isBuffer(pr)||(pr=gt.from(pr)),pr.copy(fr,Er)):Uint8Array.prototype.set.call(fr,pr,Er);else if(gt.isBuffer(pr))pr.copy(fr,Er);else throw new TypeError('"list" argument must be an Array of Buffers');Er+=pr.length}return fr};function Ft(Qt,jt){if(gt.isBuffer(Qt))return Qt.length;if(ArrayBuffer.isView(Qt)||Sr(Qt,ArrayBuffer))return Qt.byteLength;if(typeof Qt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Qt);const Wt=Qt.length,nr=arguments.length>2&&arguments[2]===!0;if(!nr&&Wt===0)return 0;let fr=!1;for(;;)switch(jt){case"ascii":case"latin1":case"binary":return Wt;case"utf8":case"utf-8":return Pr(Qt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Wt*2;case"hex":return Wt>>>1;case"base64":return Kr(Qt).length;default:if(fr)return nr?-1:Pr(Qt).length;jt=(""+jt).toLowerCase(),fr=!0}}gt.byteLength=Ft;function zt(Qt,jt,Wt){let nr=!1;if((jt===void 0||jt<0)&&(jt=0),jt>this.length||((Wt===void 0||Wt>this.length)&&(Wt=this.length),Wt<=0)||(Wt>>>=0,jt>>>=0,Wt<=jt))return"";for(Qt||(Qt="utf8");;)switch(Qt){case"hex":return xt(this,jt,Wt);case"utf8":case"utf-8":return yt(this,jt,Wt);case"ascii":return At(this,jt,Wt);case"latin1":case"binary":return Pt(this,jt,Wt);case"base64":return mt(this,jt,Wt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ht(this,jt,Wt);default:if(nr)throw new TypeError("Unknown encoding: "+Qt);Qt=(Qt+"").toLowerCase(),nr=!0}}gt.prototype._isBuffer=!0;function Vt(Qt,jt,Wt){const nr=Qt[jt];Qt[jt]=Qt[Wt],Qt[Wt]=nr}gt.prototype.swap16=function(){const jt=this.length;if(jt%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Wt=0;WtWt&&(jt+=" ... "),""},et&&(gt.prototype[et]=gt.prototype.inspect),gt.prototype.compare=function(jt,Wt,nr,fr,Er){if(Sr(jt,Uint8Array)&&(jt=gt.from(jt,jt.offset,jt.byteLength)),!gt.isBuffer(jt))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof jt);if(Wt===void 0&&(Wt=0),nr===void 0&&(nr=jt?jt.length:0),fr===void 0&&(fr=0),Er===void 0&&(Er=this.length),Wt<0||nr>jt.length||fr<0||Er>this.length)throw new RangeError("out of range index");if(fr>=Er&&Wt>=nr)return 0;if(fr>=Er)return-1;if(Wt>=nr)return 1;if(Wt>>>=0,nr>>>=0,fr>>>=0,Er>>>=0,this===jt)return 0;let pr=Er-fr,vr=nr-Wt;const Jr=Math.min(pr,vr),wr=this.slice(fr,Er),Ar=jt.slice(Wt,nr);for(let Yr=0;Yr2147483647?Wt=2147483647:Wt<-2147483648&&(Wt=-2147483648),Wt=+Wt,Zr(Wt)&&(Wt=fr?0:Qt.length-1),Wt<0&&(Wt=Qt.length+Wt),Wt>=Qt.length){if(fr)return-1;Wt=Qt.length-1}else if(Wt<0)if(fr)Wt=0;else return-1;if(typeof jt=="string"&&(jt=gt.from(jt,nr)),gt.isBuffer(jt))return jt.length===0?-1:ir(Qt,jt,Wt,nr,fr);if(typeof jt=="number")return jt=jt&255,typeof Uint8Array.prototype.indexOf=="function"?fr?Uint8Array.prototype.indexOf.call(Qt,jt,Wt):Uint8Array.prototype.lastIndexOf.call(Qt,jt,Wt):ir(Qt,[jt],Wt,nr,fr);throw new TypeError("val must be string, number or Buffer")}function ir(Qt,jt,Wt,nr,fr){let Er=1,pr=Qt.length,vr=jt.length;if(nr!==void 0&&(nr=String(nr).toLowerCase(),nr==="ucs2"||nr==="ucs-2"||nr==="utf16le"||nr==="utf-16le")){if(Qt.length<2||jt.length<2)return-1;Er=2,pr/=2,vr/=2,Wt/=2}function Jr(Ar,Yr){return Er===1?Ar[Yr]:Ar.readUInt16BE(Yr*Er)}let wr;if(fr){let Ar=-1;for(wr=Wt;wrpr&&(Wt=pr-vr),wr=Wt;wr>=0;wr--){let Ar=!0;for(let Yr=0;Yrfr&&(nr=fr)):nr=fr;const Er=jt.length;nr>Er/2&&(nr=Er/2);let pr;for(pr=0;pr>>0,isFinite(nr)?(nr=nr>>>0,fr===void 0&&(fr="utf8")):(fr=nr,nr=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Er=this.length-Wt;if((nr===void 0||nr>Er)&&(nr=Er),jt.length>0&&(nr<0||Wt<0)||Wt>this.length)throw new RangeError("Attempt to write outside buffer bounds");fr||(fr="utf8");let pr=!1;for(;;)switch(fr){case"hex":return rr(this,jt,Wt,nr);case"utf8":case"utf-8":return er(this,jt,Wt,nr);case"ascii":case"latin1":case"binary":return lr(this,jt,Wt,nr);case"base64":return Ct(this,jt,Wt,nr);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return dt(this,jt,Wt,nr);default:if(pr)throw new TypeError("Unknown encoding: "+fr);fr=(""+fr).toLowerCase(),pr=!0}},gt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function mt(Qt,jt,Wt){return jt===0&&Wt===Qt.length?a.fromByteArray(Qt):a.fromByteArray(Qt.slice(jt,Wt))}function yt(Qt,jt,Wt){Wt=Math.min(Qt.length,Wt);const nr=[];let fr=jt;for(;fr239?4:Er>223?3:Er>191?2:1;if(fr+vr<=Wt){let Jr,wr,Ar,Yr;switch(vr){case 1:Er<128&&(pr=Er);break;case 2:Jr=Qt[fr+1],(Jr&192)===128&&(Yr=(Er&31)<<6|Jr&63,Yr>127&&(pr=Yr));break;case 3:Jr=Qt[fr+1],wr=Qt[fr+2],(Jr&192)===128&&(wr&192)===128&&(Yr=(Er&15)<<12|(Jr&63)<<6|wr&63,Yr>2047&&(Yr<55296||Yr>57343)&&(pr=Yr));break;case 4:Jr=Qt[fr+1],wr=Qt[fr+2],Ar=Qt[fr+3],(Jr&192)===128&&(wr&192)===128&&(Ar&192)===128&&(Yr=(Er&15)<<18|(Jr&63)<<12|(wr&63)<<6|Ar&63,Yr>65535&&Yr<1114112&&(pr=Yr))}}pr===null?(pr=65533,vr=1):pr>65535&&(pr-=65536,nr.push(pr>>>10&1023|55296),pr=56320|pr&1023),nr.push(pr),fr+=vr}return Et(nr)}const vt=4096;function Et(Qt){const jt=Qt.length;if(jt<=vt)return String.fromCharCode.apply(String,Qt);let Wt="",nr=0;for(;nrnr)&&(Wt=nr);let fr="";for(let Er=jt;Ernr&&(jt=nr),Wt<0?(Wt+=nr,Wt<0&&(Wt=0)):Wt>nr&&(Wt=nr),WtWt)throw new RangeError("Trying to access beyond buffer length")}gt.prototype.readUintLE=gt.prototype.readUIntLE=function(jt,Wt,nr){jt=jt>>>0,Wt=Wt>>>0,nr||$t(jt,Wt,this.length);let fr=this[jt],Er=1,pr=0;for(;++pr>>0,Wt=Wt>>>0,nr||$t(jt,Wt,this.length);let fr=this[jt+--Wt],Er=1;for(;Wt>0&&(Er*=256);)fr+=this[jt+--Wt]*Er;return fr},gt.prototype.readUint8=gt.prototype.readUInt8=function(jt,Wt){return jt=jt>>>0,Wt||$t(jt,1,this.length),this[jt]},gt.prototype.readUint16LE=gt.prototype.readUInt16LE=function(jt,Wt){return jt=jt>>>0,Wt||$t(jt,2,this.length),this[jt]|this[jt+1]<<8},gt.prototype.readUint16BE=gt.prototype.readUInt16BE=function(jt,Wt){return jt=jt>>>0,Wt||$t(jt,2,this.length),this[jt]<<8|this[jt+1]},gt.prototype.readUint32LE=gt.prototype.readUInt32LE=function(jt,Wt){return jt=jt>>>0,Wt||$t(jt,4,this.length),(this[jt]|this[jt+1]<<8|this[jt+2]<<16)+this[jt+3]*16777216},gt.prototype.readUint32BE=gt.prototype.readUInt32BE=function(jt,Wt){return jt=jt>>>0,Wt||$t(jt,4,this.length),this[jt]*16777216+(this[jt+1]<<16|this[jt+2]<<8|this[jt+3])},gt.prototype.readBigUInt64LE=Mr(function(jt){jt=jt>>>0,ar(jt,"offset");const Wt=this[jt],nr=this[jt+7];(Wt===void 0||nr===void 0)&&gr(jt,this.length-8);const fr=Wt+this[++jt]*2**8+this[++jt]*2**16+this[++jt]*2**24,Er=this[++jt]+this[++jt]*2**8+this[++jt]*2**16+nr*2**24;return BigInt(fr)+(BigInt(Er)<>>0,ar(jt,"offset");const Wt=this[jt],nr=this[jt+7];(Wt===void 0||nr===void 0)&&gr(jt,this.length-8);const fr=Wt*2**24+this[++jt]*2**16+this[++jt]*2**8+this[++jt],Er=this[++jt]*2**24+this[++jt]*2**16+this[++jt]*2**8+nr;return(BigInt(fr)<>>0,Wt=Wt>>>0,nr||$t(jt,Wt,this.length);let fr=this[jt],Er=1,pr=0;for(;++pr=Er&&(fr-=Math.pow(2,8*Wt)),fr},gt.prototype.readIntBE=function(jt,Wt,nr){jt=jt>>>0,Wt=Wt>>>0,nr||$t(jt,Wt,this.length);let fr=Wt,Er=1,pr=this[jt+--fr];for(;fr>0&&(Er*=256);)pr+=this[jt+--fr]*Er;return Er*=128,pr>=Er&&(pr-=Math.pow(2,8*Wt)),pr},gt.prototype.readInt8=function(jt,Wt){return jt=jt>>>0,Wt||$t(jt,1,this.length),this[jt]&128?(255-this[jt]+1)*-1:this[jt]},gt.prototype.readInt16LE=function(jt,Wt){jt=jt>>>0,Wt||$t(jt,2,this.length);const nr=this[jt]|this[jt+1]<<8;return nr&32768?nr|4294901760:nr},gt.prototype.readInt16BE=function(jt,Wt){jt=jt>>>0,Wt||$t(jt,2,this.length);const nr=this[jt+1]|this[jt]<<8;return nr&32768?nr|4294901760:nr},gt.prototype.readInt32LE=function(jt,Wt){return jt=jt>>>0,Wt||$t(jt,4,this.length),this[jt]|this[jt+1]<<8|this[jt+2]<<16|this[jt+3]<<24},gt.prototype.readInt32BE=function(jt,Wt){return jt=jt>>>0,Wt||$t(jt,4,this.length),this[jt]<<24|this[jt+1]<<16|this[jt+2]<<8|this[jt+3]},gt.prototype.readBigInt64LE=Mr(function(jt){jt=jt>>>0,ar(jt,"offset");const Wt=this[jt],nr=this[jt+7];(Wt===void 0||nr===void 0)&&gr(jt,this.length-8);const fr=this[jt+4]+this[jt+5]*2**8+this[jt+6]*2**16+(nr<<24);return(BigInt(fr)<>>0,ar(jt,"offset");const Wt=this[jt],nr=this[jt+7];(Wt===void 0||nr===void 0)&&gr(jt,this.length-8);const fr=(Wt<<24)+this[++jt]*2**16+this[++jt]*2**8+this[++jt];return(BigInt(fr)<>>0,Wt||$t(jt,4,this.length),d.read(this,jt,!0,23,4)},gt.prototype.readFloatBE=function(jt,Wt){return jt=jt>>>0,Wt||$t(jt,4,this.length),d.read(this,jt,!1,23,4)},gt.prototype.readDoubleLE=function(jt,Wt){return jt=jt>>>0,Wt||$t(jt,8,this.length),d.read(this,jt,!0,52,8)},gt.prototype.readDoubleBE=function(jt,Wt){return jt=jt>>>0,Wt||$t(jt,8,this.length),d.read(this,jt,!1,52,8)};function Rt(Qt,jt,Wt,nr,fr,Er){if(!gt.isBuffer(Qt))throw new TypeError('"buffer" argument must be a Buffer instance');if(jt>fr||jtQt.length)throw new RangeError("Index out of range")}gt.prototype.writeUintLE=gt.prototype.writeUIntLE=function(jt,Wt,nr,fr){if(jt=+jt,Wt=Wt>>>0,nr=nr>>>0,!fr){const vr=Math.pow(2,8*nr)-1;Rt(this,jt,Wt,nr,vr,0)}let Er=1,pr=0;for(this[Wt]=jt&255;++pr>>0,nr=nr>>>0,!fr){const vr=Math.pow(2,8*nr)-1;Rt(this,jt,Wt,nr,vr,0)}let Er=nr-1,pr=1;for(this[Wt+Er]=jt&255;--Er>=0&&(pr*=256);)this[Wt+Er]=jt/pr&255;return Wt+nr},gt.prototype.writeUint8=gt.prototype.writeUInt8=function(jt,Wt,nr){return jt=+jt,Wt=Wt>>>0,nr||Rt(this,jt,Wt,1,255,0),this[Wt]=jt&255,Wt+1},gt.prototype.writeUint16LE=gt.prototype.writeUInt16LE=function(jt,Wt,nr){return jt=+jt,Wt=Wt>>>0,nr||Rt(this,jt,Wt,2,65535,0),this[Wt]=jt&255,this[Wt+1]=jt>>>8,Wt+2},gt.prototype.writeUint16BE=gt.prototype.writeUInt16BE=function(jt,Wt,nr){return jt=+jt,Wt=Wt>>>0,nr||Rt(this,jt,Wt,2,65535,0),this[Wt]=jt>>>8,this[Wt+1]=jt&255,Wt+2},gt.prototype.writeUint32LE=gt.prototype.writeUInt32LE=function(jt,Wt,nr){return jt=+jt,Wt=Wt>>>0,nr||Rt(this,jt,Wt,4,4294967295,0),this[Wt+3]=jt>>>24,this[Wt+2]=jt>>>16,this[Wt+1]=jt>>>8,this[Wt]=jt&255,Wt+4},gt.prototype.writeUint32BE=gt.prototype.writeUInt32BE=function(jt,Wt,nr){return jt=+jt,Wt=Wt>>>0,nr||Rt(this,jt,Wt,4,4294967295,0),this[Wt]=jt>>>24,this[Wt+1]=jt>>>16,this[Wt+2]=jt>>>8,this[Wt+3]=jt&255,Wt+4};function Dt(Qt,jt,Wt,nr,fr){Kt(jt,nr,fr,Qt,Wt,7);let Er=Number(jt&BigInt(4294967295));Qt[Wt++]=Er,Er=Er>>8,Qt[Wt++]=Er,Er=Er>>8,Qt[Wt++]=Er,Er=Er>>8,Qt[Wt++]=Er;let pr=Number(jt>>BigInt(32)&BigInt(4294967295));return Qt[Wt++]=pr,pr=pr>>8,Qt[Wt++]=pr,pr=pr>>8,Qt[Wt++]=pr,pr=pr>>8,Qt[Wt++]=pr,Wt}function Ht(Qt,jt,Wt,nr,fr){Kt(jt,nr,fr,Qt,Wt,7);let Er=Number(jt&BigInt(4294967295));Qt[Wt+7]=Er,Er=Er>>8,Qt[Wt+6]=Er,Er=Er>>8,Qt[Wt+5]=Er,Er=Er>>8,Qt[Wt+4]=Er;let pr=Number(jt>>BigInt(32)&BigInt(4294967295));return Qt[Wt+3]=pr,pr=pr>>8,Qt[Wt+2]=pr,pr=pr>>8,Qt[Wt+1]=pr,pr=pr>>8,Qt[Wt]=pr,Wt+8}gt.prototype.writeBigUInt64LE=Mr(function(jt,Wt=0){return Dt(this,jt,Wt,BigInt(0),BigInt("0xffffffffffffffff"))}),gt.prototype.writeBigUInt64BE=Mr(function(jt,Wt=0){return Ht(this,jt,Wt,BigInt(0),BigInt("0xffffffffffffffff"))}),gt.prototype.writeIntLE=function(jt,Wt,nr,fr){if(jt=+jt,Wt=Wt>>>0,!fr){const Jr=Math.pow(2,8*nr-1);Rt(this,jt,Wt,nr,Jr-1,-Jr)}let Er=0,pr=1,vr=0;for(this[Wt]=jt&255;++Er>0)-vr&255;return Wt+nr},gt.prototype.writeIntBE=function(jt,Wt,nr,fr){if(jt=+jt,Wt=Wt>>>0,!fr){const Jr=Math.pow(2,8*nr-1);Rt(this,jt,Wt,nr,Jr-1,-Jr)}let Er=nr-1,pr=1,vr=0;for(this[Wt+Er]=jt&255;--Er>=0&&(pr*=256);)jt<0&&vr===0&&this[Wt+Er+1]!==0&&(vr=1),this[Wt+Er]=(jt/pr>>0)-vr&255;return Wt+nr},gt.prototype.writeInt8=function(jt,Wt,nr){return jt=+jt,Wt=Wt>>>0,nr||Rt(this,jt,Wt,1,127,-128),jt<0&&(jt=255+jt+1),this[Wt]=jt&255,Wt+1},gt.prototype.writeInt16LE=function(jt,Wt,nr){return jt=+jt,Wt=Wt>>>0,nr||Rt(this,jt,Wt,2,32767,-32768),this[Wt]=jt&255,this[Wt+1]=jt>>>8,Wt+2},gt.prototype.writeInt16BE=function(jt,Wt,nr){return jt=+jt,Wt=Wt>>>0,nr||Rt(this,jt,Wt,2,32767,-32768),this[Wt]=jt>>>8,this[Wt+1]=jt&255,Wt+2},gt.prototype.writeInt32LE=function(jt,Wt,nr){return jt=+jt,Wt=Wt>>>0,nr||Rt(this,jt,Wt,4,2147483647,-2147483648),this[Wt]=jt&255,this[Wt+1]=jt>>>8,this[Wt+2]=jt>>>16,this[Wt+3]=jt>>>24,Wt+4},gt.prototype.writeInt32BE=function(jt,Wt,nr){return jt=+jt,Wt=Wt>>>0,nr||Rt(this,jt,Wt,4,2147483647,-2147483648),jt<0&&(jt=4294967295+jt+1),this[Wt]=jt>>>24,this[Wt+1]=jt>>>16,this[Wt+2]=jt>>>8,this[Wt+3]=jt&255,Wt+4},gt.prototype.writeBigInt64LE=Mr(function(jt,Wt=0){return Dt(this,jt,Wt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),gt.prototype.writeBigInt64BE=Mr(function(jt,Wt=0){return Ht(this,jt,Wt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function tr(Qt,jt,Wt,nr,fr,Er){if(Wt+nr>Qt.length)throw new RangeError("Index out of range");if(Wt<0)throw new RangeError("Index out of range")}function Xt(Qt,jt,Wt,nr,fr){return jt=+jt,Wt=Wt>>>0,fr||tr(Qt,jt,Wt,4),d.write(Qt,jt,Wt,nr,23,4),Wt+4}gt.prototype.writeFloatLE=function(jt,Wt,nr){return Xt(this,jt,Wt,!0,nr)},gt.prototype.writeFloatBE=function(jt,Wt,nr){return Xt(this,jt,Wt,!1,nr)};function Ut(Qt,jt,Wt,nr,fr){return jt=+jt,Wt=Wt>>>0,fr||tr(Qt,jt,Wt,8),d.write(Qt,jt,Wt,nr,52,8),Wt+8}gt.prototype.writeDoubleLE=function(jt,Wt,nr){return Ut(this,jt,Wt,!0,nr)},gt.prototype.writeDoubleBE=function(jt,Wt,nr){return Ut(this,jt,Wt,!1,nr)},gt.prototype.copy=function(jt,Wt,nr,fr){if(!gt.isBuffer(jt))throw new TypeError("argument should be a Buffer");if(nr||(nr=0),!fr&&fr!==0&&(fr=this.length),Wt>=jt.length&&(Wt=jt.length),Wt||(Wt=0),fr>0&&fr=this.length)throw new RangeError("Index out of range");if(fr<0)throw new RangeError("sourceEnd out of bounds");fr>this.length&&(fr=this.length),jt.length-Wt>>0,nr=nr===void 0?this.length:nr>>>0,jt||(jt=0);let Er;if(typeof jt=="number")for(Er=Wt;Er2**32?fr=Zt(String(Wt)):typeof Wt=="bigint"&&(fr=String(Wt),(Wt>BigInt(2)**BigInt(32)||Wt<-(BigInt(2)**BigInt(32)))&&(fr=Zt(fr)),fr+="n"),nr+=` It must be ${jt}. Received ${fr}`,nr},RangeError);function Zt(Qt){let jt="",Wt=Qt.length;const nr=Qt[0]==="-"?1:0;for(;Wt>=nr+4;Wt-=3)jt=`_${Qt.slice(Wt-3,Wt)}${jt}`;return`${Qt.slice(0,Wt)}${jt}`}function Yt(Qt,jt,Wt){ar(jt,"offset"),(Qt[jt]===void 0||Qt[jt+Wt]===void 0)&&gr(jt,Qt.length-(Wt+1))}function Kt(Qt,jt,Wt,nr,fr,Er){if(Qt>Wt||Qt3?jt===0||jt===BigInt(0)?vr=`>= 0${pr} and < 2${pr} ** ${(Er+1)*8}${pr}`:vr=`>= -(2${pr} ** ${(Er+1)*8-1}${pr}) and < 2 ** ${(Er+1)*8-1}${pr}`:vr=`>= ${jt}${pr} and <= ${Wt}${pr}`,new qt.ERR_OUT_OF_RANGE("value",vr,Qt)}Yt(nr,fr,Er)}function ar(Qt,jt){if(typeof Qt!="number")throw new qt.ERR_INVALID_ARG_TYPE(jt,"number",Qt)}function gr(Qt,jt,Wt){throw Math.floor(Qt)!==Qt?(ar(Qt,Wt),new qt.ERR_OUT_OF_RANGE(Wt||"offset","an integer",Qt)):jt<0?new qt.ERR_BUFFER_OUT_OF_BOUNDS:new qt.ERR_OUT_OF_RANGE(Wt||"offset",`>= ${Wt?1:0} and <= ${jt}`,Qt)}const cr=/[^+/0-9A-Za-z-_]/g;function ur(Qt){if(Qt=Qt.split("=")[0],Qt=Qt.trim().replace(cr,""),Qt.length<2)return"";for(;Qt.length%4!==0;)Qt=Qt+"=";return Qt}function Pr(Qt,jt){jt=jt||1/0;let Wt;const nr=Qt.length;let fr=null;const Er=[];for(let pr=0;pr55295&&Wt<57344){if(!fr){if(Wt>56319){(jt-=3)>-1&&Er.push(239,191,189);continue}else if(pr+1===nr){(jt-=3)>-1&&Er.push(239,191,189);continue}fr=Wt;continue}if(Wt<56320){(jt-=3)>-1&&Er.push(239,191,189),fr=Wt;continue}Wt=(fr-55296<<10|Wt-56320)+65536}else fr&&(jt-=3)>-1&&Er.push(239,191,189);if(fr=null,Wt<128){if((jt-=1)<0)break;Er.push(Wt)}else if(Wt<2048){if((jt-=2)<0)break;Er.push(Wt>>6|192,Wt&63|128)}else if(Wt<65536){if((jt-=3)<0)break;Er.push(Wt>>12|224,Wt>>6&63|128,Wt&63|128)}else if(Wt<1114112){if((jt-=4)<0)break;Er.push(Wt>>18|240,Wt>>12&63|128,Wt>>6&63|128,Wt&63|128)}else throw new Error("Invalid code point")}return Er}function br(Qt){const jt=[];for(let Wt=0;Wt>8,fr=Wt%256,Er.push(fr),Er.push(nr);return Er}function Kr(Qt){return a.toByteArray(ur(Qt))}function xr(Qt,jt,Wt,nr){let fr;for(fr=0;fr=jt.length||fr>=Qt.length);++fr)jt[fr+Wt]=Qt[fr];return fr}function Sr(Qt,jt){return Qt instanceof jt||Qt!=null&&Qt.constructor!=null&&Qt.constructor.name!=null&&Qt.constructor.name===jt.name}function Zr(Qt){return Qt!==Qt}const $r=function(){const Qt="0123456789abcdef",jt=new Array(256);for(let Wt=0;Wt<16;++Wt){const nr=Wt*16;for(let fr=0;fr<16;++fr)jt[nr+fr]=Qt[Wt]+Qt[fr]}return jt}();function Mr(Qt){return typeof BigInt>"u"?Xr:Qt}function Xr(){throw new Error("BigInt not supported")}})(bufferPolyfill);var browser$c={exports:{}},process$1=browser$c.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cachedSetTimeout=setTimeout:cachedSetTimeout=defaultSetTimout}catch{cachedSetTimeout=defaultSetTimout}try{typeof clearTimeout=="function"?cachedClearTimeout=clearTimeout:cachedClearTimeout=defaultClearTimeout}catch{cachedClearTimeout=defaultClearTimeout}})();function runTimeout(c){if(cachedSetTimeout===setTimeout)return setTimeout(c,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(c,0);try{return cachedSetTimeout(c,0)}catch{try{return cachedSetTimeout.call(null,c,0)}catch{return cachedSetTimeout.call(this,c,0)}}}function runClearTimeout(c){if(cachedClearTimeout===clearTimeout)return clearTimeout(c);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(c);try{return cachedClearTimeout(c)}catch{try{return cachedClearTimeout.call(null,c)}catch{return cachedClearTimeout.call(this,c)}}}var queue=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var c=runTimeout(cleanUpNextTick);draining=!0;for(var a=queue.length;a;){for(currentQueue=queue,queue=[];++queueIndex1)for(var d=1;dnt)throw new RangeError('The value "'+Qt+'" is invalid for option "size"');const zt=new Uint8Array(Qt);return Object.setPrototypeOf(zt,gt.prototype),zt}function gt(Qt,zt,Wt){if(typeof Qt=="number"){if(typeof zt=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _t(Qt)}return wt(Qt,zt,Wt)}gt.poolSize=8192;function wt(Qt,zt,Wt){if(typeof Qt=="string")return Tt(Qt,zt);if(ArrayBuffer.isView(Qt))return kt(Qt);if(Qt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Qt);if(Sr(Qt,ArrayBuffer)||Qt&&Sr(Qt.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Sr(Qt,SharedArrayBuffer)||Qt&&Sr(Qt.buffer,SharedArrayBuffer)))return It(Qt,zt,Wt);if(typeof Qt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const nr=Qt.valueOf&&Qt.valueOf();if(nr!=null&&nr!==Qt)return gt.from(nr,zt,Wt);const fr=Lt(Qt);if(fr)return fr;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Qt[Symbol.toPrimitive]=="function")return gt.from(Qt[Symbol.toPrimitive]("string"),zt,Wt);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Qt)}gt.from=function(Qt,zt,Wt){return wt(Qt,zt,Wt)},Object.setPrototypeOf(gt.prototype,Uint8Array.prototype),Object.setPrototypeOf(gt,Uint8Array);function St(Qt){if(typeof Qt!="number")throw new TypeError('"size" argument must be of type number');if(Qt<0)throw new RangeError('The value "'+Qt+'" is invalid for option "size"')}function Mt(Qt,zt,Wt){return St(Qt),Qt<=0?bt(Qt):zt!==void 0?typeof Wt=="string"?bt(Qt).fill(zt,Wt):bt(Qt).fill(zt):bt(Qt)}gt.alloc=function(Qt,zt,Wt){return Mt(Qt,zt,Wt)};function _t(Qt){return St(Qt),bt(Qt<0?0:Ot(Qt)|0)}gt.allocUnsafe=function(Qt){return _t(Qt)},gt.allocUnsafeSlow=function(Qt){return _t(Qt)};function Tt(Qt,zt){if((typeof zt!="string"||zt==="")&&(zt="utf8"),!gt.isEncoding(zt))throw new TypeError("Unknown encoding: "+zt);const Wt=Ft(Qt,zt)|0;let nr=bt(Wt);const fr=nr.write(Qt,zt);return fr!==Wt&&(nr=nr.slice(0,fr)),nr}function Rt(Qt){const zt=Qt.length<0?0:Ot(Qt.length)|0,Wt=bt(zt);for(let nr=0;nr=nt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+nt.toString(16)+" bytes");return Qt|0}function Nt(Qt){return+Qt!=Qt&&(Qt=0),gt.alloc(+Qt)}gt.isBuffer=function(zt){return zt!=null&&zt._isBuffer===!0&&zt!==gt.prototype},gt.compare=function(zt,Wt){if(Sr(zt,Uint8Array)&&(zt=gt.from(zt,zt.offset,zt.byteLength)),Sr(Wt,Uint8Array)&&(Wt=gt.from(Wt,Wt.offset,Wt.byteLength)),!gt.isBuffer(zt)||!gt.isBuffer(Wt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(zt===Wt)return 0;let nr=zt.length,fr=Wt.length;for(let Er=0,pr=Math.min(nr,fr);Erfr.length?(gt.isBuffer(pr)||(pr=gt.from(pr)),pr.copy(fr,Er)):Uint8Array.prototype.set.call(fr,pr,Er);else if(gt.isBuffer(pr))pr.copy(fr,Er);else throw new TypeError('"list" argument must be an Array of Buffers');Er+=pr.length}return fr};function Ft(Qt,zt){if(gt.isBuffer(Qt))return Qt.length;if(ArrayBuffer.isView(Qt)||Sr(Qt,ArrayBuffer))return Qt.byteLength;if(typeof Qt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Qt);const Wt=Qt.length,nr=arguments.length>2&&arguments[2]===!0;if(!nr&&Wt===0)return 0;let fr=!1;for(;;)switch(zt){case"ascii":case"latin1":case"binary":return Wt;case"utf8":case"utf-8":return Pr(Qt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Wt*2;case"hex":return Wt>>>1;case"base64":return Kr(Qt).length;default:if(fr)return nr?-1:Pr(Qt).length;zt=(""+zt).toLowerCase(),fr=!0}}gt.byteLength=Ft;function jt(Qt,zt,Wt){let nr=!1;if((zt===void 0||zt<0)&&(zt=0),zt>this.length||((Wt===void 0||Wt>this.length)&&(Wt=this.length),Wt<=0)||(Wt>>>=0,zt>>>=0,Wt<=zt))return"";for(Qt||(Qt="utf8");;)switch(Qt){case"hex":return xt(this,zt,Wt);case"utf8":case"utf-8":return yt(this,zt,Wt);case"ascii":return At(this,zt,Wt);case"latin1":case"binary":return Pt(this,zt,Wt);case"base64":return mt(this,zt,Wt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ht(this,zt,Wt);default:if(nr)throw new TypeError("Unknown encoding: "+Qt);Qt=(Qt+"").toLowerCase(),nr=!0}}gt.prototype._isBuffer=!0;function Vt(Qt,zt,Wt){const nr=Qt[zt];Qt[zt]=Qt[Wt],Qt[Wt]=nr}gt.prototype.swap16=function(){const zt=this.length;if(zt%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Wt=0;WtWt&&(zt+=" ... "),""},et&&(gt.prototype[et]=gt.prototype.inspect),gt.prototype.compare=function(zt,Wt,nr,fr,Er){if(Sr(zt,Uint8Array)&&(zt=gt.from(zt,zt.offset,zt.byteLength)),!gt.isBuffer(zt))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof zt);if(Wt===void 0&&(Wt=0),nr===void 0&&(nr=zt?zt.length:0),fr===void 0&&(fr=0),Er===void 0&&(Er=this.length),Wt<0||nr>zt.length||fr<0||Er>this.length)throw new RangeError("out of range index");if(fr>=Er&&Wt>=nr)return 0;if(fr>=Er)return-1;if(Wt>=nr)return 1;if(Wt>>>=0,nr>>>=0,fr>>>=0,Er>>>=0,this===zt)return 0;let pr=Er-fr,vr=nr-Wt;const Jr=Math.min(pr,vr),wr=this.slice(fr,Er),Ar=zt.slice(Wt,nr);for(let Yr=0;Yr2147483647?Wt=2147483647:Wt<-2147483648&&(Wt=-2147483648),Wt=+Wt,Zr(Wt)&&(Wt=fr?0:Qt.length-1),Wt<0&&(Wt=Qt.length+Wt),Wt>=Qt.length){if(fr)return-1;Wt=Qt.length-1}else if(Wt<0)if(fr)Wt=0;else return-1;if(typeof zt=="string"&&(zt=gt.from(zt,nr)),gt.isBuffer(zt))return zt.length===0?-1:ir(Qt,zt,Wt,nr,fr);if(typeof zt=="number")return zt=zt&255,typeof Uint8Array.prototype.indexOf=="function"?fr?Uint8Array.prototype.indexOf.call(Qt,zt,Wt):Uint8Array.prototype.lastIndexOf.call(Qt,zt,Wt):ir(Qt,[zt],Wt,nr,fr);throw new TypeError("val must be string, number or Buffer")}function ir(Qt,zt,Wt,nr,fr){let Er=1,pr=Qt.length,vr=zt.length;if(nr!==void 0&&(nr=String(nr).toLowerCase(),nr==="ucs2"||nr==="ucs-2"||nr==="utf16le"||nr==="utf-16le")){if(Qt.length<2||zt.length<2)return-1;Er=2,pr/=2,vr/=2,Wt/=2}function Jr(Ar,Yr){return Er===1?Ar[Yr]:Ar.readUInt16BE(Yr*Er)}let wr;if(fr){let Ar=-1;for(wr=Wt;wrpr&&(Wt=pr-vr),wr=Wt;wr>=0;wr--){let Ar=!0;for(let Yr=0;Yrfr&&(nr=fr)):nr=fr;const Er=zt.length;nr>Er/2&&(nr=Er/2);let pr;for(pr=0;pr>>0,isFinite(nr)?(nr=nr>>>0,fr===void 0&&(fr="utf8")):(fr=nr,nr=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Er=this.length-Wt;if((nr===void 0||nr>Er)&&(nr=Er),zt.length>0&&(nr<0||Wt<0)||Wt>this.length)throw new RangeError("Attempt to write outside buffer bounds");fr||(fr="utf8");let pr=!1;for(;;)switch(fr){case"hex":return rr(this,zt,Wt,nr);case"utf8":case"utf-8":return er(this,zt,Wt,nr);case"ascii":case"latin1":case"binary":return lr(this,zt,Wt,nr);case"base64":return Ct(this,zt,Wt,nr);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return dt(this,zt,Wt,nr);default:if(pr)throw new TypeError("Unknown encoding: "+fr);fr=(""+fr).toLowerCase(),pr=!0}},gt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function mt(Qt,zt,Wt){return zt===0&&Wt===Qt.length?a.fromByteArray(Qt):a.fromByteArray(Qt.slice(zt,Wt))}function yt(Qt,zt,Wt){Wt=Math.min(Qt.length,Wt);const nr=[];let fr=zt;for(;fr239?4:Er>223?3:Er>191?2:1;if(fr+vr<=Wt){let Jr,wr,Ar,Yr;switch(vr){case 1:Er<128&&(pr=Er);break;case 2:Jr=Qt[fr+1],(Jr&192)===128&&(Yr=(Er&31)<<6|Jr&63,Yr>127&&(pr=Yr));break;case 3:Jr=Qt[fr+1],wr=Qt[fr+2],(Jr&192)===128&&(wr&192)===128&&(Yr=(Er&15)<<12|(Jr&63)<<6|wr&63,Yr>2047&&(Yr<55296||Yr>57343)&&(pr=Yr));break;case 4:Jr=Qt[fr+1],wr=Qt[fr+2],Ar=Qt[fr+3],(Jr&192)===128&&(wr&192)===128&&(Ar&192)===128&&(Yr=(Er&15)<<18|(Jr&63)<<12|(wr&63)<<6|Ar&63,Yr>65535&&Yr<1114112&&(pr=Yr))}}pr===null?(pr=65533,vr=1):pr>65535&&(pr-=65536,nr.push(pr>>>10&1023|55296),pr=56320|pr&1023),nr.push(pr),fr+=vr}return Et(nr)}const vt=4096;function Et(Qt){const zt=Qt.length;if(zt<=vt)return String.fromCharCode.apply(String,Qt);let Wt="",nr=0;for(;nrnr)&&(Wt=nr);let fr="";for(let Er=zt;Ernr&&(zt=nr),Wt<0?(Wt+=nr,Wt<0&&(Wt=0)):Wt>nr&&(Wt=nr),WtWt)throw new RangeError("Trying to access beyond buffer length")}gt.prototype.readUintLE=gt.prototype.readUIntLE=function(zt,Wt,nr){zt=zt>>>0,Wt=Wt>>>0,nr||$t(zt,Wt,this.length);let fr=this[zt],Er=1,pr=0;for(;++pr>>0,Wt=Wt>>>0,nr||$t(zt,Wt,this.length);let fr=this[zt+--Wt],Er=1;for(;Wt>0&&(Er*=256);)fr+=this[zt+--Wt]*Er;return fr},gt.prototype.readUint8=gt.prototype.readUInt8=function(zt,Wt){return zt=zt>>>0,Wt||$t(zt,1,this.length),this[zt]},gt.prototype.readUint16LE=gt.prototype.readUInt16LE=function(zt,Wt){return zt=zt>>>0,Wt||$t(zt,2,this.length),this[zt]|this[zt+1]<<8},gt.prototype.readUint16BE=gt.prototype.readUInt16BE=function(zt,Wt){return zt=zt>>>0,Wt||$t(zt,2,this.length),this[zt]<<8|this[zt+1]},gt.prototype.readUint32LE=gt.prototype.readUInt32LE=function(zt,Wt){return zt=zt>>>0,Wt||$t(zt,4,this.length),(this[zt]|this[zt+1]<<8|this[zt+2]<<16)+this[zt+3]*16777216},gt.prototype.readUint32BE=gt.prototype.readUInt32BE=function(zt,Wt){return zt=zt>>>0,Wt||$t(zt,4,this.length),this[zt]*16777216+(this[zt+1]<<16|this[zt+2]<<8|this[zt+3])},gt.prototype.readBigUInt64LE=Mr(function(zt){zt=zt>>>0,ar(zt,"offset");const Wt=this[zt],nr=this[zt+7];(Wt===void 0||nr===void 0)&&gr(zt,this.length-8);const fr=Wt+this[++zt]*2**8+this[++zt]*2**16+this[++zt]*2**24,Er=this[++zt]+this[++zt]*2**8+this[++zt]*2**16+nr*2**24;return BigInt(fr)+(BigInt(Er)<>>0,ar(zt,"offset");const Wt=this[zt],nr=this[zt+7];(Wt===void 0||nr===void 0)&&gr(zt,this.length-8);const fr=Wt*2**24+this[++zt]*2**16+this[++zt]*2**8+this[++zt],Er=this[++zt]*2**24+this[++zt]*2**16+this[++zt]*2**8+nr;return(BigInt(fr)<>>0,Wt=Wt>>>0,nr||$t(zt,Wt,this.length);let fr=this[zt],Er=1,pr=0;for(;++pr=Er&&(fr-=Math.pow(2,8*Wt)),fr},gt.prototype.readIntBE=function(zt,Wt,nr){zt=zt>>>0,Wt=Wt>>>0,nr||$t(zt,Wt,this.length);let fr=Wt,Er=1,pr=this[zt+--fr];for(;fr>0&&(Er*=256);)pr+=this[zt+--fr]*Er;return Er*=128,pr>=Er&&(pr-=Math.pow(2,8*Wt)),pr},gt.prototype.readInt8=function(zt,Wt){return zt=zt>>>0,Wt||$t(zt,1,this.length),this[zt]&128?(255-this[zt]+1)*-1:this[zt]},gt.prototype.readInt16LE=function(zt,Wt){zt=zt>>>0,Wt||$t(zt,2,this.length);const nr=this[zt]|this[zt+1]<<8;return nr&32768?nr|4294901760:nr},gt.prototype.readInt16BE=function(zt,Wt){zt=zt>>>0,Wt||$t(zt,2,this.length);const nr=this[zt+1]|this[zt]<<8;return nr&32768?nr|4294901760:nr},gt.prototype.readInt32LE=function(zt,Wt){return zt=zt>>>0,Wt||$t(zt,4,this.length),this[zt]|this[zt+1]<<8|this[zt+2]<<16|this[zt+3]<<24},gt.prototype.readInt32BE=function(zt,Wt){return zt=zt>>>0,Wt||$t(zt,4,this.length),this[zt]<<24|this[zt+1]<<16|this[zt+2]<<8|this[zt+3]},gt.prototype.readBigInt64LE=Mr(function(zt){zt=zt>>>0,ar(zt,"offset");const Wt=this[zt],nr=this[zt+7];(Wt===void 0||nr===void 0)&&gr(zt,this.length-8);const fr=this[zt+4]+this[zt+5]*2**8+this[zt+6]*2**16+(nr<<24);return(BigInt(fr)<>>0,ar(zt,"offset");const Wt=this[zt],nr=this[zt+7];(Wt===void 0||nr===void 0)&&gr(zt,this.length-8);const fr=(Wt<<24)+this[++zt]*2**16+this[++zt]*2**8+this[++zt];return(BigInt(fr)<>>0,Wt||$t(zt,4,this.length),d.read(this,zt,!0,23,4)},gt.prototype.readFloatBE=function(zt,Wt){return zt=zt>>>0,Wt||$t(zt,4,this.length),d.read(this,zt,!1,23,4)},gt.prototype.readDoubleLE=function(zt,Wt){return zt=zt>>>0,Wt||$t(zt,8,this.length),d.read(this,zt,!0,52,8)},gt.prototype.readDoubleBE=function(zt,Wt){return zt=zt>>>0,Wt||$t(zt,8,this.length),d.read(this,zt,!1,52,8)};function Bt(Qt,zt,Wt,nr,fr,Er){if(!gt.isBuffer(Qt))throw new TypeError('"buffer" argument must be a Buffer instance');if(zt>fr||ztQt.length)throw new RangeError("Index out of range")}gt.prototype.writeUintLE=gt.prototype.writeUIntLE=function(zt,Wt,nr,fr){if(zt=+zt,Wt=Wt>>>0,nr=nr>>>0,!fr){const vr=Math.pow(2,8*nr)-1;Bt(this,zt,Wt,nr,vr,0)}let Er=1,pr=0;for(this[Wt]=zt&255;++pr>>0,nr=nr>>>0,!fr){const vr=Math.pow(2,8*nr)-1;Bt(this,zt,Wt,nr,vr,0)}let Er=nr-1,pr=1;for(this[Wt+Er]=zt&255;--Er>=0&&(pr*=256);)this[Wt+Er]=zt/pr&255;return Wt+nr},gt.prototype.writeUint8=gt.prototype.writeUInt8=function(zt,Wt,nr){return zt=+zt,Wt=Wt>>>0,nr||Bt(this,zt,Wt,1,255,0),this[Wt]=zt&255,Wt+1},gt.prototype.writeUint16LE=gt.prototype.writeUInt16LE=function(zt,Wt,nr){return zt=+zt,Wt=Wt>>>0,nr||Bt(this,zt,Wt,2,65535,0),this[Wt]=zt&255,this[Wt+1]=zt>>>8,Wt+2},gt.prototype.writeUint16BE=gt.prototype.writeUInt16BE=function(zt,Wt,nr){return zt=+zt,Wt=Wt>>>0,nr||Bt(this,zt,Wt,2,65535,0),this[Wt]=zt>>>8,this[Wt+1]=zt&255,Wt+2},gt.prototype.writeUint32LE=gt.prototype.writeUInt32LE=function(zt,Wt,nr){return zt=+zt,Wt=Wt>>>0,nr||Bt(this,zt,Wt,4,4294967295,0),this[Wt+3]=zt>>>24,this[Wt+2]=zt>>>16,this[Wt+1]=zt>>>8,this[Wt]=zt&255,Wt+4},gt.prototype.writeUint32BE=gt.prototype.writeUInt32BE=function(zt,Wt,nr){return zt=+zt,Wt=Wt>>>0,nr||Bt(this,zt,Wt,4,4294967295,0),this[Wt]=zt>>>24,this[Wt+1]=zt>>>16,this[Wt+2]=zt>>>8,this[Wt+3]=zt&255,Wt+4};function Dt(Qt,zt,Wt,nr,fr){Kt(zt,nr,fr,Qt,Wt,7);let Er=Number(zt&BigInt(4294967295));Qt[Wt++]=Er,Er=Er>>8,Qt[Wt++]=Er,Er=Er>>8,Qt[Wt++]=Er,Er=Er>>8,Qt[Wt++]=Er;let pr=Number(zt>>BigInt(32)&BigInt(4294967295));return Qt[Wt++]=pr,pr=pr>>8,Qt[Wt++]=pr,pr=pr>>8,Qt[Wt++]=pr,pr=pr>>8,Qt[Wt++]=pr,Wt}function Ht(Qt,zt,Wt,nr,fr){Kt(zt,nr,fr,Qt,Wt,7);let Er=Number(zt&BigInt(4294967295));Qt[Wt+7]=Er,Er=Er>>8,Qt[Wt+6]=Er,Er=Er>>8,Qt[Wt+5]=Er,Er=Er>>8,Qt[Wt+4]=Er;let pr=Number(zt>>BigInt(32)&BigInt(4294967295));return Qt[Wt+3]=pr,pr=pr>>8,Qt[Wt+2]=pr,pr=pr>>8,Qt[Wt+1]=pr,pr=pr>>8,Qt[Wt]=pr,Wt+8}gt.prototype.writeBigUInt64LE=Mr(function(zt,Wt=0){return Dt(this,zt,Wt,BigInt(0),BigInt("0xffffffffffffffff"))}),gt.prototype.writeBigUInt64BE=Mr(function(zt,Wt=0){return Ht(this,zt,Wt,BigInt(0),BigInt("0xffffffffffffffff"))}),gt.prototype.writeIntLE=function(zt,Wt,nr,fr){if(zt=+zt,Wt=Wt>>>0,!fr){const Jr=Math.pow(2,8*nr-1);Bt(this,zt,Wt,nr,Jr-1,-Jr)}let Er=0,pr=1,vr=0;for(this[Wt]=zt&255;++Er>0)-vr&255;return Wt+nr},gt.prototype.writeIntBE=function(zt,Wt,nr,fr){if(zt=+zt,Wt=Wt>>>0,!fr){const Jr=Math.pow(2,8*nr-1);Bt(this,zt,Wt,nr,Jr-1,-Jr)}let Er=nr-1,pr=1,vr=0;for(this[Wt+Er]=zt&255;--Er>=0&&(pr*=256);)zt<0&&vr===0&&this[Wt+Er+1]!==0&&(vr=1),this[Wt+Er]=(zt/pr>>0)-vr&255;return Wt+nr},gt.prototype.writeInt8=function(zt,Wt,nr){return zt=+zt,Wt=Wt>>>0,nr||Bt(this,zt,Wt,1,127,-128),zt<0&&(zt=255+zt+1),this[Wt]=zt&255,Wt+1},gt.prototype.writeInt16LE=function(zt,Wt,nr){return zt=+zt,Wt=Wt>>>0,nr||Bt(this,zt,Wt,2,32767,-32768),this[Wt]=zt&255,this[Wt+1]=zt>>>8,Wt+2},gt.prototype.writeInt16BE=function(zt,Wt,nr){return zt=+zt,Wt=Wt>>>0,nr||Bt(this,zt,Wt,2,32767,-32768),this[Wt]=zt>>>8,this[Wt+1]=zt&255,Wt+2},gt.prototype.writeInt32LE=function(zt,Wt,nr){return zt=+zt,Wt=Wt>>>0,nr||Bt(this,zt,Wt,4,2147483647,-2147483648),this[Wt]=zt&255,this[Wt+1]=zt>>>8,this[Wt+2]=zt>>>16,this[Wt+3]=zt>>>24,Wt+4},gt.prototype.writeInt32BE=function(zt,Wt,nr){return zt=+zt,Wt=Wt>>>0,nr||Bt(this,zt,Wt,4,2147483647,-2147483648),zt<0&&(zt=4294967295+zt+1),this[Wt]=zt>>>24,this[Wt+1]=zt>>>16,this[Wt+2]=zt>>>8,this[Wt+3]=zt&255,Wt+4},gt.prototype.writeBigInt64LE=Mr(function(zt,Wt=0){return Dt(this,zt,Wt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),gt.prototype.writeBigInt64BE=Mr(function(zt,Wt=0){return Ht(this,zt,Wt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function tr(Qt,zt,Wt,nr,fr,Er){if(Wt+nr>Qt.length)throw new RangeError("Index out of range");if(Wt<0)throw new RangeError("Index out of range")}function Xt(Qt,zt,Wt,nr,fr){return zt=+zt,Wt=Wt>>>0,fr||tr(Qt,zt,Wt,4),d.write(Qt,zt,Wt,nr,23,4),Wt+4}gt.prototype.writeFloatLE=function(zt,Wt,nr){return Xt(this,zt,Wt,!0,nr)},gt.prototype.writeFloatBE=function(zt,Wt,nr){return Xt(this,zt,Wt,!1,nr)};function Ut(Qt,zt,Wt,nr,fr){return zt=+zt,Wt=Wt>>>0,fr||tr(Qt,zt,Wt,8),d.write(Qt,zt,Wt,nr,52,8),Wt+8}gt.prototype.writeDoubleLE=function(zt,Wt,nr){return Ut(this,zt,Wt,!0,nr)},gt.prototype.writeDoubleBE=function(zt,Wt,nr){return Ut(this,zt,Wt,!1,nr)},gt.prototype.copy=function(zt,Wt,nr,fr){if(!gt.isBuffer(zt))throw new TypeError("argument should be a Buffer");if(nr||(nr=0),!fr&&fr!==0&&(fr=this.length),Wt>=zt.length&&(Wt=zt.length),Wt||(Wt=0),fr>0&&fr=this.length)throw new RangeError("Index out of range");if(fr<0)throw new RangeError("sourceEnd out of bounds");fr>this.length&&(fr=this.length),zt.length-Wt>>0,nr=nr===void 0?this.length:nr>>>0,zt||(zt=0);let Er;if(typeof zt=="number")for(Er=Wt;Er2**32?fr=Zt(String(Wt)):typeof Wt=="bigint"&&(fr=String(Wt),(Wt>BigInt(2)**BigInt(32)||Wt<-(BigInt(2)**BigInt(32)))&&(fr=Zt(fr)),fr+="n"),nr+=` It must be ${zt}. Received ${fr}`,nr},RangeError);function Zt(Qt){let zt="",Wt=Qt.length;const nr=Qt[0]==="-"?1:0;for(;Wt>=nr+4;Wt-=3)zt=`_${Qt.slice(Wt-3,Wt)}${zt}`;return`${Qt.slice(0,Wt)}${zt}`}function Yt(Qt,zt,Wt){ar(zt,"offset"),(Qt[zt]===void 0||Qt[zt+Wt]===void 0)&&gr(zt,Qt.length-(Wt+1))}function Kt(Qt,zt,Wt,nr,fr,Er){if(Qt>Wt||Qt3?zt===0||zt===BigInt(0)?vr=`>= 0${pr} and < 2${pr} ** ${(Er+1)*8}${pr}`:vr=`>= -(2${pr} ** ${(Er+1)*8-1}${pr}) and < 2 ** ${(Er+1)*8-1}${pr}`:vr=`>= ${zt}${pr} and <= ${Wt}${pr}`,new qt.ERR_OUT_OF_RANGE("value",vr,Qt)}Yt(nr,fr,Er)}function ar(Qt,zt){if(typeof Qt!="number")throw new qt.ERR_INVALID_ARG_TYPE(zt,"number",Qt)}function gr(Qt,zt,Wt){throw Math.floor(Qt)!==Qt?(ar(Qt,Wt),new qt.ERR_OUT_OF_RANGE(Wt||"offset","an integer",Qt)):zt<0?new qt.ERR_BUFFER_OUT_OF_BOUNDS:new qt.ERR_OUT_OF_RANGE(Wt||"offset",`>= ${Wt?1:0} and <= ${zt}`,Qt)}const cr=/[^+/0-9A-Za-z-_]/g;function ur(Qt){if(Qt=Qt.split("=")[0],Qt=Qt.trim().replace(cr,""),Qt.length<2)return"";for(;Qt.length%4!==0;)Qt=Qt+"=";return Qt}function Pr(Qt,zt){zt=zt||1/0;let Wt;const nr=Qt.length;let fr=null;const Er=[];for(let pr=0;pr55295&&Wt<57344){if(!fr){if(Wt>56319){(zt-=3)>-1&&Er.push(239,191,189);continue}else if(pr+1===nr){(zt-=3)>-1&&Er.push(239,191,189);continue}fr=Wt;continue}if(Wt<56320){(zt-=3)>-1&&Er.push(239,191,189),fr=Wt;continue}Wt=(fr-55296<<10|Wt-56320)+65536}else fr&&(zt-=3)>-1&&Er.push(239,191,189);if(fr=null,Wt<128){if((zt-=1)<0)break;Er.push(Wt)}else if(Wt<2048){if((zt-=2)<0)break;Er.push(Wt>>6|192,Wt&63|128)}else if(Wt<65536){if((zt-=3)<0)break;Er.push(Wt>>12|224,Wt>>6&63|128,Wt&63|128)}else if(Wt<1114112){if((zt-=4)<0)break;Er.push(Wt>>18|240,Wt>>12&63|128,Wt>>6&63|128,Wt&63|128)}else throw new Error("Invalid code point")}return Er}function br(Qt){const zt=[];for(let Wt=0;Wt>8,fr=Wt%256,Er.push(fr),Er.push(nr);return Er}function Kr(Qt){return a.toByteArray(ur(Qt))}function xr(Qt,zt,Wt,nr){let fr;for(fr=0;fr=zt.length||fr>=Qt.length);++fr)zt[fr+Wt]=Qt[fr];return fr}function Sr(Qt,zt){return Qt instanceof zt||Qt!=null&&Qt.constructor!=null&&Qt.constructor.name!=null&&Qt.constructor.name===zt.name}function Zr(Qt){return Qt!==Qt}const $r=function(){const Qt="0123456789abcdef",zt=new Array(256);for(let Wt=0;Wt<16;++Wt){const nr=Wt*16;for(let fr=0;fr<16;++fr)zt[nr+fr]=Qt[Wt]+Qt[fr]}return zt}();function Mr(Qt){return typeof BigInt>"u"?Xr:Qt}function Xr(){throw new Error("BigInt not supported")}})(bufferPolyfill);var browser$c={exports:{}},process$1=browser$c.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cachedSetTimeout=setTimeout:cachedSetTimeout=defaultSetTimout}catch{cachedSetTimeout=defaultSetTimout}try{typeof clearTimeout=="function"?cachedClearTimeout=clearTimeout:cachedClearTimeout=defaultClearTimeout}catch{cachedClearTimeout=defaultClearTimeout}})();function runTimeout(c){if(cachedSetTimeout===setTimeout)return setTimeout(c,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(c,0);try{return cachedSetTimeout(c,0)}catch{try{return cachedSetTimeout.call(null,c,0)}catch{return cachedSetTimeout.call(this,c,0)}}}function runClearTimeout(c){if(cachedClearTimeout===clearTimeout)return clearTimeout(c);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(c);try{return cachedClearTimeout(c)}catch{try{return cachedClearTimeout.call(null,c)}catch{return cachedClearTimeout.call(this,c)}}}var queue=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var c=runTimeout(cleanUpNextTick);draining=!0;for(var a=queue.length;a;){for(currentQueue=queue,queue=[];++queueIndex1)for(var d=1;da in c?a1(c,a,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(c){function a(Pt,xt){var ht=Pt.length;Pt.push(xt);e:for(;0>>1,Rt=Pt[$t];if(0>>1;$tnt(tr,ht))Xtnt(Ut,tr)?(Pt[$t]=Ut,Pt[Xt]=ht,$t=Xt):(Pt[$t]=tr,Pt[Ht]=ht,$t=Ht);else if(Xtnt(Ut,ht))Pt[$t]=Ut,Pt[Xt]=ht,$t=Xt;else break e}}return xt}function nt(Pt,xt){var ht=Pt.sortIndex-xt.sortIndex;return ht!==0?ht:Pt.id-xt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var tt=performance;c.unstable_now=function(){return tt.now()}}else{var bt=Date,gt=bt.now();c.unstable_now=function(){return bt.now()-gt}}var wt=[],St=[],Mt=1,_t=null,Tt=3,Bt=!1,kt=!1,It=!1,Lt=typeof setTimeout=="function"?setTimeout:null,Ot=typeof clearTimeout=="function"?clearTimeout:null,Nt=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Ft(Pt){for(var xt=d(St);xt!==null;){if(xt.callback===null)et(St);else if(xt.startTime<=Pt)et(St),xt.sortIndex=xt.expirationTime,a(wt,xt);else break;xt=d(St)}}function zt(Pt){if(It=!1,Ft(Pt),!kt)if(d(wt)!==null)kt=!0,Et(Vt);else{var xt=d(St);xt!==null&&At(zt,xt.startTime-Pt)}}function Vt(Pt,xt){kt=!1,It&&(It=!1,Ot(rr),rr=-1),Bt=!0;var ht=Tt;try{for(Ft(xt),_t=d(wt);_t!==null&&(!(_t.expirationTime>xt)||Pt&&!Ct());){var $t=_t.callback;if(typeof $t=="function"){_t.callback=null,Tt=_t.priorityLevel;var Rt=$t(_t.expirationTime<=xt);xt=c.unstable_now(),typeof Rt=="function"?_t.callback=Rt:_t===d(wt)&&et(wt),Ft(xt)}else et(wt);_t=d(wt)}if(_t!==null)var Dt=!0;else{var Ht=d(St);Ht!==null&&At(zt,Ht.startTime-xt),Dt=!1}return Dt}finally{_t=null,Tt=ht,Bt=!1}}var Jt=!1,ir=null,rr=-1,er=5,lr=-1;function Ct(){return!(c.unstable_now()-lrPt||125$t?(Pt.sortIndex=ht,a(St,Pt),d(wt)===null&&Pt===d(St)&&(It?(Ot(rr),rr=-1):It=!0,At(zt,ht-$t))):(Pt.sortIndex=Rt,a(wt,Pt),kt||Bt||(kt=!0,Et(Vt))),Pt},c.unstable_shouldYield=Ct,c.unstable_wrapCallback=function(Pt){var xt=Tt;return function(){var ht=Tt;Tt=xt;try{return Pt.apply(this,arguments)}finally{Tt=ht}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** + */(function(c){function a(Pt,xt){var ht=Pt.length;Pt.push(xt);e:for(;0>>1,Bt=Pt[$t];if(0>>1;$tnt(tr,ht))Xtnt(Ut,tr)?(Pt[$t]=Ut,Pt[Xt]=ht,$t=Xt):(Pt[$t]=tr,Pt[Ht]=ht,$t=Ht);else if(Xtnt(Ut,ht))Pt[$t]=Ut,Pt[Xt]=ht,$t=Xt;else break e}}return xt}function nt(Pt,xt){var ht=Pt.sortIndex-xt.sortIndex;return ht!==0?ht:Pt.id-xt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var tt=performance;c.unstable_now=function(){return tt.now()}}else{var bt=Date,gt=bt.now();c.unstable_now=function(){return bt.now()-gt}}var wt=[],St=[],Mt=1,_t=null,Tt=3,Rt=!1,kt=!1,It=!1,Lt=typeof setTimeout=="function"?setTimeout:null,Ot=typeof clearTimeout=="function"?clearTimeout:null,Nt=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Ft(Pt){for(var xt=d(St);xt!==null;){if(xt.callback===null)et(St);else if(xt.startTime<=Pt)et(St),xt.sortIndex=xt.expirationTime,a(wt,xt);else break;xt=d(St)}}function jt(Pt){if(It=!1,Ft(Pt),!kt)if(d(wt)!==null)kt=!0,Et(Vt);else{var xt=d(St);xt!==null&&At(jt,xt.startTime-Pt)}}function Vt(Pt,xt){kt=!1,It&&(It=!1,Ot(rr),rr=-1),Rt=!0;var ht=Tt;try{for(Ft(xt),_t=d(wt);_t!==null&&(!(_t.expirationTime>xt)||Pt&&!Ct());){var $t=_t.callback;if(typeof $t=="function"){_t.callback=null,Tt=_t.priorityLevel;var Bt=$t(_t.expirationTime<=xt);xt=c.unstable_now(),typeof Bt=="function"?_t.callback=Bt:_t===d(wt)&&et(wt),Ft(xt)}else et(wt);_t=d(wt)}if(_t!==null)var Dt=!0;else{var Ht=d(St);Ht!==null&&At(jt,Ht.startTime-xt),Dt=!1}return Dt}finally{_t=null,Tt=ht,Rt=!1}}var Jt=!1,ir=null,rr=-1,er=5,lr=-1;function Ct(){return!(c.unstable_now()-lrPt||125$t?(Pt.sortIndex=ht,a(St,Pt),d(wt)===null&&Pt===d(St)&&(It?(Ot(rr),rr=-1):It=!0,At(jt,ht-$t))):(Pt.sortIndex=Bt,a(wt,Pt),kt||Rt||(kt=!0,Et(Vt))),Pt},c.unstable_shouldYield=Ct,c.unstable_wrapCallback=function(Pt){var xt=Tt;return function(){var ht=Tt;Tt=xt;try{return Pt.apply(this,arguments)}finally{Tt=ht}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** * @license React * react-dom.production.min.js * @@ -39,10 +39,10 @@ var a1=Object.defineProperty;var s1=(c,a,d)=>a in c?a1(c,a,{enumerable:!0,config `+La+c}var Na=!1;function Oa(c,a){if(!c||Na)return"";Na=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(a)if(a=function(){throw Error()},Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[])}catch(St){var et=St}Reflect.construct(c,[],a)}else{try{a.call()}catch(St){et=St}c.call(a.prototype)}else{try{throw Error()}catch(St){et=St}c()}}catch(St){if(St&&et&&typeof St.stack=="string"){for(var nt=St.stack.split(` `),tt=et.stack.split(` `),bt=nt.length-1,gt=tt.length-1;1<=bt&&0<=gt&&nt[bt]!==tt[gt];)gt--;for(;1<=bt&&0<=gt;bt--,gt--)if(nt[bt]!==tt[gt]){if(bt!==1||gt!==1)do if(bt--,gt--,0>gt||nt[bt]!==tt[gt]){var wt=` -`+nt[bt].replace(" at new "," at ");return c.displayName&&wt.includes("")&&(wt=wt.replace("",c.displayName)),wt}while(1<=bt&&0<=gt);break}}}finally{Na=!1,Error.prepareStackTrace=d}return(c=c?c.displayName||c.name:"")?Ma(c):""}function Pa(c){switch(c.tag){case 5:return Ma(c.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return c=Oa(c.type,!1),c;case 11:return c=Oa(c.type.render,!1),c;case 1:return c=Oa(c.type,!0),c;default:return""}}function Qa(c){if(c==null)return null;if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case Ca:return(c.displayName||"Context")+".Consumer";case Ba:return(c._context.displayName||"Context")+".Provider";case Da:var a=c.render;return c=c.displayName,c||(c=a.displayName||a.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case Ga:return a=c.displayName||null,a!==null?a:Qa(c.type)||"Memo";case Ha:a=c._payload,c=c._init;try{return Qa(c(a))}catch{}}return null}function Ra(c){var a=c.type;switch(c.tag){case 24:return"Cache";case 9:return(a.displayName||"Context")+".Consumer";case 10:return(a._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return c=a.render,c=c.displayName||c.name||"",a.displayName||(c!==""?"ForwardRef("+c+")":"ForwardRef");case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(a);case 8:return a===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a}return null}function Sa(c){switch(typeof c){case"boolean":case"number":case"string":case"undefined":return c;case"object":return c;default:return""}}function Ta(c){var a=c.type;return(c=c.nodeName)&&c.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Ua(c){var a=Ta(c)?"checked":"value",d=Object.getOwnPropertyDescriptor(c.constructor.prototype,a),et=""+c[a];if(!c.hasOwnProperty(a)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var nt=d.get,tt=d.set;return Object.defineProperty(c,a,{configurable:!0,get:function(){return nt.call(this)},set:function(bt){et=""+bt,tt.call(this,bt)}}),Object.defineProperty(c,a,{enumerable:d.enumerable}),{getValue:function(){return et},setValue:function(bt){et=""+bt},stopTracking:function(){c._valueTracker=null,delete c[a]}}}}function Va(c){c._valueTracker||(c._valueTracker=Ua(c))}function Wa(c){if(!c)return!1;var a=c._valueTracker;if(!a)return!0;var d=a.getValue(),et="";return c&&(et=Ta(c)?c.checked?"true":"false":c.value),c=et,c!==d?(a.setValue(c),!0):!1}function Xa(c){if(c=c||(typeof document<"u"?document:void 0),typeof c>"u")return null;try{return c.activeElement||c.body}catch{return c.body}}function Ya(c,a){var d=a.checked;return A$1({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:d??c._wrapperState.initialChecked})}function Za(c,a){var d=a.defaultValue==null?"":a.defaultValue,et=a.checked!=null?a.checked:a.defaultChecked;d=Sa(a.value!=null?a.value:d),c._wrapperState={initialChecked:et,initialValue:d,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function ab(c,a){a=a.checked,a!=null&&ta(c,"checked",a,!1)}function bb(c,a){ab(c,a);var d=Sa(a.value),et=a.type;if(d!=null)et==="number"?(d===0&&c.value===""||c.value!=d)&&(c.value=""+d):c.value!==""+d&&(c.value=""+d);else if(et==="submit"||et==="reset"){c.removeAttribute("value");return}a.hasOwnProperty("value")?cb(c,a.type,d):a.hasOwnProperty("defaultValue")&&cb(c,a.type,Sa(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(c.defaultChecked=!!a.defaultChecked)}function db(c,a,d){if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var et=a.type;if(!(et!=="submit"&&et!=="reset"||a.value!==void 0&&a.value!==null))return;a=""+c._wrapperState.initialValue,d||a===c.value||(c.value=a),c.defaultValue=a}d=c.name,d!==""&&(c.name=""),c.defaultChecked=!!c._wrapperState.initialChecked,d!==""&&(c.name=d)}function cb(c,a,d){(a!=="number"||Xa(c.ownerDocument)!==c)&&(d==null?c.defaultValue=""+c._wrapperState.initialValue:c.defaultValue!==""+d&&(c.defaultValue=""+d))}var eb=Array.isArray;function fb(c,a,d,et){if(c=c.options,a){a={};for(var nt=0;nt"+a.valueOf().toString()+"",a=mb.firstChild;c.firstChild;)c.removeChild(c.firstChild);for(;a.firstChild;)c.appendChild(a.firstChild)}});function ob(c,a){if(a){var d=c.firstChild;if(d&&d===c.lastChild&&d.nodeType===3){d.nodeValue=a;return}}c.textContent=a}var pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(c){qb.forEach(function(a){a=a+c.charAt(0).toUpperCase()+c.substring(1),pb[a]=pb[c]})});function rb(c,a,d){return a==null||typeof a=="boolean"||a===""?"":d||typeof a!="number"||a===0||pb.hasOwnProperty(c)&&pb[c]?(""+a).trim():a+"px"}function sb(c,a){c=c.style;for(var d in a)if(a.hasOwnProperty(d)){var et=d.indexOf("--")===0,nt=rb(d,a[d],et);d==="float"&&(d="cssFloat"),et?c.setProperty(d,nt):c[d]=nt}}var tb=A$1({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ub(c,a){if(a){if(tb[c]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw Error(p$2(137,c));if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw Error(p$2(60));if(typeof a.dangerouslySetInnerHTML!="object"||!("__html"in a.dangerouslySetInnerHTML))throw Error(p$2(61))}if(a.style!=null&&typeof a.style!="object")throw Error(p$2(62))}}function vb(c,a){if(c.indexOf("-")===-1)return typeof a.is=="string";switch(c){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wb=null;function xb(c){return c=c.target||c.srcElement||window,c.correspondingUseElement&&(c=c.correspondingUseElement),c.nodeType===3?c.parentNode:c}var yb=null,zb=null,Ab=null;function Bb(c){if(c=Cb(c)){if(typeof yb!="function")throw Error(p$2(280));var a=c.stateNode;a&&(a=Db(a),yb(c.stateNode,c.type,a))}}function Eb(c){zb?Ab?Ab.push(c):Ab=[c]:zb=c}function Fb(){if(zb){var c=zb,a=Ab;if(Ab=zb=null,Bb(c),a)for(c=0;c>>=0,c===0?32:31-(pc(c)/qc|0)|0}var rc=64,sc=4194304;function tc(c){switch(c&-c){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return c&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return c}}function uc(c,a){var d=c.pendingLanes;if(d===0)return 0;var et=0,nt=c.suspendedLanes,tt=c.pingedLanes,bt=d&268435455;if(bt!==0){var gt=bt&~nt;gt!==0?et=tc(gt):(tt&=bt,tt!==0&&(et=tc(tt)))}else bt=d&~nt,bt!==0?et=tc(bt):tt!==0&&(et=tc(tt));if(et===0)return 0;if(a!==0&&a!==et&&!(a&nt)&&(nt=et&-et,tt=a&-a,nt>=tt||nt===16&&(tt&4194240)!==0))return a;if(et&4&&(et|=d&16),a=c.entangledLanes,a!==0)for(c=c.entanglements,a&=et;0d;d++)a.push(c);return a}function Ac(c,a,d){c.pendingLanes|=a,a!==536870912&&(c.suspendedLanes=0,c.pingedLanes=0),c=c.eventTimes,a=31-oc(a),c[a]=d}function Bc(c,a){var d=c.pendingLanes&~a;c.pendingLanes=a,c.suspendedLanes=0,c.pingedLanes=0,c.expiredLanes&=a,c.mutableReadLanes&=a,c.entangledLanes&=a,a=c.entanglements;var et=c.eventTimes;for(c=c.expirationTimes;0=be$1),ee$1=String.fromCharCode(32),fe$1=!1;function ge$1(c,a){switch(c){case"keyup":return $d.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he$1(c){return c=c.detail,typeof c=="object"&&"data"in c?c.data:null}var ie$1=!1;function je$1(c,a){switch(c){case"compositionend":return he$1(a);case"keypress":return a.which!==32?null:(fe$1=!0,ee$1);case"textInput":return c=a.data,c===ee$1&&fe$1?null:c;default:return null}}function ke$1(c,a){if(ie$1)return c==="compositionend"||!ae$1&&ge$1(c,a)?(c=nd(),md=ld=kd=null,ie$1=!1,c):null;switch(c){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1=a)return{node:d,offset:a-c};c=et}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=Je$1(d)}}function Le$1(c,a){return c&&a?c===a?!0:c&&c.nodeType===3?!1:a&&a.nodeType===3?Le$1(c,a.parentNode):"contains"in c?c.contains(a):c.compareDocumentPosition?!!(c.compareDocumentPosition(a)&16):!1:!1}function Me$1(){for(var c=window,a=Xa();a instanceof c.HTMLIFrameElement;){try{var d=typeof a.contentWindow.location.href=="string"}catch{d=!1}if(d)c=a.contentWindow;else break;a=Xa(c.document)}return a}function Ne$1(c){var a=c&&c.nodeName&&c.nodeName.toLowerCase();return a&&(a==="input"&&(c.type==="text"||c.type==="search"||c.type==="tel"||c.type==="url"||c.type==="password")||a==="textarea"||c.contentEditable==="true")}function Oe$1(c){var a=Me$1(),d=c.focusedElem,et=c.selectionRange;if(a!==d&&d&&d.ownerDocument&&Le$1(d.ownerDocument.documentElement,d)){if(et!==null&&Ne$1(d)){if(a=et.start,c=et.end,c===void 0&&(c=a),"selectionStart"in d)d.selectionStart=a,d.selectionEnd=Math.min(c,d.value.length);else if(c=(a=d.ownerDocument||document)&&a.defaultView||window,c.getSelection){c=c.getSelection();var nt=d.textContent.length,tt=Math.min(et.start,nt);et=et.end===void 0?tt:Math.min(et.end,nt),!c.extend&&tt>et&&(nt=et,et=tt,tt=nt),nt=Ke$1(d,tt);var bt=Ke$1(d,et);nt&&bt&&(c.rangeCount!==1||c.anchorNode!==nt.node||c.anchorOffset!==nt.offset||c.focusNode!==bt.node||c.focusOffset!==bt.offset)&&(a=a.createRange(),a.setStart(nt.node,nt.offset),c.removeAllRanges(),tt>et?(c.addRange(a),c.extend(bt.node,bt.offset)):(a.setEnd(bt.node,bt.offset),c.addRange(a)))}}for(a=[],c=d;c=c.parentNode;)c.nodeType===1&&a.push({element:c,left:c.scrollLeft,top:c.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d=document.documentMode,Qe$1=null,Re$1=null,Se$1=null,Te$1=!1;function Ue$1(c,a,d){var et=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;Te$1||Qe$1==null||Qe$1!==Xa(et)||(et=Qe$1,"selectionStart"in et&&Ne$1(et)?et={start:et.selectionStart,end:et.selectionEnd}:(et=(et.ownerDocument&&et.ownerDocument.defaultView||window).getSelection(),et={anchorNode:et.anchorNode,anchorOffset:et.anchorOffset,focusNode:et.focusNode,focusOffset:et.focusOffset}),Se$1&&Ie$1(Se$1,et)||(Se$1=et,et=oe$1(Re$1,"onSelect"),0Tf||(c.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G$2(c,a){Tf++,Sf[Tf]=c.current,c.current=a}var Vf={},H$1=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(c,a){var d=c.type.contextTypes;if(!d)return Vf;var et=c.stateNode;if(et&&et.__reactInternalMemoizedUnmaskedChildContext===a)return et.__reactInternalMemoizedMaskedChildContext;var nt={},tt;for(tt in d)nt[tt]=a[tt];return et&&(c=c.stateNode,c.__reactInternalMemoizedUnmaskedChildContext=a,c.__reactInternalMemoizedMaskedChildContext=nt),nt}function Zf(c){return c=c.childContextTypes,c!=null}function $f(){E(Wf),E(H$1)}function ag(c,a,d){if(H$1.current!==Vf)throw Error(p$2(168));G$2(H$1,a),G$2(Wf,d)}function bg(c,a,d){var et=c.stateNode;if(a=a.childContextTypes,typeof et.getChildContext!="function")return d;et=et.getChildContext();for(var nt in et)if(!(nt in a))throw Error(p$2(108,Ra(c)||"Unknown",nt));return A$1({},d,et)}function cg(c){return c=(c=c.stateNode)&&c.__reactInternalMemoizedMergedChildContext||Vf,Xf=H$1.current,G$2(H$1,c),G$2(Wf,Wf.current),!0}function dg(c,a,d){var et=c.stateNode;if(!et)throw Error(p$2(169));d?(c=bg(c,a,Xf),et.__reactInternalMemoizedMergedChildContext=c,E(Wf),E(H$1),G$2(H$1,c)):E(Wf),G$2(Wf,d)}var eg=null,fg=!1,gg=!1;function hg(c){eg===null?eg=[c]:eg.push(c)}function ig(c){fg=!0,hg(c)}function jg(){if(!gg&&eg!==null){gg=!0;var c=0,a=C$1;try{var d=eg;for(C$1=1;c>=bt,nt-=bt,rg=1<<32-oc(a)+nt|d<rr?(er=ir,ir=null):er=ir.sibling;var lr=Tt(Ot,ir,Ft[rr],zt);if(lr===null){ir===null&&(ir=er);break}c&&ir&&lr.alternate===null&&a(Ot,ir),Nt=tt(lr,Nt,rr),Jt===null?Vt=lr:Jt.sibling=lr,Jt=lr,ir=er}if(rr===Ft.length)return d(Ot,ir),I$1&&tg(Ot,rr),Vt;if(ir===null){for(;rrrr?(er=ir,ir=null):er=ir.sibling;var Ct=Tt(Ot,ir,lr.value,zt);if(Ct===null){ir===null&&(ir=er);break}c&&ir&&Ct.alternate===null&&a(Ot,ir),Nt=tt(Ct,Nt,rr),Jt===null?Vt=Ct:Jt.sibling=Ct,Jt=Ct,ir=er}if(lr.done)return d(Ot,ir),I$1&&tg(Ot,rr),Vt;if(ir===null){for(;!lr.done;rr++,lr=Ft.next())lr=_t(Ot,lr.value,zt),lr!==null&&(Nt=tt(lr,Nt,rr),Jt===null?Vt=lr:Jt.sibling=lr,Jt=lr);return I$1&&tg(Ot,rr),Vt}for(ir=et(Ot,ir);!lr.done;rr++,lr=Ft.next())lr=Bt(ir,Ot,rr,lr.value,zt),lr!==null&&(c&&lr.alternate!==null&&ir.delete(lr.key===null?rr:lr.key),Nt=tt(lr,Nt,rr),Jt===null?Vt=lr:Jt.sibling=lr,Jt=lr);return c&&ir.forEach(function(dt){return a(Ot,dt)}),I$1&&tg(Ot,rr),Vt}function Lt(Ot,Nt,Ft,zt){if(typeof Ft=="object"&&Ft!==null&&Ft.type===ya&&Ft.key===null&&(Ft=Ft.props.children),typeof Ft=="object"&&Ft!==null){switch(Ft.$$typeof){case va:e:{for(var Vt=Ft.key,Jt=Nt;Jt!==null;){if(Jt.key===Vt){if(Vt=Ft.type,Vt===ya){if(Jt.tag===7){d(Ot,Jt.sibling),Nt=nt(Jt,Ft.props.children),Nt.return=Ot,Ot=Nt;break e}}else if(Jt.elementType===Vt||typeof Vt=="object"&&Vt!==null&&Vt.$$typeof===Ha&&Ng(Vt)===Jt.type){d(Ot,Jt.sibling),Nt=nt(Jt,Ft.props),Nt.ref=Lg(Ot,Jt,Ft),Nt.return=Ot,Ot=Nt;break e}d(Ot,Jt);break}else a(Ot,Jt);Jt=Jt.sibling}Ft.type===ya?(Nt=Tg(Ft.props.children,Ot.mode,zt,Ft.key),Nt.return=Ot,Ot=Nt):(zt=Rg(Ft.type,Ft.key,Ft.props,null,Ot.mode,zt),zt.ref=Lg(Ot,Nt,Ft),zt.return=Ot,Ot=zt)}return bt(Ot);case wa:e:{for(Jt=Ft.key;Nt!==null;){if(Nt.key===Jt)if(Nt.tag===4&&Nt.stateNode.containerInfo===Ft.containerInfo&&Nt.stateNode.implementation===Ft.implementation){d(Ot,Nt.sibling),Nt=nt(Nt,Ft.children||[]),Nt.return=Ot,Ot=Nt;break e}else{d(Ot,Nt);break}else a(Ot,Nt);Nt=Nt.sibling}Nt=Sg(Ft,Ot.mode,zt),Nt.return=Ot,Ot=Nt}return bt(Ot);case Ha:return Jt=Ft._init,Lt(Ot,Nt,Jt(Ft._payload),zt)}if(eb(Ft))return kt(Ot,Nt,Ft,zt);if(Ka(Ft))return It(Ot,Nt,Ft,zt);Mg(Ot,Ft)}return typeof Ft=="string"&&Ft!==""||typeof Ft=="number"?(Ft=""+Ft,Nt!==null&&Nt.tag===6?(d(Ot,Nt.sibling),Nt=nt(Nt,Ft),Nt.return=Ot,Ot=Nt):(d(Ot,Nt),Nt=Qg(Ft,Ot.mode,zt),Nt.return=Ot,Ot=Nt),bt(Ot)):d(Ot,Nt)}return Lt}var Ug=Og(!0),Vg=Og(!1),Wg=Uf(null),Xg=null,Yg=null,Zg=null;function $g(){Zg=Yg=Xg=null}function ah(c){var a=Wg.current;E(Wg),c._currentValue=a}function bh(c,a,d){for(;c!==null;){var et=c.alternate;if((c.childLanes&a)!==a?(c.childLanes|=a,et!==null&&(et.childLanes|=a)):et!==null&&(et.childLanes&a)!==a&&(et.childLanes|=a),c===d)break;c=c.return}}function ch$1(c,a){Xg=c,Zg=Yg=null,c=c.dependencies,c!==null&&c.firstContext!==null&&(c.lanes&a&&(dh$1=!0),c.firstContext=null)}function eh(c){var a=c._currentValue;if(Zg!==c)if(c={context:c,memoizedValue:a,next:null},Yg===null){if(Xg===null)throw Error(p$2(308));Yg=c,Xg.dependencies={lanes:0,firstContext:c}}else Yg=Yg.next=c;return a}var fh=null;function gh(c){fh===null?fh=[c]:fh.push(c)}function hh(c,a,d,et){var nt=a.interleaved;return nt===null?(d.next=d,gh(a)):(d.next=nt.next,nt.next=d),a.interleaved=d,ih(c,et)}function ih(c,a){c.lanes|=a;var d=c.alternate;for(d!==null&&(d.lanes|=a),d=c,c=c.return;c!==null;)c.childLanes|=a,d=c.alternate,d!==null&&(d.childLanes|=a),d=c,c=c.return;return d.tag===3?d.stateNode:null}var jh=!1;function kh(c){c.updateQueue={baseState:c.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lh(c,a){c=c.updateQueue,a.updateQueue===c&&(a.updateQueue={baseState:c.baseState,firstBaseUpdate:c.firstBaseUpdate,lastBaseUpdate:c.lastBaseUpdate,shared:c.shared,effects:c.effects})}function mh(c,a){return{eventTime:c,lane:a,tag:0,payload:null,callback:null,next:null}}function nh(c,a,d){var et=c.updateQueue;if(et===null)return null;if(et=et.shared,K$6&2){var nt=et.pending;return nt===null?a.next=a:(a.next=nt.next,nt.next=a),et.pending=a,ih(c,d)}return nt=et.interleaved,nt===null?(a.next=a,gh(et)):(a.next=nt.next,nt.next=a),et.interleaved=a,ih(c,d)}function oh(c,a,d){if(a=a.updateQueue,a!==null&&(a=a.shared,(d&4194240)!==0)){var et=a.lanes;et&=c.pendingLanes,d|=et,a.lanes=d,Cc(c,d)}}function ph(c,a){var d=c.updateQueue,et=c.alternate;if(et!==null&&(et=et.updateQueue,d===et)){var nt=null,tt=null;if(d=d.firstBaseUpdate,d!==null){do{var bt={eventTime:d.eventTime,lane:d.lane,tag:d.tag,payload:d.payload,callback:d.callback,next:null};tt===null?nt=tt=bt:tt=tt.next=bt,d=d.next}while(d!==null);tt===null?nt=tt=a:tt=tt.next=a}else nt=tt=a;d={baseState:et.baseState,firstBaseUpdate:nt,lastBaseUpdate:tt,shared:et.shared,effects:et.effects},c.updateQueue=d;return}c=d.lastBaseUpdate,c===null?d.firstBaseUpdate=a:c.next=a,d.lastBaseUpdate=a}function qh(c,a,d,et){var nt=c.updateQueue;jh=!1;var tt=nt.firstBaseUpdate,bt=nt.lastBaseUpdate,gt=nt.shared.pending;if(gt!==null){nt.shared.pending=null;var wt=gt,St=wt.next;wt.next=null,bt===null?tt=St:bt.next=St,bt=wt;var Mt=c.alternate;Mt!==null&&(Mt=Mt.updateQueue,gt=Mt.lastBaseUpdate,gt!==bt&&(gt===null?Mt.firstBaseUpdate=St:gt.next=St,Mt.lastBaseUpdate=wt))}if(tt!==null){var _t=nt.baseState;bt=0,Mt=St=wt=null,gt=tt;do{var Tt=gt.lane,Bt=gt.eventTime;if((et&Tt)===Tt){Mt!==null&&(Mt=Mt.next={eventTime:Bt,lane:0,tag:gt.tag,payload:gt.payload,callback:gt.callback,next:null});e:{var kt=c,It=gt;switch(Tt=a,Bt=d,It.tag){case 1:if(kt=It.payload,typeof kt=="function"){_t=kt.call(Bt,_t,Tt);break e}_t=kt;break e;case 3:kt.flags=kt.flags&-65537|128;case 0:if(kt=It.payload,Tt=typeof kt=="function"?kt.call(Bt,_t,Tt):kt,Tt==null)break e;_t=A$1({},_t,Tt);break e;case 2:jh=!0}}gt.callback!==null&>.lane!==0&&(c.flags|=64,Tt=nt.effects,Tt===null?nt.effects=[gt]:Tt.push(gt))}else Bt={eventTime:Bt,lane:Tt,tag:gt.tag,payload:gt.payload,callback:gt.callback,next:null},Mt===null?(St=Mt=Bt,wt=_t):Mt=Mt.next=Bt,bt|=Tt;if(gt=gt.next,gt===null){if(gt=nt.shared.pending,gt===null)break;Tt=gt,gt=Tt.next,Tt.next=null,nt.lastBaseUpdate=Tt,nt.shared.pending=null}}while(1);if(Mt===null&&(wt=_t),nt.baseState=wt,nt.firstBaseUpdate=St,nt.lastBaseUpdate=Mt,a=nt.shared.interleaved,a!==null){nt=a;do bt|=nt.lane,nt=nt.next;while(nt!==a)}else tt===null&&(nt.shared.lanes=0);rh$1|=bt,c.lanes=bt,c.memoizedState=_t}}function sh$1(c,a,d){if(c=a.effects,a.effects=null,c!==null)for(a=0;ad?d:4,c(!0);var et=Gh.transition;Gh.transition={};try{c(!1),a()}finally{C$1=d,Gh.transition=et}}function wi(){return Uh().memoizedState}function xi(c,a,d){var et=yi(c);if(d={lane:et,action:d,hasEagerState:!1,eagerState:null,next:null},zi(c))Ai(a,d);else if(d=hh(c,a,d,et),d!==null){var nt=R$2();gi(d,c,et,nt),Bi(d,a,et)}}function ii(c,a,d){var et=yi(c),nt={lane:et,action:d,hasEagerState:!1,eagerState:null,next:null};if(zi(c))Ai(a,nt);else{var tt=c.alternate;if(c.lanes===0&&(tt===null||tt.lanes===0)&&(tt=a.lastRenderedReducer,tt!==null))try{var bt=a.lastRenderedState,gt=tt(bt,d);if(nt.hasEagerState=!0,nt.eagerState=gt,He$1(gt,bt)){var wt=a.interleaved;wt===null?(nt.next=nt,gh(a)):(nt.next=wt.next,wt.next=nt),a.interleaved=nt;return}}catch{}finally{}d=hh(c,a,nt,et),d!==null&&(nt=R$2(),gi(d,c,et,nt),Bi(d,a,et))}}function zi(c){var a=c.alternate;return c===M$1||a!==null&&a===M$1}function Ai(c,a){Jh=Ih=!0;var d=c.pending;d===null?a.next=a:(a.next=d.next,d.next=a),c.pending=a}function Bi(c,a,d){if(d&4194240){var et=a.lanes;et&=c.pendingLanes,d|=et,a.lanes=d,Cc(c,d)}}var Rh={readContext:eh,useCallback:P,useContext:P,useEffect:P,useImperativeHandle:P,useInsertionEffect:P,useLayoutEffect:P,useMemo:P,useReducer:P,useRef:P,useState:P,useDebugValue:P,useDeferredValue:P,useTransition:P,useMutableSource:P,useSyncExternalStore:P,useId:P,unstable_isNewReconciler:!1},Oh={readContext:eh,useCallback:function(c,a){return Th().memoizedState=[c,a===void 0?null:a],c},useContext:eh,useEffect:mi,useImperativeHandle:function(c,a,d){return d=d!=null?d.concat([c]):null,ki(4194308,4,pi.bind(null,a,c),d)},useLayoutEffect:function(c,a){return ki(4194308,4,c,a)},useInsertionEffect:function(c,a){return ki(4,2,c,a)},useMemo:function(c,a){var d=Th();return a=a===void 0?null:a,c=c(),d.memoizedState=[c,a],c},useReducer:function(c,a,d){var et=Th();return a=d!==void 0?d(a):a,et.memoizedState=et.baseState=a,c={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:c,lastRenderedState:a},et.queue=c,c=c.dispatch=xi.bind(null,M$1,c),[et.memoizedState,c]},useRef:function(c){var a=Th();return c={current:c},a.memoizedState=c},useState:hi,useDebugValue:ri,useDeferredValue:function(c){return Th().memoizedState=c},useTransition:function(){var c=hi(!1),a=c[0];return c=vi.bind(null,c[1]),Th().memoizedState=c,[a,c]},useMutableSource:function(){},useSyncExternalStore:function(c,a,d){var et=M$1,nt=Th();if(I$1){if(d===void 0)throw Error(p$2(407));d=d()}else{if(d=a(),Q$1===null)throw Error(p$2(349));Hh&30||di(et,a,d)}nt.memoizedState=d;var tt={value:d,getSnapshot:a};return nt.queue=tt,mi(ai.bind(null,et,tt,c),[c]),et.flags|=2048,bi(9,ci.bind(null,et,tt,d,a),void 0,null),d},useId:function(){var c=Th(),a=Q$1.identifierPrefix;if(I$1){var d=sg,et=rg;d=(et&~(1<<32-oc(et)-1)).toString(32)+d,a=":"+a+"R"+d,d=Kh$1++,0")&&(wt=wt.replace("",c.displayName)),wt}while(1<=bt&&0<=gt);break}}}finally{Na=!1,Error.prepareStackTrace=d}return(c=c?c.displayName||c.name:"")?Ma(c):""}function Pa(c){switch(c.tag){case 5:return Ma(c.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return c=Oa(c.type,!1),c;case 11:return c=Oa(c.type.render,!1),c;case 1:return c=Oa(c.type,!0),c;default:return""}}function Qa(c){if(c==null)return null;if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case Ca:return(c.displayName||"Context")+".Consumer";case Ba:return(c._context.displayName||"Context")+".Provider";case Da:var a=c.render;return c=c.displayName,c||(c=a.displayName||a.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case Ga:return a=c.displayName||null,a!==null?a:Qa(c.type)||"Memo";case Ha:a=c._payload,c=c._init;try{return Qa(c(a))}catch{}}return null}function Ra(c){var a=c.type;switch(c.tag){case 24:return"Cache";case 9:return(a.displayName||"Context")+".Consumer";case 10:return(a._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return c=a.render,c=c.displayName||c.name||"",a.displayName||(c!==""?"ForwardRef("+c+")":"ForwardRef");case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(a);case 8:return a===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a}return null}function Sa(c){switch(typeof c){case"boolean":case"number":case"string":case"undefined":return c;case"object":return c;default:return""}}function Ta(c){var a=c.type;return(c=c.nodeName)&&c.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Ua(c){var a=Ta(c)?"checked":"value",d=Object.getOwnPropertyDescriptor(c.constructor.prototype,a),et=""+c[a];if(!c.hasOwnProperty(a)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var nt=d.get,tt=d.set;return Object.defineProperty(c,a,{configurable:!0,get:function(){return nt.call(this)},set:function(bt){et=""+bt,tt.call(this,bt)}}),Object.defineProperty(c,a,{enumerable:d.enumerable}),{getValue:function(){return et},setValue:function(bt){et=""+bt},stopTracking:function(){c._valueTracker=null,delete c[a]}}}}function Va(c){c._valueTracker||(c._valueTracker=Ua(c))}function Wa(c){if(!c)return!1;var a=c._valueTracker;if(!a)return!0;var d=a.getValue(),et="";return c&&(et=Ta(c)?c.checked?"true":"false":c.value),c=et,c!==d?(a.setValue(c),!0):!1}function Xa(c){if(c=c||(typeof document<"u"?document:void 0),typeof c>"u")return null;try{return c.activeElement||c.body}catch{return c.body}}function Ya(c,a){var d=a.checked;return A$1({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:d??c._wrapperState.initialChecked})}function Za(c,a){var d=a.defaultValue==null?"":a.defaultValue,et=a.checked!=null?a.checked:a.defaultChecked;d=Sa(a.value!=null?a.value:d),c._wrapperState={initialChecked:et,initialValue:d,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function ab(c,a){a=a.checked,a!=null&&ta(c,"checked",a,!1)}function bb(c,a){ab(c,a);var d=Sa(a.value),et=a.type;if(d!=null)et==="number"?(d===0&&c.value===""||c.value!=d)&&(c.value=""+d):c.value!==""+d&&(c.value=""+d);else if(et==="submit"||et==="reset"){c.removeAttribute("value");return}a.hasOwnProperty("value")?cb(c,a.type,d):a.hasOwnProperty("defaultValue")&&cb(c,a.type,Sa(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(c.defaultChecked=!!a.defaultChecked)}function db(c,a,d){if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var et=a.type;if(!(et!=="submit"&&et!=="reset"||a.value!==void 0&&a.value!==null))return;a=""+c._wrapperState.initialValue,d||a===c.value||(c.value=a),c.defaultValue=a}d=c.name,d!==""&&(c.name=""),c.defaultChecked=!!c._wrapperState.initialChecked,d!==""&&(c.name=d)}function cb(c,a,d){(a!=="number"||Xa(c.ownerDocument)!==c)&&(d==null?c.defaultValue=""+c._wrapperState.initialValue:c.defaultValue!==""+d&&(c.defaultValue=""+d))}var eb=Array.isArray;function fb(c,a,d,et){if(c=c.options,a){a={};for(var nt=0;nt"+a.valueOf().toString()+"",a=mb.firstChild;c.firstChild;)c.removeChild(c.firstChild);for(;a.firstChild;)c.appendChild(a.firstChild)}});function ob(c,a){if(a){var d=c.firstChild;if(d&&d===c.lastChild&&d.nodeType===3){d.nodeValue=a;return}}c.textContent=a}var pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(c){qb.forEach(function(a){a=a+c.charAt(0).toUpperCase()+c.substring(1),pb[a]=pb[c]})});function rb(c,a,d){return a==null||typeof a=="boolean"||a===""?"":d||typeof a!="number"||a===0||pb.hasOwnProperty(c)&&pb[c]?(""+a).trim():a+"px"}function sb(c,a){c=c.style;for(var d in a)if(a.hasOwnProperty(d)){var et=d.indexOf("--")===0,nt=rb(d,a[d],et);d==="float"&&(d="cssFloat"),et?c.setProperty(d,nt):c[d]=nt}}var tb=A$1({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ub(c,a){if(a){if(tb[c]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw Error(p$2(137,c));if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw Error(p$2(60));if(typeof a.dangerouslySetInnerHTML!="object"||!("__html"in a.dangerouslySetInnerHTML))throw Error(p$2(61))}if(a.style!=null&&typeof a.style!="object")throw Error(p$2(62))}}function vb(c,a){if(c.indexOf("-")===-1)return typeof a.is=="string";switch(c){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wb=null;function xb(c){return c=c.target||c.srcElement||window,c.correspondingUseElement&&(c=c.correspondingUseElement),c.nodeType===3?c.parentNode:c}var yb=null,zb=null,Ab=null;function Bb(c){if(c=Cb(c)){if(typeof yb!="function")throw Error(p$2(280));var a=c.stateNode;a&&(a=Db(a),yb(c.stateNode,c.type,a))}}function Eb(c){zb?Ab?Ab.push(c):Ab=[c]:zb=c}function Fb(){if(zb){var c=zb,a=Ab;if(Ab=zb=null,Bb(c),a)for(c=0;c>>=0,c===0?32:31-(pc(c)/qc|0)|0}var rc=64,sc=4194304;function tc(c){switch(c&-c){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return c&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return c}}function uc(c,a){var d=c.pendingLanes;if(d===0)return 0;var et=0,nt=c.suspendedLanes,tt=c.pingedLanes,bt=d&268435455;if(bt!==0){var gt=bt&~nt;gt!==0?et=tc(gt):(tt&=bt,tt!==0&&(et=tc(tt)))}else bt=d&~nt,bt!==0?et=tc(bt):tt!==0&&(et=tc(tt));if(et===0)return 0;if(a!==0&&a!==et&&!(a&nt)&&(nt=et&-et,tt=a&-a,nt>=tt||nt===16&&(tt&4194240)!==0))return a;if(et&4&&(et|=d&16),a=c.entangledLanes,a!==0)for(c=c.entanglements,a&=et;0d;d++)a.push(c);return a}function Ac(c,a,d){c.pendingLanes|=a,a!==536870912&&(c.suspendedLanes=0,c.pingedLanes=0),c=c.eventTimes,a=31-oc(a),c[a]=d}function Bc(c,a){var d=c.pendingLanes&~a;c.pendingLanes=a,c.suspendedLanes=0,c.pingedLanes=0,c.expiredLanes&=a,c.mutableReadLanes&=a,c.entangledLanes&=a,a=c.entanglements;var et=c.eventTimes;for(c=c.expirationTimes;0=be$1),ee$1=String.fromCharCode(32),fe$1=!1;function ge$1(c,a){switch(c){case"keyup":return $d.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he$1(c){return c=c.detail,typeof c=="object"&&"data"in c?c.data:null}var ie$1=!1;function je$1(c,a){switch(c){case"compositionend":return he$1(a);case"keypress":return a.which!==32?null:(fe$1=!0,ee$1);case"textInput":return c=a.data,c===ee$1&&fe$1?null:c;default:return null}}function ke$1(c,a){if(ie$1)return c==="compositionend"||!ae$1&&ge$1(c,a)?(c=nd(),md=ld=kd=null,ie$1=!1,c):null;switch(c){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1=a)return{node:d,offset:a-c};c=et}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=Je$1(d)}}function Le$1(c,a){return c&&a?c===a?!0:c&&c.nodeType===3?!1:a&&a.nodeType===3?Le$1(c,a.parentNode):"contains"in c?c.contains(a):c.compareDocumentPosition?!!(c.compareDocumentPosition(a)&16):!1:!1}function Me$1(){for(var c=window,a=Xa();a instanceof c.HTMLIFrameElement;){try{var d=typeof a.contentWindow.location.href=="string"}catch{d=!1}if(d)c=a.contentWindow;else break;a=Xa(c.document)}return a}function Ne$1(c){var a=c&&c.nodeName&&c.nodeName.toLowerCase();return a&&(a==="input"&&(c.type==="text"||c.type==="search"||c.type==="tel"||c.type==="url"||c.type==="password")||a==="textarea"||c.contentEditable==="true")}function Oe$1(c){var a=Me$1(),d=c.focusedElem,et=c.selectionRange;if(a!==d&&d&&d.ownerDocument&&Le$1(d.ownerDocument.documentElement,d)){if(et!==null&&Ne$1(d)){if(a=et.start,c=et.end,c===void 0&&(c=a),"selectionStart"in d)d.selectionStart=a,d.selectionEnd=Math.min(c,d.value.length);else if(c=(a=d.ownerDocument||document)&&a.defaultView||window,c.getSelection){c=c.getSelection();var nt=d.textContent.length,tt=Math.min(et.start,nt);et=et.end===void 0?tt:Math.min(et.end,nt),!c.extend&&tt>et&&(nt=et,et=tt,tt=nt),nt=Ke$1(d,tt);var bt=Ke$1(d,et);nt&&bt&&(c.rangeCount!==1||c.anchorNode!==nt.node||c.anchorOffset!==nt.offset||c.focusNode!==bt.node||c.focusOffset!==bt.offset)&&(a=a.createRange(),a.setStart(nt.node,nt.offset),c.removeAllRanges(),tt>et?(c.addRange(a),c.extend(bt.node,bt.offset)):(a.setEnd(bt.node,bt.offset),c.addRange(a)))}}for(a=[],c=d;c=c.parentNode;)c.nodeType===1&&a.push({element:c,left:c.scrollLeft,top:c.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d=document.documentMode,Qe$1=null,Re$1=null,Se$1=null,Te$1=!1;function Ue$1(c,a,d){var et=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;Te$1||Qe$1==null||Qe$1!==Xa(et)||(et=Qe$1,"selectionStart"in et&&Ne$1(et)?et={start:et.selectionStart,end:et.selectionEnd}:(et=(et.ownerDocument&&et.ownerDocument.defaultView||window).getSelection(),et={anchorNode:et.anchorNode,anchorOffset:et.anchorOffset,focusNode:et.focusNode,focusOffset:et.focusOffset}),Se$1&&Ie$1(Se$1,et)||(Se$1=et,et=oe$1(Re$1,"onSelect"),0Tf||(c.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G$2(c,a){Tf++,Sf[Tf]=c.current,c.current=a}var Vf={},H$1=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(c,a){var d=c.type.contextTypes;if(!d)return Vf;var et=c.stateNode;if(et&&et.__reactInternalMemoizedUnmaskedChildContext===a)return et.__reactInternalMemoizedMaskedChildContext;var nt={},tt;for(tt in d)nt[tt]=a[tt];return et&&(c=c.stateNode,c.__reactInternalMemoizedUnmaskedChildContext=a,c.__reactInternalMemoizedMaskedChildContext=nt),nt}function Zf(c){return c=c.childContextTypes,c!=null}function $f(){E(Wf),E(H$1)}function ag(c,a,d){if(H$1.current!==Vf)throw Error(p$2(168));G$2(H$1,a),G$2(Wf,d)}function bg(c,a,d){var et=c.stateNode;if(a=a.childContextTypes,typeof et.getChildContext!="function")return d;et=et.getChildContext();for(var nt in et)if(!(nt in a))throw Error(p$2(108,Ra(c)||"Unknown",nt));return A$1({},d,et)}function cg(c){return c=(c=c.stateNode)&&c.__reactInternalMemoizedMergedChildContext||Vf,Xf=H$1.current,G$2(H$1,c),G$2(Wf,Wf.current),!0}function dg(c,a,d){var et=c.stateNode;if(!et)throw Error(p$2(169));d?(c=bg(c,a,Xf),et.__reactInternalMemoizedMergedChildContext=c,E(Wf),E(H$1),G$2(H$1,c)):E(Wf),G$2(Wf,d)}var eg=null,fg=!1,gg=!1;function hg(c){eg===null?eg=[c]:eg.push(c)}function ig(c){fg=!0,hg(c)}function jg(){if(!gg&&eg!==null){gg=!0;var c=0,a=C$1;try{var d=eg;for(C$1=1;c>=bt,nt-=bt,rg=1<<32-oc(a)+nt|d<rr?(er=ir,ir=null):er=ir.sibling;var lr=Tt(Ot,ir,Ft[rr],jt);if(lr===null){ir===null&&(ir=er);break}c&&ir&&lr.alternate===null&&a(Ot,ir),Nt=tt(lr,Nt,rr),Jt===null?Vt=lr:Jt.sibling=lr,Jt=lr,ir=er}if(rr===Ft.length)return d(Ot,ir),I$1&&tg(Ot,rr),Vt;if(ir===null){for(;rrrr?(er=ir,ir=null):er=ir.sibling;var Ct=Tt(Ot,ir,lr.value,jt);if(Ct===null){ir===null&&(ir=er);break}c&&ir&&Ct.alternate===null&&a(Ot,ir),Nt=tt(Ct,Nt,rr),Jt===null?Vt=Ct:Jt.sibling=Ct,Jt=Ct,ir=er}if(lr.done)return d(Ot,ir),I$1&&tg(Ot,rr),Vt;if(ir===null){for(;!lr.done;rr++,lr=Ft.next())lr=_t(Ot,lr.value,jt),lr!==null&&(Nt=tt(lr,Nt,rr),Jt===null?Vt=lr:Jt.sibling=lr,Jt=lr);return I$1&&tg(Ot,rr),Vt}for(ir=et(Ot,ir);!lr.done;rr++,lr=Ft.next())lr=Rt(ir,Ot,rr,lr.value,jt),lr!==null&&(c&&lr.alternate!==null&&ir.delete(lr.key===null?rr:lr.key),Nt=tt(lr,Nt,rr),Jt===null?Vt=lr:Jt.sibling=lr,Jt=lr);return c&&ir.forEach(function(dt){return a(Ot,dt)}),I$1&&tg(Ot,rr),Vt}function Lt(Ot,Nt,Ft,jt){if(typeof Ft=="object"&&Ft!==null&&Ft.type===ya&&Ft.key===null&&(Ft=Ft.props.children),typeof Ft=="object"&&Ft!==null){switch(Ft.$$typeof){case va:e:{for(var Vt=Ft.key,Jt=Nt;Jt!==null;){if(Jt.key===Vt){if(Vt=Ft.type,Vt===ya){if(Jt.tag===7){d(Ot,Jt.sibling),Nt=nt(Jt,Ft.props.children),Nt.return=Ot,Ot=Nt;break e}}else if(Jt.elementType===Vt||typeof Vt=="object"&&Vt!==null&&Vt.$$typeof===Ha&&Ng(Vt)===Jt.type){d(Ot,Jt.sibling),Nt=nt(Jt,Ft.props),Nt.ref=Lg(Ot,Jt,Ft),Nt.return=Ot,Ot=Nt;break e}d(Ot,Jt);break}else a(Ot,Jt);Jt=Jt.sibling}Ft.type===ya?(Nt=Tg(Ft.props.children,Ot.mode,jt,Ft.key),Nt.return=Ot,Ot=Nt):(jt=Rg(Ft.type,Ft.key,Ft.props,null,Ot.mode,jt),jt.ref=Lg(Ot,Nt,Ft),jt.return=Ot,Ot=jt)}return bt(Ot);case wa:e:{for(Jt=Ft.key;Nt!==null;){if(Nt.key===Jt)if(Nt.tag===4&&Nt.stateNode.containerInfo===Ft.containerInfo&&Nt.stateNode.implementation===Ft.implementation){d(Ot,Nt.sibling),Nt=nt(Nt,Ft.children||[]),Nt.return=Ot,Ot=Nt;break e}else{d(Ot,Nt);break}else a(Ot,Nt);Nt=Nt.sibling}Nt=Sg(Ft,Ot.mode,jt),Nt.return=Ot,Ot=Nt}return bt(Ot);case Ha:return Jt=Ft._init,Lt(Ot,Nt,Jt(Ft._payload),jt)}if(eb(Ft))return kt(Ot,Nt,Ft,jt);if(Ka(Ft))return It(Ot,Nt,Ft,jt);Mg(Ot,Ft)}return typeof Ft=="string"&&Ft!==""||typeof Ft=="number"?(Ft=""+Ft,Nt!==null&&Nt.tag===6?(d(Ot,Nt.sibling),Nt=nt(Nt,Ft),Nt.return=Ot,Ot=Nt):(d(Ot,Nt),Nt=Qg(Ft,Ot.mode,jt),Nt.return=Ot,Ot=Nt),bt(Ot)):d(Ot,Nt)}return Lt}var Ug=Og(!0),Vg=Og(!1),Wg=Uf(null),Xg=null,Yg=null,Zg=null;function $g(){Zg=Yg=Xg=null}function ah(c){var a=Wg.current;E(Wg),c._currentValue=a}function bh(c,a,d){for(;c!==null;){var et=c.alternate;if((c.childLanes&a)!==a?(c.childLanes|=a,et!==null&&(et.childLanes|=a)):et!==null&&(et.childLanes&a)!==a&&(et.childLanes|=a),c===d)break;c=c.return}}function ch$1(c,a){Xg=c,Zg=Yg=null,c=c.dependencies,c!==null&&c.firstContext!==null&&(c.lanes&a&&(dh$1=!0),c.firstContext=null)}function eh(c){var a=c._currentValue;if(Zg!==c)if(c={context:c,memoizedValue:a,next:null},Yg===null){if(Xg===null)throw Error(p$2(308));Yg=c,Xg.dependencies={lanes:0,firstContext:c}}else Yg=Yg.next=c;return a}var fh=null;function gh(c){fh===null?fh=[c]:fh.push(c)}function hh(c,a,d,et){var nt=a.interleaved;return nt===null?(d.next=d,gh(a)):(d.next=nt.next,nt.next=d),a.interleaved=d,ih(c,et)}function ih(c,a){c.lanes|=a;var d=c.alternate;for(d!==null&&(d.lanes|=a),d=c,c=c.return;c!==null;)c.childLanes|=a,d=c.alternate,d!==null&&(d.childLanes|=a),d=c,c=c.return;return d.tag===3?d.stateNode:null}var jh=!1;function kh(c){c.updateQueue={baseState:c.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lh(c,a){c=c.updateQueue,a.updateQueue===c&&(a.updateQueue={baseState:c.baseState,firstBaseUpdate:c.firstBaseUpdate,lastBaseUpdate:c.lastBaseUpdate,shared:c.shared,effects:c.effects})}function mh(c,a){return{eventTime:c,lane:a,tag:0,payload:null,callback:null,next:null}}function nh(c,a,d){var et=c.updateQueue;if(et===null)return null;if(et=et.shared,K$6&2){var nt=et.pending;return nt===null?a.next=a:(a.next=nt.next,nt.next=a),et.pending=a,ih(c,d)}return nt=et.interleaved,nt===null?(a.next=a,gh(et)):(a.next=nt.next,nt.next=a),et.interleaved=a,ih(c,d)}function oh(c,a,d){if(a=a.updateQueue,a!==null&&(a=a.shared,(d&4194240)!==0)){var et=a.lanes;et&=c.pendingLanes,d|=et,a.lanes=d,Cc(c,d)}}function ph(c,a){var d=c.updateQueue,et=c.alternate;if(et!==null&&(et=et.updateQueue,d===et)){var nt=null,tt=null;if(d=d.firstBaseUpdate,d!==null){do{var bt={eventTime:d.eventTime,lane:d.lane,tag:d.tag,payload:d.payload,callback:d.callback,next:null};tt===null?nt=tt=bt:tt=tt.next=bt,d=d.next}while(d!==null);tt===null?nt=tt=a:tt=tt.next=a}else nt=tt=a;d={baseState:et.baseState,firstBaseUpdate:nt,lastBaseUpdate:tt,shared:et.shared,effects:et.effects},c.updateQueue=d;return}c=d.lastBaseUpdate,c===null?d.firstBaseUpdate=a:c.next=a,d.lastBaseUpdate=a}function qh(c,a,d,et){var nt=c.updateQueue;jh=!1;var tt=nt.firstBaseUpdate,bt=nt.lastBaseUpdate,gt=nt.shared.pending;if(gt!==null){nt.shared.pending=null;var wt=gt,St=wt.next;wt.next=null,bt===null?tt=St:bt.next=St,bt=wt;var Mt=c.alternate;Mt!==null&&(Mt=Mt.updateQueue,gt=Mt.lastBaseUpdate,gt!==bt&&(gt===null?Mt.firstBaseUpdate=St:gt.next=St,Mt.lastBaseUpdate=wt))}if(tt!==null){var _t=nt.baseState;bt=0,Mt=St=wt=null,gt=tt;do{var Tt=gt.lane,Rt=gt.eventTime;if((et&Tt)===Tt){Mt!==null&&(Mt=Mt.next={eventTime:Rt,lane:0,tag:gt.tag,payload:gt.payload,callback:gt.callback,next:null});e:{var kt=c,It=gt;switch(Tt=a,Rt=d,It.tag){case 1:if(kt=It.payload,typeof kt=="function"){_t=kt.call(Rt,_t,Tt);break e}_t=kt;break e;case 3:kt.flags=kt.flags&-65537|128;case 0:if(kt=It.payload,Tt=typeof kt=="function"?kt.call(Rt,_t,Tt):kt,Tt==null)break e;_t=A$1({},_t,Tt);break e;case 2:jh=!0}}gt.callback!==null&>.lane!==0&&(c.flags|=64,Tt=nt.effects,Tt===null?nt.effects=[gt]:Tt.push(gt))}else Rt={eventTime:Rt,lane:Tt,tag:gt.tag,payload:gt.payload,callback:gt.callback,next:null},Mt===null?(St=Mt=Rt,wt=_t):Mt=Mt.next=Rt,bt|=Tt;if(gt=gt.next,gt===null){if(gt=nt.shared.pending,gt===null)break;Tt=gt,gt=Tt.next,Tt.next=null,nt.lastBaseUpdate=Tt,nt.shared.pending=null}}while(1);if(Mt===null&&(wt=_t),nt.baseState=wt,nt.firstBaseUpdate=St,nt.lastBaseUpdate=Mt,a=nt.shared.interleaved,a!==null){nt=a;do bt|=nt.lane,nt=nt.next;while(nt!==a)}else tt===null&&(nt.shared.lanes=0);rh$1|=bt,c.lanes=bt,c.memoizedState=_t}}function sh$1(c,a,d){if(c=a.effects,a.effects=null,c!==null)for(a=0;ad?d:4,c(!0);var et=Gh.transition;Gh.transition={};try{c(!1),a()}finally{C$1=d,Gh.transition=et}}function wi(){return Uh().memoizedState}function xi(c,a,d){var et=yi(c);if(d={lane:et,action:d,hasEagerState:!1,eagerState:null,next:null},zi(c))Ai(a,d);else if(d=hh(c,a,d,et),d!==null){var nt=R$2();gi(d,c,et,nt),Bi(d,a,et)}}function ii(c,a,d){var et=yi(c),nt={lane:et,action:d,hasEagerState:!1,eagerState:null,next:null};if(zi(c))Ai(a,nt);else{var tt=c.alternate;if(c.lanes===0&&(tt===null||tt.lanes===0)&&(tt=a.lastRenderedReducer,tt!==null))try{var bt=a.lastRenderedState,gt=tt(bt,d);if(nt.hasEagerState=!0,nt.eagerState=gt,He$1(gt,bt)){var wt=a.interleaved;wt===null?(nt.next=nt,gh(a)):(nt.next=wt.next,wt.next=nt),a.interleaved=nt;return}}catch{}finally{}d=hh(c,a,nt,et),d!==null&&(nt=R$2(),gi(d,c,et,nt),Bi(d,a,et))}}function zi(c){var a=c.alternate;return c===M$1||a!==null&&a===M$1}function Ai(c,a){Jh=Ih=!0;var d=c.pending;d===null?a.next=a:(a.next=d.next,d.next=a),c.pending=a}function Bi(c,a,d){if(d&4194240){var et=a.lanes;et&=c.pendingLanes,d|=et,a.lanes=d,Cc(c,d)}}var Rh={readContext:eh,useCallback:P,useContext:P,useEffect:P,useImperativeHandle:P,useInsertionEffect:P,useLayoutEffect:P,useMemo:P,useReducer:P,useRef:P,useState:P,useDebugValue:P,useDeferredValue:P,useTransition:P,useMutableSource:P,useSyncExternalStore:P,useId:P,unstable_isNewReconciler:!1},Oh={readContext:eh,useCallback:function(c,a){return Th().memoizedState=[c,a===void 0?null:a],c},useContext:eh,useEffect:mi,useImperativeHandle:function(c,a,d){return d=d!=null?d.concat([c]):null,ki(4194308,4,pi.bind(null,a,c),d)},useLayoutEffect:function(c,a){return ki(4194308,4,c,a)},useInsertionEffect:function(c,a){return ki(4,2,c,a)},useMemo:function(c,a){var d=Th();return a=a===void 0?null:a,c=c(),d.memoizedState=[c,a],c},useReducer:function(c,a,d){var et=Th();return a=d!==void 0?d(a):a,et.memoizedState=et.baseState=a,c={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:c,lastRenderedState:a},et.queue=c,c=c.dispatch=xi.bind(null,M$1,c),[et.memoizedState,c]},useRef:function(c){var a=Th();return c={current:c},a.memoizedState=c},useState:hi,useDebugValue:ri,useDeferredValue:function(c){return Th().memoizedState=c},useTransition:function(){var c=hi(!1),a=c[0];return c=vi.bind(null,c[1]),Th().memoizedState=c,[a,c]},useMutableSource:function(){},useSyncExternalStore:function(c,a,d){var et=M$1,nt=Th();if(I$1){if(d===void 0)throw Error(p$2(407));d=d()}else{if(d=a(),Q$1===null)throw Error(p$2(349));Hh&30||di(et,a,d)}nt.memoizedState=d;var tt={value:d,getSnapshot:a};return nt.queue=tt,mi(ai.bind(null,et,tt,c),[c]),et.flags|=2048,bi(9,ci.bind(null,et,tt,d,a),void 0,null),d},useId:function(){var c=Th(),a=Q$1.identifierPrefix;if(I$1){var d=sg,et=rg;d=(et&~(1<<32-oc(et)-1)).toString(32)+d,a=":"+a+"R"+d,d=Kh$1++,0<\/script>",c=c.removeChild(c.firstChild)):typeof et.is=="string"?c=bt.createElement(d,{is:et.is}):(c=bt.createElement(d),d==="select"&&(bt=c,et.multiple?bt.multiple=!0:et.size&&(bt.size=et.size))):c=bt.createElementNS(c,d),c[Of]=a,c[Pf]=et,zj(c,a,!1,!1),a.stateNode=c;e:{switch(bt=vb(d,et),d){case"dialog":D$1("cancel",c),D$1("close",c),nt=et;break;case"iframe":case"object":case"embed":D$1("load",c),nt=et;break;case"video":case"audio":for(nt=0;ntGj&&(a.flags|=128,et=!0,Dj(tt,!1),a.lanes=4194304)}else{if(!et)if(c=Ch$1(bt),c!==null){if(a.flags|=128,et=!0,d=c.updateQueue,d!==null&&(a.updateQueue=d,a.flags|=4),Dj(tt,!0),tt.tail===null&&tt.tailMode==="hidden"&&!bt.alternate&&!I$1)return S$1(a),null}else 2*B$1()-tt.renderingStartTime>Gj&&d!==1073741824&&(a.flags|=128,et=!0,Dj(tt,!1),a.lanes=4194304);tt.isBackwards?(bt.sibling=a.child,a.child=bt):(d=tt.last,d!==null?d.sibling=bt:a.child=bt,tt.last=bt)}return tt.tail!==null?(a=tt.tail,tt.rendering=a,tt.tail=a.sibling,tt.renderingStartTime=B$1(),a.sibling=null,d=L$1.current,G$2(L$1,et?d&1|2:d&1),a):(S$1(a),null);case 22:case 23:return Hj(),et=a.memoizedState!==null,c!==null&&c.memoizedState!==null!==et&&(a.flags|=8192),et&&a.mode&1?fj&1073741824&&(S$1(a),a.subtreeFlags&6&&(a.flags|=8192)):S$1(a),null;case 24:return null;case 25:return null}throw Error(p$2(156,a.tag))}function Ij(c,a){switch(wg(a),a.tag){case 1:return Zf(a.type)&&$f(),c=a.flags,c&65536?(a.flags=c&-65537|128,a):null;case 3:return zh(),E(Wf),E(H$1),Eh(),c=a.flags,c&65536&&!(c&128)?(a.flags=c&-65537|128,a):null;case 5:return Bh(a),null;case 13:if(E(L$1),c=a.memoizedState,c!==null&&c.dehydrated!==null){if(a.alternate===null)throw Error(p$2(340));Ig$1()}return c=a.flags,c&65536?(a.flags=c&-65537|128,a):null;case 19:return E(L$1),null;case 4:return zh(),null;case 10:return ah(a.type._context),null;case 22:case 23:return Hj(),null;case 24:return null;default:return null}}var Jj=!1,U$1=!1,Kj=typeof WeakSet=="function"?WeakSet:Set,V$1=null;function Lj(c,a){var d=c.ref;if(d!==null)if(typeof d=="function")try{d(null)}catch(et){W$7(c,a,et)}else d.current=null}function Mj(c,a,d){try{d()}catch(et){W$7(c,a,et)}}var Nj=!1;function Oj(c,a){if(Cf=dd,c=Me$1(),Ne$1(c)){if("selectionStart"in c)var d={start:c.selectionStart,end:c.selectionEnd};else e:{d=(d=c.ownerDocument)&&d.defaultView||window;var et=d.getSelection&&d.getSelection();if(et&&et.rangeCount!==0){d=et.anchorNode;var nt=et.anchorOffset,tt=et.focusNode;et=et.focusOffset;try{d.nodeType,tt.nodeType}catch{d=null;break e}var bt=0,gt=-1,wt=-1,St=0,Mt=0,_t=c,Tt=null;t:for(;;){for(var Bt;_t!==d||nt!==0&&_t.nodeType!==3||(gt=bt+nt),_t!==tt||et!==0&&_t.nodeType!==3||(wt=bt+et),_t.nodeType===3&&(bt+=_t.nodeValue.length),(Bt=_t.firstChild)!==null;)Tt=_t,_t=Bt;for(;;){if(_t===c)break t;if(Tt===d&&++St===nt&&(gt=bt),Tt===tt&&++Mt===et&&(wt=bt),(Bt=_t.nextSibling)!==null)break;_t=Tt,Tt=_t.parentNode}_t=Bt}d=gt===-1||wt===-1?null:{start:gt,end:wt}}else d=null}d=d||{start:0,end:0}}else d=null;for(Df={focusedElem:c,selectionRange:d},dd=!1,V$1=a;V$1!==null;)if(a=V$1,c=a.child,(a.subtreeFlags&1028)!==0&&c!==null)c.return=a,V$1=c;else for(;V$1!==null;){a=V$1;try{var kt=a.alternate;if(a.flags&1024)switch(a.tag){case 0:case 11:case 15:break;case 1:if(kt!==null){var It=kt.memoizedProps,Lt=kt.memoizedState,Ot=a.stateNode,Nt=Ot.getSnapshotBeforeUpdate(a.elementType===a.type?It:Ci(a.type,It),Lt);Ot.__reactInternalSnapshotBeforeUpdate=Nt}break;case 3:var Ft=a.stateNode.containerInfo;Ft.nodeType===1?Ft.textContent="":Ft.nodeType===9&&Ft.documentElement&&Ft.removeChild(Ft.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$2(163))}}catch(zt){W$7(a,a.return,zt)}if(c=a.sibling,c!==null){c.return=a.return,V$1=c;break}V$1=a.return}return kt=Nj,Nj=!1,kt}function Pj(c,a,d){var et=a.updateQueue;if(et=et!==null?et.lastEffect:null,et!==null){var nt=et=et.next;do{if((nt.tag&c)===c){var tt=nt.destroy;nt.destroy=void 0,tt!==void 0&&Mj(a,d,tt)}nt=nt.next}while(nt!==et)}}function Qj(c,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var d=a=a.next;do{if((d.tag&c)===c){var et=d.create;d.destroy=et()}d=d.next}while(d!==a)}}function Rj(c){var a=c.ref;if(a!==null){var d=c.stateNode;switch(c.tag){case 5:c=d;break;default:c=d}typeof a=="function"?a(c):a.current=c}}function Sj(c){var a=c.alternate;a!==null&&(c.alternate=null,Sj(a)),c.child=null,c.deletions=null,c.sibling=null,c.tag===5&&(a=c.stateNode,a!==null&&(delete a[Of],delete a[Pf],delete a[of],delete a[Qf],delete a[Rf])),c.stateNode=null,c.return=null,c.dependencies=null,c.memoizedProps=null,c.memoizedState=null,c.pendingProps=null,c.stateNode=null,c.updateQueue=null}function Tj(c){return c.tag===5||c.tag===3||c.tag===4}function Uj(c){e:for(;;){for(;c.sibling===null;){if(c.return===null||Tj(c.return))return null;c=c.return}for(c.sibling.return=c.return,c=c.sibling;c.tag!==5&&c.tag!==6&&c.tag!==18;){if(c.flags&2||c.child===null||c.tag===4)continue e;c.child.return=c,c=c.child}if(!(c.flags&2))return c.stateNode}}function Vj(c,a,d){var et=c.tag;if(et===5||et===6)c=c.stateNode,a?d.nodeType===8?d.parentNode.insertBefore(c,a):d.insertBefore(c,a):(d.nodeType===8?(a=d.parentNode,a.insertBefore(c,d)):(a=d,a.appendChild(c)),d=d._reactRootContainer,d!=null||a.onclick!==null||(a.onclick=Bf));else if(et!==4&&(c=c.child,c!==null))for(Vj(c,a,d),c=c.sibling;c!==null;)Vj(c,a,d),c=c.sibling}function Wj(c,a,d){var et=c.tag;if(et===5||et===6)c=c.stateNode,a?d.insertBefore(c,a):d.appendChild(c);else if(et!==4&&(c=c.child,c!==null))for(Wj(c,a,d),c=c.sibling;c!==null;)Wj(c,a,d),c=c.sibling}var X$1=null,Xj=!1;function Yj(c,a,d){for(d=d.child;d!==null;)Zj(c,a,d),d=d.sibling}function Zj(c,a,d){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,d)}catch{}switch(d.tag){case 5:U$1||Lj(d,a);case 6:var et=X$1,nt=Xj;X$1=null,Yj(c,a,d),X$1=et,Xj=nt,X$1!==null&&(Xj?(c=X$1,d=d.stateNode,c.nodeType===8?c.parentNode.removeChild(d):c.removeChild(d)):X$1.removeChild(d.stateNode));break;case 18:X$1!==null&&(Xj?(c=X$1,d=d.stateNode,c.nodeType===8?Kf(c.parentNode,d):c.nodeType===1&&Kf(c,d),bd(c)):Kf(X$1,d.stateNode));break;case 4:et=X$1,nt=Xj,X$1=d.stateNode.containerInfo,Xj=!0,Yj(c,a,d),X$1=et,Xj=nt;break;case 0:case 11:case 14:case 15:if(!U$1&&(et=d.updateQueue,et!==null&&(et=et.lastEffect,et!==null))){nt=et=et.next;do{var tt=nt,bt=tt.destroy;tt=tt.tag,bt!==void 0&&(tt&2||tt&4)&&Mj(d,a,bt),nt=nt.next}while(nt!==et)}Yj(c,a,d);break;case 1:if(!U$1&&(Lj(d,a),et=d.stateNode,typeof et.componentWillUnmount=="function"))try{et.props=d.memoizedProps,et.state=d.memoizedState,et.componentWillUnmount()}catch(gt){W$7(d,a,gt)}Yj(c,a,d);break;case 21:Yj(c,a,d);break;case 22:d.mode&1?(U$1=(et=U$1)||d.memoizedState!==null,Yj(c,a,d),U$1=et):Yj(c,a,d);break;default:Yj(c,a,d)}}function ak(c){var a=c.updateQueue;if(a!==null){c.updateQueue=null;var d=c.stateNode;d===null&&(d=c.stateNode=new Kj),a.forEach(function(et){var nt=bk.bind(null,c,et);d.has(et)||(d.add(et),et.then(nt,nt))})}}function ck(c,a){var d=a.deletions;if(d!==null)for(var et=0;etnt&&(nt=bt),et&=~tt}if(et=nt,et=B$1()-et,et=(120>et?120:480>et?480:1080>et?1080:1920>et?1920:3e3>et?3e3:4320>et?4320:1960*lk(et/1960))-et,10c?16:c,wk===null)var et=!1;else{if(c=wk,wk=null,xk=0,K$6&6)throw Error(p$2(331));var nt=K$6;for(K$6|=4,V$1=c.current;V$1!==null;){var tt=V$1,bt=tt.child;if(V$1.flags&16){var gt=tt.deletions;if(gt!==null){for(var wt=0;wtB$1()-fk?Kk(c,0):rk|=d),Dk(c,a)}function Yk(c,a){a===0&&(c.mode&1?(a=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):a=1);var d=R$2();c=ih(c,a),c!==null&&(Ac(c,a,d),Dk(c,d))}function uj(c){var a=c.memoizedState,d=0;a!==null&&(d=a.retryLane),Yk(c,d)}function bk(c,a){var d=0;switch(c.tag){case 13:var et=c.stateNode,nt=c.memoizedState;nt!==null&&(d=nt.retryLane);break;case 19:et=c.stateNode;break;default:throw Error(p$2(314))}et!==null&&et.delete(a),Yk(c,d)}var Vk;Vk=function(c,a,d){if(c!==null)if(c.memoizedProps!==a.pendingProps||Wf.current)dh$1=!0;else{if(!(c.lanes&d)&&!(a.flags&128))return dh$1=!1,yj(c,a,d);dh$1=!!(c.flags&131072)}else dh$1=!1,I$1&&a.flags&1048576&&ug(a,ng,a.index);switch(a.lanes=0,a.tag){case 2:var et=a.type;ij(c,a),c=a.pendingProps;var nt=Yf(a,H$1.current);ch$1(a,d),nt=Nh(null,a,et,c,nt,d);var tt=Sh();return a.flags|=1,typeof nt=="object"&&nt!==null&&typeof nt.render=="function"&&nt.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,Zf(et)?(tt=!0,cg(a)):tt=!1,a.memoizedState=nt.state!==null&&nt.state!==void 0?nt.state:null,kh(a),nt.updater=Ei,a.stateNode=nt,nt._reactInternals=a,Ii(a,et,c,d),a=jj(null,a,et,!0,tt,d)):(a.tag=0,I$1&&tt&&vg(a),Xi(null,a,nt,d),a=a.child),a;case 16:et=a.elementType;e:{switch(ij(c,a),c=a.pendingProps,nt=et._init,et=nt(et._payload),a.type=et,nt=a.tag=Zk(et),c=Ci(et,c),nt){case 0:a=cj(null,a,et,c,d);break e;case 1:a=hj(null,a,et,c,d);break e;case 11:a=Yi(null,a,et,c,d);break e;case 14:a=$i(null,a,et,Ci(et.type,c),d);break e}throw Error(p$2(306,et,""))}return a;case 0:return et=a.type,nt=a.pendingProps,nt=a.elementType===et?nt:Ci(et,nt),cj(c,a,et,nt,d);case 1:return et=a.type,nt=a.pendingProps,nt=a.elementType===et?nt:Ci(et,nt),hj(c,a,et,nt,d);case 3:e:{if(kj(a),c===null)throw Error(p$2(387));et=a.pendingProps,tt=a.memoizedState,nt=tt.element,lh(c,a),qh(a,et,null,d);var bt=a.memoizedState;if(et=bt.element,tt.isDehydrated)if(tt={element:et,isDehydrated:!1,cache:bt.cache,pendingSuspenseBoundaries:bt.pendingSuspenseBoundaries,transitions:bt.transitions},a.updateQueue.baseState=tt,a.memoizedState=tt,a.flags&256){nt=Ji(Error(p$2(423)),a),a=lj(c,a,et,d,nt);break e}else if(et!==nt){nt=Ji(Error(p$2(424)),a),a=lj(c,a,et,d,nt);break e}else for(yg=Lf(a.stateNode.containerInfo.firstChild),xg=a,I$1=!0,zg=null,d=Vg(a,null,et,d),a.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling;else{if(Ig$1(),et===nt){a=Zi(c,a,d);break e}Xi(c,a,et,d)}a=a.child}return a;case 5:return Ah(a),c===null&&Eg(a),et=a.type,nt=a.pendingProps,tt=c!==null?c.memoizedProps:null,bt=nt.children,Ef(et,nt)?bt=null:tt!==null&&Ef(et,tt)&&(a.flags|=32),gj(c,a),Xi(c,a,bt,d),a.child;case 6:return c===null&&Eg(a),null;case 13:return oj(c,a,d);case 4:return yh(a,a.stateNode.containerInfo),et=a.pendingProps,c===null?a.child=Ug(a,null,et,d):Xi(c,a,et,d),a.child;case 11:return et=a.type,nt=a.pendingProps,nt=a.elementType===et?nt:Ci(et,nt),Yi(c,a,et,nt,d);case 7:return Xi(c,a,a.pendingProps,d),a.child;case 8:return Xi(c,a,a.pendingProps.children,d),a.child;case 12:return Xi(c,a,a.pendingProps.children,d),a.child;case 10:e:{if(et=a.type._context,nt=a.pendingProps,tt=a.memoizedProps,bt=nt.value,G$2(Wg,et._currentValue),et._currentValue=bt,tt!==null)if(He$1(tt.value,bt)){if(tt.children===nt.children&&!Wf.current){a=Zi(c,a,d);break e}}else for(tt=a.child,tt!==null&&(tt.return=a);tt!==null;){var gt=tt.dependencies;if(gt!==null){bt=tt.child;for(var wt=gt.firstContext;wt!==null;){if(wt.context===et){if(tt.tag===1){wt=mh(-1,d&-d),wt.tag=2;var St=tt.updateQueue;if(St!==null){St=St.shared;var Mt=St.pending;Mt===null?wt.next=wt:(wt.next=Mt.next,Mt.next=wt),St.pending=wt}}tt.lanes|=d,wt=tt.alternate,wt!==null&&(wt.lanes|=d),bh(tt.return,d,a),gt.lanes|=d;break}wt=wt.next}}else if(tt.tag===10)bt=tt.type===a.type?null:tt.child;else if(tt.tag===18){if(bt=tt.return,bt===null)throw Error(p$2(341));bt.lanes|=d,gt=bt.alternate,gt!==null&&(gt.lanes|=d),bh(bt,d,a),bt=tt.sibling}else bt=tt.child;if(bt!==null)bt.return=tt;else for(bt=tt;bt!==null;){if(bt===a){bt=null;break}if(tt=bt.sibling,tt!==null){tt.return=bt.return,bt=tt;break}bt=bt.return}tt=bt}Xi(c,a,nt.children,d),a=a.child}return a;case 9:return nt=a.type,et=a.pendingProps.children,ch$1(a,d),nt=eh(nt),et=et(nt),a.flags|=1,Xi(c,a,et,d),a.child;case 14:return et=a.type,nt=Ci(et,a.pendingProps),nt=Ci(et.type,nt),$i(c,a,et,nt,d);case 15:return bj(c,a,a.type,a.pendingProps,d);case 17:return et=a.type,nt=a.pendingProps,nt=a.elementType===et?nt:Ci(et,nt),ij(c,a),a.tag=1,Zf(et)?(c=!0,cg(a)):c=!1,ch$1(a,d),Gi(a,et,nt),Ii(a,et,nt,d),jj(null,a,et,!0,c,d);case 19:return xj(c,a,d);case 22:return dj(c,a,d)}throw Error(p$2(156,a.tag))};function Fk(c,a){return ac(c,a)}function $k(c,a,d,et){this.tag=c,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=et,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(c,a,d,et){return new $k(c,a,d,et)}function aj(c){return c=c.prototype,!(!c||!c.isReactComponent)}function Zk(c){if(typeof c=="function")return aj(c)?1:0;if(c!=null){if(c=c.$$typeof,c===Da)return 11;if(c===Ga)return 14}return 2}function Pg(c,a){var d=c.alternate;return d===null?(d=Bg(c.tag,a,c.key,c.mode),d.elementType=c.elementType,d.type=c.type,d.stateNode=c.stateNode,d.alternate=c,c.alternate=d):(d.pendingProps=a,d.type=c.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=c.flags&14680064,d.childLanes=c.childLanes,d.lanes=c.lanes,d.child=c.child,d.memoizedProps=c.memoizedProps,d.memoizedState=c.memoizedState,d.updateQueue=c.updateQueue,a=c.dependencies,d.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},d.sibling=c.sibling,d.index=c.index,d.ref=c.ref,d}function Rg(c,a,d,et,nt,tt){var bt=2;if(et=c,typeof c=="function")aj(c)&&(bt=1);else if(typeof c=="string")bt=5;else e:switch(c){case ya:return Tg(d.children,nt,tt,a);case za:bt=8,nt|=8;break;case Aa:return c=Bg(12,d,a,nt|2),c.elementType=Aa,c.lanes=tt,c;case Ea:return c=Bg(13,d,a,nt),c.elementType=Ea,c.lanes=tt,c;case Fa:return c=Bg(19,d,a,nt),c.elementType=Fa,c.lanes=tt,c;case Ia:return pj(d,nt,tt,a);default:if(typeof c=="object"&&c!==null)switch(c.$$typeof){case Ba:bt=10;break e;case Ca:bt=9;break e;case Da:bt=11;break e;case Ga:bt=14;break e;case Ha:bt=16,et=null;break e}throw Error(p$2(130,c==null?c:typeof c,""))}return a=Bg(bt,d,a,nt),a.elementType=c,a.type=et,a.lanes=tt,a}function Tg(c,a,d,et){return c=Bg(7,c,et,a),c.lanes=d,c}function pj(c,a,d,et){return c=Bg(22,c,et,a),c.elementType=Ia,c.lanes=d,c.stateNode={isHidden:!1},c}function Qg(c,a,d){return c=Bg(6,c,null,a),c.lanes=d,c}function Sg(c,a,d){return a=Bg(4,c.children!==null?c.children:[],c.key,a),a.lanes=d,a.stateNode={containerInfo:c.containerInfo,pendingChildren:null,implementation:c.implementation},a}function al(c,a,d,et,nt){this.tag=a,this.containerInfo=c,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=et,this.onRecoverableError=nt,this.mutableSourceEagerHydrationData=null}function bl(c,a,d,et,nt,tt,bt,gt,wt){return c=new al(c,a,d,gt,wt),a===1?(a=1,tt===!0&&(a|=8)):a=0,tt=Bg(3,null,null,a),c.current=tt,tt.stateNode=c,tt.memoizedState={element:et,isDehydrated:d,cache:null,transitions:null,pendingSuspenseBoundaries:null},kh(tt),c}function cl(c,a,d){var et=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(c){console.error(c)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs(reactDomExports);var m$2=reactDomExports;client.createRoot=m$2.createRoot,client.hydrateRoot=m$2.hydrateRoot;const styles$1="",styles="";var __assign$1=function(){return __assign$1=Object.assign||function(a){for(var d,et=1,nt=arguments.length;et"u")return zeroGap;var a=getOffset(c),d=document.documentElement.clientWidth,et=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,et-d+a[2]-a[0])}},Style=styleSingleton(),lockAttribute="data-scroll-locked",getStyles=function(c,a,d,et){var nt=c.left,tt=c.top,bt=c.right,gt=c.gap;return d===void 0&&(d="margin"),` +`+tt.stack}return{value:c,source:a,stack:nt,digest:null}}function Ki(c,a,d){return{value:c,source:null,stack:d??null,digest:a??null}}function Li(c,a){try{console.error(a.value)}catch(d){setTimeout(function(){throw d})}}var Mi=typeof WeakMap=="function"?WeakMap:Map;function Ni(c,a,d){d=mh(-1,d),d.tag=3,d.payload={element:null};var et=a.value;return d.callback=function(){Oi||(Oi=!0,Pi=et),Li(c,a)},d}function Qi(c,a,d){d=mh(-1,d),d.tag=3;var et=c.type.getDerivedStateFromError;if(typeof et=="function"){var nt=a.value;d.payload=function(){return et(nt)},d.callback=function(){Li(c,a)}}var tt=c.stateNode;return tt!==null&&typeof tt.componentDidCatch=="function"&&(d.callback=function(){Li(c,a),typeof et!="function"&&(Ri===null?Ri=new Set([this]):Ri.add(this));var bt=a.stack;this.componentDidCatch(a.value,{componentStack:bt!==null?bt:""})}),d}function Si(c,a,d){var et=c.pingCache;if(et===null){et=c.pingCache=new Mi;var nt=new Set;et.set(a,nt)}else nt=et.get(a),nt===void 0&&(nt=new Set,et.set(a,nt));nt.has(d)||(nt.add(d),c=Ti.bind(null,c,a,d),a.then(c,c))}function Ui(c){do{var a;if((a=c.tag===13)&&(a=c.memoizedState,a=a!==null?a.dehydrated!==null:!0),a)return c;c=c.return}while(c!==null);return null}function Vi(c,a,d,et,nt){return c.mode&1?(c.flags|=65536,c.lanes=nt,c):(c===a?c.flags|=65536:(c.flags|=128,d.flags|=131072,d.flags&=-52805,d.tag===1&&(d.alternate===null?d.tag=17:(a=mh(-1,1),a.tag=2,nh(d,a,1))),d.lanes|=1),c)}var Wi=ua.ReactCurrentOwner,dh$1=!1;function Xi(c,a,d,et){a.child=c===null?Vg(a,null,d,et):Ug(a,c.child,d,et)}function Yi(c,a,d,et,nt){d=d.render;var tt=a.ref;return ch$1(a,nt),et=Nh(c,a,d,et,tt,nt),d=Sh(),c!==null&&!dh$1?(a.updateQueue=c.updateQueue,a.flags&=-2053,c.lanes&=~nt,Zi(c,a,nt)):(I$1&&d&&vg(a),a.flags|=1,Xi(c,a,et,nt),a.child)}function $i(c,a,d,et,nt){if(c===null){var tt=d.type;return typeof tt=="function"&&!aj(tt)&&tt.defaultProps===void 0&&d.compare===null&&d.defaultProps===void 0?(a.tag=15,a.type=tt,bj(c,a,tt,et,nt)):(c=Rg(d.type,null,et,a,a.mode,nt),c.ref=a.ref,c.return=a,a.child=c)}if(tt=c.child,!(c.lanes&nt)){var bt=tt.memoizedProps;if(d=d.compare,d=d!==null?d:Ie$1,d(bt,et)&&c.ref===a.ref)return Zi(c,a,nt)}return a.flags|=1,c=Pg(tt,et),c.ref=a.ref,c.return=a,a.child=c}function bj(c,a,d,et,nt){if(c!==null){var tt=c.memoizedProps;if(Ie$1(tt,et)&&c.ref===a.ref)if(dh$1=!1,a.pendingProps=et=tt,(c.lanes&nt)!==0)c.flags&131072&&(dh$1=!0);else return a.lanes=c.lanes,Zi(c,a,nt)}return cj(c,a,d,et,nt)}function dj(c,a,d){var et=a.pendingProps,nt=et.children,tt=c!==null?c.memoizedState:null;if(et.mode==="hidden")if(!(a.mode&1))a.memoizedState={baseLanes:0,cachePool:null,transitions:null},G$2(ej,fj),fj|=d;else{if(!(d&1073741824))return c=tt!==null?tt.baseLanes|d:d,a.lanes=a.childLanes=1073741824,a.memoizedState={baseLanes:c,cachePool:null,transitions:null},a.updateQueue=null,G$2(ej,fj),fj|=c,null;a.memoizedState={baseLanes:0,cachePool:null,transitions:null},et=tt!==null?tt.baseLanes:d,G$2(ej,fj),fj|=et}else tt!==null?(et=tt.baseLanes|d,a.memoizedState=null):et=d,G$2(ej,fj),fj|=et;return Xi(c,a,nt,d),a.child}function gj(c,a){var d=a.ref;(c===null&&d!==null||c!==null&&c.ref!==d)&&(a.flags|=512,a.flags|=2097152)}function cj(c,a,d,et,nt){var tt=Zf(d)?Xf:H$1.current;return tt=Yf(a,tt),ch$1(a,nt),d=Nh(c,a,d,et,tt,nt),et=Sh(),c!==null&&!dh$1?(a.updateQueue=c.updateQueue,a.flags&=-2053,c.lanes&=~nt,Zi(c,a,nt)):(I$1&&et&&vg(a),a.flags|=1,Xi(c,a,d,nt),a.child)}function hj(c,a,d,et,nt){if(Zf(d)){var tt=!0;cg(a)}else tt=!1;if(ch$1(a,nt),a.stateNode===null)ij(c,a),Gi(a,d,et),Ii(a,d,et,nt),et=!0;else if(c===null){var bt=a.stateNode,gt=a.memoizedProps;bt.props=gt;var wt=bt.context,St=d.contextType;typeof St=="object"&&St!==null?St=eh(St):(St=Zf(d)?Xf:H$1.current,St=Yf(a,St));var Mt=d.getDerivedStateFromProps,_t=typeof Mt=="function"||typeof bt.getSnapshotBeforeUpdate=="function";_t||typeof bt.UNSAFE_componentWillReceiveProps!="function"&&typeof bt.componentWillReceiveProps!="function"||(gt!==et||wt!==St)&&Hi(a,bt,et,St),jh=!1;var Tt=a.memoizedState;bt.state=Tt,qh(a,et,bt,nt),wt=a.memoizedState,gt!==et||Tt!==wt||Wf.current||jh?(typeof Mt=="function"&&(Di(a,d,Mt,et),wt=a.memoizedState),(gt=jh||Fi(a,d,gt,et,Tt,wt,St))?(_t||typeof bt.UNSAFE_componentWillMount!="function"&&typeof bt.componentWillMount!="function"||(typeof bt.componentWillMount=="function"&&bt.componentWillMount(),typeof bt.UNSAFE_componentWillMount=="function"&&bt.UNSAFE_componentWillMount()),typeof bt.componentDidMount=="function"&&(a.flags|=4194308)):(typeof bt.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=et,a.memoizedState=wt),bt.props=et,bt.state=wt,bt.context=St,et=gt):(typeof bt.componentDidMount=="function"&&(a.flags|=4194308),et=!1)}else{bt=a.stateNode,lh(c,a),gt=a.memoizedProps,St=a.type===a.elementType?gt:Ci(a.type,gt),bt.props=St,_t=a.pendingProps,Tt=bt.context,wt=d.contextType,typeof wt=="object"&&wt!==null?wt=eh(wt):(wt=Zf(d)?Xf:H$1.current,wt=Yf(a,wt));var Rt=d.getDerivedStateFromProps;(Mt=typeof Rt=="function"||typeof bt.getSnapshotBeforeUpdate=="function")||typeof bt.UNSAFE_componentWillReceiveProps!="function"&&typeof bt.componentWillReceiveProps!="function"||(gt!==_t||Tt!==wt)&&Hi(a,bt,et,wt),jh=!1,Tt=a.memoizedState,bt.state=Tt,qh(a,et,bt,nt);var kt=a.memoizedState;gt!==_t||Tt!==kt||Wf.current||jh?(typeof Rt=="function"&&(Di(a,d,Rt,et),kt=a.memoizedState),(St=jh||Fi(a,d,St,et,Tt,kt,wt)||!1)?(Mt||typeof bt.UNSAFE_componentWillUpdate!="function"&&typeof bt.componentWillUpdate!="function"||(typeof bt.componentWillUpdate=="function"&&bt.componentWillUpdate(et,kt,wt),typeof bt.UNSAFE_componentWillUpdate=="function"&&bt.UNSAFE_componentWillUpdate(et,kt,wt)),typeof bt.componentDidUpdate=="function"&&(a.flags|=4),typeof bt.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof bt.componentDidUpdate!="function"||gt===c.memoizedProps&&Tt===c.memoizedState||(a.flags|=4),typeof bt.getSnapshotBeforeUpdate!="function"||gt===c.memoizedProps&&Tt===c.memoizedState||(a.flags|=1024),a.memoizedProps=et,a.memoizedState=kt),bt.props=et,bt.state=kt,bt.context=wt,et=St):(typeof bt.componentDidUpdate!="function"||gt===c.memoizedProps&&Tt===c.memoizedState||(a.flags|=4),typeof bt.getSnapshotBeforeUpdate!="function"||gt===c.memoizedProps&&Tt===c.memoizedState||(a.flags|=1024),et=!1)}return jj(c,a,d,et,tt,nt)}function jj(c,a,d,et,nt,tt){gj(c,a);var bt=(a.flags&128)!==0;if(!et&&!bt)return nt&&dg(a,d,!1),Zi(c,a,tt);et=a.stateNode,Wi.current=a;var gt=bt&&typeof d.getDerivedStateFromError!="function"?null:et.render();return a.flags|=1,c!==null&&bt?(a.child=Ug(a,c.child,null,tt),a.child=Ug(a,null,gt,tt)):Xi(c,a,gt,tt),a.memoizedState=et.state,nt&&dg(a,d,!0),a.child}function kj(c){var a=c.stateNode;a.pendingContext?ag(c,a.pendingContext,a.pendingContext!==a.context):a.context&&ag(c,a.context,!1),yh(c,a.containerInfo)}function lj(c,a,d,et,nt){return Ig$1(),Jg(nt),a.flags|=256,Xi(c,a,d,et),a.child}var mj={dehydrated:null,treeContext:null,retryLane:0};function nj(c){return{baseLanes:c,cachePool:null,transitions:null}}function oj(c,a,d){var et=a.pendingProps,nt=L$1.current,tt=!1,bt=(a.flags&128)!==0,gt;if((gt=bt)||(gt=c!==null&&c.memoizedState===null?!1:(nt&2)!==0),gt?(tt=!0,a.flags&=-129):(c===null||c.memoizedState!==null)&&(nt|=1),G$2(L$1,nt&1),c===null)return Eg(a),c=a.memoizedState,c!==null&&(c=c.dehydrated,c!==null)?(a.mode&1?c.data==="$!"?a.lanes=8:a.lanes=1073741824:a.lanes=1,null):(bt=et.children,c=et.fallback,tt?(et=a.mode,tt=a.child,bt={mode:"hidden",children:bt},!(et&1)&&tt!==null?(tt.childLanes=0,tt.pendingProps=bt):tt=pj(bt,et,0,null),c=Tg(c,et,d,null),tt.return=a,c.return=a,tt.sibling=c,a.child=tt,a.child.memoizedState=nj(d),a.memoizedState=mj,c):qj(a,bt));if(nt=c.memoizedState,nt!==null&&(gt=nt.dehydrated,gt!==null))return rj(c,a,bt,et,gt,nt,d);if(tt){tt=et.fallback,bt=a.mode,nt=c.child,gt=nt.sibling;var wt={mode:"hidden",children:et.children};return!(bt&1)&&a.child!==nt?(et=a.child,et.childLanes=0,et.pendingProps=wt,a.deletions=null):(et=Pg(nt,wt),et.subtreeFlags=nt.subtreeFlags&14680064),gt!==null?tt=Pg(gt,tt):(tt=Tg(tt,bt,d,null),tt.flags|=2),tt.return=a,et.return=a,et.sibling=tt,a.child=et,et=tt,tt=a.child,bt=c.child.memoizedState,bt=bt===null?nj(d):{baseLanes:bt.baseLanes|d,cachePool:null,transitions:bt.transitions},tt.memoizedState=bt,tt.childLanes=c.childLanes&~d,a.memoizedState=mj,et}return tt=c.child,c=tt.sibling,et=Pg(tt,{mode:"visible",children:et.children}),!(a.mode&1)&&(et.lanes=d),et.return=a,et.sibling=null,c!==null&&(d=a.deletions,d===null?(a.deletions=[c],a.flags|=16):d.push(c)),a.child=et,a.memoizedState=null,et}function qj(c,a){return a=pj({mode:"visible",children:a},c.mode,0,null),a.return=c,c.child=a}function sj(c,a,d,et){return et!==null&&Jg(et),Ug(a,c.child,null,d),c=qj(a,a.pendingProps.children),c.flags|=2,a.memoizedState=null,c}function rj(c,a,d,et,nt,tt,bt){if(d)return a.flags&256?(a.flags&=-257,et=Ki(Error(p$2(422))),sj(c,a,bt,et)):a.memoizedState!==null?(a.child=c.child,a.flags|=128,null):(tt=et.fallback,nt=a.mode,et=pj({mode:"visible",children:et.children},nt,0,null),tt=Tg(tt,nt,bt,null),tt.flags|=2,et.return=a,tt.return=a,et.sibling=tt,a.child=et,a.mode&1&&Ug(a,c.child,null,bt),a.child.memoizedState=nj(bt),a.memoizedState=mj,tt);if(!(a.mode&1))return sj(c,a,bt,null);if(nt.data==="$!"){if(et=nt.nextSibling&&nt.nextSibling.dataset,et)var gt=et.dgst;return et=gt,tt=Error(p$2(419)),et=Ki(tt,et,void 0),sj(c,a,bt,et)}if(gt=(bt&c.childLanes)!==0,dh$1||gt){if(et=Q$1,et!==null){switch(bt&-bt){case 4:nt=2;break;case 16:nt=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:nt=32;break;case 536870912:nt=268435456;break;default:nt=0}nt=nt&(et.suspendedLanes|bt)?0:nt,nt!==0&&nt!==tt.retryLane&&(tt.retryLane=nt,ih(c,nt),gi(et,c,nt,-1))}return tj(),et=Ki(Error(p$2(421))),sj(c,a,bt,et)}return nt.data==="$?"?(a.flags|=128,a.child=c.child,a=uj.bind(null,c),nt._reactRetry=a,null):(c=tt.treeContext,yg=Lf(nt.nextSibling),xg=a,I$1=!0,zg=null,c!==null&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=c.id,sg=c.overflow,qg=a),a=qj(a,et.children),a.flags|=4096,a)}function vj(c,a,d){c.lanes|=a;var et=c.alternate;et!==null&&(et.lanes|=a),bh(c.return,a,d)}function wj(c,a,d,et,nt){var tt=c.memoizedState;tt===null?c.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:et,tail:d,tailMode:nt}:(tt.isBackwards=a,tt.rendering=null,tt.renderingStartTime=0,tt.last=et,tt.tail=d,tt.tailMode=nt)}function xj(c,a,d){var et=a.pendingProps,nt=et.revealOrder,tt=et.tail;if(Xi(c,a,et.children,d),et=L$1.current,et&2)et=et&1|2,a.flags|=128;else{if(c!==null&&c.flags&128)e:for(c=a.child;c!==null;){if(c.tag===13)c.memoizedState!==null&&vj(c,d,a);else if(c.tag===19)vj(c,d,a);else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===a)break e;for(;c.sibling===null;){if(c.return===null||c.return===a)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}et&=1}if(G$2(L$1,et),!(a.mode&1))a.memoizedState=null;else switch(nt){case"forwards":for(d=a.child,nt=null;d!==null;)c=d.alternate,c!==null&&Ch$1(c)===null&&(nt=d),d=d.sibling;d=nt,d===null?(nt=a.child,a.child=null):(nt=d.sibling,d.sibling=null),wj(a,!1,nt,d,tt);break;case"backwards":for(d=null,nt=a.child,a.child=null;nt!==null;){if(c=nt.alternate,c!==null&&Ch$1(c)===null){a.child=nt;break}c=nt.sibling,nt.sibling=d,d=nt,nt=c}wj(a,!0,d,null,tt);break;case"together":wj(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function ij(c,a){!(a.mode&1)&&c!==null&&(c.alternate=null,a.alternate=null,a.flags|=2)}function Zi(c,a,d){if(c!==null&&(a.dependencies=c.dependencies),rh$1|=a.lanes,!(d&a.childLanes))return null;if(c!==null&&a.child!==c.child)throw Error(p$2(153));if(a.child!==null){for(c=a.child,d=Pg(c,c.pendingProps),a.child=d,d.return=a;c.sibling!==null;)c=c.sibling,d=d.sibling=Pg(c,c.pendingProps),d.return=a;d.sibling=null}return a.child}function yj(c,a,d){switch(a.tag){case 3:kj(a),Ig$1();break;case 5:Ah(a);break;case 1:Zf(a.type)&&cg(a);break;case 4:yh(a,a.stateNode.containerInfo);break;case 10:var et=a.type._context,nt=a.memoizedProps.value;G$2(Wg,et._currentValue),et._currentValue=nt;break;case 13:if(et=a.memoizedState,et!==null)return et.dehydrated!==null?(G$2(L$1,L$1.current&1),a.flags|=128,null):d&a.child.childLanes?oj(c,a,d):(G$2(L$1,L$1.current&1),c=Zi(c,a,d),c!==null?c.sibling:null);G$2(L$1,L$1.current&1);break;case 19:if(et=(d&a.childLanes)!==0,c.flags&128){if(et)return xj(c,a,d);a.flags|=128}if(nt=a.memoizedState,nt!==null&&(nt.rendering=null,nt.tail=null,nt.lastEffect=null),G$2(L$1,L$1.current),et)break;return null;case 22:case 23:return a.lanes=0,dj(c,a,d)}return Zi(c,a,d)}var zj,Aj,Bj,Cj;zj=function(c,a){for(var d=a.child;d!==null;){if(d.tag===5||d.tag===6)c.appendChild(d.stateNode);else if(d.tag!==4&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===a)break;for(;d.sibling===null;){if(d.return===null||d.return===a)return;d=d.return}d.sibling.return=d.return,d=d.sibling}};Aj=function(){};Bj=function(c,a,d,et){var nt=c.memoizedProps;if(nt!==et){c=a.stateNode,xh(uh.current);var tt=null;switch(d){case"input":nt=Ya(c,nt),et=Ya(c,et),tt=[];break;case"select":nt=A$1({},nt,{value:void 0}),et=A$1({},et,{value:void 0}),tt=[];break;case"textarea":nt=gb(c,nt),et=gb(c,et),tt=[];break;default:typeof nt.onClick!="function"&&typeof et.onClick=="function"&&(c.onclick=Bf)}ub(d,et);var bt;d=null;for(St in nt)if(!et.hasOwnProperty(St)&&nt.hasOwnProperty(St)&&nt[St]!=null)if(St==="style"){var gt=nt[St];for(bt in gt)gt.hasOwnProperty(bt)&&(d||(d={}),d[bt]="")}else St!=="dangerouslySetInnerHTML"&&St!=="children"&&St!=="suppressContentEditableWarning"&&St!=="suppressHydrationWarning"&&St!=="autoFocus"&&(ea.hasOwnProperty(St)?tt||(tt=[]):(tt=tt||[]).push(St,null));for(St in et){var wt=et[St];if(gt=nt!=null?nt[St]:void 0,et.hasOwnProperty(St)&&wt!==gt&&(wt!=null||gt!=null))if(St==="style")if(gt){for(bt in gt)!gt.hasOwnProperty(bt)||wt&&wt.hasOwnProperty(bt)||(d||(d={}),d[bt]="");for(bt in wt)wt.hasOwnProperty(bt)&>[bt]!==wt[bt]&&(d||(d={}),d[bt]=wt[bt])}else d||(tt||(tt=[]),tt.push(St,d)),d=wt;else St==="dangerouslySetInnerHTML"?(wt=wt?wt.__html:void 0,gt=gt?gt.__html:void 0,wt!=null&>!==wt&&(tt=tt||[]).push(St,wt)):St==="children"?typeof wt!="string"&&typeof wt!="number"||(tt=tt||[]).push(St,""+wt):St!=="suppressContentEditableWarning"&&St!=="suppressHydrationWarning"&&(ea.hasOwnProperty(St)?(wt!=null&&St==="onScroll"&&D$1("scroll",c),tt||gt===wt||(tt=[])):(tt=tt||[]).push(St,wt))}d&&(tt=tt||[]).push("style",d);var St=tt;(a.updateQueue=St)&&(a.flags|=4)}};Cj=function(c,a,d,et){d!==et&&(a.flags|=4)};function Dj(c,a){if(!I$1)switch(c.tailMode){case"hidden":a=c.tail;for(var d=null;a!==null;)a.alternate!==null&&(d=a),a=a.sibling;d===null?c.tail=null:d.sibling=null;break;case"collapsed":d=c.tail;for(var et=null;d!==null;)d.alternate!==null&&(et=d),d=d.sibling;et===null?a||c.tail===null?c.tail=null:c.tail.sibling=null:et.sibling=null}}function S$1(c){var a=c.alternate!==null&&c.alternate.child===c.child,d=0,et=0;if(a)for(var nt=c.child;nt!==null;)d|=nt.lanes|nt.childLanes,et|=nt.subtreeFlags&14680064,et|=nt.flags&14680064,nt.return=c,nt=nt.sibling;else for(nt=c.child;nt!==null;)d|=nt.lanes|nt.childLanes,et|=nt.subtreeFlags,et|=nt.flags,nt.return=c,nt=nt.sibling;return c.subtreeFlags|=et,c.childLanes=d,a}function Ej(c,a,d){var et=a.pendingProps;switch(wg(a),a.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S$1(a),null;case 1:return Zf(a.type)&&$f(),S$1(a),null;case 3:return et=a.stateNode,zh(),E(Wf),E(H$1),Eh(),et.pendingContext&&(et.context=et.pendingContext,et.pendingContext=null),(c===null||c.child===null)&&(Gg(a)?a.flags|=4:c===null||c.memoizedState.isDehydrated&&!(a.flags&256)||(a.flags|=1024,zg!==null&&(Fj(zg),zg=null))),Aj(c,a),S$1(a),null;case 5:Bh(a);var nt=xh(wh.current);if(d=a.type,c!==null&&a.stateNode!=null)Bj(c,a,d,et,nt),c.ref!==a.ref&&(a.flags|=512,a.flags|=2097152);else{if(!et){if(a.stateNode===null)throw Error(p$2(166));return S$1(a),null}if(c=xh(uh.current),Gg(a)){et=a.stateNode,d=a.type;var tt=a.memoizedProps;switch(et[Of]=a,et[Pf]=tt,c=(a.mode&1)!==0,d){case"dialog":D$1("cancel",et),D$1("close",et);break;case"iframe":case"object":case"embed":D$1("load",et);break;case"video":case"audio":for(nt=0;nt<\/script>",c=c.removeChild(c.firstChild)):typeof et.is=="string"?c=bt.createElement(d,{is:et.is}):(c=bt.createElement(d),d==="select"&&(bt=c,et.multiple?bt.multiple=!0:et.size&&(bt.size=et.size))):c=bt.createElementNS(c,d),c[Of]=a,c[Pf]=et,zj(c,a,!1,!1),a.stateNode=c;e:{switch(bt=vb(d,et),d){case"dialog":D$1("cancel",c),D$1("close",c),nt=et;break;case"iframe":case"object":case"embed":D$1("load",c),nt=et;break;case"video":case"audio":for(nt=0;ntGj&&(a.flags|=128,et=!0,Dj(tt,!1),a.lanes=4194304)}else{if(!et)if(c=Ch$1(bt),c!==null){if(a.flags|=128,et=!0,d=c.updateQueue,d!==null&&(a.updateQueue=d,a.flags|=4),Dj(tt,!0),tt.tail===null&&tt.tailMode==="hidden"&&!bt.alternate&&!I$1)return S$1(a),null}else 2*B$1()-tt.renderingStartTime>Gj&&d!==1073741824&&(a.flags|=128,et=!0,Dj(tt,!1),a.lanes=4194304);tt.isBackwards?(bt.sibling=a.child,a.child=bt):(d=tt.last,d!==null?d.sibling=bt:a.child=bt,tt.last=bt)}return tt.tail!==null?(a=tt.tail,tt.rendering=a,tt.tail=a.sibling,tt.renderingStartTime=B$1(),a.sibling=null,d=L$1.current,G$2(L$1,et?d&1|2:d&1),a):(S$1(a),null);case 22:case 23:return Hj(),et=a.memoizedState!==null,c!==null&&c.memoizedState!==null!==et&&(a.flags|=8192),et&&a.mode&1?fj&1073741824&&(S$1(a),a.subtreeFlags&6&&(a.flags|=8192)):S$1(a),null;case 24:return null;case 25:return null}throw Error(p$2(156,a.tag))}function Ij(c,a){switch(wg(a),a.tag){case 1:return Zf(a.type)&&$f(),c=a.flags,c&65536?(a.flags=c&-65537|128,a):null;case 3:return zh(),E(Wf),E(H$1),Eh(),c=a.flags,c&65536&&!(c&128)?(a.flags=c&-65537|128,a):null;case 5:return Bh(a),null;case 13:if(E(L$1),c=a.memoizedState,c!==null&&c.dehydrated!==null){if(a.alternate===null)throw Error(p$2(340));Ig$1()}return c=a.flags,c&65536?(a.flags=c&-65537|128,a):null;case 19:return E(L$1),null;case 4:return zh(),null;case 10:return ah(a.type._context),null;case 22:case 23:return Hj(),null;case 24:return null;default:return null}}var Jj=!1,U$1=!1,Kj=typeof WeakSet=="function"?WeakSet:Set,V$1=null;function Lj(c,a){var d=c.ref;if(d!==null)if(typeof d=="function")try{d(null)}catch(et){W$7(c,a,et)}else d.current=null}function Mj(c,a,d){try{d()}catch(et){W$7(c,a,et)}}var Nj=!1;function Oj(c,a){if(Cf=dd,c=Me$1(),Ne$1(c)){if("selectionStart"in c)var d={start:c.selectionStart,end:c.selectionEnd};else e:{d=(d=c.ownerDocument)&&d.defaultView||window;var et=d.getSelection&&d.getSelection();if(et&&et.rangeCount!==0){d=et.anchorNode;var nt=et.anchorOffset,tt=et.focusNode;et=et.focusOffset;try{d.nodeType,tt.nodeType}catch{d=null;break e}var bt=0,gt=-1,wt=-1,St=0,Mt=0,_t=c,Tt=null;t:for(;;){for(var Rt;_t!==d||nt!==0&&_t.nodeType!==3||(gt=bt+nt),_t!==tt||et!==0&&_t.nodeType!==3||(wt=bt+et),_t.nodeType===3&&(bt+=_t.nodeValue.length),(Rt=_t.firstChild)!==null;)Tt=_t,_t=Rt;for(;;){if(_t===c)break t;if(Tt===d&&++St===nt&&(gt=bt),Tt===tt&&++Mt===et&&(wt=bt),(Rt=_t.nextSibling)!==null)break;_t=Tt,Tt=_t.parentNode}_t=Rt}d=gt===-1||wt===-1?null:{start:gt,end:wt}}else d=null}d=d||{start:0,end:0}}else d=null;for(Df={focusedElem:c,selectionRange:d},dd=!1,V$1=a;V$1!==null;)if(a=V$1,c=a.child,(a.subtreeFlags&1028)!==0&&c!==null)c.return=a,V$1=c;else for(;V$1!==null;){a=V$1;try{var kt=a.alternate;if(a.flags&1024)switch(a.tag){case 0:case 11:case 15:break;case 1:if(kt!==null){var It=kt.memoizedProps,Lt=kt.memoizedState,Ot=a.stateNode,Nt=Ot.getSnapshotBeforeUpdate(a.elementType===a.type?It:Ci(a.type,It),Lt);Ot.__reactInternalSnapshotBeforeUpdate=Nt}break;case 3:var Ft=a.stateNode.containerInfo;Ft.nodeType===1?Ft.textContent="":Ft.nodeType===9&&Ft.documentElement&&Ft.removeChild(Ft.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$2(163))}}catch(jt){W$7(a,a.return,jt)}if(c=a.sibling,c!==null){c.return=a.return,V$1=c;break}V$1=a.return}return kt=Nj,Nj=!1,kt}function Pj(c,a,d){var et=a.updateQueue;if(et=et!==null?et.lastEffect:null,et!==null){var nt=et=et.next;do{if((nt.tag&c)===c){var tt=nt.destroy;nt.destroy=void 0,tt!==void 0&&Mj(a,d,tt)}nt=nt.next}while(nt!==et)}}function Qj(c,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var d=a=a.next;do{if((d.tag&c)===c){var et=d.create;d.destroy=et()}d=d.next}while(d!==a)}}function Rj(c){var a=c.ref;if(a!==null){var d=c.stateNode;switch(c.tag){case 5:c=d;break;default:c=d}typeof a=="function"?a(c):a.current=c}}function Sj(c){var a=c.alternate;a!==null&&(c.alternate=null,Sj(a)),c.child=null,c.deletions=null,c.sibling=null,c.tag===5&&(a=c.stateNode,a!==null&&(delete a[Of],delete a[Pf],delete a[of],delete a[Qf],delete a[Rf])),c.stateNode=null,c.return=null,c.dependencies=null,c.memoizedProps=null,c.memoizedState=null,c.pendingProps=null,c.stateNode=null,c.updateQueue=null}function Tj(c){return c.tag===5||c.tag===3||c.tag===4}function Uj(c){e:for(;;){for(;c.sibling===null;){if(c.return===null||Tj(c.return))return null;c=c.return}for(c.sibling.return=c.return,c=c.sibling;c.tag!==5&&c.tag!==6&&c.tag!==18;){if(c.flags&2||c.child===null||c.tag===4)continue e;c.child.return=c,c=c.child}if(!(c.flags&2))return c.stateNode}}function Vj(c,a,d){var et=c.tag;if(et===5||et===6)c=c.stateNode,a?d.nodeType===8?d.parentNode.insertBefore(c,a):d.insertBefore(c,a):(d.nodeType===8?(a=d.parentNode,a.insertBefore(c,d)):(a=d,a.appendChild(c)),d=d._reactRootContainer,d!=null||a.onclick!==null||(a.onclick=Bf));else if(et!==4&&(c=c.child,c!==null))for(Vj(c,a,d),c=c.sibling;c!==null;)Vj(c,a,d),c=c.sibling}function Wj(c,a,d){var et=c.tag;if(et===5||et===6)c=c.stateNode,a?d.insertBefore(c,a):d.appendChild(c);else if(et!==4&&(c=c.child,c!==null))for(Wj(c,a,d),c=c.sibling;c!==null;)Wj(c,a,d),c=c.sibling}var X$1=null,Xj=!1;function Yj(c,a,d){for(d=d.child;d!==null;)Zj(c,a,d),d=d.sibling}function Zj(c,a,d){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,d)}catch{}switch(d.tag){case 5:U$1||Lj(d,a);case 6:var et=X$1,nt=Xj;X$1=null,Yj(c,a,d),X$1=et,Xj=nt,X$1!==null&&(Xj?(c=X$1,d=d.stateNode,c.nodeType===8?c.parentNode.removeChild(d):c.removeChild(d)):X$1.removeChild(d.stateNode));break;case 18:X$1!==null&&(Xj?(c=X$1,d=d.stateNode,c.nodeType===8?Kf(c.parentNode,d):c.nodeType===1&&Kf(c,d),bd(c)):Kf(X$1,d.stateNode));break;case 4:et=X$1,nt=Xj,X$1=d.stateNode.containerInfo,Xj=!0,Yj(c,a,d),X$1=et,Xj=nt;break;case 0:case 11:case 14:case 15:if(!U$1&&(et=d.updateQueue,et!==null&&(et=et.lastEffect,et!==null))){nt=et=et.next;do{var tt=nt,bt=tt.destroy;tt=tt.tag,bt!==void 0&&(tt&2||tt&4)&&Mj(d,a,bt),nt=nt.next}while(nt!==et)}Yj(c,a,d);break;case 1:if(!U$1&&(Lj(d,a),et=d.stateNode,typeof et.componentWillUnmount=="function"))try{et.props=d.memoizedProps,et.state=d.memoizedState,et.componentWillUnmount()}catch(gt){W$7(d,a,gt)}Yj(c,a,d);break;case 21:Yj(c,a,d);break;case 22:d.mode&1?(U$1=(et=U$1)||d.memoizedState!==null,Yj(c,a,d),U$1=et):Yj(c,a,d);break;default:Yj(c,a,d)}}function ak(c){var a=c.updateQueue;if(a!==null){c.updateQueue=null;var d=c.stateNode;d===null&&(d=c.stateNode=new Kj),a.forEach(function(et){var nt=bk.bind(null,c,et);d.has(et)||(d.add(et),et.then(nt,nt))})}}function ck(c,a){var d=a.deletions;if(d!==null)for(var et=0;etnt&&(nt=bt),et&=~tt}if(et=nt,et=B$1()-et,et=(120>et?120:480>et?480:1080>et?1080:1920>et?1920:3e3>et?3e3:4320>et?4320:1960*lk(et/1960))-et,10c?16:c,wk===null)var et=!1;else{if(c=wk,wk=null,xk=0,K$6&6)throw Error(p$2(331));var nt=K$6;for(K$6|=4,V$1=c.current;V$1!==null;){var tt=V$1,bt=tt.child;if(V$1.flags&16){var gt=tt.deletions;if(gt!==null){for(var wt=0;wtB$1()-fk?Kk(c,0):rk|=d),Dk(c,a)}function Yk(c,a){a===0&&(c.mode&1?(a=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):a=1);var d=R$2();c=ih(c,a),c!==null&&(Ac(c,a,d),Dk(c,d))}function uj(c){var a=c.memoizedState,d=0;a!==null&&(d=a.retryLane),Yk(c,d)}function bk(c,a){var d=0;switch(c.tag){case 13:var et=c.stateNode,nt=c.memoizedState;nt!==null&&(d=nt.retryLane);break;case 19:et=c.stateNode;break;default:throw Error(p$2(314))}et!==null&&et.delete(a),Yk(c,d)}var Vk;Vk=function(c,a,d){if(c!==null)if(c.memoizedProps!==a.pendingProps||Wf.current)dh$1=!0;else{if(!(c.lanes&d)&&!(a.flags&128))return dh$1=!1,yj(c,a,d);dh$1=!!(c.flags&131072)}else dh$1=!1,I$1&&a.flags&1048576&&ug(a,ng,a.index);switch(a.lanes=0,a.tag){case 2:var et=a.type;ij(c,a),c=a.pendingProps;var nt=Yf(a,H$1.current);ch$1(a,d),nt=Nh(null,a,et,c,nt,d);var tt=Sh();return a.flags|=1,typeof nt=="object"&&nt!==null&&typeof nt.render=="function"&&nt.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,Zf(et)?(tt=!0,cg(a)):tt=!1,a.memoizedState=nt.state!==null&&nt.state!==void 0?nt.state:null,kh(a),nt.updater=Ei,a.stateNode=nt,nt._reactInternals=a,Ii(a,et,c,d),a=jj(null,a,et,!0,tt,d)):(a.tag=0,I$1&&tt&&vg(a),Xi(null,a,nt,d),a=a.child),a;case 16:et=a.elementType;e:{switch(ij(c,a),c=a.pendingProps,nt=et._init,et=nt(et._payload),a.type=et,nt=a.tag=Zk(et),c=Ci(et,c),nt){case 0:a=cj(null,a,et,c,d);break e;case 1:a=hj(null,a,et,c,d);break e;case 11:a=Yi(null,a,et,c,d);break e;case 14:a=$i(null,a,et,Ci(et.type,c),d);break e}throw Error(p$2(306,et,""))}return a;case 0:return et=a.type,nt=a.pendingProps,nt=a.elementType===et?nt:Ci(et,nt),cj(c,a,et,nt,d);case 1:return et=a.type,nt=a.pendingProps,nt=a.elementType===et?nt:Ci(et,nt),hj(c,a,et,nt,d);case 3:e:{if(kj(a),c===null)throw Error(p$2(387));et=a.pendingProps,tt=a.memoizedState,nt=tt.element,lh(c,a),qh(a,et,null,d);var bt=a.memoizedState;if(et=bt.element,tt.isDehydrated)if(tt={element:et,isDehydrated:!1,cache:bt.cache,pendingSuspenseBoundaries:bt.pendingSuspenseBoundaries,transitions:bt.transitions},a.updateQueue.baseState=tt,a.memoizedState=tt,a.flags&256){nt=Ji(Error(p$2(423)),a),a=lj(c,a,et,d,nt);break e}else if(et!==nt){nt=Ji(Error(p$2(424)),a),a=lj(c,a,et,d,nt);break e}else for(yg=Lf(a.stateNode.containerInfo.firstChild),xg=a,I$1=!0,zg=null,d=Vg(a,null,et,d),a.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling;else{if(Ig$1(),et===nt){a=Zi(c,a,d);break e}Xi(c,a,et,d)}a=a.child}return a;case 5:return Ah(a),c===null&&Eg(a),et=a.type,nt=a.pendingProps,tt=c!==null?c.memoizedProps:null,bt=nt.children,Ef(et,nt)?bt=null:tt!==null&&Ef(et,tt)&&(a.flags|=32),gj(c,a),Xi(c,a,bt,d),a.child;case 6:return c===null&&Eg(a),null;case 13:return oj(c,a,d);case 4:return yh(a,a.stateNode.containerInfo),et=a.pendingProps,c===null?a.child=Ug(a,null,et,d):Xi(c,a,et,d),a.child;case 11:return et=a.type,nt=a.pendingProps,nt=a.elementType===et?nt:Ci(et,nt),Yi(c,a,et,nt,d);case 7:return Xi(c,a,a.pendingProps,d),a.child;case 8:return Xi(c,a,a.pendingProps.children,d),a.child;case 12:return Xi(c,a,a.pendingProps.children,d),a.child;case 10:e:{if(et=a.type._context,nt=a.pendingProps,tt=a.memoizedProps,bt=nt.value,G$2(Wg,et._currentValue),et._currentValue=bt,tt!==null)if(He$1(tt.value,bt)){if(tt.children===nt.children&&!Wf.current){a=Zi(c,a,d);break e}}else for(tt=a.child,tt!==null&&(tt.return=a);tt!==null;){var gt=tt.dependencies;if(gt!==null){bt=tt.child;for(var wt=gt.firstContext;wt!==null;){if(wt.context===et){if(tt.tag===1){wt=mh(-1,d&-d),wt.tag=2;var St=tt.updateQueue;if(St!==null){St=St.shared;var Mt=St.pending;Mt===null?wt.next=wt:(wt.next=Mt.next,Mt.next=wt),St.pending=wt}}tt.lanes|=d,wt=tt.alternate,wt!==null&&(wt.lanes|=d),bh(tt.return,d,a),gt.lanes|=d;break}wt=wt.next}}else if(tt.tag===10)bt=tt.type===a.type?null:tt.child;else if(tt.tag===18){if(bt=tt.return,bt===null)throw Error(p$2(341));bt.lanes|=d,gt=bt.alternate,gt!==null&&(gt.lanes|=d),bh(bt,d,a),bt=tt.sibling}else bt=tt.child;if(bt!==null)bt.return=tt;else for(bt=tt;bt!==null;){if(bt===a){bt=null;break}if(tt=bt.sibling,tt!==null){tt.return=bt.return,bt=tt;break}bt=bt.return}tt=bt}Xi(c,a,nt.children,d),a=a.child}return a;case 9:return nt=a.type,et=a.pendingProps.children,ch$1(a,d),nt=eh(nt),et=et(nt),a.flags|=1,Xi(c,a,et,d),a.child;case 14:return et=a.type,nt=Ci(et,a.pendingProps),nt=Ci(et.type,nt),$i(c,a,et,nt,d);case 15:return bj(c,a,a.type,a.pendingProps,d);case 17:return et=a.type,nt=a.pendingProps,nt=a.elementType===et?nt:Ci(et,nt),ij(c,a),a.tag=1,Zf(et)?(c=!0,cg(a)):c=!1,ch$1(a,d),Gi(a,et,nt),Ii(a,et,nt,d),jj(null,a,et,!0,c,d);case 19:return xj(c,a,d);case 22:return dj(c,a,d)}throw Error(p$2(156,a.tag))};function Fk(c,a){return ac(c,a)}function $k(c,a,d,et){this.tag=c,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=et,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(c,a,d,et){return new $k(c,a,d,et)}function aj(c){return c=c.prototype,!(!c||!c.isReactComponent)}function Zk(c){if(typeof c=="function")return aj(c)?1:0;if(c!=null){if(c=c.$$typeof,c===Da)return 11;if(c===Ga)return 14}return 2}function Pg(c,a){var d=c.alternate;return d===null?(d=Bg(c.tag,a,c.key,c.mode),d.elementType=c.elementType,d.type=c.type,d.stateNode=c.stateNode,d.alternate=c,c.alternate=d):(d.pendingProps=a,d.type=c.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=c.flags&14680064,d.childLanes=c.childLanes,d.lanes=c.lanes,d.child=c.child,d.memoizedProps=c.memoizedProps,d.memoizedState=c.memoizedState,d.updateQueue=c.updateQueue,a=c.dependencies,d.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},d.sibling=c.sibling,d.index=c.index,d.ref=c.ref,d}function Rg(c,a,d,et,nt,tt){var bt=2;if(et=c,typeof c=="function")aj(c)&&(bt=1);else if(typeof c=="string")bt=5;else e:switch(c){case ya:return Tg(d.children,nt,tt,a);case za:bt=8,nt|=8;break;case Aa:return c=Bg(12,d,a,nt|2),c.elementType=Aa,c.lanes=tt,c;case Ea:return c=Bg(13,d,a,nt),c.elementType=Ea,c.lanes=tt,c;case Fa:return c=Bg(19,d,a,nt),c.elementType=Fa,c.lanes=tt,c;case Ia:return pj(d,nt,tt,a);default:if(typeof c=="object"&&c!==null)switch(c.$$typeof){case Ba:bt=10;break e;case Ca:bt=9;break e;case Da:bt=11;break e;case Ga:bt=14;break e;case Ha:bt=16,et=null;break e}throw Error(p$2(130,c==null?c:typeof c,""))}return a=Bg(bt,d,a,nt),a.elementType=c,a.type=et,a.lanes=tt,a}function Tg(c,a,d,et){return c=Bg(7,c,et,a),c.lanes=d,c}function pj(c,a,d,et){return c=Bg(22,c,et,a),c.elementType=Ia,c.lanes=d,c.stateNode={isHidden:!1},c}function Qg(c,a,d){return c=Bg(6,c,null,a),c.lanes=d,c}function Sg(c,a,d){return a=Bg(4,c.children!==null?c.children:[],c.key,a),a.lanes=d,a.stateNode={containerInfo:c.containerInfo,pendingChildren:null,implementation:c.implementation},a}function al(c,a,d,et,nt){this.tag=a,this.containerInfo=c,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=et,this.onRecoverableError=nt,this.mutableSourceEagerHydrationData=null}function bl(c,a,d,et,nt,tt,bt,gt,wt){return c=new al(c,a,d,gt,wt),a===1?(a=1,tt===!0&&(a|=8)):a=0,tt=Bg(3,null,null,a),c.current=tt,tt.stateNode=c,tt.memoizedState={element:et,isDehydrated:d,cache:null,transitions:null,pendingSuspenseBoundaries:null},kh(tt),c}function cl(c,a,d){var et=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(c){console.error(c)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs(reactDomExports);var m$2=reactDomExports;client.createRoot=m$2.createRoot,client.hydrateRoot=m$2.hydrateRoot;const styles$1="",styles="";var __assign$1=function(){return __assign$1=Object.assign||function(a){for(var d,et=1,nt=arguments.length;et"u")return zeroGap;var a=getOffset(c),d=document.documentElement.clientWidth,et=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,et-d+a[2]-a[0])}},Style=styleSingleton(),lockAttribute="data-scroll-locked",getStyles=function(c,a,d,et){var nt=c.left,tt=c.top,bt=c.right,gt=c.gap;return d===void 0&&(d="margin"),` .`.concat(noScrollbarsClassName,` { overflow: hidden `).concat(et,`; padding-right: `).concat(gt,"px ").concat(et,`; @@ -79,13 +79,13 @@ Error generating stack: `+tt.message+` body[`).concat(lockAttribute,`] { `).concat(removedBarSizeVariable,": ").concat(gt,`px; } -`)},getCurrentUseCounter=function(){var c=parseInt(document.body.getAttribute(lockAttribute)||"0",10);return isFinite(c)?c:0},useLockAttribute=function(){reactExports.useEffect(function(){return document.body.setAttribute(lockAttribute,(getCurrentUseCounter()+1).toString()),function(){var c=getCurrentUseCounter()-1;c<=0?document.body.removeAttribute(lockAttribute):document.body.setAttribute(lockAttribute,c.toString())}},[])},RemoveScrollBar=function(c){var a=c.noRelative,d=c.noImportant,et=c.gapMode,nt=et===void 0?"margin":et;useLockAttribute();var tt=reactExports.useMemo(function(){return getGapWidth(nt)},[nt]);return reactExports.createElement(Style,{styles:getStyles(tt,!a,nt,d?"":"!important")})},passiveSupported=!1;if(typeof window<"u")try{var options=Object.defineProperty({},"passive",{get:function(){return passiveSupported=!0,!0}});window.addEventListener("test",options,options),window.removeEventListener("test",options,options)}catch{passiveSupported=!1}var nonPassive=passiveSupported?{passive:!1}:!1,alwaysContainsScroll=function(c){return c.tagName==="TEXTAREA"},elementCanBeScrolled=function(c,a){if(!(c instanceof Element))return!1;var d=window.getComputedStyle(c);return d[a]!=="hidden"&&!(d.overflowY===d.overflowX&&!alwaysContainsScroll(c)&&d[a]==="visible")},elementCouldBeVScrolled=function(c){return elementCanBeScrolled(c,"overflowY")},elementCouldBeHScrolled=function(c){return elementCanBeScrolled(c,"overflowX")},locationCouldBeScrolled=function(c,a){var d=a.ownerDocument,et=a;do{typeof ShadowRoot<"u"&&et instanceof ShadowRoot&&(et=et.host);var nt=elementCouldBeScrolled(c,et);if(nt){var tt=getScrollVariables(c,et),bt=tt[1],gt=tt[2];if(bt>gt)return!0}et=et.parentNode}while(et&&et!==d.body);return!1},getVScrollVariables=function(c){var a=c.scrollTop,d=c.scrollHeight,et=c.clientHeight;return[a,d,et]},getHScrollVariables=function(c){var a=c.scrollLeft,d=c.scrollWidth,et=c.clientWidth;return[a,d,et]},elementCouldBeScrolled=function(c,a){return c==="v"?elementCouldBeVScrolled(a):elementCouldBeHScrolled(a)},getScrollVariables=function(c,a){return c==="v"?getVScrollVariables(a):getHScrollVariables(a)},getDirectionFactor=function(c,a){return c==="h"&&a==="rtl"?-1:1},handleScroll=function(c,a,d,et,nt){var tt=getDirectionFactor(c,window.getComputedStyle(a).direction),bt=tt*et,gt=d.target,wt=a.contains(gt),St=!1,Mt=bt>0,_t=0,Tt=0;do{var Bt=getScrollVariables(c,gt),kt=Bt[0],It=Bt[1],Lt=Bt[2],Ot=It-Lt-tt*kt;(kt||Ot)&&elementCouldBeScrolled(c,gt)&&(_t+=Ot,Tt+=kt),gt instanceof ShadowRoot?gt=gt.host:gt=gt.parentNode}while(!wt&>!==document.body||wt&&(a.contains(gt)||a===gt));return(Mt&&(nt&&Math.abs(_t)<1||!nt&&bt>_t)||!Mt&&(nt&&Math.abs(Tt)<1||!nt&&-bt>Tt))&&(St=!0),St},getTouchXY=function(c){return"changedTouches"in c?[c.changedTouches[0].clientX,c.changedTouches[0].clientY]:[0,0]},getDeltaXY=function(c){return[c.deltaX,c.deltaY]},extractRef=function(c){return c&&"current"in c?c.current:c},deltaCompare=function(c,a){return c[0]===a[0]&&c[1]===a[1]},generateStyle=function(c){return` +`)},getCurrentUseCounter=function(){var c=parseInt(document.body.getAttribute(lockAttribute)||"0",10);return isFinite(c)?c:0},useLockAttribute=function(){reactExports.useEffect(function(){return document.body.setAttribute(lockAttribute,(getCurrentUseCounter()+1).toString()),function(){var c=getCurrentUseCounter()-1;c<=0?document.body.removeAttribute(lockAttribute):document.body.setAttribute(lockAttribute,c.toString())}},[])},RemoveScrollBar=function(c){var a=c.noRelative,d=c.noImportant,et=c.gapMode,nt=et===void 0?"margin":et;useLockAttribute();var tt=reactExports.useMemo(function(){return getGapWidth(nt)},[nt]);return reactExports.createElement(Style,{styles:getStyles(tt,!a,nt,d?"":"!important")})},passiveSupported=!1;if(typeof window<"u")try{var options=Object.defineProperty({},"passive",{get:function(){return passiveSupported=!0,!0}});window.addEventListener("test",options,options),window.removeEventListener("test",options,options)}catch{passiveSupported=!1}var nonPassive=passiveSupported?{passive:!1}:!1,alwaysContainsScroll=function(c){return c.tagName==="TEXTAREA"},elementCanBeScrolled=function(c,a){if(!(c instanceof Element))return!1;var d=window.getComputedStyle(c);return d[a]!=="hidden"&&!(d.overflowY===d.overflowX&&!alwaysContainsScroll(c)&&d[a]==="visible")},elementCouldBeVScrolled=function(c){return elementCanBeScrolled(c,"overflowY")},elementCouldBeHScrolled=function(c){return elementCanBeScrolled(c,"overflowX")},locationCouldBeScrolled=function(c,a){var d=a.ownerDocument,et=a;do{typeof ShadowRoot<"u"&&et instanceof ShadowRoot&&(et=et.host);var nt=elementCouldBeScrolled(c,et);if(nt){var tt=getScrollVariables(c,et),bt=tt[1],gt=tt[2];if(bt>gt)return!0}et=et.parentNode}while(et&&et!==d.body);return!1},getVScrollVariables=function(c){var a=c.scrollTop,d=c.scrollHeight,et=c.clientHeight;return[a,d,et]},getHScrollVariables=function(c){var a=c.scrollLeft,d=c.scrollWidth,et=c.clientWidth;return[a,d,et]},elementCouldBeScrolled=function(c,a){return c==="v"?elementCouldBeVScrolled(a):elementCouldBeHScrolled(a)},getScrollVariables=function(c,a){return c==="v"?getVScrollVariables(a):getHScrollVariables(a)},getDirectionFactor=function(c,a){return c==="h"&&a==="rtl"?-1:1},handleScroll=function(c,a,d,et,nt){var tt=getDirectionFactor(c,window.getComputedStyle(a).direction),bt=tt*et,gt=d.target,wt=a.contains(gt),St=!1,Mt=bt>0,_t=0,Tt=0;do{var Rt=getScrollVariables(c,gt),kt=Rt[0],It=Rt[1],Lt=Rt[2],Ot=It-Lt-tt*kt;(kt||Ot)&&elementCouldBeScrolled(c,gt)&&(_t+=Ot,Tt+=kt),gt instanceof ShadowRoot?gt=gt.host:gt=gt.parentNode}while(!wt&>!==document.body||wt&&(a.contains(gt)||a===gt));return(Mt&&(nt&&Math.abs(_t)<1||!nt&&bt>_t)||!Mt&&(nt&&Math.abs(Tt)<1||!nt&&-bt>Tt))&&(St=!0),St},getTouchXY=function(c){return"changedTouches"in c?[c.changedTouches[0].clientX,c.changedTouches[0].clientY]:[0,0]},getDeltaXY=function(c){return[c.deltaX,c.deltaY]},extractRef=function(c){return c&&"current"in c?c.current:c},deltaCompare=function(c,a){return c[0]===a[0]&&c[1]===a[1]},generateStyle=function(c){return` .block-interactivity-`.concat(c,` {pointer-events: none;} .allow-interactivity-`).concat(c,` {pointer-events: all;} -`)},idCounter=0,lockStack=[];function RemoveScrollSideCar(c){var a=reactExports.useRef([]),d=reactExports.useRef([0,0]),et=reactExports.useRef(),nt=reactExports.useState(idCounter++)[0],tt=reactExports.useState(styleSingleton)[0],bt=reactExports.useRef(c);reactExports.useEffect(function(){bt.current=c},[c]),reactExports.useEffect(function(){if(c.inert){document.body.classList.add("block-interactivity-".concat(nt));var It=__spreadArray$1([c.lockRef.current],(c.shards||[]).map(extractRef),!0).filter(Boolean);return It.forEach(function(Lt){return Lt.classList.add("allow-interactivity-".concat(nt))}),function(){document.body.classList.remove("block-interactivity-".concat(nt)),It.forEach(function(Lt){return Lt.classList.remove("allow-interactivity-".concat(nt))})}}},[c.inert,c.lockRef.current,c.shards]);var gt=reactExports.useCallback(function(It,Lt){if("touches"in It&&It.touches.length===2)return!bt.current.allowPinchZoom;var Ot=getTouchXY(It),Nt=d.current,Ft="deltaX"in It?It.deltaX:Nt[0]-Ot[0],zt="deltaY"in It?It.deltaY:Nt[1]-Ot[1],Vt,Jt=It.target,ir=Math.abs(Ft)>Math.abs(zt)?"h":"v";if("touches"in It&&ir==="h"&&Jt.type==="range")return!1;var rr=locationCouldBeScrolled(ir,Jt);if(!rr)return!0;if(rr?Vt=ir:(Vt=ir==="v"?"h":"v",rr=locationCouldBeScrolled(ir,Jt)),!rr)return!1;if(!et.current&&"changedTouches"in It&&(Ft||zt)&&(et.current=Vt),!Vt)return!0;var er=et.current||Vt;return handleScroll(er,Lt,It,er==="h"?Ft:zt,!0)},[]),wt=reactExports.useCallback(function(It){var Lt=It;if(!(!lockStack.length||lockStack[lockStack.length-1]!==tt)){var Ot="deltaY"in Lt?getDeltaXY(Lt):getTouchXY(Lt),Nt=a.current.filter(function(Vt){return Vt.name===Lt.type&&(Vt.target===Lt.target||Lt.target===Vt.shadowParent)&&deltaCompare(Vt.delta,Ot)})[0];if(Nt&&Nt.should){Lt.cancelable&&Lt.preventDefault();return}if(!Nt){var Ft=(bt.current.shards||[]).map(extractRef).filter(Boolean).filter(function(Vt){return Vt.contains(Lt.target)}),zt=Ft.length>0?gt(Lt,Ft[0]):!bt.current.noIsolation;zt&&Lt.cancelable&&Lt.preventDefault()}}},[]),St=reactExports.useCallback(function(It,Lt,Ot,Nt){var Ft={name:It,delta:Lt,target:Ot,should:Nt,shadowParent:getOutermostShadowParent(Ot)};a.current.push(Ft),setTimeout(function(){a.current=a.current.filter(function(zt){return zt!==Ft})},1)},[]),Mt=reactExports.useCallback(function(It){d.current=getTouchXY(It),et.current=void 0},[]),_t=reactExports.useCallback(function(It){St(It.type,getDeltaXY(It),It.target,gt(It,c.lockRef.current))},[]),Tt=reactExports.useCallback(function(It){St(It.type,getTouchXY(It),It.target,gt(It,c.lockRef.current))},[]);reactExports.useEffect(function(){return lockStack.push(tt),c.setCallbacks({onScrollCapture:_t,onWheelCapture:_t,onTouchMoveCapture:Tt}),document.addEventListener("wheel",wt,nonPassive),document.addEventListener("touchmove",wt,nonPassive),document.addEventListener("touchstart",Mt,nonPassive),function(){lockStack=lockStack.filter(function(It){return It!==tt}),document.removeEventListener("wheel",wt,nonPassive),document.removeEventListener("touchmove",wt,nonPassive),document.removeEventListener("touchstart",Mt,nonPassive)}},[]);var Bt=c.removeScrollBar,kt=c.inert;return reactExports.createElement(reactExports.Fragment,null,kt?reactExports.createElement(tt,{styles:generateStyle(nt)}):null,Bt?reactExports.createElement(RemoveScrollBar,{gapMode:c.gapMode}):null)}function getOutermostShadowParent(c){for(var a=null;c!==null;)c instanceof ShadowRoot&&(a=c.host,c=c.host),c=c.parentNode;return a}const SideCar=exportSidecar(effectCar,RemoveScrollSideCar);var ReactRemoveScroll=reactExports.forwardRef(function(c,a){return reactExports.createElement(RemoveScroll$1,__assign$1({},c,{ref:a,sideCar:SideCar}))});ReactRemoveScroll.classNames=RemoveScroll$1.classNames;const RemoveScroll=ReactRemoveScroll;function keys(c){return Object.keys(c)}function isObject$1(c){return c&&typeof c=="object"&&!Array.isArray(c)}function deepMerge(c,a){const d={...c},et=a;return isObject$1(c)&&isObject$1(a)&&Object.keys(a).forEach(nt=>{isObject$1(et[nt])&&nt in c?d[nt]=deepMerge(d[nt],et[nt]):d[nt]=et[nt]}),d}function camelToKebabCase(c){return c.replace(/[A-Z]/g,a=>`-${a.toLowerCase()}`)}function getTransformedScaledValue(c){var a;return typeof c!="string"||!c.includes("var(--mantine-scale)")?c:(a=c.match(/^calc\((.*?)\)$/))==null?void 0:a[1].split("*")[0].trim()}function px(c){const a=getTransformedScaledValue(c);return typeof a=="number"?a:typeof a=="string"?a.includes("calc")||a.includes("var")?a:a.includes("px")?Number(a.replace("px","")):a.includes("rem")?Number(a.replace("rem",""))*16:a.includes("em")?Number(a.replace("em",""))*16:Number(a):NaN}function scaleRem(c){return c==="0rem"?"0rem":`calc(${c} * var(--mantine-scale))`}function createConverter(c,{shouldScale:a=!1}={}){function d(et){if(et===0||et==="0")return`0${c}`;if(typeof et=="number"){const nt=`${et/16}${c}`;return a?scaleRem(nt):nt}if(typeof et=="string"){if(et===""||et.startsWith("calc(")||et.startsWith("clamp(")||et.includes("rgba("))return et;if(et.includes(","))return et.split(",").map(tt=>d(tt)).join(",");if(et.includes(" "))return et.split(" ").map(tt=>d(tt)).join(" ");if(et.includes(c))return a?scaleRem(et):et;const nt=et.replace("px","");if(!Number.isNaN(Number(nt))){const tt=`${Number(nt)/16}${c}`;return a?scaleRem(tt):tt}}return et}return d}const rem=createConverter("rem",{shouldScale:!0}),em=createConverter("em");function filterProps(c){return Object.keys(c).reduce((a,d)=>(c[d]!==void 0&&(a[d]=c[d]),a),{})}function isNumberLike(c){return typeof c=="number"?!0:typeof c=="string"?c.startsWith("calc(")||c.startsWith("var(")||c.includes(" ")&&c.trim()!==""?!0:/[0-9]/.test(c.trim().replace("-","")[0]):!1}function isElement$1(c){return Array.isArray(c)||c===null?!1:typeof c=="object"?c.type!==React.Fragment:!1}function createSafeContext(c){const a=reactExports.createContext(null);return[({children:nt,value:tt})=>React.createElement(a.Provider,{value:tt},nt),()=>{const nt=reactExports.useContext(a);if(nt===null)throw new Error(c);return nt}]}function createOptionalContext(c=null){const a=reactExports.createContext(c);return[({children:nt,value:tt})=>React.createElement(a.Provider,{value:tt},nt),()=>reactExports.useContext(a)]}const elevations={app:100,modal:200,popover:300,overlay:400,max:9999};function getDefaultZIndex(c){return elevations[c]}const noop$2=()=>{};function closeOnEscape(c,a={active:!0}){return typeof c!="function"||!a.active?a.onKeyDown||noop$2:d=>{var et;d.key==="Escape"&&(c(d),(et=a.onTrigger)==null||et.call(a))}}function getSize(c,a="size",d=!0){if(c!==void 0)return isNumberLike(c)?d?rem(c):c:`var(--${a}-${c})`}function getSpacing(c){return getSize(c,"mantine-spacing")}function getRadius(c){return c===void 0?"var(--mantine-radius-default)":getSize(c,"mantine-radius")}function getFontSize(c){return getSize(c,"mantine-font-size")}function getLineHeight(c){return getSize(c,"mantine-line-height",!1)}function getShadow(c){if(c)return getSize(c,"mantine-shadow",!1)}function getBreakpointValue$1(c,a){return c in a.breakpoints?px(a.breakpoints[c]):px(c)}function getSortedBreakpoints(c,a){const d=c.map(et=>({value:et,px:getBreakpointValue$1(et,a)}));return d.sort((et,nt)=>et.px-nt.px),d}function clamp$1(c,a,d){return a===void 0&&d===void 0?c:a!==void 0&&d===void 0?Math.max(c,a):Math.min(a===void 0&&d!==void 0?c:Math.max(c,a),d)}function randomId(){return`mantine-${Math.random().toString(36).slice(2,11)}`}const DEFAULT_EVENTS=["mousedown","touchstart"];function useClickOutside(c,a,d){const et=reactExports.useRef();return reactExports.useEffect(()=>{const nt=tt=>{const{target:bt}=tt??{};if(Array.isArray(d)){const gt=(bt==null?void 0:bt.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(bt)&&bt.tagName!=="HTML";d.every(St=>!!St&&!tt.composedPath().includes(St))&&!gt&&c()}else et.current&&!et.current.contains(bt)&&c()};return(a||DEFAULT_EVENTS).forEach(tt=>document.addEventListener(tt,nt)),()=>{(a||DEFAULT_EVENTS).forEach(tt=>document.removeEventListener(tt,nt))}},[et,c,d]),et}function attachMediaListener(c,a){try{return c.addEventListener("change",a),()=>c.removeEventListener("change",a)}catch{return c.addListener(a),()=>c.removeListener(a)}}function getInitialValue(c,a){return typeof a=="boolean"?a:typeof window<"u"&&"matchMedia"in window?window.matchMedia(c).matches:!1}function useMediaQuery(c,a,{getInitialValueInEffect:d}={getInitialValueInEffect:!0}){const[et,nt]=reactExports.useState(d?a:getInitialValue(c)),tt=reactExports.useRef();return reactExports.useEffect(()=>{if("matchMedia"in window)return tt.current=window.matchMedia(c),nt(tt.current.matches),attachMediaListener(tt.current,bt=>nt(bt.matches))},[c]),et}function useColorScheme(c,a){return useMediaQuery("(prefers-color-scheme: dark)",c==="dark",a)?"dark":"light"}const useIsomorphicEffect=typeof document<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function useDidUpdate(c,a){const d=reactExports.useRef(!1);reactExports.useEffect(()=>()=>{d.current=!1},[]),reactExports.useEffect(()=>{if(d.current)return c();d.current=!0},a)}function useFocusReturn({opened:c,shouldReturnFocus:a=!0}){const d=reactExports.useRef(),et=()=>{var nt;d.current&&"focus"in d.current&&typeof d.current.focus=="function"&&((nt=d.current)==null||nt.focus({preventScroll:!0}))};return useDidUpdate(()=>{let nt=-1;const tt=bt=>{bt.key==="Tab"&&window.clearTimeout(nt)};return document.addEventListener("keydown",tt),c?d.current=document.activeElement:a&&(nt=window.setTimeout(et,10)),()=>{window.clearTimeout(nt),document.removeEventListener("keydown",tt)}},[c,a]),et}function createAriaHider(c,a="body > :not(script)"){const d=randomId(),et=Array.from(document.querySelectorAll(a)).map(nt=>{var wt;if((wt=nt==null?void 0:nt.shadowRoot)!=null&&wt.contains(c)||nt.contains(c))return;const tt=nt.getAttribute("aria-hidden"),bt=nt.getAttribute("data-hidden"),gt=nt.getAttribute("data-focus-id");return nt.setAttribute("data-focus-id",d),tt===null||tt==="false"?nt.setAttribute("aria-hidden","true"):!bt&&!gt&&nt.setAttribute("data-hidden",tt),{node:nt,ariaHidden:bt||null}});return()=>{et.forEach(nt=>{!nt||d!==nt.node.getAttribute("data-focus-id")||(nt.ariaHidden===null?nt.node.removeAttribute("aria-hidden"):nt.node.setAttribute("aria-hidden",nt.ariaHidden),nt.node.removeAttribute("data-focus-id"),nt.node.removeAttribute("data-hidden"))})}}const TABBABLE_NODES=/input|select|textarea|button|object/,FOCUS_SELECTOR="a, input, select, textarea, button, object, [tabindex]";function hidden(c){return c.style.display==="none"}function visible(c){if(c.getAttribute("aria-hidden")||c.getAttribute("hidden")||c.getAttribute("type")==="hidden")return!1;let d=c;for(;d&&!(d===document.body||d.nodeType===11);){if(hidden(d))return!1;d=d.parentNode}return!0}function getElementTabIndex(c){let a=c.getAttribute("tabindex");return a===null&&(a=void 0),parseInt(a,10)}function focusable(c){const a=c.nodeName.toLowerCase(),d=!Number.isNaN(getElementTabIndex(c));return(TABBABLE_NODES.test(a)&&!c.disabled||c instanceof HTMLAnchorElement&&c.href||d)&&visible(c)}function tabbable(c){const a=getElementTabIndex(c);return(Number.isNaN(a)||a>=0)&&focusable(c)}function findTabbableDescendants(c){return Array.from(c.querySelectorAll(FOCUS_SELECTOR)).filter(tabbable)}function scopeTab(c,a){const d=findTabbableDescendants(c);if(!d.length){a.preventDefault();return}const et=d[a.shiftKey?0:d.length-1],nt=c.getRootNode();let tt=et===nt.activeElement||c===nt.activeElement;const bt=nt.activeElement;if(bt.tagName==="INPUT"&&bt.getAttribute("type")==="radio"&&(tt=d.filter(Mt=>Mt.getAttribute("type")==="radio"&&Mt.getAttribute("name")===bt.getAttribute("name")).includes(et)),!tt)return;a.preventDefault();const wt=d[a.shiftKey?d.length-1:0];wt&&wt.focus()}function useFocusTrap(c=!0){const a=reactExports.useRef(),d=reactExports.useRef(null),et=tt=>{let bt=tt.querySelector("[data-autofocus]");if(!bt){const gt=Array.from(tt.querySelectorAll(FOCUS_SELECTOR));bt=gt.find(tabbable)||gt.find(focusable)||null,!bt&&focusable(tt)&&(bt=tt)}bt&&bt.focus({preventScroll:!0})},nt=reactExports.useCallback(tt=>{if(c){if(tt===null){d.current&&(d.current(),d.current=null);return}d.current=createAriaHider(tt),a.current!==tt&&(tt?(setTimeout(()=>{tt.getRootNode()&&et(tt)}),a.current=tt):a.current=null)}},[c]);return reactExports.useEffect(()=>{if(!c)return;a.current&&setTimeout(()=>et(a.current));const tt=bt=>{bt.key==="Tab"&&a.current&&scopeTab(a.current,bt)};return document.addEventListener("keydown",tt),()=>{document.removeEventListener("keydown",tt),d.current&&d.current()}},[c]),nt}const __useId=React["useId".toString()]||(()=>{});function useReactId$1(){const c=__useId();return c?`mantine-${c.replace(/:/g,"")}`:""}function useId$1(c){const a=useReactId$1(),[d,et]=reactExports.useState(a);return useIsomorphicEffect(()=>{et(randomId())},[]),typeof c=="string"?c:typeof window>"u"?a:d}function useWindowEvent(c,a,d){reactExports.useEffect(()=>(window.addEventListener(c,a,d),()=>window.removeEventListener(c,a,d)),[c,a])}function assignRef(c,a){typeof c=="function"?c(a):typeof c=="object"&&c!==null&&"current"in c&&(c.current=a)}function mergeRefs(...c){return a=>{c.forEach(d=>assignRef(d,a))}}function useMergedRef(...c){return reactExports.useCallback(mergeRefs(...c),c)}function useUncontrolled({value:c,defaultValue:a,finalValue:d,onChange:et=()=>{}}){const[nt,tt]=reactExports.useState(a!==void 0?a:d),bt=(gt,...wt)=>{tt(gt),et==null||et(gt,...wt)};return c!==void 0?[c,et,!0]:[nt,bt,!1]}function useReducedMotion(c,a){return useMediaQuery("(prefers-reduced-motion: reduce)",c,a)}function useDisclosure(c=!1,a){const{onOpen:d,onClose:et}=a||{},[nt,tt]=reactExports.useState(c),bt=reactExports.useCallback(()=>{tt(St=>St||(d==null||d(),!0))},[d]),gt=reactExports.useCallback(()=>{tt(St=>St&&(et==null||et(),!1))},[et]),wt=reactExports.useCallback(()=>{nt?gt():bt()},[gt,bt,nt]);return[nt,{open:bt,close:gt,toggle:wt}]}var dist$2={};(function(c){Object.defineProperty(c,Symbol.toStringTag,{value:"Module"});const a=bufferPolyfill,d=browserExports$1,et=bt=>bt&&bt.__esModule?bt:{default:bt},nt=et(d),tt=globalThis||void 0||self;Object.defineProperty(c,"Buffer",{enumerable:!0,get:()=>a.Buffer}),Object.defineProperty(c,"process",{enumerable:!0,get:()=>nt.default}),c.global=tt})(dist$2);function createVarsResolver(c){return c}function r$5(c){var a,d,et="";if(typeof c=="string"||typeof c=="number")et+=c;else if(typeof c=="object")if(Array.isArray(c)){var nt=c.length;for(a=0;a{Object.entries(d).forEach(([et,nt])=>{a[et]?a[et]=clsx(a[et],nt):a[et]=nt})}),a}function resolveClassNames({theme:c,classNames:a,props:d,stylesCtx:et}){const tt=(Array.isArray(a)?a:[a]).map(bt=>typeof bt=="function"?bt(c,d,et):bt||EMPTY_CLASS_NAMES);return mergeClassNames(tt)}function resolveStyles({theme:c,styles:a,props:d,stylesCtx:et}){return(Array.isArray(a)?a:[a]).reduce((tt,bt)=>typeof bt=="function"?{...tt,...bt(c,d,et)}:{...tt,...bt},{})}const MantineContext=reactExports.createContext(null);function useMantineContext(){const c=reactExports.useContext(MantineContext);if(!c)throw new Error("[@mantine/core] MantineProvider was not found in tree");return c}function useMantineCssVariablesResolver(){return useMantineContext().cssVariablesResolver}function useMantineClassNamesPrefix(){return useMantineContext().classNamesPrefix}function useMantineStyleNonce(){return useMantineContext().getStyleNonce}function useMantineWithStaticClasses(){return useMantineContext().withStaticClasses}function useMantineIsHeadless(){return useMantineContext().headless}function isHexColor(c){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(c)}function hexToRgba(c){let a=c.replace("#","");if(a.length===3){const bt=a.split("");a=[bt[0],bt[0],bt[1],bt[1],bt[2],bt[2]].join("")}if(a.length===8){const bt=parseInt(a.slice(6,8),16)/255;return{r:parseInt(a.slice(0,2),16),g:parseInt(a.slice(2,4),16),b:parseInt(a.slice(4,6),16),a:bt}}const d=parseInt(a,16),et=d>>16&255,nt=d>>8&255,tt=d&255;return{r:et,g:nt,b:tt,a:1}}function rgbStringToRgba(c){const[a,d,et,nt]=c.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:a,g:d,b:et,a:nt||1}}function hslStringToRgba(c){const a=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,d=c.match(a);if(!d)return{r:0,g:0,b:0,a:1};const et=parseInt(d[1],10),nt=parseInt(d[2],10)/100,tt=parseInt(d[3],10)/100,bt=d[5]?parseFloat(d[5]):void 0,gt=(1-Math.abs(2*tt-1))*nt,wt=et/60,St=gt*(1-Math.abs(wt%2-1)),Mt=tt-gt/2;let _t,Tt,Bt;return wt>=0&&wt<1?(_t=gt,Tt=St,Bt=0):wt>=1&&wt<2?(_t=St,Tt=gt,Bt=0):wt>=2&&wt<3?(_t=0,Tt=gt,Bt=St):wt>=3&&wt<4?(_t=0,Tt=St,Bt=gt):wt>=4&&wt<5?(_t=St,Tt=0,Bt=gt):(_t=gt,Tt=0,Bt=St),{r:Math.round((_t+Mt)*255),g:Math.round((Tt+Mt)*255),b:Math.round((Bt+Mt)*255),a:bt||1}}function toRgba(c){return isHexColor(c)?hexToRgba(c):c.startsWith("rgb")?rgbStringToRgba(c):c.startsWith("hsl")?hslStringToRgba(c):{r:0,g:0,b:0,a:1}}function darken(c,a){if(c.startsWith("var("))return`color-mix(in srgb, ${c}, black ${a*100}%)`;const{r:d,g:et,b:nt,a:tt}=toRgba(c),bt=1-a,gt=wt=>Math.round(wt*bt);return`rgba(${gt(d)}, ${gt(et)}, ${gt(nt)}, ${tt})`}function getPrimaryShade(c,a){return typeof c.primaryShade=="number"?c.primaryShade:a==="dark"?c.primaryShade.dark:c.primaryShade.light}function gammaCorrect(c){return c<=.03928?c/12.92:((c+.055)/1.055)**2.4}function getLightnessFromOklch(c){const a=c.match(/oklch\((.*?)%\s/);return a?parseFloat(a[1]):null}function luminance(c){if(c.startsWith("oklch("))return(getLightnessFromOklch(c)||0)/100;const{r:a,g:d,b:et}=toRgba(c),nt=a/255,tt=d/255,bt=et/255,gt=gammaCorrect(nt),wt=gammaCorrect(tt),St=gammaCorrect(bt);return .2126*gt+.7152*wt+.0722*St}function isLightColor(c,a=.179){return c.startsWith("var(")?!1:luminance(c)>a}function parseThemeColor({color:c,theme:a,colorScheme:d}){if(typeof c!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof c}`);if(c==="bright")return{color:c,value:d==="dark"?a.white:a.black,shade:void 0,isThemeColor:!1,isLight:isLightColor(d==="dark"?a.white:a.black,a.luminanceThreshold),variable:"--mantine-color-bright"};if(c==="dimmed")return{color:c,value:d==="dark"?a.colors.dark[2]:a.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:isLightColor(d==="dark"?a.colors.dark[2]:a.colors.gray[6],a.luminanceThreshold),variable:"--mantine-color-dimmed"};if(c==="white"||c==="black")return{color:c,value:c==="white"?a.white:a.black,shade:void 0,isThemeColor:!1,isLight:isLightColor(c==="white"?a.white:a.black,a.luminanceThreshold),variable:`--mantine-color-${c}`};const[et,nt]=c.split("."),tt=nt?Number(nt):void 0,bt=et in a.colors;if(bt){const gt=tt!==void 0?a.colors[et][tt]:a.colors[et][getPrimaryShade(a,d||"light")];return{color:et,value:gt,shade:tt,isThemeColor:bt,isLight:isLightColor(gt,a.luminanceThreshold),variable:nt?`--mantine-color-${et}-${tt}`:`--mantine-color-${et}-filled`}}return{color:c,value:c,isThemeColor:bt,isLight:isLightColor(c,a.luminanceThreshold),shade:tt,variable:void 0}}function getThemeColor(c,a){const d=parseThemeColor({color:c||a.primaryColor,theme:a});return d.variable?`var(${d.variable})`:c}function getGradient(c,a){const d={from:(c==null?void 0:c.from)||a.defaultGradient.from,to:(c==null?void 0:c.to)||a.defaultGradient.to,deg:(c==null?void 0:c.deg)||a.defaultGradient.deg||0},et=getThemeColor(d.from,a),nt=getThemeColor(d.to,a);return`linear-gradient(${d.deg}deg, ${et} 0%, ${nt} 100%)`}function rgba(c,a){if(typeof c!="string"||a>1||a<0)return"rgba(0, 0, 0, 1)";if(c.startsWith("var(")){const tt=(1-a)*100;return`color-mix(in srgb, ${c}, transparent ${tt}%)`}if(c.startsWith("oklch"))return c.includes("/")?c.replace(/\/\s*[\d.]+\s*\)/,`/ ${a})`):c.replace(")",` / ${a})`);const{r:d,g:et,b:nt}=toRgba(c);return`rgba(${d}, ${et}, ${nt}, ${a})`}const alpha=rgba,defaultVariantColorsResolver=({color:c,theme:a,variant:d,gradient:et,autoContrast:nt})=>{const tt=parseThemeColor({color:c,theme:a}),bt=typeof nt=="boolean"?nt:a.autoContrast;if(d==="filled"){const gt=bt&&tt.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return tt.isThemeColor?tt.shade===void 0?{background:`var(--mantine-color-${c}-filled)`,hover:`var(--mantine-color-${c}-filled-hover)`,color:gt,border:`${rem(1)} solid transparent`}:{background:`var(--mantine-color-${tt.color}-${tt.shade})`,hover:`var(--mantine-color-${tt.color}-${tt.shade===9?8:tt.shade+1})`,color:gt,border:`${rem(1)} solid transparent`}:{background:c,hover:darken(c,.1),color:gt,border:`${rem(1)} solid transparent`}}if(d==="light"){if(tt.isThemeColor){if(tt.shade===void 0)return{background:`var(--mantine-color-${c}-light)`,hover:`var(--mantine-color-${c}-light-hover)`,color:`var(--mantine-color-${c}-light-color)`,border:`${rem(1)} solid transparent`};const gt=a.colors[tt.color][tt.shade];return{background:rgba(gt,.1),hover:rgba(gt,.12),color:`var(--mantine-color-${tt.color}-${Math.min(tt.shade,6)})`,border:`${rem(1)} solid transparent`}}return{background:rgba(c,.1),hover:rgba(c,.12),color:c,border:`${rem(1)} solid transparent`}}if(d==="outline")return tt.isThemeColor?tt.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${c}-outline-hover)`,color:`var(--mantine-color-${c}-outline)`,border:`${rem(1)} solid var(--mantine-color-${c}-outline)`}:{background:"transparent",hover:rgba(a.colors[tt.color][tt.shade],.05),color:`var(--mantine-color-${tt.color}-${tt.shade})`,border:`${rem(1)} solid var(--mantine-color-${tt.color}-${tt.shade})`}:{background:"transparent",hover:rgba(c,.05),color:c,border:`${rem(1)} solid ${c}`};if(d==="subtle"){if(tt.isThemeColor){if(tt.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${c}-light-hover)`,color:`var(--mantine-color-${c}-light-color)`,border:`${rem(1)} solid transparent`};const gt=a.colors[tt.color][tt.shade];return{background:"transparent",hover:rgba(gt,.12),color:`var(--mantine-color-${tt.color}-${Math.min(tt.shade,6)})`,border:`${rem(1)} solid transparent`}}return{background:"transparent",hover:rgba(c,.12),color:c,border:`${rem(1)} solid transparent`}}return d==="transparent"?tt.isThemeColor?tt.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${c}-light-color)`,border:`${rem(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${tt.color}-${Math.min(tt.shade,6)})`,border:`${rem(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:c,border:`${rem(1)} solid transparent`}:d==="white"?tt.isThemeColor?tt.shade===void 0?{background:"var(--mantine-color-white)",hover:darken(a.white,.01),color:`var(--mantine-color-${c}-filled)`,border:`${rem(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:darken(a.white,.01),color:`var(--mantine-color-${tt.color}-${tt.shade})`,border:`${rem(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:darken(a.white,.01),color:c,border:`${rem(1)} solid transparent`}:d==="gradient"?{background:getGradient(et,a),hover:getGradient(et,a),color:"var(--mantine-color-white)",border:"none"}:d==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${rem(1)} solid var(--mantine-color-default-border)`}:{}},DEFAULT_COLORS={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},DEFAULT_FONT_FAMILY="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",DEFAULT_THEME={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:DEFAULT_COLORS,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:defaultVariantColorsResolver,autoContrast:!1,luminanceThreshold:.3,fontFamily:DEFAULT_FONT_FAMILY,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:DEFAULT_FONT_FAMILY,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:rem(34),lineHeight:"1.3"},h2:{fontSize:rem(26),lineHeight:"1.35"},h3:{fontSize:rem(22),lineHeight:"1.4"},h4:{fontSize:rem(18),lineHeight:"1.45"},h5:{fontSize:rem(16),lineHeight:"1.5"},h6:{fontSize:rem(14),lineHeight:"1.5"}}},fontSizes:{xs:rem(12),sm:rem(14),md:rem(16),lg:rem(18),xl:rem(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:rem(2),sm:rem(4),md:rem(8),lg:rem(16),xl:rem(32)},spacing:{xs:rem(10),sm:rem(12),md:rem(16),lg:rem(20),xl:rem(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${rem(1)} ${rem(3)} rgba(0, 0, 0, 0.05), 0 ${rem(1)} ${rem(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${rem(1)} ${rem(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${rem(10)} ${rem(15)} ${rem(-5)}, rgba(0, 0, 0, 0.04) 0 ${rem(7)} ${rem(7)} ${rem(-5)}`,md:`0 ${rem(1)} ${rem(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${rem(20)} ${rem(25)} ${rem(-5)}, rgba(0, 0, 0, 0.04) 0 ${rem(10)} ${rem(10)} ${rem(-5)}`,lg:`0 ${rem(1)} ${rem(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${rem(28)} ${rem(23)} ${rem(-7)}, rgba(0, 0, 0, 0.04) 0 ${rem(12)} ${rem(12)} ${rem(-7)}`,xl:`0 ${rem(1)} ${rem(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${rem(36)} ${rem(28)} ${rem(-7)}, rgba(0, 0, 0, 0.04) 0 ${rem(17)} ${rem(17)} ${rem(-7)}`},other:{},components:{}};function isMantineColorScheme(c){return c==="auto"||c==="dark"||c==="light"}function localStorageColorSchemeManager({key:c="mantine-color-scheme-value"}={}){let a;return{get:d=>{if(typeof window>"u")return d;try{const et=window.localStorage.getItem(c);return isMantineColorScheme(et)?et:d}catch{return d}},set:d=>{try{window.localStorage.setItem(c,d)}catch(et){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",et)}},subscribe:d=>{a=et=>{et.storageArea===window.localStorage&&et.key===c&&isMantineColorScheme(et.newValue)&&d(et.newValue)},window.addEventListener("storage",a)},unsubscribe:()=>{window.removeEventListener("storage",a)},clear:()=>{window.localStorage.removeItem(c)}}}const INVALID_PRIMARY_COLOR_ERROR="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",INVALID_PRIMARY_SHADE_ERROR="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function isValidPrimaryShade(c){return c<0||c>9?!1:parseInt(c.toString(),10)===c}function validateMantineTheme(c){if(!(c.primaryColor in c.colors))throw new Error(INVALID_PRIMARY_COLOR_ERROR);if(typeof c.primaryShade=="object"&&(!isValidPrimaryShade(c.primaryShade.dark)||!isValidPrimaryShade(c.primaryShade.light)))throw new Error(INVALID_PRIMARY_SHADE_ERROR);if(typeof c.primaryShade=="number"&&!isValidPrimaryShade(c.primaryShade))throw new Error(INVALID_PRIMARY_SHADE_ERROR)}function mergeMantineTheme(c,a){var et;if(!a)return validateMantineTheme(c),c;const d=deepMerge(c,a);return a.fontFamily&&!((et=a.headings)!=null&&et.fontFamily)&&(d.headings.fontFamily=a.fontFamily),validateMantineTheme(d),d}const MantineThemeContext=reactExports.createContext(null),useSafeMantineTheme=()=>reactExports.useContext(MantineThemeContext)||DEFAULT_THEME;function useMantineTheme(){const c=reactExports.useContext(MantineThemeContext);if(!c)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return c}function MantineThemeProvider({theme:c,children:a,inherit:d=!0}){const et=useSafeMantineTheme(),nt=reactExports.useMemo(()=>mergeMantineTheme(d?et:DEFAULT_THEME,c),[c,et,d]);return React.createElement(MantineThemeContext.Provider,{value:nt},a)}MantineThemeProvider.displayName="@mantine/core/MantineThemeProvider";function MantineClasses(){const c=useMantineTheme(),a=useMantineStyleNonce(),d=keys(c.breakpoints).reduce((et,nt)=>{const tt=c.breakpoints[nt].includes("px"),bt=px(c.breakpoints[nt]),gt=tt?`${bt-.1}px`:em(bt-.1),wt=tt?`${bt}px`:em(bt);return`${et}@media (max-width: ${gt}) {.mantine-visible-from-${nt} {display: none !important;}}@media (min-width: ${wt}) {.mantine-hidden-from-${nt} {display: none !important;}}`},"");return React.createElement("style",{"data-mantine-styles":"classes",nonce:a==null?void 0:a(),dangerouslySetInnerHTML:{__html:d}})}function cssVariablesObjectToString(c){return Object.entries(c).map(([a,d])=>`${a}: ${d};`).join("")}function wrapWithSelector(c,a){return(Array.isArray(c)?c:[c]).reduce((et,nt)=>`${nt}{${et}}`,a)}function convertCssVariables(c,a){const d=cssVariablesObjectToString(c.variables),et=d?wrapWithSelector(a,d):"",nt=cssVariablesObjectToString(c.dark),tt=nt?wrapWithSelector(`${a}[data-mantine-color-scheme="dark"]`,nt):"",bt=cssVariablesObjectToString(c.light),gt=bt?wrapWithSelector(`${a}[data-mantine-color-scheme="light"]`,bt):"";return`${et}${tt}${gt}`}function getContrastColor({color:c,theme:a,autoContrast:d}){return(typeof d=="boolean"?d:a.autoContrast)&&parseThemeColor({color:c||a.primaryColor,theme:a}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function getPrimaryContrastColor(c,a){return getContrastColor({color:c.colors[c.primaryColor][getPrimaryShade(c,a)],theme:c,autoContrast:null})}function getCSSColorVariables({theme:c,color:a,colorScheme:d,name:et=a,withColorValues:nt=!0}){if(!c.colors[a])return{};if(d==="light"){const gt=getPrimaryShade(c,"light"),wt={[`--mantine-color-${et}-text`]:`var(--mantine-color-${et}-filled)`,[`--mantine-color-${et}-filled`]:`var(--mantine-color-${et}-${gt})`,[`--mantine-color-${et}-filled-hover`]:`var(--mantine-color-${et}-${gt===9?8:gt+1})`,[`--mantine-color-${et}-light`]:alpha(c.colors[a][gt],.1),[`--mantine-color-${et}-light-hover`]:alpha(c.colors[a][gt],.12),[`--mantine-color-${et}-light-color`]:`var(--mantine-color-${et}-${gt})`,[`--mantine-color-${et}-outline`]:`var(--mantine-color-${et}-${gt})`,[`--mantine-color-${et}-outline-hover`]:alpha(c.colors[a][gt],.05)};return nt?{[`--mantine-color-${et}-0`]:c.colors[a][0],[`--mantine-color-${et}-1`]:c.colors[a][1],[`--mantine-color-${et}-2`]:c.colors[a][2],[`--mantine-color-${et}-3`]:c.colors[a][3],[`--mantine-color-${et}-4`]:c.colors[a][4],[`--mantine-color-${et}-5`]:c.colors[a][5],[`--mantine-color-${et}-6`]:c.colors[a][6],[`--mantine-color-${et}-7`]:c.colors[a][7],[`--mantine-color-${et}-8`]:c.colors[a][8],[`--mantine-color-${et}-9`]:c.colors[a][9],...wt}:wt}const tt=getPrimaryShade(c,"dark"),bt={[`--mantine-color-${et}-text`]:`var(--mantine-color-${et}-4)`,[`--mantine-color-${et}-filled`]:`var(--mantine-color-${et}-${tt})`,[`--mantine-color-${et}-filled-hover`]:`var(--mantine-color-${et}-${tt===9?8:tt+1})`,[`--mantine-color-${et}-light`]:alpha(c.colors[a][Math.max(0,tt-2)],.15),[`--mantine-color-${et}-light-hover`]:alpha(c.colors[a][Math.max(0,tt-2)],.2),[`--mantine-color-${et}-light-color`]:`var(--mantine-color-${et}-${Math.max(tt-5,0)})`,[`--mantine-color-${et}-outline`]:`var(--mantine-color-${et}-${Math.max(tt-4,0)})`,[`--mantine-color-${et}-outline-hover`]:alpha(c.colors[a][Math.max(tt-4,0)],.05)};return nt?{[`--mantine-color-${et}-0`]:c.colors[a][0],[`--mantine-color-${et}-1`]:c.colors[a][1],[`--mantine-color-${et}-2`]:c.colors[a][2],[`--mantine-color-${et}-3`]:c.colors[a][3],[`--mantine-color-${et}-4`]:c.colors[a][4],[`--mantine-color-${et}-5`]:c.colors[a][5],[`--mantine-color-${et}-6`]:c.colors[a][6],[`--mantine-color-${et}-7`]:c.colors[a][7],[`--mantine-color-${et}-8`]:c.colors[a][8],[`--mantine-color-${et}-9`]:c.colors[a][9],...bt}:bt}function isVirtualColor(c){return!!c&&typeof c=="object"&&"mantine-virtual-color"in c}function assignSizeVariables(c,a,d){keys(a).forEach(et=>Object.assign(c,{[`--mantine-${d}-${et}`]:a[et]}))}const defaultCssVariablesResolver=c=>{const a=getPrimaryShade(c,"light"),d=c.defaultRadius in c.radius?c.radius[c.defaultRadius]:rem(c.defaultRadius),et={variables:{"--mantine-scale":c.scale.toString(),"--mantine-cursor-type":c.cursorType,"--mantine-color-scheme":"light dark","--mantine-webkit-font-smoothing":c.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":c.fontSmoothing?"grayscale":"unset","--mantine-color-white":c.white,"--mantine-color-black":c.black,"--mantine-line-height":c.lineHeights.md,"--mantine-font-family":c.fontFamily,"--mantine-font-family-monospace":c.fontFamilyMonospace,"--mantine-font-family-headings":c.headings.fontFamily,"--mantine-heading-font-weight":c.headings.fontWeight,"--mantine-heading-text-wrap":c.headings.textWrap,"--mantine-radius-default":d,"--mantine-primary-color-filled":`var(--mantine-color-${c.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${c.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${c.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${c.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${c.primaryColor}-light-color)`},light:{"--mantine-primary-color-contrast":getPrimaryContrastColor(c,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":c.black,"--mantine-color-body":c.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${c.primaryColor}-${a})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)"},dark:{"--mantine-primary-color-contrast":getPrimaryContrastColor(c,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${c.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)"}};assignSizeVariables(et.variables,c.breakpoints,"breakpoint"),assignSizeVariables(et.variables,c.spacing,"spacing"),assignSizeVariables(et.variables,c.fontSizes,"font-size"),assignSizeVariables(et.variables,c.lineHeights,"line-height"),assignSizeVariables(et.variables,c.shadows,"shadow"),assignSizeVariables(et.variables,c.radius,"radius"),c.colors[c.primaryColor].forEach((tt,bt)=>{et.variables[`--mantine-primary-color-${bt}`]=`var(--mantine-color-${c.primaryColor}-${bt})`}),keys(c.colors).forEach(tt=>{const bt=c.colors[tt];if(isVirtualColor(bt)){Object.assign(et.light,getCSSColorVariables({theme:c,name:bt.name,color:bt.light,colorScheme:"light",withColorValues:!0})),Object.assign(et.dark,getCSSColorVariables({theme:c,name:bt.name,color:bt.dark,colorScheme:"dark",withColorValues:!0}));return}bt.forEach((gt,wt)=>{et.variables[`--mantine-color-${tt}-${wt}`]=gt}),Object.assign(et.light,getCSSColorVariables({theme:c,color:tt,colorScheme:"light",withColorValues:!1})),Object.assign(et.dark,getCSSColorVariables({theme:c,color:tt,colorScheme:"dark",withColorValues:!1}))});const nt=c.headings.sizes;return keys(nt).forEach(tt=>{et.variables[`--mantine-${tt}-font-size`]=nt[tt].fontSize,et.variables[`--mantine-${tt}-line-height`]=nt[tt].lineHeight,et.variables[`--mantine-${tt}-font-weight`]=nt[tt].fontWeight||c.headings.fontWeight}),et};function getMergedVariables({theme:c,generator:a}){const d=defaultCssVariablesResolver(c),et=a==null?void 0:a(c);return et?deepMerge(d,et):d}const defaultCssVariables=defaultCssVariablesResolver(DEFAULT_THEME);function removeDefaultVariables(c){const a={variables:{},light:{},dark:{}};return keys(c.variables).forEach(d=>{defaultCssVariables.variables[d]!==c.variables[d]&&(a.variables[d]=c.variables[d])}),keys(c.light).forEach(d=>{defaultCssVariables.light[d]!==c.light[d]&&(a.light[d]=c.light[d])}),keys(c.dark).forEach(d=>{defaultCssVariables.dark[d]!==c.dark[d]&&(a.dark[d]=c.dark[d])}),a}function getColorSchemeCssVariables(c){return` +`)},idCounter=0,lockStack=[];function RemoveScrollSideCar(c){var a=reactExports.useRef([]),d=reactExports.useRef([0,0]),et=reactExports.useRef(),nt=reactExports.useState(idCounter++)[0],tt=reactExports.useState(styleSingleton)[0],bt=reactExports.useRef(c);reactExports.useEffect(function(){bt.current=c},[c]),reactExports.useEffect(function(){if(c.inert){document.body.classList.add("block-interactivity-".concat(nt));var It=__spreadArray$1([c.lockRef.current],(c.shards||[]).map(extractRef),!0).filter(Boolean);return It.forEach(function(Lt){return Lt.classList.add("allow-interactivity-".concat(nt))}),function(){document.body.classList.remove("block-interactivity-".concat(nt)),It.forEach(function(Lt){return Lt.classList.remove("allow-interactivity-".concat(nt))})}}},[c.inert,c.lockRef.current,c.shards]);var gt=reactExports.useCallback(function(It,Lt){if("touches"in It&&It.touches.length===2)return!bt.current.allowPinchZoom;var Ot=getTouchXY(It),Nt=d.current,Ft="deltaX"in It?It.deltaX:Nt[0]-Ot[0],jt="deltaY"in It?It.deltaY:Nt[1]-Ot[1],Vt,Jt=It.target,ir=Math.abs(Ft)>Math.abs(jt)?"h":"v";if("touches"in It&&ir==="h"&&Jt.type==="range")return!1;var rr=locationCouldBeScrolled(ir,Jt);if(!rr)return!0;if(rr?Vt=ir:(Vt=ir==="v"?"h":"v",rr=locationCouldBeScrolled(ir,Jt)),!rr)return!1;if(!et.current&&"changedTouches"in It&&(Ft||jt)&&(et.current=Vt),!Vt)return!0;var er=et.current||Vt;return handleScroll(er,Lt,It,er==="h"?Ft:jt,!0)},[]),wt=reactExports.useCallback(function(It){var Lt=It;if(!(!lockStack.length||lockStack[lockStack.length-1]!==tt)){var Ot="deltaY"in Lt?getDeltaXY(Lt):getTouchXY(Lt),Nt=a.current.filter(function(Vt){return Vt.name===Lt.type&&(Vt.target===Lt.target||Lt.target===Vt.shadowParent)&&deltaCompare(Vt.delta,Ot)})[0];if(Nt&&Nt.should){Lt.cancelable&&Lt.preventDefault();return}if(!Nt){var Ft=(bt.current.shards||[]).map(extractRef).filter(Boolean).filter(function(Vt){return Vt.contains(Lt.target)}),jt=Ft.length>0?gt(Lt,Ft[0]):!bt.current.noIsolation;jt&&Lt.cancelable&&Lt.preventDefault()}}},[]),St=reactExports.useCallback(function(It,Lt,Ot,Nt){var Ft={name:It,delta:Lt,target:Ot,should:Nt,shadowParent:getOutermostShadowParent(Ot)};a.current.push(Ft),setTimeout(function(){a.current=a.current.filter(function(jt){return jt!==Ft})},1)},[]),Mt=reactExports.useCallback(function(It){d.current=getTouchXY(It),et.current=void 0},[]),_t=reactExports.useCallback(function(It){St(It.type,getDeltaXY(It),It.target,gt(It,c.lockRef.current))},[]),Tt=reactExports.useCallback(function(It){St(It.type,getTouchXY(It),It.target,gt(It,c.lockRef.current))},[]);reactExports.useEffect(function(){return lockStack.push(tt),c.setCallbacks({onScrollCapture:_t,onWheelCapture:_t,onTouchMoveCapture:Tt}),document.addEventListener("wheel",wt,nonPassive),document.addEventListener("touchmove",wt,nonPassive),document.addEventListener("touchstart",Mt,nonPassive),function(){lockStack=lockStack.filter(function(It){return It!==tt}),document.removeEventListener("wheel",wt,nonPassive),document.removeEventListener("touchmove",wt,nonPassive),document.removeEventListener("touchstart",Mt,nonPassive)}},[]);var Rt=c.removeScrollBar,kt=c.inert;return reactExports.createElement(reactExports.Fragment,null,kt?reactExports.createElement(tt,{styles:generateStyle(nt)}):null,Rt?reactExports.createElement(RemoveScrollBar,{gapMode:c.gapMode}):null)}function getOutermostShadowParent(c){for(var a=null;c!==null;)c instanceof ShadowRoot&&(a=c.host,c=c.host),c=c.parentNode;return a}const SideCar=exportSidecar(effectCar,RemoveScrollSideCar);var ReactRemoveScroll=reactExports.forwardRef(function(c,a){return reactExports.createElement(RemoveScroll$1,__assign$1({},c,{ref:a,sideCar:SideCar}))});ReactRemoveScroll.classNames=RemoveScroll$1.classNames;const RemoveScroll=ReactRemoveScroll;function keys(c){return Object.keys(c)}function isObject$1(c){return c&&typeof c=="object"&&!Array.isArray(c)}function deepMerge(c,a){const d={...c},et=a;return isObject$1(c)&&isObject$1(a)&&Object.keys(a).forEach(nt=>{isObject$1(et[nt])&&nt in c?d[nt]=deepMerge(d[nt],et[nt]):d[nt]=et[nt]}),d}function camelToKebabCase(c){return c.replace(/[A-Z]/g,a=>`-${a.toLowerCase()}`)}function getTransformedScaledValue(c){var a;return typeof c!="string"||!c.includes("var(--mantine-scale)")?c:(a=c.match(/^calc\((.*?)\)$/))==null?void 0:a[1].split("*")[0].trim()}function px(c){const a=getTransformedScaledValue(c);return typeof a=="number"?a:typeof a=="string"?a.includes("calc")||a.includes("var")?a:a.includes("px")?Number(a.replace("px","")):a.includes("rem")?Number(a.replace("rem",""))*16:a.includes("em")?Number(a.replace("em",""))*16:Number(a):NaN}function scaleRem(c){return c==="0rem"?"0rem":`calc(${c} * var(--mantine-scale))`}function createConverter(c,{shouldScale:a=!1}={}){function d(et){if(et===0||et==="0")return`0${c}`;if(typeof et=="number"){const nt=`${et/16}${c}`;return a?scaleRem(nt):nt}if(typeof et=="string"){if(et===""||et.startsWith("calc(")||et.startsWith("clamp(")||et.includes("rgba("))return et;if(et.includes(","))return et.split(",").map(tt=>d(tt)).join(",");if(et.includes(" "))return et.split(" ").map(tt=>d(tt)).join(" ");if(et.includes(c))return a?scaleRem(et):et;const nt=et.replace("px","");if(!Number.isNaN(Number(nt))){const tt=`${Number(nt)/16}${c}`;return a?scaleRem(tt):tt}}return et}return d}const rem=createConverter("rem",{shouldScale:!0}),em=createConverter("em");function filterProps(c){return Object.keys(c).reduce((a,d)=>(c[d]!==void 0&&(a[d]=c[d]),a),{})}function isNumberLike(c){return typeof c=="number"?!0:typeof c=="string"?c.startsWith("calc(")||c.startsWith("var(")||c.includes(" ")&&c.trim()!==""?!0:/[0-9]/.test(c.trim().replace("-","")[0]):!1}function isElement$1(c){return Array.isArray(c)||c===null?!1:typeof c=="object"?c.type!==React.Fragment:!1}function createSafeContext(c){const a=reactExports.createContext(null);return[({children:nt,value:tt})=>React.createElement(a.Provider,{value:tt},nt),()=>{const nt=reactExports.useContext(a);if(nt===null)throw new Error(c);return nt}]}function createOptionalContext(c=null){const a=reactExports.createContext(c);return[({children:nt,value:tt})=>React.createElement(a.Provider,{value:tt},nt),()=>reactExports.useContext(a)]}const elevations={app:100,modal:200,popover:300,overlay:400,max:9999};function getDefaultZIndex(c){return elevations[c]}const noop$2=()=>{};function closeOnEscape(c,a={active:!0}){return typeof c!="function"||!a.active?a.onKeyDown||noop$2:d=>{var et;d.key==="Escape"&&(c(d),(et=a.onTrigger)==null||et.call(a))}}function getSize(c,a="size",d=!0){if(c!==void 0)return isNumberLike(c)?d?rem(c):c:`var(--${a}-${c})`}function getSpacing(c){return getSize(c,"mantine-spacing")}function getRadius(c){return c===void 0?"var(--mantine-radius-default)":getSize(c,"mantine-radius")}function getFontSize(c){return getSize(c,"mantine-font-size")}function getLineHeight(c){return getSize(c,"mantine-line-height",!1)}function getShadow(c){if(c)return getSize(c,"mantine-shadow",!1)}function getBreakpointValue$1(c,a){return c in a.breakpoints?px(a.breakpoints[c]):px(c)}function getSortedBreakpoints(c,a){const d=c.map(et=>({value:et,px:getBreakpointValue$1(et,a)}));return d.sort((et,nt)=>et.px-nt.px),d}function clamp$1(c,a,d){return a===void 0&&d===void 0?c:a!==void 0&&d===void 0?Math.max(c,a):Math.min(a===void 0&&d!==void 0?c:Math.max(c,a),d)}function randomId(){return`mantine-${Math.random().toString(36).slice(2,11)}`}const DEFAULT_EVENTS=["mousedown","touchstart"];function useClickOutside(c,a,d){const et=reactExports.useRef();return reactExports.useEffect(()=>{const nt=tt=>{const{target:bt}=tt??{};if(Array.isArray(d)){const gt=(bt==null?void 0:bt.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(bt)&&bt.tagName!=="HTML";d.every(St=>!!St&&!tt.composedPath().includes(St))&&!gt&&c()}else et.current&&!et.current.contains(bt)&&c()};return(a||DEFAULT_EVENTS).forEach(tt=>document.addEventListener(tt,nt)),()=>{(a||DEFAULT_EVENTS).forEach(tt=>document.removeEventListener(tt,nt))}},[et,c,d]),et}function attachMediaListener(c,a){try{return c.addEventListener("change",a),()=>c.removeEventListener("change",a)}catch{return c.addListener(a),()=>c.removeListener(a)}}function getInitialValue(c,a){return typeof a=="boolean"?a:typeof window<"u"&&"matchMedia"in window?window.matchMedia(c).matches:!1}function useMediaQuery(c,a,{getInitialValueInEffect:d}={getInitialValueInEffect:!0}){const[et,nt]=reactExports.useState(d?a:getInitialValue(c)),tt=reactExports.useRef();return reactExports.useEffect(()=>{if("matchMedia"in window)return tt.current=window.matchMedia(c),nt(tt.current.matches),attachMediaListener(tt.current,bt=>nt(bt.matches))},[c]),et}function useColorScheme(c,a){return useMediaQuery("(prefers-color-scheme: dark)",c==="dark",a)?"dark":"light"}const useIsomorphicEffect=typeof document<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function useDidUpdate(c,a){const d=reactExports.useRef(!1);reactExports.useEffect(()=>()=>{d.current=!1},[]),reactExports.useEffect(()=>{if(d.current)return c();d.current=!0},a)}function useFocusReturn({opened:c,shouldReturnFocus:a=!0}){const d=reactExports.useRef(),et=()=>{var nt;d.current&&"focus"in d.current&&typeof d.current.focus=="function"&&((nt=d.current)==null||nt.focus({preventScroll:!0}))};return useDidUpdate(()=>{let nt=-1;const tt=bt=>{bt.key==="Tab"&&window.clearTimeout(nt)};return document.addEventListener("keydown",tt),c?d.current=document.activeElement:a&&(nt=window.setTimeout(et,10)),()=>{window.clearTimeout(nt),document.removeEventListener("keydown",tt)}},[c,a]),et}function createAriaHider(c,a="body > :not(script)"){const d=randomId(),et=Array.from(document.querySelectorAll(a)).map(nt=>{var wt;if((wt=nt==null?void 0:nt.shadowRoot)!=null&&wt.contains(c)||nt.contains(c))return;const tt=nt.getAttribute("aria-hidden"),bt=nt.getAttribute("data-hidden"),gt=nt.getAttribute("data-focus-id");return nt.setAttribute("data-focus-id",d),tt===null||tt==="false"?nt.setAttribute("aria-hidden","true"):!bt&&!gt&&nt.setAttribute("data-hidden",tt),{node:nt,ariaHidden:bt||null}});return()=>{et.forEach(nt=>{!nt||d!==nt.node.getAttribute("data-focus-id")||(nt.ariaHidden===null?nt.node.removeAttribute("aria-hidden"):nt.node.setAttribute("aria-hidden",nt.ariaHidden),nt.node.removeAttribute("data-focus-id"),nt.node.removeAttribute("data-hidden"))})}}const TABBABLE_NODES=/input|select|textarea|button|object/,FOCUS_SELECTOR="a, input, select, textarea, button, object, [tabindex]";function hidden(c){return c.style.display==="none"}function visible(c){if(c.getAttribute("aria-hidden")||c.getAttribute("hidden")||c.getAttribute("type")==="hidden")return!1;let d=c;for(;d&&!(d===document.body||d.nodeType===11);){if(hidden(d))return!1;d=d.parentNode}return!0}function getElementTabIndex(c){let a=c.getAttribute("tabindex");return a===null&&(a=void 0),parseInt(a,10)}function focusable(c){const a=c.nodeName.toLowerCase(),d=!Number.isNaN(getElementTabIndex(c));return(TABBABLE_NODES.test(a)&&!c.disabled||c instanceof HTMLAnchorElement&&c.href||d)&&visible(c)}function tabbable(c){const a=getElementTabIndex(c);return(Number.isNaN(a)||a>=0)&&focusable(c)}function findTabbableDescendants(c){return Array.from(c.querySelectorAll(FOCUS_SELECTOR)).filter(tabbable)}function scopeTab(c,a){const d=findTabbableDescendants(c);if(!d.length){a.preventDefault();return}const et=d[a.shiftKey?0:d.length-1],nt=c.getRootNode();let tt=et===nt.activeElement||c===nt.activeElement;const bt=nt.activeElement;if(bt.tagName==="INPUT"&&bt.getAttribute("type")==="radio"&&(tt=d.filter(Mt=>Mt.getAttribute("type")==="radio"&&Mt.getAttribute("name")===bt.getAttribute("name")).includes(et)),!tt)return;a.preventDefault();const wt=d[a.shiftKey?d.length-1:0];wt&&wt.focus()}function useFocusTrap(c=!0){const a=reactExports.useRef(),d=reactExports.useRef(null),et=tt=>{let bt=tt.querySelector("[data-autofocus]");if(!bt){const gt=Array.from(tt.querySelectorAll(FOCUS_SELECTOR));bt=gt.find(tabbable)||gt.find(focusable)||null,!bt&&focusable(tt)&&(bt=tt)}bt&&bt.focus({preventScroll:!0})},nt=reactExports.useCallback(tt=>{if(c){if(tt===null){d.current&&(d.current(),d.current=null);return}d.current=createAriaHider(tt),a.current!==tt&&(tt?(setTimeout(()=>{tt.getRootNode()&&et(tt)}),a.current=tt):a.current=null)}},[c]);return reactExports.useEffect(()=>{if(!c)return;a.current&&setTimeout(()=>et(a.current));const tt=bt=>{bt.key==="Tab"&&a.current&&scopeTab(a.current,bt)};return document.addEventListener("keydown",tt),()=>{document.removeEventListener("keydown",tt),d.current&&d.current()}},[c]),nt}const __useId=React["useId".toString()]||(()=>{});function useReactId$1(){const c=__useId();return c?`mantine-${c.replace(/:/g,"")}`:""}function useId$1(c){const a=useReactId$1(),[d,et]=reactExports.useState(a);return useIsomorphicEffect(()=>{et(randomId())},[]),typeof c=="string"?c:typeof window>"u"?a:d}function useWindowEvent(c,a,d){reactExports.useEffect(()=>(window.addEventListener(c,a,d),()=>window.removeEventListener(c,a,d)),[c,a])}function assignRef(c,a){typeof c=="function"?c(a):typeof c=="object"&&c!==null&&"current"in c&&(c.current=a)}function mergeRefs(...c){return a=>{c.forEach(d=>assignRef(d,a))}}function useMergedRef(...c){return reactExports.useCallback(mergeRefs(...c),c)}function useUncontrolled({value:c,defaultValue:a,finalValue:d,onChange:et=()=>{}}){const[nt,tt]=reactExports.useState(a!==void 0?a:d),bt=(gt,...wt)=>{tt(gt),et==null||et(gt,...wt)};return c!==void 0?[c,et,!0]:[nt,bt,!1]}function useReducedMotion(c,a){return useMediaQuery("(prefers-reduced-motion: reduce)",c,a)}function useDisclosure(c=!1,a){const{onOpen:d,onClose:et}=a||{},[nt,tt]=reactExports.useState(c),bt=reactExports.useCallback(()=>{tt(St=>St||(d==null||d(),!0))},[d]),gt=reactExports.useCallback(()=>{tt(St=>St&&(et==null||et(),!1))},[et]),wt=reactExports.useCallback(()=>{nt?gt():bt()},[gt,bt,nt]);return[nt,{open:bt,close:gt,toggle:wt}]}var dist$2={};(function(c){Object.defineProperty(c,Symbol.toStringTag,{value:"Module"});const a=bufferPolyfill,d=browserExports$1,et=bt=>bt&&bt.__esModule?bt:{default:bt},nt=et(d),tt=globalThis||void 0||self;Object.defineProperty(c,"Buffer",{enumerable:!0,get:()=>a.Buffer}),Object.defineProperty(c,"process",{enumerable:!0,get:()=>nt.default}),c.global=tt})(dist$2);function createVarsResolver(c){return c}function r$5(c){var a,d,et="";if(typeof c=="string"||typeof c=="number")et+=c;else if(typeof c=="object")if(Array.isArray(c)){var nt=c.length;for(a=0;a{Object.entries(d).forEach(([et,nt])=>{a[et]?a[et]=clsx(a[et],nt):a[et]=nt})}),a}function resolveClassNames({theme:c,classNames:a,props:d,stylesCtx:et}){const tt=(Array.isArray(a)?a:[a]).map(bt=>typeof bt=="function"?bt(c,d,et):bt||EMPTY_CLASS_NAMES);return mergeClassNames(tt)}function resolveStyles({theme:c,styles:a,props:d,stylesCtx:et}){return(Array.isArray(a)?a:[a]).reduce((tt,bt)=>typeof bt=="function"?{...tt,...bt(c,d,et)}:{...tt,...bt},{})}const MantineContext=reactExports.createContext(null);function useMantineContext(){const c=reactExports.useContext(MantineContext);if(!c)throw new Error("[@mantine/core] MantineProvider was not found in tree");return c}function useMantineCssVariablesResolver(){return useMantineContext().cssVariablesResolver}function useMantineClassNamesPrefix(){return useMantineContext().classNamesPrefix}function useMantineStyleNonce(){return useMantineContext().getStyleNonce}function useMantineWithStaticClasses(){return useMantineContext().withStaticClasses}function useMantineIsHeadless(){return useMantineContext().headless}function isHexColor(c){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(c)}function hexToRgba(c){let a=c.replace("#","");if(a.length===3){const bt=a.split("");a=[bt[0],bt[0],bt[1],bt[1],bt[2],bt[2]].join("")}if(a.length===8){const bt=parseInt(a.slice(6,8),16)/255;return{r:parseInt(a.slice(0,2),16),g:parseInt(a.slice(2,4),16),b:parseInt(a.slice(4,6),16),a:bt}}const d=parseInt(a,16),et=d>>16&255,nt=d>>8&255,tt=d&255;return{r:et,g:nt,b:tt,a:1}}function rgbStringToRgba(c){const[a,d,et,nt]=c.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:a,g:d,b:et,a:nt||1}}function hslStringToRgba(c){const a=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,d=c.match(a);if(!d)return{r:0,g:0,b:0,a:1};const et=parseInt(d[1],10),nt=parseInt(d[2],10)/100,tt=parseInt(d[3],10)/100,bt=d[5]?parseFloat(d[5]):void 0,gt=(1-Math.abs(2*tt-1))*nt,wt=et/60,St=gt*(1-Math.abs(wt%2-1)),Mt=tt-gt/2;let _t,Tt,Rt;return wt>=0&&wt<1?(_t=gt,Tt=St,Rt=0):wt>=1&&wt<2?(_t=St,Tt=gt,Rt=0):wt>=2&&wt<3?(_t=0,Tt=gt,Rt=St):wt>=3&&wt<4?(_t=0,Tt=St,Rt=gt):wt>=4&&wt<5?(_t=St,Tt=0,Rt=gt):(_t=gt,Tt=0,Rt=St),{r:Math.round((_t+Mt)*255),g:Math.round((Tt+Mt)*255),b:Math.round((Rt+Mt)*255),a:bt||1}}function toRgba(c){return isHexColor(c)?hexToRgba(c):c.startsWith("rgb")?rgbStringToRgba(c):c.startsWith("hsl")?hslStringToRgba(c):{r:0,g:0,b:0,a:1}}function darken(c,a){if(c.startsWith("var("))return`color-mix(in srgb, ${c}, black ${a*100}%)`;const{r:d,g:et,b:nt,a:tt}=toRgba(c),bt=1-a,gt=wt=>Math.round(wt*bt);return`rgba(${gt(d)}, ${gt(et)}, ${gt(nt)}, ${tt})`}function getPrimaryShade(c,a){return typeof c.primaryShade=="number"?c.primaryShade:a==="dark"?c.primaryShade.dark:c.primaryShade.light}function gammaCorrect(c){return c<=.03928?c/12.92:((c+.055)/1.055)**2.4}function getLightnessFromOklch(c){const a=c.match(/oklch\((.*?)%\s/);return a?parseFloat(a[1]):null}function luminance(c){if(c.startsWith("oklch("))return(getLightnessFromOklch(c)||0)/100;const{r:a,g:d,b:et}=toRgba(c),nt=a/255,tt=d/255,bt=et/255,gt=gammaCorrect(nt),wt=gammaCorrect(tt),St=gammaCorrect(bt);return .2126*gt+.7152*wt+.0722*St}function isLightColor(c,a=.179){return c.startsWith("var(")?!1:luminance(c)>a}function parseThemeColor({color:c,theme:a,colorScheme:d}){if(typeof c!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof c}`);if(c==="bright")return{color:c,value:d==="dark"?a.white:a.black,shade:void 0,isThemeColor:!1,isLight:isLightColor(d==="dark"?a.white:a.black,a.luminanceThreshold),variable:"--mantine-color-bright"};if(c==="dimmed")return{color:c,value:d==="dark"?a.colors.dark[2]:a.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:isLightColor(d==="dark"?a.colors.dark[2]:a.colors.gray[6],a.luminanceThreshold),variable:"--mantine-color-dimmed"};if(c==="white"||c==="black")return{color:c,value:c==="white"?a.white:a.black,shade:void 0,isThemeColor:!1,isLight:isLightColor(c==="white"?a.white:a.black,a.luminanceThreshold),variable:`--mantine-color-${c}`};const[et,nt]=c.split("."),tt=nt?Number(nt):void 0,bt=et in a.colors;if(bt){const gt=tt!==void 0?a.colors[et][tt]:a.colors[et][getPrimaryShade(a,d||"light")];return{color:et,value:gt,shade:tt,isThemeColor:bt,isLight:isLightColor(gt,a.luminanceThreshold),variable:nt?`--mantine-color-${et}-${tt}`:`--mantine-color-${et}-filled`}}return{color:c,value:c,isThemeColor:bt,isLight:isLightColor(c,a.luminanceThreshold),shade:tt,variable:void 0}}function getThemeColor(c,a){const d=parseThemeColor({color:c||a.primaryColor,theme:a});return d.variable?`var(${d.variable})`:c}function getGradient(c,a){const d={from:(c==null?void 0:c.from)||a.defaultGradient.from,to:(c==null?void 0:c.to)||a.defaultGradient.to,deg:(c==null?void 0:c.deg)||a.defaultGradient.deg||0},et=getThemeColor(d.from,a),nt=getThemeColor(d.to,a);return`linear-gradient(${d.deg}deg, ${et} 0%, ${nt} 100%)`}function rgba(c,a){if(typeof c!="string"||a>1||a<0)return"rgba(0, 0, 0, 1)";if(c.startsWith("var(")){const tt=(1-a)*100;return`color-mix(in srgb, ${c}, transparent ${tt}%)`}if(c.startsWith("oklch"))return c.includes("/")?c.replace(/\/\s*[\d.]+\s*\)/,`/ ${a})`):c.replace(")",` / ${a})`);const{r:d,g:et,b:nt}=toRgba(c);return`rgba(${d}, ${et}, ${nt}, ${a})`}const alpha=rgba,defaultVariantColorsResolver=({color:c,theme:a,variant:d,gradient:et,autoContrast:nt})=>{const tt=parseThemeColor({color:c,theme:a}),bt=typeof nt=="boolean"?nt:a.autoContrast;if(d==="filled"){const gt=bt&&tt.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return tt.isThemeColor?tt.shade===void 0?{background:`var(--mantine-color-${c}-filled)`,hover:`var(--mantine-color-${c}-filled-hover)`,color:gt,border:`${rem(1)} solid transparent`}:{background:`var(--mantine-color-${tt.color}-${tt.shade})`,hover:`var(--mantine-color-${tt.color}-${tt.shade===9?8:tt.shade+1})`,color:gt,border:`${rem(1)} solid transparent`}:{background:c,hover:darken(c,.1),color:gt,border:`${rem(1)} solid transparent`}}if(d==="light"){if(tt.isThemeColor){if(tt.shade===void 0)return{background:`var(--mantine-color-${c}-light)`,hover:`var(--mantine-color-${c}-light-hover)`,color:`var(--mantine-color-${c}-light-color)`,border:`${rem(1)} solid transparent`};const gt=a.colors[tt.color][tt.shade];return{background:rgba(gt,.1),hover:rgba(gt,.12),color:`var(--mantine-color-${tt.color}-${Math.min(tt.shade,6)})`,border:`${rem(1)} solid transparent`}}return{background:rgba(c,.1),hover:rgba(c,.12),color:c,border:`${rem(1)} solid transparent`}}if(d==="outline")return tt.isThemeColor?tt.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${c}-outline-hover)`,color:`var(--mantine-color-${c}-outline)`,border:`${rem(1)} solid var(--mantine-color-${c}-outline)`}:{background:"transparent",hover:rgba(a.colors[tt.color][tt.shade],.05),color:`var(--mantine-color-${tt.color}-${tt.shade})`,border:`${rem(1)} solid var(--mantine-color-${tt.color}-${tt.shade})`}:{background:"transparent",hover:rgba(c,.05),color:c,border:`${rem(1)} solid ${c}`};if(d==="subtle"){if(tt.isThemeColor){if(tt.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${c}-light-hover)`,color:`var(--mantine-color-${c}-light-color)`,border:`${rem(1)} solid transparent`};const gt=a.colors[tt.color][tt.shade];return{background:"transparent",hover:rgba(gt,.12),color:`var(--mantine-color-${tt.color}-${Math.min(tt.shade,6)})`,border:`${rem(1)} solid transparent`}}return{background:"transparent",hover:rgba(c,.12),color:c,border:`${rem(1)} solid transparent`}}return d==="transparent"?tt.isThemeColor?tt.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${c}-light-color)`,border:`${rem(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${tt.color}-${Math.min(tt.shade,6)})`,border:`${rem(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:c,border:`${rem(1)} solid transparent`}:d==="white"?tt.isThemeColor?tt.shade===void 0?{background:"var(--mantine-color-white)",hover:darken(a.white,.01),color:`var(--mantine-color-${c}-filled)`,border:`${rem(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:darken(a.white,.01),color:`var(--mantine-color-${tt.color}-${tt.shade})`,border:`${rem(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:darken(a.white,.01),color:c,border:`${rem(1)} solid transparent`}:d==="gradient"?{background:getGradient(et,a),hover:getGradient(et,a),color:"var(--mantine-color-white)",border:"none"}:d==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${rem(1)} solid var(--mantine-color-default-border)`}:{}},DEFAULT_COLORS={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},DEFAULT_FONT_FAMILY="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",DEFAULT_THEME={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:DEFAULT_COLORS,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:defaultVariantColorsResolver,autoContrast:!1,luminanceThreshold:.3,fontFamily:DEFAULT_FONT_FAMILY,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:DEFAULT_FONT_FAMILY,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:rem(34),lineHeight:"1.3"},h2:{fontSize:rem(26),lineHeight:"1.35"},h3:{fontSize:rem(22),lineHeight:"1.4"},h4:{fontSize:rem(18),lineHeight:"1.45"},h5:{fontSize:rem(16),lineHeight:"1.5"},h6:{fontSize:rem(14),lineHeight:"1.5"}}},fontSizes:{xs:rem(12),sm:rem(14),md:rem(16),lg:rem(18),xl:rem(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:rem(2),sm:rem(4),md:rem(8),lg:rem(16),xl:rem(32)},spacing:{xs:rem(10),sm:rem(12),md:rem(16),lg:rem(20),xl:rem(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${rem(1)} ${rem(3)} rgba(0, 0, 0, 0.05), 0 ${rem(1)} ${rem(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${rem(1)} ${rem(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${rem(10)} ${rem(15)} ${rem(-5)}, rgba(0, 0, 0, 0.04) 0 ${rem(7)} ${rem(7)} ${rem(-5)}`,md:`0 ${rem(1)} ${rem(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${rem(20)} ${rem(25)} ${rem(-5)}, rgba(0, 0, 0, 0.04) 0 ${rem(10)} ${rem(10)} ${rem(-5)}`,lg:`0 ${rem(1)} ${rem(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${rem(28)} ${rem(23)} ${rem(-7)}, rgba(0, 0, 0, 0.04) 0 ${rem(12)} ${rem(12)} ${rem(-7)}`,xl:`0 ${rem(1)} ${rem(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${rem(36)} ${rem(28)} ${rem(-7)}, rgba(0, 0, 0, 0.04) 0 ${rem(17)} ${rem(17)} ${rem(-7)}`},other:{},components:{}};function isMantineColorScheme(c){return c==="auto"||c==="dark"||c==="light"}function localStorageColorSchemeManager({key:c="mantine-color-scheme-value"}={}){let a;return{get:d=>{if(typeof window>"u")return d;try{const et=window.localStorage.getItem(c);return isMantineColorScheme(et)?et:d}catch{return d}},set:d=>{try{window.localStorage.setItem(c,d)}catch(et){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",et)}},subscribe:d=>{a=et=>{et.storageArea===window.localStorage&&et.key===c&&isMantineColorScheme(et.newValue)&&d(et.newValue)},window.addEventListener("storage",a)},unsubscribe:()=>{window.removeEventListener("storage",a)},clear:()=>{window.localStorage.removeItem(c)}}}const INVALID_PRIMARY_COLOR_ERROR="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",INVALID_PRIMARY_SHADE_ERROR="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function isValidPrimaryShade(c){return c<0||c>9?!1:parseInt(c.toString(),10)===c}function validateMantineTheme(c){if(!(c.primaryColor in c.colors))throw new Error(INVALID_PRIMARY_COLOR_ERROR);if(typeof c.primaryShade=="object"&&(!isValidPrimaryShade(c.primaryShade.dark)||!isValidPrimaryShade(c.primaryShade.light)))throw new Error(INVALID_PRIMARY_SHADE_ERROR);if(typeof c.primaryShade=="number"&&!isValidPrimaryShade(c.primaryShade))throw new Error(INVALID_PRIMARY_SHADE_ERROR)}function mergeMantineTheme(c,a){var et;if(!a)return validateMantineTheme(c),c;const d=deepMerge(c,a);return a.fontFamily&&!((et=a.headings)!=null&&et.fontFamily)&&(d.headings.fontFamily=a.fontFamily),validateMantineTheme(d),d}const MantineThemeContext=reactExports.createContext(null),useSafeMantineTheme=()=>reactExports.useContext(MantineThemeContext)||DEFAULT_THEME;function useMantineTheme(){const c=reactExports.useContext(MantineThemeContext);if(!c)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return c}function MantineThemeProvider({theme:c,children:a,inherit:d=!0}){const et=useSafeMantineTheme(),nt=reactExports.useMemo(()=>mergeMantineTheme(d?et:DEFAULT_THEME,c),[c,et,d]);return React.createElement(MantineThemeContext.Provider,{value:nt},a)}MantineThemeProvider.displayName="@mantine/core/MantineThemeProvider";function MantineClasses(){const c=useMantineTheme(),a=useMantineStyleNonce(),d=keys(c.breakpoints).reduce((et,nt)=>{const tt=c.breakpoints[nt].includes("px"),bt=px(c.breakpoints[nt]),gt=tt?`${bt-.1}px`:em(bt-.1),wt=tt?`${bt}px`:em(bt);return`${et}@media (max-width: ${gt}) {.mantine-visible-from-${nt} {display: none !important;}}@media (min-width: ${wt}) {.mantine-hidden-from-${nt} {display: none !important;}}`},"");return React.createElement("style",{"data-mantine-styles":"classes",nonce:a==null?void 0:a(),dangerouslySetInnerHTML:{__html:d}})}function cssVariablesObjectToString(c){return Object.entries(c).map(([a,d])=>`${a}: ${d};`).join("")}function wrapWithSelector(c,a){return(Array.isArray(c)?c:[c]).reduce((et,nt)=>`${nt}{${et}}`,a)}function convertCssVariables(c,a){const d=cssVariablesObjectToString(c.variables),et=d?wrapWithSelector(a,d):"",nt=cssVariablesObjectToString(c.dark),tt=nt?wrapWithSelector(`${a}[data-mantine-color-scheme="dark"]`,nt):"",bt=cssVariablesObjectToString(c.light),gt=bt?wrapWithSelector(`${a}[data-mantine-color-scheme="light"]`,bt):"";return`${et}${tt}${gt}`}function getContrastColor({color:c,theme:a,autoContrast:d}){return(typeof d=="boolean"?d:a.autoContrast)&&parseThemeColor({color:c||a.primaryColor,theme:a}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function getPrimaryContrastColor(c,a){return getContrastColor({color:c.colors[c.primaryColor][getPrimaryShade(c,a)],theme:c,autoContrast:null})}function getCSSColorVariables({theme:c,color:a,colorScheme:d,name:et=a,withColorValues:nt=!0}){if(!c.colors[a])return{};if(d==="light"){const gt=getPrimaryShade(c,"light"),wt={[`--mantine-color-${et}-text`]:`var(--mantine-color-${et}-filled)`,[`--mantine-color-${et}-filled`]:`var(--mantine-color-${et}-${gt})`,[`--mantine-color-${et}-filled-hover`]:`var(--mantine-color-${et}-${gt===9?8:gt+1})`,[`--mantine-color-${et}-light`]:alpha(c.colors[a][gt],.1),[`--mantine-color-${et}-light-hover`]:alpha(c.colors[a][gt],.12),[`--mantine-color-${et}-light-color`]:`var(--mantine-color-${et}-${gt})`,[`--mantine-color-${et}-outline`]:`var(--mantine-color-${et}-${gt})`,[`--mantine-color-${et}-outline-hover`]:alpha(c.colors[a][gt],.05)};return nt?{[`--mantine-color-${et}-0`]:c.colors[a][0],[`--mantine-color-${et}-1`]:c.colors[a][1],[`--mantine-color-${et}-2`]:c.colors[a][2],[`--mantine-color-${et}-3`]:c.colors[a][3],[`--mantine-color-${et}-4`]:c.colors[a][4],[`--mantine-color-${et}-5`]:c.colors[a][5],[`--mantine-color-${et}-6`]:c.colors[a][6],[`--mantine-color-${et}-7`]:c.colors[a][7],[`--mantine-color-${et}-8`]:c.colors[a][8],[`--mantine-color-${et}-9`]:c.colors[a][9],...wt}:wt}const tt=getPrimaryShade(c,"dark"),bt={[`--mantine-color-${et}-text`]:`var(--mantine-color-${et}-4)`,[`--mantine-color-${et}-filled`]:`var(--mantine-color-${et}-${tt})`,[`--mantine-color-${et}-filled-hover`]:`var(--mantine-color-${et}-${tt===9?8:tt+1})`,[`--mantine-color-${et}-light`]:alpha(c.colors[a][Math.max(0,tt-2)],.15),[`--mantine-color-${et}-light-hover`]:alpha(c.colors[a][Math.max(0,tt-2)],.2),[`--mantine-color-${et}-light-color`]:`var(--mantine-color-${et}-${Math.max(tt-5,0)})`,[`--mantine-color-${et}-outline`]:`var(--mantine-color-${et}-${Math.max(tt-4,0)})`,[`--mantine-color-${et}-outline-hover`]:alpha(c.colors[a][Math.max(tt-4,0)],.05)};return nt?{[`--mantine-color-${et}-0`]:c.colors[a][0],[`--mantine-color-${et}-1`]:c.colors[a][1],[`--mantine-color-${et}-2`]:c.colors[a][2],[`--mantine-color-${et}-3`]:c.colors[a][3],[`--mantine-color-${et}-4`]:c.colors[a][4],[`--mantine-color-${et}-5`]:c.colors[a][5],[`--mantine-color-${et}-6`]:c.colors[a][6],[`--mantine-color-${et}-7`]:c.colors[a][7],[`--mantine-color-${et}-8`]:c.colors[a][8],[`--mantine-color-${et}-9`]:c.colors[a][9],...bt}:bt}function isVirtualColor(c){return!!c&&typeof c=="object"&&"mantine-virtual-color"in c}function assignSizeVariables(c,a,d){keys(a).forEach(et=>Object.assign(c,{[`--mantine-${d}-${et}`]:a[et]}))}const defaultCssVariablesResolver=c=>{const a=getPrimaryShade(c,"light"),d=c.defaultRadius in c.radius?c.radius[c.defaultRadius]:rem(c.defaultRadius),et={variables:{"--mantine-scale":c.scale.toString(),"--mantine-cursor-type":c.cursorType,"--mantine-color-scheme":"light dark","--mantine-webkit-font-smoothing":c.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":c.fontSmoothing?"grayscale":"unset","--mantine-color-white":c.white,"--mantine-color-black":c.black,"--mantine-line-height":c.lineHeights.md,"--mantine-font-family":c.fontFamily,"--mantine-font-family-monospace":c.fontFamilyMonospace,"--mantine-font-family-headings":c.headings.fontFamily,"--mantine-heading-font-weight":c.headings.fontWeight,"--mantine-heading-text-wrap":c.headings.textWrap,"--mantine-radius-default":d,"--mantine-primary-color-filled":`var(--mantine-color-${c.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${c.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${c.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${c.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${c.primaryColor}-light-color)`},light:{"--mantine-primary-color-contrast":getPrimaryContrastColor(c,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":c.black,"--mantine-color-body":c.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${c.primaryColor}-${a})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)"},dark:{"--mantine-primary-color-contrast":getPrimaryContrastColor(c,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${c.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)"}};assignSizeVariables(et.variables,c.breakpoints,"breakpoint"),assignSizeVariables(et.variables,c.spacing,"spacing"),assignSizeVariables(et.variables,c.fontSizes,"font-size"),assignSizeVariables(et.variables,c.lineHeights,"line-height"),assignSizeVariables(et.variables,c.shadows,"shadow"),assignSizeVariables(et.variables,c.radius,"radius"),c.colors[c.primaryColor].forEach((tt,bt)=>{et.variables[`--mantine-primary-color-${bt}`]=`var(--mantine-color-${c.primaryColor}-${bt})`}),keys(c.colors).forEach(tt=>{const bt=c.colors[tt];if(isVirtualColor(bt)){Object.assign(et.light,getCSSColorVariables({theme:c,name:bt.name,color:bt.light,colorScheme:"light",withColorValues:!0})),Object.assign(et.dark,getCSSColorVariables({theme:c,name:bt.name,color:bt.dark,colorScheme:"dark",withColorValues:!0}));return}bt.forEach((gt,wt)=>{et.variables[`--mantine-color-${tt}-${wt}`]=gt}),Object.assign(et.light,getCSSColorVariables({theme:c,color:tt,colorScheme:"light",withColorValues:!1})),Object.assign(et.dark,getCSSColorVariables({theme:c,color:tt,colorScheme:"dark",withColorValues:!1}))});const nt=c.headings.sizes;return keys(nt).forEach(tt=>{et.variables[`--mantine-${tt}-font-size`]=nt[tt].fontSize,et.variables[`--mantine-${tt}-line-height`]=nt[tt].lineHeight,et.variables[`--mantine-${tt}-font-weight`]=nt[tt].fontWeight||c.headings.fontWeight}),et};function getMergedVariables({theme:c,generator:a}){const d=defaultCssVariablesResolver(c),et=a==null?void 0:a(c);return et?deepMerge(d,et):d}const defaultCssVariables=defaultCssVariablesResolver(DEFAULT_THEME);function removeDefaultVariables(c){const a={variables:{},light:{},dark:{}};return keys(c.variables).forEach(d=>{defaultCssVariables.variables[d]!==c.variables[d]&&(a.variables[d]=c.variables[d])}),keys(c.light).forEach(d=>{defaultCssVariables.light[d]!==c.light[d]&&(a.light[d]=c.light[d])}),keys(c.dark).forEach(d=>{defaultCssVariables.dark[d]!==c.dark[d]&&(a.dark[d]=c.dark[d])}),a}function getColorSchemeCssVariables(c){return` ${c}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; } ${c}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; } -`}function MantineCssVariables({cssVariablesSelector:c,deduplicateCssVariables:a}){const d=useMantineTheme(),et=useMantineStyleNonce(),nt=useMantineCssVariablesResolver(),tt=getMergedVariables({theme:d,generator:nt}),bt=c===":root"&&a,gt=bt?removeDefaultVariables(tt):tt,wt=convertCssVariables(gt,c);return wt?React.createElement("style",{"data-mantine-styles":!0,nonce:et==null?void 0:et(),dangerouslySetInnerHTML:{__html:`${wt}${bt?"":getColorSchemeCssVariables(c)}`}}):null}MantineCssVariables.displayName="@mantine/CssVariables";function suppressNextjsWarning(){const c=console.error;console.error=(...a)=>{a.length>1&&typeof a[0]=="string"&&a[0].toLowerCase().includes("extra attributes from the server")&&typeof a[1]=="string"&&a[1].toLowerCase().includes("data-mantine-color-scheme")||c(...a)}}function setColorSchemeAttribute(c,a){var et;const d=c!=="auto"?c:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";(et=a())==null||et.setAttribute("data-mantine-color-scheme",d)}function useProviderColorScheme({manager:c,defaultColorScheme:a,getRootElement:d,forceColorScheme:et}){const nt=reactExports.useRef(),[tt,bt]=reactExports.useState(()=>c.get(a)),gt=et||tt,wt=reactExports.useCallback(Mt=>{et||(setColorSchemeAttribute(Mt,d),bt(Mt),c.set(Mt))},[c.set,gt,et]),St=reactExports.useCallback(()=>{bt(a),setColorSchemeAttribute(a,d),c.clear()},[c.clear,a]);return reactExports.useEffect(()=>(c.subscribe(wt),c.unsubscribe),[c.subscribe,c.unsubscribe]),useIsomorphicEffect(()=>{setColorSchemeAttribute(c.get(a),d)},[]),reactExports.useEffect(()=>{var _t;if(et)return setColorSchemeAttribute(et,d),()=>{};et===void 0&&setColorSchemeAttribute(tt,d),nt.current=window.matchMedia("(prefers-color-scheme: dark)");const Mt=Tt=>{tt==="auto"&&setColorSchemeAttribute(Tt.matches?"dark":"light",d)};return(_t=nt.current)==null||_t.addEventListener("change",Mt),()=>{var Tt;return(Tt=nt.current)==null?void 0:Tt.removeEventListener("change",Mt)}},[tt,et]),{colorScheme:gt,setColorScheme:wt,clearColorScheme:St}}function useRespectReduceMotion({respectReducedMotion:c,getRootElement:a}){useIsomorphicEffect(()=>{var d;c&&((d=a())==null||d.setAttribute("data-respect-reduced-motion","true"))},[c])}suppressNextjsWarning();function MantineProvider({theme:c,children:a,getStyleNonce:d,withStaticClasses:et=!0,withGlobalClasses:nt=!0,deduplicateCssVariables:tt=!0,withCssVariables:bt=!0,cssVariablesSelector:gt=":root",classNamesPrefix:wt="mantine",colorSchemeManager:St=localStorageColorSchemeManager(),defaultColorScheme:Mt="light",getRootElement:_t=()=>document.documentElement,cssVariablesResolver:Tt,forceColorScheme:Bt}){const{colorScheme:kt,setColorScheme:It,clearColorScheme:Lt}=useProviderColorScheme({defaultColorScheme:Mt,forceColorScheme:Bt,manager:St,getRootElement:_t});return useRespectReduceMotion({respectReducedMotion:(c==null?void 0:c.respectReducedMotion)||!1,getRootElement:_t}),React.createElement(MantineContext.Provider,{value:{colorScheme:kt,setColorScheme:It,clearColorScheme:Lt,getRootElement:_t,classNamesPrefix:wt,getStyleNonce:d,cssVariablesResolver:Tt,cssVariablesSelector:gt,withStaticClasses:et}},React.createElement(MantineThemeProvider,{theme:c},bt&&React.createElement(MantineCssVariables,{cssVariablesSelector:gt,deduplicateCssVariables:tt}),nt&&React.createElement(MantineClasses,null),a))}MantineProvider.displayName="@mantine/core/MantineProvider";function useResolvedStylesApi({classNames:c,styles:a,props:d,stylesCtx:et}){const nt=useMantineTheme();return{resolvedClassNames:resolveClassNames({theme:nt,classNames:c,props:d,stylesCtx:et||void 0}),resolvedStyles:resolveStyles({theme:nt,styles:a,props:d,stylesCtx:et||void 0})}}const FOCUS_CLASS_NAMES={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function getGlobalClassNames({theme:c,options:a,unstyled:d}){return clsx((a==null?void 0:a.focusable)&&!d&&(c.focusClassName||FOCUS_CLASS_NAMES[c.focusRing]),(a==null?void 0:a.active)&&!d&&c.activeClassName)}function getOptionsClassNames({selector:c,stylesCtx:a,options:d,props:et,theme:nt}){return resolveClassNames({theme:nt,classNames:d==null?void 0:d.classNames,props:(d==null?void 0:d.props)||et,stylesCtx:a})[c]}function getResolvedClassNames({selector:c,stylesCtx:a,theme:d,classNames:et,props:nt}){return resolveClassNames({theme:d,classNames:et,props:nt,stylesCtx:a})[c]}function getRootClassName({rootSelector:c,selector:a,className:d}){return c===a?d:void 0}function getSelectorClassName({selector:c,classes:a,unstyled:d}){return d?void 0:a[c]}function getStaticClassNames({themeName:c,classNamesPrefix:a,selector:d,withStaticClass:et}){return et===!1?[]:c.map(nt=>`${a}-${nt}-${d}`)}function getThemeClassNames({themeName:c,theme:a,selector:d,props:et,stylesCtx:nt}){return c.map(tt=>{var bt,gt;return(gt=resolveClassNames({theme:a,classNames:(bt=a.components[tt])==null?void 0:bt.classNames,props:et,stylesCtx:nt}))==null?void 0:gt[d]})}function getVariantClassName({options:c,classes:a,selector:d,unstyled:et}){return c!=null&&c.variant&&!et?a[`${d}--${c.variant}`]:void 0}function getClassName({theme:c,options:a,themeName:d,selector:et,classNamesPrefix:nt,classNames:tt,classes:bt,unstyled:gt,className:wt,rootSelector:St,props:Mt,stylesCtx:_t,withStaticClasses:Tt,headless:Bt}){return clsx(getGlobalClassNames({theme:c,options:a,unstyled:gt||Bt}),getThemeClassNames({theme:c,themeName:d,selector:et,props:Mt,stylesCtx:_t}),getVariantClassName({options:a,classes:bt,selector:et,unstyled:gt}),getResolvedClassNames({selector:et,stylesCtx:_t,theme:c,classNames:tt,props:Mt}),getOptionsClassNames({selector:et,stylesCtx:_t,options:a,props:Mt,theme:c}),getRootClassName({rootSelector:St,selector:et,className:wt}),getSelectorClassName({selector:et,classes:bt,unstyled:gt||Bt}),Tt&&!Bt&&getStaticClassNames({themeName:d,classNamesPrefix:nt,selector:et,withStaticClass:a==null?void 0:a.withStaticClass}),a==null?void 0:a.className)}function getThemeStyles({theme:c,themeName:a,props:d,stylesCtx:et,selector:nt}){return a.map(tt=>{var bt;return resolveStyles({theme:c,styles:(bt=c.components[tt])==null?void 0:bt.styles,props:d,stylesCtx:et})[nt]}).reduce((tt,bt)=>({...tt,...bt}),{})}function resolveStyle({style:c,theme:a}){return Array.isArray(c)?[...c].reduce((d,et)=>({...d,...resolveStyle({style:et,theme:a})}),{}):typeof c=="function"?c(a):c??{}}function mergeVars(c){return c.reduce((a,d)=>(d&&Object.keys(d).forEach(et=>{a[et]={...a[et],...filterProps(d[et])}}),a),{})}function resolveVars({vars:c,varsResolver:a,theme:d,props:et,stylesCtx:nt,selector:tt,themeName:bt,headless:gt}){var wt;return(wt=mergeVars([gt?{}:a==null?void 0:a(d,et,nt),...bt.map(St=>{var Mt,_t,Tt;return(Tt=(_t=(Mt=d.components)==null?void 0:Mt[St])==null?void 0:_t.vars)==null?void 0:Tt.call(_t,d,et,nt)}),c==null?void 0:c(d,et,nt)]))==null?void 0:wt[tt]}function getStyle({theme:c,themeName:a,selector:d,options:et,props:nt,stylesCtx:tt,rootSelector:bt,styles:gt,style:wt,vars:St,varsResolver:Mt,headless:_t}){return{...getThemeStyles({theme:c,themeName:a,props:nt,stylesCtx:tt,selector:d}),...resolveStyles({theme:c,styles:gt,props:nt,stylesCtx:tt})[d],...resolveStyles({theme:c,styles:et==null?void 0:et.styles,props:(et==null?void 0:et.props)||nt,stylesCtx:tt})[d],...resolveVars({theme:c,props:nt,stylesCtx:tt,vars:St,varsResolver:Mt,selector:d,themeName:a,headless:_t}),...bt===d?resolveStyle({style:wt,theme:c}):null,...resolveStyle({style:et==null?void 0:et.style,theme:c})}}function useStyles({name:c,classes:a,props:d,stylesCtx:et,className:nt,style:tt,rootSelector:bt="root",unstyled:gt,classNames:wt,styles:St,vars:Mt,varsResolver:_t}){const Tt=useMantineTheme(),Bt=useMantineClassNamesPrefix(),kt=useMantineWithStaticClasses(),It=useMantineIsHeadless(),Lt=(Array.isArray(c)?c:[c]).filter(Ot=>Ot);return(Ot,Nt)=>({className:getClassName({theme:Tt,options:Nt,themeName:Lt,selector:Ot,classNamesPrefix:Bt,classNames:wt,classes:a,unstyled:gt,className:nt,rootSelector:bt,props:d,stylesCtx:et,withStaticClasses:kt,headless:It}),style:getStyle({theme:Tt,themeName:Lt,selector:Ot,options:Nt,props:d,stylesCtx:et,rootSelector:bt,styles:St,style:tt,vars:Mt,varsResolver:_t,headless:It})})}function getAutoContrastValue(c,a){return typeof c=="boolean"?c:a.autoContrast}function disableTransition(){const c=document.createElement("style");return c.innerHTML="*, *::before, *::after {transition: none !important;}",c.setAttribute("data-mantine-disable-transition","true"),document.head.appendChild(c),()=>document.querySelectorAll("[data-mantine-disable-transition]").forEach(d=>d.remove())}function useMantineColorScheme({keepTransitions:c}={}){const a=reactExports.useRef(),d=reactExports.useRef(),et=reactExports.useContext(MantineContext);if(!et)throw new Error("[@mantine/core] MantineProvider was not found in tree");const nt=St=>{et.setColorScheme(St),a.current=c?()=>{}:disableTransition(),window.clearTimeout(d.current),d.current=window.setTimeout(()=>{var Mt;(Mt=a.current)==null||Mt.call(a)},10)},tt=()=>{et.clearColorScheme(),a.current=c?()=>{}:disableTransition(),window.clearTimeout(d.current),d.current=window.setTimeout(()=>{var St;(St=a.current)==null||St.call(a)},10)},bt=useColorScheme("light",{getInitialValueInEffect:!1}),gt=et.colorScheme==="auto"?bt:et.colorScheme,wt=reactExports.useCallback(()=>nt(gt==="light"?"dark":"light"),[nt,gt]);return reactExports.useEffect(()=>()=>{var St;(St=a.current)==null||St.call(a),window.clearTimeout(d.current)},[]),{colorScheme:et.colorScheme,setColorScheme:nt,clearColorScheme:tt,toggleColorScheme:wt}}function useProps(c,a,d){var bt;const et=useMantineTheme(),nt=(bt=et.components[c])==null?void 0:bt.defaultProps,tt=typeof nt=="function"?nt(et):nt;return{...a,...tt,...filterProps(d)}}function createTheme(c){return c}function cssObjectToString(c){return keys(c).reduce((a,d)=>c[d]!==void 0?`${a}${camelToKebabCase(d)}:${c[d]};`:a,"").trim()}function stylesToString({selector:c,styles:a,media:d}){const et=a?cssObjectToString(a):"",nt=Array.isArray(d)?d.map(tt=>`@media${tt.query}{${c}{${cssObjectToString(tt.styles)}}}`):[];return`${et?`${c}{${et}}`:""}${nt.join("")}`.trim()}function InlineStyles({selector:c,styles:a,media:d}){const et=useMantineStyleNonce();return React.createElement("style",{"data-mantine-styles":"inline",nonce:et==null?void 0:et(),dangerouslySetInnerHTML:{__html:stylesToString({selector:c,styles:a,media:d})}})}function extractStyleProps(c){const{m:a,mx:d,my:et,mt:nt,mb:tt,ml:bt,mr:gt,me:wt,ms:St,p:Mt,px:_t,py:Tt,pt:Bt,pb:kt,pl:It,pr:Lt,pe:Ot,ps:Nt,bg:Ft,c:zt,opacity:Vt,ff:Jt,fz:ir,fw:rr,lts:er,ta:lr,lh:Ct,fs:dt,tt:mt,td:yt,w:vt,miw:Et,maw:At,h:Pt,mih:xt,mah:ht,bgsz:$t,bgp:Rt,bgr:Dt,bga:Ht,pos:tr,top:Xt,left:Ut,bottom:qt,right:Gt,inset:Zt,display:Yt,flex:Kt,hiddenFrom:ar,visibleFrom:gr,lightHidden:cr,darkHidden:ur,...Pr}=c;return{styleProps:filterProps({m:a,mx:d,my:et,mt:nt,mb:tt,ml:bt,mr:gt,me:wt,ms:St,p:Mt,px:_t,py:Tt,pt:Bt,pb:kt,pl:It,pr:Lt,pe:Ot,ps:Nt,bg:Ft,c:zt,opacity:Vt,ff:Jt,fz:ir,fw:rr,lts:er,ta:lr,lh:Ct,fs:dt,tt:mt,td:yt,w:vt,miw:Et,maw:At,h:Pt,mih:xt,mah:ht,bgsz:$t,bgp:Rt,bgr:Dt,bga:Ht,pos:tr,top:Xt,left:Ut,bottom:qt,right:Gt,inset:Zt,display:Yt,flex:Kt,hiddenFrom:ar,visibleFrom:gr,lightHidden:cr,darkHidden:ur}),rest:Pr}}const STYlE_PROPS_DATA={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"identity",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function colorResolver(c,a){const d=parseThemeColor({color:c,theme:a});return d.color==="dimmed"?"var(--mantine-color-dimmed)":d.color==="bright"?"var(--mantine-color-bright)":d.variable?`var(${d.variable})`:d.color}function textColorResolver(c,a){const d=parseThemeColor({color:c,theme:a});return d.isThemeColor&&d.shade===void 0?`var(--mantine-color-${d.color}-text)`:colorResolver(c,a)}const values={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function fontFamilyResolver(c){return typeof c=="string"&&c in values?values[c]:c}const headings$1=["h1","h2","h3","h4","h5","h6"];function fontSizeResolver(c,a){return typeof c=="string"&&c in a.fontSizes?`var(--mantine-font-size-${c})`:typeof c=="string"&&headings$1.includes(c)?`var(--mantine-${c}-font-size)`:typeof c=="number"||typeof c=="string"?rem(c):c}function identityResolver(c){return c}const headings=["h1","h2","h3","h4","h5","h6"];function lineHeightResolver(c,a){return typeof c=="string"&&c in a.lineHeights?`var(--mantine-line-height-${c})`:typeof c=="string"&&headings.includes(c)?`var(--mantine-${c}-line-height)`:c}function sizeResolver(c){return typeof c=="number"?rem(c):c}function spacingResolver(c,a){if(typeof c=="number")return rem(c);if(typeof c=="string"){const d=c.replace("-","");if(!(d in a.spacing))return rem(c);const et=`--mantine-spacing-${d}`;return c.startsWith("-")?`calc(var(${et}) * -1)`:`var(${et})`}return c}const resolvers={color:colorResolver,textColor:textColorResolver,fontSize:fontSizeResolver,spacing:spacingResolver,identity:identityResolver,size:sizeResolver,lineHeight:lineHeightResolver,fontFamily:fontFamilyResolver};function replaceMediaQuery(c){return c.replace("(min-width: ","").replace("em)","")}function sortMediaQueries({media:c,...a}){const et=Object.keys(c).sort((nt,tt)=>Number(replaceMediaQuery(nt))-Number(replaceMediaQuery(tt))).map(nt=>({query:nt,styles:c[nt]}));return{...a,media:et}}function hasResponsiveStyles(c){if(typeof c!="object"||c===null)return!1;const a=Object.keys(c);return!(a.length===1&&a[0]==="base")}function getBaseValue(c){return typeof c=="object"&&c!==null?"base"in c?c.base:void 0:c}function getBreakpointKeys(c){return typeof c=="object"&&c!==null?keys(c).filter(a=>a!=="base"):[]}function getBreakpointValue(c,a){return typeof c=="object"&&c!==null&&a in c?c[a]:c}function parseStyleProps({styleProps:c,data:a,theme:d}){return sortMediaQueries(keys(c).reduce((et,nt)=>{if(nt==="hiddenFrom"||nt==="visibleFrom")return et;const tt=a[nt],bt=Array.isArray(tt.property)?tt.property:[tt.property],gt=getBaseValue(c[nt]);if(!hasResponsiveStyles(c[nt]))return bt.forEach(St=>{et.inlineStyles[St]=resolvers[tt.type](gt,d)}),et;et.hasResponsiveStyles=!0;const wt=getBreakpointKeys(c[nt]);return bt.forEach(St=>{gt&&(et.styles[St]=resolvers[tt.type](gt,d)),wt.forEach(Mt=>{const _t=`(min-width: ${d.breakpoints[Mt]})`;et.media[_t]={...et.media[_t],[St]:resolvers[tt.type](getBreakpointValue(c[nt],Mt),d)}})}),et},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function useRandomClassName(){return`__m__-${reactExports.useId().replace(/:/g,"")}`}function createPolymorphicComponent(c){return c}function transformModKey(c){return c.startsWith("data-")?c:`data-${c}`}function getMod(c){return Object.keys(c).reduce((a,d)=>{const et=c[d];return et===void 0||et===""||et===!1||et===null||(a[transformModKey(d)]=c[d]),a},{})}function getBoxMod(c){return c?typeof c=="string"?{[transformModKey(c)]:!0}:Array.isArray(c)?[...c].reduce((a,d)=>({...a,...getBoxMod(d)}),{}):getMod(c):null}function mergeStyles(c,a){return Array.isArray(c)?[...c].reduce((d,et)=>({...d,...mergeStyles(et,a)}),{}):typeof c=="function"?c(a):c??{}}function getBoxStyle({theme:c,style:a,vars:d,styleProps:et}){const nt=mergeStyles(a,c),tt=mergeStyles(d,c);return{...nt,...tt,...et}}const _Box=reactExports.forwardRef(({component:c,style:a,__vars:d,className:et,variant:nt,mod:tt,size:bt,hiddenFrom:gt,visibleFrom:wt,lightHidden:St,darkHidden:Mt,renderRoot:_t,...Tt},Bt)=>{const kt=useMantineTheme(),It=c||"div",{styleProps:Lt,rest:Ot}=extractStyleProps(Tt),Nt=useRandomClassName(),Ft=parseStyleProps({styleProps:Lt,theme:kt,data:STYlE_PROPS_DATA}),zt={ref:Bt,style:getBoxStyle({theme:kt,style:a,vars:d,styleProps:Ft.inlineStyles}),className:clsx(et,{[Nt]:Ft.hasResponsiveStyles,"mantine-light-hidden":St,"mantine-dark-hidden":Mt,[`mantine-hidden-from-${gt}`]:gt,[`mantine-visible-from-${wt}`]:wt}),"data-variant":nt,"data-size":isNumberLike(bt)?void 0:bt||void 0,...getBoxMod(tt),...Ot};return React.createElement(React.Fragment,null,Ft.hasResponsiveStyles&&React.createElement(InlineStyles,{selector:`.${Nt}`,styles:Ft.styles,media:Ft.media}),typeof _t=="function"?_t(zt):React.createElement(It,{...zt}))});_Box.displayName="@mantine/core/Box";const Box=_Box;function identity$1(c){return c}function factory(c){const a=reactExports.forwardRef(c);return a.extend=identity$1,a}function polymorphicFactory(c){const a=reactExports.forwardRef(c);return a.extend=identity$1,a}const DirectionContext=reactExports.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function useDirection(){return reactExports.useContext(DirectionContext)}var classes$F={root:"m_87cf2631"};const defaultProps$1m={__staticSelector:"UnstyledButton"},UnstyledButton=polymorphicFactory((c,a)=>{const d=useProps("UnstyledButton",defaultProps$1m,c),{className:et,component:nt="button",__staticSelector:tt,unstyled:bt,classNames:gt,styles:wt,style:St,...Mt}=d,_t=useStyles({name:tt,props:d,classes:classes$F,className:et,style:St,classNames:gt,styles:wt,unstyled:bt});return React.createElement(Box,{..._t("root",{focusable:!0}),component:nt,ref:a,type:nt==="button"?"button":void 0,...Mt})});UnstyledButton.classes=classes$F;UnstyledButton.displayName="@mantine/core/UnstyledButton";var classes$E={root:"m_515a97f8"};const defaultProps$1l={},VisuallyHidden=factory((c,a)=>{const d=useProps("VisuallyHidden",defaultProps$1l,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,...St}=d,Mt=useStyles({name:"VisuallyHidden",classes:classes$E,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt});return React.createElement(Box,{component:"span",ref:a,...Mt("root"),...St})});VisuallyHidden.classes=classes$E;VisuallyHidden.displayName="@mantine/core/VisuallyHidden";var classes$D={root:"m_1b7284a3"};const defaultProps$1k={},varsResolver$z=(c,{radius:a,shadow:d})=>({root:{"--paper-radius":a===void 0?void 0:getRadius(a),"--paper-shadow":getShadow(d)}}),Paper=polymorphicFactory((c,a)=>{const d=useProps("Paper",defaultProps$1k,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,withBorder:wt,vars:St,radius:Mt,shadow:_t,variant:Tt,mod:Bt,...kt}=d,It=useStyles({name:"Paper",props:d,classes:classes$D,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:St,varsResolver:varsResolver$z});return React.createElement(Box,{ref:a,mod:[{"data-with-border":wt},Bt],...It("root"),variant:Tt,...kt})});Paper.classes=classes$D;Paper.displayName="@mantine/core/Paper";function getNodeName(c){return isNode(c)?(c.nodeName||"").toLowerCase():"#document"}function getWindow(c){var a;return(c==null||(a=c.ownerDocument)==null?void 0:a.defaultView)||window}function getDocumentElement(c){var a;return(a=(isNode(c)?c.ownerDocument:c.document)||window.document)==null?void 0:a.documentElement}function isNode(c){return c instanceof Node||c instanceof getWindow(c).Node}function isElement(c){return c instanceof Element||c instanceof getWindow(c).Element}function isHTMLElement(c){return c instanceof HTMLElement||c instanceof getWindow(c).HTMLElement}function isShadowRoot(c){return typeof ShadowRoot>"u"?!1:c instanceof ShadowRoot||c instanceof getWindow(c).ShadowRoot}function isOverflowElement(c){const{overflow:a,overflowX:d,overflowY:et,display:nt}=getComputedStyle(c);return/auto|scroll|overlay|hidden|clip/.test(a+et+d)&&!["inline","contents"].includes(nt)}function isTableElement(c){return["table","td","th"].includes(getNodeName(c))}function isContainingBlock(c){const a=isWebKit(),d=getComputedStyle(c);return d.transform!=="none"||d.perspective!=="none"||(d.containerType?d.containerType!=="normal":!1)||!a&&(d.backdropFilter?d.backdropFilter!=="none":!1)||!a&&(d.filter?d.filter!=="none":!1)||["transform","perspective","filter"].some(et=>(d.willChange||"").includes(et))||["paint","layout","strict","content"].some(et=>(d.contain||"").includes(et))}function getContainingBlock(c){let a=getParentNode(c);for(;isHTMLElement(a)&&!isLastTraversableNode(a);){if(isContainingBlock(a))return a;a=getParentNode(a)}return null}function isWebKit(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(c){return["html","body","#document"].includes(getNodeName(c))}function getComputedStyle(c){return getWindow(c).getComputedStyle(c)}function getNodeScroll(c){return isElement(c)?{scrollLeft:c.scrollLeft,scrollTop:c.scrollTop}:{scrollLeft:c.pageXOffset,scrollTop:c.pageYOffset}}function getParentNode(c){if(getNodeName(c)==="html")return c;const a=c.assignedSlot||c.parentNode||isShadowRoot(c)&&c.host||getDocumentElement(c);return isShadowRoot(a)?a.host:a}function getNearestOverflowAncestor(c){const a=getParentNode(c);return isLastTraversableNode(a)?c.ownerDocument?c.ownerDocument.body:c.body:isHTMLElement(a)&&isOverflowElement(a)?a:getNearestOverflowAncestor(a)}function getOverflowAncestors(c,a,d){var et;a===void 0&&(a=[]),d===void 0&&(d=!0);const nt=getNearestOverflowAncestor(c),tt=nt===((et=c.ownerDocument)==null?void 0:et.body),bt=getWindow(nt);return tt?a.concat(bt,bt.visualViewport||[],isOverflowElement(nt)?nt:[],bt.frameElement&&d?getOverflowAncestors(bt.frameElement):[]):a.concat(nt,getOverflowAncestors(nt,[],d))}const min=Math.min,max$1=Math.max,round=Math.round,floor=Math.floor,createCoords=c=>({x:c,y:c}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp(c,a,d){return max$1(c,min(a,d))}function evaluate(c,a){return typeof c=="function"?c(a):c}function getSide(c){return c.split("-")[0]}function getAlignment(c){return c.split("-")[1]}function getOppositeAxis(c){return c==="x"?"y":"x"}function getAxisLength(c){return c==="y"?"height":"width"}function getSideAxis(c){return["top","bottom"].includes(getSide(c))?"y":"x"}function getAlignmentAxis(c){return getOppositeAxis(getSideAxis(c))}function getAlignmentSides(c,a,d){d===void 0&&(d=!1);const et=getAlignment(c),nt=getAlignmentAxis(c),tt=getAxisLength(nt);let bt=nt==="x"?et===(d?"end":"start")?"right":"left":et==="start"?"bottom":"top";return a.reference[tt]>a.floating[tt]&&(bt=getOppositePlacement(bt)),[bt,getOppositePlacement(bt)]}function getExpandedPlacements(c){const a=getOppositePlacement(c);return[getOppositeAlignmentPlacement(c),a,getOppositeAlignmentPlacement(a)]}function getOppositeAlignmentPlacement(c){return c.replace(/start|end/g,a=>oppositeAlignmentMap[a])}function getSideList(c,a,d){const et=["left","right"],nt=["right","left"],tt=["top","bottom"],bt=["bottom","top"];switch(c){case"top":case"bottom":return d?a?nt:et:a?et:nt;case"left":case"right":return a?tt:bt;default:return[]}}function getOppositeAxisPlacements(c,a,d,et){const nt=getAlignment(c);let tt=getSideList(getSide(c),d==="start",et);return nt&&(tt=tt.map(bt=>bt+"-"+nt),a&&(tt=tt.concat(tt.map(getOppositeAlignmentPlacement)))),tt}function getOppositePlacement(c){return c.replace(/left|right|bottom|top/g,a=>oppositeSideMap[a])}function expandPaddingObject(c){return{top:0,right:0,bottom:0,left:0,...c}}function getPaddingObject(c){return typeof c!="number"?expandPaddingObject(c):{top:c,right:c,bottom:c,left:c}}function rectToClientRect(c){const{x:a,y:d,width:et,height:nt}=c;return{width:et,height:nt,top:d,left:a,right:a+et,bottom:d+nt,x:a,y:d}}function computeCoordsFromPlacement(c,a,d){let{reference:et,floating:nt}=c;const tt=getSideAxis(a),bt=getAlignmentAxis(a),gt=getAxisLength(bt),wt=getSide(a),St=tt==="y",Mt=et.x+et.width/2-nt.width/2,_t=et.y+et.height/2-nt.height/2,Tt=et[gt]/2-nt[gt]/2;let Bt;switch(wt){case"top":Bt={x:Mt,y:et.y-nt.height};break;case"bottom":Bt={x:Mt,y:et.y+et.height};break;case"right":Bt={x:et.x+et.width,y:_t};break;case"left":Bt={x:et.x-nt.width,y:_t};break;default:Bt={x:et.x,y:et.y}}switch(getAlignment(a)){case"start":Bt[bt]-=Tt*(d&&St?-1:1);break;case"end":Bt[bt]+=Tt*(d&&St?-1:1);break}return Bt}const computePosition$1=async(c,a,d)=>{const{placement:et="bottom",strategy:nt="absolute",middleware:tt=[],platform:bt}=d,gt=tt.filter(Boolean),wt=await(bt.isRTL==null?void 0:bt.isRTL(a));let St=await bt.getElementRects({reference:c,floating:a,strategy:nt}),{x:Mt,y:_t}=computeCoordsFromPlacement(St,et,wt),Tt=et,Bt={},kt=0;for(let It=0;It({name:"arrow",options:c,async fn(a){const{x:d,y:et,placement:nt,rects:tt,platform:bt,elements:gt,middlewareData:wt}=a,{element:St,padding:Mt=0}=evaluate(c,a)||{};if(St==null)return{};const _t=getPaddingObject(Mt),Tt={x:d,y:et},Bt=getAlignmentAxis(nt),kt=getAxisLength(Bt),It=await bt.getDimensions(St),Lt=Bt==="y",Ot=Lt?"top":"left",Nt=Lt?"bottom":"right",Ft=Lt?"clientHeight":"clientWidth",zt=tt.reference[kt]+tt.reference[Bt]-Tt[Bt]-tt.floating[kt],Vt=Tt[Bt]-tt.reference[Bt],Jt=await(bt.getOffsetParent==null?void 0:bt.getOffsetParent(St));let ir=Jt?Jt[Ft]:0;(!ir||!await(bt.isElement==null?void 0:bt.isElement(Jt)))&&(ir=gt.floating[Ft]||tt.floating[kt]);const rr=zt/2-Vt/2,er=ir/2-It[kt]/2-1,lr=min(_t[Ot],er),Ct=min(_t[Nt],er),dt=lr,mt=ir-It[kt]-Ct,yt=ir/2-It[kt]/2+rr,vt=clamp(dt,yt,mt),Et=!wt.arrow&&getAlignment(nt)!=null&&yt!==vt&&tt.reference[kt]/2-(ytdt<=0)){var er,lr;const dt=(((er=tt.flip)==null?void 0:er.index)||0)+1,mt=Vt[dt];if(mt)return{data:{index:dt,overflows:rr},reset:{placement:mt}};let yt=(lr=rr.filter(vt=>vt.overflows[0]<=0).sort((vt,Et)=>vt.overflows[1]-Et.overflows[1])[0])==null?void 0:lr.placement;if(!yt)switch(Bt){case"bestFit":{var Ct;const vt=(Ct=rr.map(Et=>[Et.placement,Et.overflows.filter(At=>At>0).reduce((At,Pt)=>At+Pt,0)]).sort((Et,At)=>Et[1]-At[1])[0])==null?void 0:Ct[0];vt&&(yt=vt);break}case"initialPlacement":yt=gt;break}if(nt!==yt)return{reset:{placement:yt}}}return{}}}};function getBoundingRect(c){const a=min(...c.map(tt=>tt.left)),d=min(...c.map(tt=>tt.top)),et=max$1(...c.map(tt=>tt.right)),nt=max$1(...c.map(tt=>tt.bottom));return{x:a,y:d,width:et-a,height:nt-d}}function getRectsByLine(c){const a=c.slice().sort((nt,tt)=>nt.y-tt.y),d=[];let et=null;for(let nt=0;ntet.height/2?d.push([tt]):d[d.length-1].push(tt),et=tt}return d.map(nt=>rectToClientRect(getBoundingRect(nt)))}const inline$2=function(c){return c===void 0&&(c={}),{name:"inline",options:c,async fn(a){const{placement:d,elements:et,rects:nt,platform:tt,strategy:bt}=a,{padding:gt=2,x:wt,y:St}=evaluate(c,a),Mt=Array.from(await(tt.getClientRects==null?void 0:tt.getClientRects(et.reference))||[]),_t=getRectsByLine(Mt),Tt=rectToClientRect(getBoundingRect(Mt)),Bt=getPaddingObject(gt);function kt(){if(_t.length===2&&_t[0].left>_t[1].right&&wt!=null&&St!=null)return _t.find(Lt=>wt>Lt.left-Bt.left&&wtLt.top-Bt.top&&St=2){if(getSideAxis(d)==="y"){const lr=_t[0],Ct=_t[_t.length-1],dt=getSide(d)==="top",mt=lr.top,yt=Ct.bottom,vt=dt?lr.left:Ct.left,Et=dt?lr.right:Ct.right,At=Et-vt,Pt=yt-mt;return{top:mt,bottom:yt,left:vt,right:Et,width:At,height:Pt,x:vt,y:mt}}const Lt=getSide(d)==="left",Ot=max$1(..._t.map(lr=>lr.right)),Nt=min(..._t.map(lr=>lr.left)),Ft=_t.filter(lr=>Lt?lr.left===Nt:lr.right===Ot),zt=Ft[0].top,Vt=Ft[Ft.length-1].bottom,Jt=Nt,ir=Ot,rr=ir-Jt,er=Vt-zt;return{top:zt,bottom:Vt,left:Jt,right:ir,width:rr,height:er,x:Jt,y:zt}}return Tt}const It=await tt.getElementRects({reference:{getBoundingClientRect:kt},floating:et.floating,strategy:bt});return nt.reference.x!==It.reference.x||nt.reference.y!==It.reference.y||nt.reference.width!==It.reference.width||nt.reference.height!==It.reference.height?{reset:{rects:It}}:{}}}};async function convertValueToCoords(c,a){const{placement:d,platform:et,elements:nt}=c,tt=await(et.isRTL==null?void 0:et.isRTL(nt.floating)),bt=getSide(d),gt=getAlignment(d),wt=getSideAxis(d)==="y",St=["left","top"].includes(bt)?-1:1,Mt=tt&&wt?-1:1,_t=evaluate(a,c);let{mainAxis:Tt,crossAxis:Bt,alignmentAxis:kt}=typeof _t=="number"?{mainAxis:_t,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,..._t};return gt&&typeof kt=="number"&&(Bt=gt==="end"?kt*-1:kt),wt?{x:Bt*Mt,y:Tt*St}:{x:Tt*St,y:Bt*Mt}}const offset$2=function(c){return c===void 0&&(c=0),{name:"offset",options:c,async fn(a){var d,et;const{x:nt,y:tt,placement:bt,middlewareData:gt}=a,wt=await convertValueToCoords(a,c);return bt===((d=gt.offset)==null?void 0:d.placement)&&(et=gt.arrow)!=null&&et.alignmentOffset?{}:{x:nt+wt.x,y:tt+wt.y,data:{...wt,placement:bt}}}}},shift$2=function(c){return c===void 0&&(c={}),{name:"shift",options:c,async fn(a){const{x:d,y:et,placement:nt}=a,{mainAxis:tt=!0,crossAxis:bt=!1,limiter:gt={fn:Lt=>{let{x:Ot,y:Nt}=Lt;return{x:Ot,y:Nt}}},...wt}=evaluate(c,a),St={x:d,y:et},Mt=await detectOverflow(a,wt),_t=getSideAxis(getSide(nt)),Tt=getOppositeAxis(_t);let Bt=St[Tt],kt=St[_t];if(tt){const Lt=Tt==="y"?"top":"left",Ot=Tt==="y"?"bottom":"right",Nt=Bt+Mt[Lt],Ft=Bt-Mt[Ot];Bt=clamp(Nt,Bt,Ft)}if(bt){const Lt=_t==="y"?"top":"left",Ot=_t==="y"?"bottom":"right",Nt=kt+Mt[Lt],Ft=kt-Mt[Ot];kt=clamp(Nt,kt,Ft)}const It=gt.fn({...a,[Tt]:Bt,[_t]:kt});return{...It,data:{x:It.x-d,y:It.y-et}}}}},limitShift$2=function(c){return c===void 0&&(c={}),{options:c,fn(a){const{x:d,y:et,placement:nt,rects:tt,middlewareData:bt}=a,{offset:gt=0,mainAxis:wt=!0,crossAxis:St=!0}=evaluate(c,a),Mt={x:d,y:et},_t=getSideAxis(nt),Tt=getOppositeAxis(_t);let Bt=Mt[Tt],kt=Mt[_t];const It=evaluate(gt,a),Lt=typeof It=="number"?{mainAxis:It,crossAxis:0}:{mainAxis:0,crossAxis:0,...It};if(wt){const Ft=Tt==="y"?"height":"width",zt=tt.reference[Tt]-tt.floating[Ft]+Lt.mainAxis,Vt=tt.reference[Tt]+tt.reference[Ft]-Lt.mainAxis;BtVt&&(Bt=Vt)}if(St){var Ot,Nt;const Ft=Tt==="y"?"width":"height",zt=["top","left"].includes(getSide(nt)),Vt=tt.reference[_t]-tt.floating[Ft]+(zt&&((Ot=bt.offset)==null?void 0:Ot[_t])||0)+(zt?0:Lt.crossAxis),Jt=tt.reference[_t]+tt.reference[Ft]+(zt?0:((Nt=bt.offset)==null?void 0:Nt[_t])||0)-(zt?Lt.crossAxis:0);ktJt&&(kt=Jt)}return{[Tt]:Bt,[_t]:kt}}}},size$5=function(c){return c===void 0&&(c={}),{name:"size",options:c,async fn(a){const{placement:d,rects:et,platform:nt,elements:tt}=a,{apply:bt=()=>{},...gt}=evaluate(c,a),wt=await detectOverflow(a,gt),St=getSide(d),Mt=getAlignment(d),_t=getSideAxis(d)==="y",{width:Tt,height:Bt}=et.floating;let kt,It;St==="top"||St==="bottom"?(kt=St,It=Mt===(await(nt.isRTL==null?void 0:nt.isRTL(tt.floating))?"start":"end")?"left":"right"):(It=St,kt=Mt==="end"?"top":"bottom");const Lt=Bt-wt.top-wt.bottom,Ot=Tt-wt.left-wt.right,Nt=min(Bt-wt[kt],Lt),Ft=min(Tt-wt[It],Ot),zt=!a.middlewareData.shift;let Vt=Nt,Jt=Ft;if(_t?Jt=Mt||zt?min(Ft,Ot):Ot:Vt=Mt||zt?min(Nt,Lt):Lt,zt&&!Mt){const rr=max$1(wt.left,0),er=max$1(wt.right,0),lr=max$1(wt.top,0),Ct=max$1(wt.bottom,0);_t?Jt=Tt-2*(rr!==0||er!==0?rr+er:max$1(wt.left,wt.right)):Vt=Bt-2*(lr!==0||Ct!==0?lr+Ct:max$1(wt.top,wt.bottom))}await bt({...a,availableWidth:Jt,availableHeight:Vt});const ir=await nt.getDimensions(tt.floating);return Tt!==ir.width||Bt!==ir.height?{reset:{rects:!0}}:{}}}};function getCssDimensions(c){const a=getComputedStyle(c);let d=parseFloat(a.width)||0,et=parseFloat(a.height)||0;const nt=isHTMLElement(c),tt=nt?c.offsetWidth:d,bt=nt?c.offsetHeight:et,gt=round(d)!==tt||round(et)!==bt;return gt&&(d=tt,et=bt),{width:d,height:et,$:gt}}function unwrapElement(c){return isElement(c)?c:c.contextElement}function getScale(c){const a=unwrapElement(c);if(!isHTMLElement(a))return createCoords(1);const d=a.getBoundingClientRect(),{width:et,height:nt,$:tt}=getCssDimensions(a);let bt=(tt?round(d.width):d.width)/et,gt=(tt?round(d.height):d.height)/nt;return(!bt||!Number.isFinite(bt))&&(bt=1),(!gt||!Number.isFinite(gt))&&(gt=1),{x:bt,y:gt}}const noOffsets=createCoords(0);function getVisualOffsets(c){const a=getWindow(c);return!isWebKit()||!a.visualViewport?noOffsets:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function shouldAddVisualOffsets(c,a,d){return a===void 0&&(a=!1),!d||a&&d!==getWindow(c)?!1:a}function getBoundingClientRect(c,a,d,et){a===void 0&&(a=!1),d===void 0&&(d=!1);const nt=c.getBoundingClientRect(),tt=unwrapElement(c);let bt=createCoords(1);a&&(et?isElement(et)&&(bt=getScale(et)):bt=getScale(c));const gt=shouldAddVisualOffsets(tt,d,et)?getVisualOffsets(tt):createCoords(0);let wt=(nt.left+gt.x)/bt.x,St=(nt.top+gt.y)/bt.y,Mt=nt.width/bt.x,_t=nt.height/bt.y;if(tt){const Tt=getWindow(tt),Bt=et&&isElement(et)?getWindow(et):et;let kt=Tt,It=kt.frameElement;for(;It&&et&&Bt!==kt;){const Lt=getScale(It),Ot=It.getBoundingClientRect(),Nt=getComputedStyle(It),Ft=Ot.left+(It.clientLeft+parseFloat(Nt.paddingLeft))*Lt.x,zt=Ot.top+(It.clientTop+parseFloat(Nt.paddingTop))*Lt.y;wt*=Lt.x,St*=Lt.y,Mt*=Lt.x,_t*=Lt.y,wt+=Ft,St+=zt,kt=getWindow(It),It=kt.frameElement}}return rectToClientRect({width:Mt,height:_t,x:wt,y:St})}const topLayerSelectors=[":popover-open",":modal"];function isTopLayer(c){return topLayerSelectors.some(a=>{try{return c.matches(a)}catch{return!1}})}function convertOffsetParentRelativeRectToViewportRelativeRect(c){let{elements:a,rect:d,offsetParent:et,strategy:nt}=c;const tt=nt==="fixed",bt=getDocumentElement(et),gt=a?isTopLayer(a.floating):!1;if(et===bt||gt&&tt)return d;let wt={scrollLeft:0,scrollTop:0},St=createCoords(1);const Mt=createCoords(0),_t=isHTMLElement(et);if((_t||!_t&&!tt)&&((getNodeName(et)!=="body"||isOverflowElement(bt))&&(wt=getNodeScroll(et)),isHTMLElement(et))){const Tt=getBoundingClientRect(et);St=getScale(et),Mt.x=Tt.x+et.clientLeft,Mt.y=Tt.y+et.clientTop}return{width:d.width*St.x,height:d.height*St.y,x:d.x*St.x-wt.scrollLeft*St.x+Mt.x,y:d.y*St.y-wt.scrollTop*St.y+Mt.y}}function getClientRects(c){return Array.from(c.getClientRects())}function getWindowScrollBarX(c){return getBoundingClientRect(getDocumentElement(c)).left+getNodeScroll(c).scrollLeft}function getDocumentRect(c){const a=getDocumentElement(c),d=getNodeScroll(c),et=c.ownerDocument.body,nt=max$1(a.scrollWidth,a.clientWidth,et.scrollWidth,et.clientWidth),tt=max$1(a.scrollHeight,a.clientHeight,et.scrollHeight,et.clientHeight);let bt=-d.scrollLeft+getWindowScrollBarX(c);const gt=-d.scrollTop;return getComputedStyle(et).direction==="rtl"&&(bt+=max$1(a.clientWidth,et.clientWidth)-nt),{width:nt,height:tt,x:bt,y:gt}}function getViewportRect(c,a){const d=getWindow(c),et=getDocumentElement(c),nt=d.visualViewport;let tt=et.clientWidth,bt=et.clientHeight,gt=0,wt=0;if(nt){tt=nt.width,bt=nt.height;const St=isWebKit();(!St||St&&a==="fixed")&&(gt=nt.offsetLeft,wt=nt.offsetTop)}return{width:tt,height:bt,x:gt,y:wt}}function getInnerBoundingClientRect(c,a){const d=getBoundingClientRect(c,!0,a==="fixed"),et=d.top+c.clientTop,nt=d.left+c.clientLeft,tt=isHTMLElement(c)?getScale(c):createCoords(1),bt=c.clientWidth*tt.x,gt=c.clientHeight*tt.y,wt=nt*tt.x,St=et*tt.y;return{width:bt,height:gt,x:wt,y:St}}function getClientRectFromClippingAncestor(c,a,d){let et;if(a==="viewport")et=getViewportRect(c,d);else if(a==="document")et=getDocumentRect(getDocumentElement(c));else if(isElement(a))et=getInnerBoundingClientRect(a,d);else{const nt=getVisualOffsets(c);et={...a,x:a.x-nt.x,y:a.y-nt.y}}return rectToClientRect(et)}function hasFixedPositionAncestor(c,a){const d=getParentNode(c);return d===a||!isElement(d)||isLastTraversableNode(d)?!1:getComputedStyle(d).position==="fixed"||hasFixedPositionAncestor(d,a)}function getClippingElementAncestors(c,a){const d=a.get(c);if(d)return d;let et=getOverflowAncestors(c,[],!1).filter(gt=>isElement(gt)&&getNodeName(gt)!=="body"),nt=null;const tt=getComputedStyle(c).position==="fixed";let bt=tt?getParentNode(c):c;for(;isElement(bt)&&!isLastTraversableNode(bt);){const gt=getComputedStyle(bt),wt=isContainingBlock(bt);!wt&>.position==="fixed"&&(nt=null),(tt?!wt&&!nt:!wt&>.position==="static"&&!!nt&&["absolute","fixed"].includes(nt.position)||isOverflowElement(bt)&&!wt&&hasFixedPositionAncestor(c,bt))?et=et.filter(Mt=>Mt!==bt):nt=gt,bt=getParentNode(bt)}return a.set(c,et),et}function getClippingRect(c){let{element:a,boundary:d,rootBoundary:et,strategy:nt}=c;const bt=[...d==="clippingAncestors"?isTopLayer(a)?[]:getClippingElementAncestors(a,this._c):[].concat(d),et],gt=bt[0],wt=bt.reduce((St,Mt)=>{const _t=getClientRectFromClippingAncestor(a,Mt,nt);return St.top=max$1(_t.top,St.top),St.right=min(_t.right,St.right),St.bottom=min(_t.bottom,St.bottom),St.left=max$1(_t.left,St.left),St},getClientRectFromClippingAncestor(a,gt,nt));return{width:wt.right-wt.left,height:wt.bottom-wt.top,x:wt.left,y:wt.top}}function getDimensions(c){const{width:a,height:d}=getCssDimensions(c);return{width:a,height:d}}function getRectRelativeToOffsetParent(c,a,d){const et=isHTMLElement(a),nt=getDocumentElement(a),tt=d==="fixed",bt=getBoundingClientRect(c,!0,tt,a);let gt={scrollLeft:0,scrollTop:0};const wt=createCoords(0);if(et||!et&&!tt)if((getNodeName(a)!=="body"||isOverflowElement(nt))&&(gt=getNodeScroll(a)),et){const _t=getBoundingClientRect(a,!0,tt,a);wt.x=_t.x+a.clientLeft,wt.y=_t.y+a.clientTop}else nt&&(wt.x=getWindowScrollBarX(nt));const St=bt.left+gt.scrollLeft-wt.x,Mt=bt.top+gt.scrollTop-wt.y;return{x:St,y:Mt,width:bt.width,height:bt.height}}function isStaticPositioned(c){return getComputedStyle(c).position==="static"}function getTrueOffsetParent(c,a){return!isHTMLElement(c)||getComputedStyle(c).position==="fixed"?null:a?a(c):c.offsetParent}function getOffsetParent(c,a){const d=getWindow(c);if(isTopLayer(c))return d;if(!isHTMLElement(c)){let nt=getParentNode(c);for(;nt&&!isLastTraversableNode(nt);){if(isElement(nt)&&!isStaticPositioned(nt))return nt;nt=getParentNode(nt)}return d}let et=getTrueOffsetParent(c,a);for(;et&&isTableElement(et)&&isStaticPositioned(et);)et=getTrueOffsetParent(et,a);return et&&isLastTraversableNode(et)&&isStaticPositioned(et)&&!isContainingBlock(et)?d:et||getContainingBlock(c)||d}const getElementRects=async function(c){const a=this.getOffsetParent||getOffsetParent,d=this.getDimensions,et=await d(c.floating);return{reference:getRectRelativeToOffsetParent(c.reference,await a(c.floating),c.strategy),floating:{x:0,y:0,width:et.width,height:et.height}}};function isRTL(c){return getComputedStyle(c).direction==="rtl"}const platform={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement,isRTL};function observeMove(c,a){let d=null,et;const nt=getDocumentElement(c);function tt(){var gt;clearTimeout(et),(gt=d)==null||gt.disconnect(),d=null}function bt(gt,wt){gt===void 0&&(gt=!1),wt===void 0&&(wt=1),tt();const{left:St,top:Mt,width:_t,height:Tt}=c.getBoundingClientRect();if(gt||a(),!_t||!Tt)return;const Bt=floor(Mt),kt=floor(nt.clientWidth-(St+_t)),It=floor(nt.clientHeight-(Mt+Tt)),Lt=floor(St),Nt={rootMargin:-Bt+"px "+-kt+"px "+-It+"px "+-Lt+"px",threshold:max$1(0,min(1,wt))||1};let Ft=!0;function zt(Vt){const Jt=Vt[0].intersectionRatio;if(Jt!==wt){if(!Ft)return bt();Jt?bt(!1,Jt):et=setTimeout(()=>{bt(!1,1e-7)},1e3)}Ft=!1}try{d=new IntersectionObserver(zt,{...Nt,root:nt.ownerDocument})}catch{d=new IntersectionObserver(zt,Nt)}d.observe(c)}return bt(!0),tt}function autoUpdate(c,a,d,et){et===void 0&&(et={});const{ancestorScroll:nt=!0,ancestorResize:tt=!0,elementResize:bt=typeof ResizeObserver=="function",layoutShift:gt=typeof IntersectionObserver=="function",animationFrame:wt=!1}=et,St=unwrapElement(c),Mt=nt||tt?[...St?getOverflowAncestors(St):[],...getOverflowAncestors(a)]:[];Mt.forEach(Ot=>{nt&&Ot.addEventListener("scroll",d,{passive:!0}),tt&&Ot.addEventListener("resize",d)});const _t=St&>?observeMove(St,d):null;let Tt=-1,Bt=null;bt&&(Bt=new ResizeObserver(Ot=>{let[Nt]=Ot;Nt&&Nt.target===St&&Bt&&(Bt.unobserve(a),cancelAnimationFrame(Tt),Tt=requestAnimationFrame(()=>{var Ft;(Ft=Bt)==null||Ft.observe(a)})),d()}),St&&!wt&&Bt.observe(St),Bt.observe(a));let kt,It=wt?getBoundingClientRect(c):null;wt&&Lt();function Lt(){const Ot=getBoundingClientRect(c);It&&(Ot.x!==It.x||Ot.y!==It.y||Ot.width!==It.width||Ot.height!==It.height)&&d(),It=Ot,kt=requestAnimationFrame(Lt)}return d(),()=>{var Ot;Mt.forEach(Nt=>{nt&&Nt.removeEventListener("scroll",d),tt&&Nt.removeEventListener("resize",d)}),_t==null||_t(),(Ot=Bt)==null||Ot.disconnect(),Bt=null,wt&&cancelAnimationFrame(kt)}}const offset$1=offset$2,shift$1=shift$2,flip$1=flip$2,size$4=size$5,arrow$2=arrow$3,inline$1=inline$2,limitShift$1=limitShift$2,computePosition=(c,a,d)=>{const et=new Map,nt={platform,...d},tt={...nt.platform,_c:et};return computePosition$1(c,a,{...nt,platform:tt})};var index$3=typeof document<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function deepEqual(c,a){if(c===a)return!0;if(typeof c!=typeof a)return!1;if(typeof c=="function"&&c.toString()===a.toString())return!0;let d,et,nt;if(c&&a&&typeof c=="object"){if(Array.isArray(c)){if(d=c.length,d!==a.length)return!1;for(et=d;et--!==0;)if(!deepEqual(c[et],a[et]))return!1;return!0}if(nt=Object.keys(c),d=nt.length,d!==Object.keys(a).length)return!1;for(et=d;et--!==0;)if(!{}.hasOwnProperty.call(a,nt[et]))return!1;for(et=d;et--!==0;){const tt=nt[et];if(!(tt==="_owner"&&c.$$typeof)&&!deepEqual(c[tt],a[tt]))return!1}return!0}return c!==c&&a!==a}function getDPR(c){return typeof window>"u"?1:(c.ownerDocument.defaultView||window).devicePixelRatio||1}function roundByDPR(c,a){const d=getDPR(c);return Math.round(a*d)/d}function useLatestRef(c){const a=reactExports.useRef(c);return index$3(()=>{a.current=c}),a}function useFloating$1(c){c===void 0&&(c={});const{placement:a="bottom",strategy:d="absolute",middleware:et=[],platform:nt,elements:{reference:tt,floating:bt}={},transform:gt=!0,whileElementsMounted:wt,open:St}=c,[Mt,_t]=reactExports.useState({x:0,y:0,strategy:d,placement:a,middlewareData:{},isPositioned:!1}),[Tt,Bt]=reactExports.useState(et);deepEqual(Tt,et)||Bt(et);const[kt,It]=reactExports.useState(null),[Lt,Ot]=reactExports.useState(null),Nt=reactExports.useCallback(At=>{At!==Jt.current&&(Jt.current=At,It(At))},[]),Ft=reactExports.useCallback(At=>{At!==ir.current&&(ir.current=At,Ot(At))},[]),zt=tt||kt,Vt=bt||Lt,Jt=reactExports.useRef(null),ir=reactExports.useRef(null),rr=reactExports.useRef(Mt),er=wt!=null,lr=useLatestRef(wt),Ct=useLatestRef(nt),dt=reactExports.useCallback(()=>{if(!Jt.current||!ir.current)return;const At={placement:a,strategy:d,middleware:Tt};Ct.current&&(At.platform=Ct.current),computePosition(Jt.current,ir.current,At).then(Pt=>{const xt={...Pt,isPositioned:!0};mt.current&&!deepEqual(rr.current,xt)&&(rr.current=xt,reactDomExports.flushSync(()=>{_t(xt)}))})},[Tt,a,d,Ct]);index$3(()=>{St===!1&&rr.current.isPositioned&&(rr.current.isPositioned=!1,_t(At=>({...At,isPositioned:!1})))},[St]);const mt=reactExports.useRef(!1);index$3(()=>(mt.current=!0,()=>{mt.current=!1}),[]),index$3(()=>{if(zt&&(Jt.current=zt),Vt&&(ir.current=Vt),zt&&Vt){if(lr.current)return lr.current(zt,Vt,dt);dt()}},[zt,Vt,dt,lr,er]);const yt=reactExports.useMemo(()=>({reference:Jt,floating:ir,setReference:Nt,setFloating:Ft}),[Nt,Ft]),vt=reactExports.useMemo(()=>({reference:zt,floating:Vt}),[zt,Vt]),Et=reactExports.useMemo(()=>{const At={position:d,left:0,top:0};if(!vt.floating)return At;const Pt=roundByDPR(vt.floating,Mt.x),xt=roundByDPR(vt.floating,Mt.y);return gt?{...At,transform:"translate("+Pt+"px, "+xt+"px)",...getDPR(vt.floating)>=1.5&&{willChange:"transform"}}:{position:d,left:Pt,top:xt}},[d,gt,vt.floating,Mt.x,Mt.y]);return reactExports.useMemo(()=>({...Mt,update:dt,refs:yt,elements:vt,floatingStyles:Et}),[Mt,dt,yt,vt,Et])}const arrow$1=c=>{function a(d){return{}.hasOwnProperty.call(d,"current")}return{name:"arrow",options:c,fn(d){const{element:et,padding:nt}=typeof c=="function"?c(d):c;return et&&a(et)?et.current!=null?arrow$2({element:et.current,padding:nt}).fn(d):{}:et?arrow$2({element:et,padding:nt}).fn(d):{}}}},offset=(c,a)=>({...offset$1(c),options:[c,a]}),shift=(c,a)=>({...shift$1(c),options:[c,a]}),limitShift=(c,a)=>({...limitShift$1(c),options:[c,a]}),flip=(c,a)=>({...flip$1(c),options:[c,a]}),size$3=(c,a)=>({...size$4(c),options:[c,a]}),inline=(c,a)=>({...inline$1(c),options:[c,a]}),arrow=(c,a)=>({...arrow$1(c),options:[c,a]}),SafeReact={...React$1},useInsertionEffect=SafeReact.useInsertionEffect,useSafeInsertionEffect=useInsertionEffect||(c=>c());function useEffectEvent(c){const a=reactExports.useRef(()=>{});return useSafeInsertionEffect(()=>{a.current=c}),reactExports.useCallback(function(){for(var d=arguments.length,et=new Array(d),nt=0;nt"floating-ui-"+Math.random().toString(36).slice(2,6)+count++;function useFloatingId(){const[c,a]=reactExports.useState(()=>serverHandoffComplete?genId():void 0);return index$2(()=>{c==null&&a(genId())},[]),reactExports.useEffect(()=>{serverHandoffComplete=!0},[]),c}const useReactId=SafeReact.useId,useId=useReactId||useFloatingId;function createPubSub(){const c=new Map;return{emit(a,d){var et;(et=c.get(a))==null||et.forEach(nt=>nt(d))},on(a,d){c.set(a,[...c.get(a)||[],d])},off(a,d){var et;c.set(a,((et=c.get(a))==null?void 0:et.filter(nt=>nt!==d))||[])}}}const FloatingNodeContext=reactExports.createContext(null),FloatingTreeContext=reactExports.createContext(null),useFloatingParentNodeId=()=>{var c;return((c=reactExports.useContext(FloatingNodeContext))==null?void 0:c.id)||null},useFloatingTree=()=>reactExports.useContext(FloatingTreeContext);function useFloatingRootContext(c){const{open:a=!1,onOpenChange:d,elements:et}=c,nt=useId(),tt=reactExports.useRef({}),[bt]=reactExports.useState(()=>createPubSub()),gt=useFloatingParentNodeId()!=null,[wt,St]=reactExports.useState(et.reference),Mt=useEffectEvent((Bt,kt,It)=>{tt.current.openEvent=Bt?kt:void 0,bt.emit("openchange",{open:Bt,event:kt,reason:It,nested:gt}),d==null||d(Bt,kt,It)}),_t=reactExports.useMemo(()=>({setPositionReference:St}),[]),Tt=reactExports.useMemo(()=>({reference:wt||et.reference||null,floating:et.floating||null,domReference:et.reference}),[wt,et.reference,et.floating]);return reactExports.useMemo(()=>({dataRef:tt,open:a,onOpenChange:Mt,elements:Tt,events:bt,floatingId:nt,refs:_t}),[a,Mt,Tt,bt,nt,_t])}function useFloating(c){c===void 0&&(c={});const{nodeId:a}=c,d=useFloatingRootContext({...c,elements:{reference:null,floating:null,...c.elements}}),et=c.rootContext||d,nt=et.elements,[tt,bt]=reactExports.useState(null),[gt,wt]=reactExports.useState(null),Mt=(nt==null?void 0:nt.reference)||tt,_t=reactExports.useRef(null),Tt=useFloatingTree();index$2(()=>{Mt&&(_t.current=Mt)},[Mt]);const Bt=useFloating$1({...c,elements:{...nt,...gt&&{reference:gt}}}),kt=reactExports.useCallback(Ft=>{const zt=isElement(Ft)?{getBoundingClientRect:()=>Ft.getBoundingClientRect(),contextElement:Ft}:Ft;wt(zt),Bt.refs.setReference(zt)},[Bt.refs]),It=reactExports.useCallback(Ft=>{(isElement(Ft)||Ft===null)&&(_t.current=Ft,bt(Ft)),(isElement(Bt.refs.reference.current)||Bt.refs.reference.current===null||Ft!==null&&!isElement(Ft))&&Bt.refs.setReference(Ft)},[Bt.refs]),Lt=reactExports.useMemo(()=>({...Bt.refs,setReference:It,setPositionReference:kt,domReference:_t}),[Bt.refs,It,kt]),Ot=reactExports.useMemo(()=>({...Bt.elements,domReference:Mt}),[Bt.elements,Mt]),Nt=reactExports.useMemo(()=>({...Bt,...et,refs:Lt,elements:Ot,nodeId:a}),[Bt,Lt,Ot,a,et]);return index$2(()=>{et.dataRef.current.floatingContext=Nt;const Ft=Tt==null?void 0:Tt.nodesRef.current.find(zt=>zt.id===a);Ft&&(Ft.context=Nt)}),reactExports.useMemo(()=>({...Bt,context:Nt,refs:Lt,elements:Ot}),[Bt,Lt,Ot,Nt])}function getFloatingPosition(c,a){if(c==="rtl"&&(a.includes("right")||a.includes("left"))){const[d,et]=a.split("-"),nt=d==="right"?"left":"right";return et===void 0?nt:`${nt}-${et}`}return a}function horizontalSide(c,a,d,et){return c==="center"||et==="center"?{top:a}:c==="end"?{bottom:d}:c==="start"?{top:d}:{}}function verticalSide(c,a,d,et,nt){return c==="center"||et==="center"?{left:a}:c==="end"?{[nt==="ltr"?"right":"left"]:d}:c==="start"?{[nt==="ltr"?"left":"right"]:d}:{}}const radiusByFloatingSide={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function getArrowPositionStyles({position:c,arrowSize:a,arrowOffset:d,arrowRadius:et,arrowPosition:nt,arrowX:tt,arrowY:bt,dir:gt}){const[wt,St="center"]=c.split("-"),Mt={width:rem(a),height:rem(a),transform:"rotate(45deg)",position:"absolute",[radiusByFloatingSide[wt]]:rem(et)},_t=rem(-a/2);return wt==="left"?{...Mt,...horizontalSide(St,bt,d,nt),right:_t,borderLeftColor:"transparent",borderBottomColor:"transparent"}:wt==="right"?{...Mt,...horizontalSide(St,bt,d,nt),left:_t,borderRightColor:"transparent",borderTopColor:"transparent"}:wt==="top"?{...Mt,...verticalSide(St,tt,d,nt,gt),bottom:_t,borderTopColor:"transparent",borderLeftColor:"transparent"}:wt==="bottom"?{...Mt,...verticalSide(St,tt,d,nt,gt),top:_t,borderBottomColor:"transparent",borderRightColor:"transparent"}:{}}const FloatingArrow=reactExports.forwardRef(({position:c,arrowSize:a,arrowOffset:d,arrowRadius:et,arrowPosition:nt,visible:tt,arrowX:bt,arrowY:gt,style:wt,...St},Mt)=>{const{dir:_t}=useDirection();return tt?React.createElement("div",{...St,ref:Mt,style:{...wt,...getArrowPositionStyles({position:c,arrowSize:a,arrowOffset:d,arrowRadius:et,arrowPosition:nt,dir:_t,arrowX:bt,arrowY:gt})}}):null});FloatingArrow.displayName="@mantine/core/FloatingArrow";const[PopoverContextProvider,usePopoverContext]=createSafeContext("Popover component was not found in the tree");function FocusTrap({children:c,active:a=!0,refProp:d="ref"}){const et=useFocusTrap(a),nt=useMergedRef(et,c==null?void 0:c.ref);return isElement$1(c)?reactExports.cloneElement(c,{[d]:nt}):c}function FocusTrapInitialFocus(c){return React.createElement(VisuallyHidden,{tabIndex:-1,"data-autofocus":!0,...c})}FocusTrap.displayName="@mantine/core/FocusTrap";FocusTrapInitialFocus.displayName="@mantine/core/FocusTrapInitialFocus";FocusTrap.InitialFocus=FocusTrapInitialFocus;function createPortalNode(c){const a=document.createElement("div");return a.setAttribute("data-portal","true"),typeof c.className=="string"&&a.classList.add(...c.className.split(" ").filter(Boolean)),typeof c.style=="object"&&Object.assign(a.style,c.style),typeof c.id=="string"&&a.setAttribute("id",c.id),a}const defaultProps$1j={},Portal=reactExports.forwardRef((c,a)=>{const{children:d,target:et,...nt}=useProps("Portal",defaultProps$1j,c),[tt,bt]=reactExports.useState(!1),gt=reactExports.useRef(null);return useIsomorphicEffect(()=>(bt(!0),gt.current=et?typeof et=="string"?document.querySelector(et):et:createPortalNode(nt),assignRef(a,gt.current),!et&>.current&&document.body.appendChild(gt.current),()=>{!et&>.current&&document.body.removeChild(gt.current)}),[et]),!tt||!gt.current?null:reactDomExports.createPortal(React.createElement(React.Fragment,null,d),gt.current)});Portal.displayName="@mantine/core/Portal";function OptionalPortal({withinPortal:c=!0,children:a,...d}){return c?React.createElement(Portal,{...d},a):React.createElement(React.Fragment,null,a)}OptionalPortal.displayName="@mantine/core/OptionalPortal";const popIn=c=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${rem(c==="bottom"?10:-10)})`},transitionProperty:"transform, opacity"}),transitions={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:`translateY(${rem(30)}`},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:`translateY(${rem(-30)}`},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:`translateX(${rem(30)}`},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:`translateX(${rem(-30)}`},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:`translateY(${rem(-20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:`translateY(${rem(20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${rem(20)}) rotate(-5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${rem(20)}) rotate(5deg)`},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...popIn("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...popIn("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...popIn("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...popIn("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...popIn("top"),common:{transformOrigin:"top right"}}},transitionStatuses={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function getTransitionStyles({transition:c,state:a,duration:d,timingFunction:et}){const nt={transitionDuration:`${d}ms`,transitionTimingFunction:et};return typeof c=="string"?c in transitions?{transitionProperty:transitions[c].transitionProperty,...nt,...transitions[c].common,...transitions[c][transitionStatuses[a]]}:{}:{transitionProperty:c.transitionProperty,...nt,...c.common,...c[transitionStatuses[a]]}}function useTransition({duration:c,exitDuration:a,timingFunction:d,mounted:et,onEnter:nt,onExit:tt,onEntered:bt,onExited:gt}){const wt=useMantineTheme(),St=useReducedMotion(),Mt=wt.respectReducedMotion?St:!1,[_t,Tt]=reactExports.useState(Mt?0:c),[Bt,kt]=reactExports.useState(et?"entered":"exited"),It=reactExports.useRef(-1),Lt=reactExports.useRef(-1),Ot=Nt=>{const Ft=Nt?nt:tt,zt=Nt?bt:gt;window.clearTimeout(It.current);const Vt=Mt?0:Nt?c:a;Tt(Vt),Vt===0?(typeof Ft=="function"&&Ft(),typeof zt=="function"&&zt(),kt(Nt?"entered":"exited")):Lt.current=requestAnimationFrame(()=>{ReactDOM.flushSync(()=>{kt(Nt?"pre-entering":"pre-exiting")}),Lt.current=requestAnimationFrame(()=>{typeof Ft=="function"&&Ft(),kt(Nt?"entering":"exiting"),It.current=window.setTimeout(()=>{typeof zt=="function"&&zt(),kt(Nt?"entered":"exited")},Vt)})})};return useDidUpdate(()=>{Ot(et)},[et]),reactExports.useEffect(()=>()=>{window.clearTimeout(It.current),cancelAnimationFrame(Lt.current)},[]),{transitionDuration:_t,transitionStatus:Bt,transitionTimingFunction:d||"ease"}}function Transition({keepMounted:c,transition:a="fade",duration:d=250,exitDuration:et=d,mounted:nt,children:tt,timingFunction:bt="ease",onExit:gt,onEntered:wt,onEnter:St,onExited:Mt}){const{transitionDuration:_t,transitionStatus:Tt,transitionTimingFunction:Bt}=useTransition({mounted:nt,exitDuration:et,duration:d,timingFunction:bt,onExit:gt,onEntered:wt,onEnter:St,onExited:Mt});return _t===0?nt?React.createElement(React.Fragment,null,tt({})):c?tt({display:"none"}):null:Tt==="exited"?c?tt({display:"none"}):null:React.createElement(React.Fragment,null,tt(getTransitionStyles({transition:a,duration:_t,state:Tt,timingFunction:Bt})))}Transition.displayName="@mantine/core/Transition";var classes$C={dropdown:"m_38a85659",arrow:"m_a31dc6c1"};const defaultProps$1i={},PopoverDropdown=factory((c,a)=>{var Lt,Ot,Nt,Ft;const d=useProps("PopoverDropdown",defaultProps$1i,c),{className:et,style:nt,vars:tt,children:bt,onKeyDownCapture:gt,variant:wt,classNames:St,styles:Mt,..._t}=d,Tt=usePopoverContext(),Bt=useFocusReturn({opened:Tt.opened,shouldReturnFocus:Tt.returnFocus}),kt=Tt.withRoles?{"aria-labelledby":Tt.getTargetId(),id:Tt.getDropdownId(),role:"dialog",tabIndex:-1}:{},It=useMergedRef(a,Tt.floating);return Tt.disabled?null:React.createElement(OptionalPortal,{...Tt.portalProps,withinPortal:Tt.withinPortal},React.createElement(Transition,{mounted:Tt.opened,...Tt.transitionProps,transition:((Lt=Tt.transitionProps)==null?void 0:Lt.transition)||"fade",duration:((Ot=Tt.transitionProps)==null?void 0:Ot.duration)??150,keepMounted:Tt.keepMounted,exitDuration:typeof((Nt=Tt.transitionProps)==null?void 0:Nt.exitDuration)=="number"?Tt.transitionProps.exitDuration:(Ft=Tt.transitionProps)==null?void 0:Ft.duration},zt=>React.createElement(FocusTrap,{active:Tt.trapFocus},React.createElement(Box,{...kt,..._t,variant:wt,ref:It,onKeyDownCapture:closeOnEscape(Tt.onClose,{active:Tt.closeOnEscape,onTrigger:Bt,onKeyDown:gt}),"data-position":Tt.placement,...Tt.getStyles("dropdown",{className:et,props:d,classNames:St,styles:Mt,style:[{...zt,zIndex:Tt.zIndex,top:Tt.y??0,left:Tt.x??0,width:Tt.width==="target"?void 0:rem(Tt.width)},nt]})},bt,React.createElement(FloatingArrow,{ref:Tt.arrowRef,arrowX:Tt.arrowX,arrowY:Tt.arrowY,visible:Tt.withArrow,position:Tt.placement,arrowSize:Tt.arrowSize,arrowRadius:Tt.arrowRadius,arrowOffset:Tt.arrowOffset,arrowPosition:Tt.arrowPosition,...Tt.getStyles("arrow",{props:d,classNames:St,styles:Mt})})))))});PopoverDropdown.classes=classes$C;PopoverDropdown.displayName="@mantine/core/PopoverDropdown";const defaultProps$1h={refProp:"ref",popupType:"dialog"},PopoverTarget=factory((c,a)=>{const{children:d,refProp:et,popupType:nt,...tt}=useProps("PopoverTarget",defaultProps$1h,c);if(!isElement$1(d))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const bt=tt,gt=usePopoverContext(),wt=useMergedRef(gt.reference,d.ref,a),St=gt.withRoles?{"aria-haspopup":nt,"aria-expanded":gt.opened,"aria-controls":gt.getDropdownId(),id:gt.getTargetId()}:{};return reactExports.cloneElement(d,{...bt,...St,...gt.targetProps,className:clsx(gt.targetProps.className,bt.className,d.props.className),[et]:wt,...gt.controlled?null:{onClick:gt.onToggle}})});PopoverTarget.displayName="@mantine/core/PopoverTarget";function useFloatingAutoUpdate({opened:c,floating:a,position:d,positionDependencies:et}){const[nt,tt]=reactExports.useState(0);reactExports.useEffect(()=>{if(a.refs.reference.current&&a.refs.floating.current)return autoUpdate(a.refs.reference.current,a.refs.floating.current,a.update)},[a.refs.reference.current,a.refs.floating.current,c,nt,d]),useDidUpdate(()=>{a.update()},et),useDidUpdate(()=>{tt(bt=>bt+1)},[c])}function getDefaultMiddlewares(c){if(c===void 0)return{shift:!0,flip:!0};const a={...c};return c.shift===void 0&&(a.shift=!0),c.flip===void 0&&(a.flip=!0),a}function getPopoverMiddlewares(c,a){const d=getDefaultMiddlewares(c.middlewares),et=[offset(c.offset)];return d.shift&&et.push(shift(typeof d.shift=="boolean"?{limiter:limitShift(),padding:5}:{limiter:limitShift(),padding:5,...d.shift})),d.flip&&et.push(typeof d.flip=="boolean"?flip():flip(d.flip)),d.inline&&et.push(typeof d.inline=="boolean"?inline():inline(d.inline)),et.push(arrow({element:c.arrowRef,padding:c.arrowOffset})),(d.size||c.width==="target")&&et.push(size$3({...typeof d.size=="boolean"?{}:d.size,apply({rects:nt,availableWidth:tt,availableHeight:bt}){var St;const wt=((St=a().refs.floating.current)==null?void 0:St.style)??{};d.size&&Object.assign(wt,{maxWidth:`${tt}px`,maxHeight:`${bt}px`}),c.width==="target"&&Object.assign(wt,{width:`${nt.reference.width}px`})}})),et}function usePopover(c){const[a,d]=useUncontrolled({value:c.opened,defaultValue:c.defaultOpened,finalValue:!1,onChange:c.onChange}),et=()=>{var bt;a&&((bt=c.onClose)==null||bt.call(c),d(!1))},nt=()=>{var bt,gt;a?((bt=c.onClose)==null||bt.call(c),d(!1)):((gt=c.onOpen)==null||gt.call(c),d(!0))},tt=useFloating({strategy:c.strategy,placement:c.position,middleware:getPopoverMiddlewares(c,()=>tt)});return useFloatingAutoUpdate({opened:c.opened,position:c.position,positionDependencies:c.positionDependencies||[],floating:tt}),useDidUpdate(()=>{var bt;(bt=c.onPositionChange)==null||bt.call(c,tt.placement)},[tt.placement]),useDidUpdate(()=>{var bt,gt;c.opened?(gt=c.onOpen)==null||gt.call(c):(bt=c.onClose)==null||bt.call(c)},[c.opened]),{floating:tt,controlled:typeof c.opened=="boolean",opened:a,onClose:et,onToggle:nt}}const defaultProps$1g={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:getDefaultZIndex("popover"),__staticSelector:"Popover",width:"max-content"},varsResolver$y=(c,{radius:a,shadow:d})=>({dropdown:{"--popover-radius":a===void 0?void 0:getRadius(a),"--popover-shadow":getShadow(d)}});function Popover(c){var Pr,br,dr,Kr,xr,Sr;const a=useProps("Popover",defaultProps$1g,c),{children:d,position:et,offset:nt,onPositionChange:tt,positionDependencies:bt,opened:gt,transitionProps:wt,width:St,middlewares:Mt,withArrow:_t,arrowSize:Tt,arrowOffset:Bt,arrowRadius:kt,arrowPosition:It,unstyled:Lt,classNames:Ot,styles:Nt,closeOnClickOutside:Ft,withinPortal:zt,portalProps:Vt,closeOnEscape:Jt,clickOutsideEvents:ir,trapFocus:rr,onClose:er,onOpen:lr,onChange:Ct,zIndex:dt,radius:mt,shadow:yt,id:vt,defaultOpened:Et,__staticSelector:At,withRoles:Pt,disabled:xt,returnFocus:ht,variant:$t,keepMounted:Rt,vars:Dt,floatingStrategy:Ht,...tr}=a,Xt=useStyles({name:At,props:a,classes:classes$C,classNames:Ot,styles:Nt,unstyled:Lt,rootSelector:"dropdown",vars:Dt,varsResolver:varsResolver$y}),Ut=reactExports.useRef(null),[qt,Gt]=reactExports.useState(null),[Zt,Yt]=reactExports.useState(null),{dir:Kt}=useDirection(),ar=useId$1(vt),gr=usePopover({middlewares:Mt,width:St,position:getFloatingPosition(Kt,et),offset:typeof nt=="number"?nt+(_t?Tt/2:0):nt,arrowRef:Ut,arrowOffset:Bt,onPositionChange:tt,positionDependencies:bt,opened:gt,defaultOpened:Et,onChange:Ct,onOpen:lr,onClose:er,strategy:Ht});useClickOutside(()=>Ft&&gr.onClose(),ir,[qt,Zt]);const cr=reactExports.useCallback(Zr=>{Gt(Zr),gr.floating.refs.setReference(Zr)},[gr.floating.refs.setReference]),ur=reactExports.useCallback(Zr=>{Yt(Zr),gr.floating.refs.setFloating(Zr)},[gr.floating.refs.setFloating]);return React.createElement(PopoverContextProvider,{value:{returnFocus:ht,disabled:xt,controlled:gr.controlled,reference:cr,floating:ur,x:gr.floating.x,y:gr.floating.y,arrowX:(dr=(br=(Pr=gr.floating)==null?void 0:Pr.middlewareData)==null?void 0:br.arrow)==null?void 0:dr.x,arrowY:(Sr=(xr=(Kr=gr.floating)==null?void 0:Kr.middlewareData)==null?void 0:xr.arrow)==null?void 0:Sr.y,opened:gr.opened,arrowRef:Ut,transitionProps:wt,width:St,withArrow:_t,arrowSize:Tt,arrowOffset:Bt,arrowRadius:kt,arrowPosition:It,placement:gr.floating.placement,trapFocus:rr,withinPortal:zt,portalProps:Vt,zIndex:dt,radius:mt,shadow:yt,closeOnEscape:Jt,onClose:gr.onClose,onToggle:gr.onToggle,getTargetId:()=>`${ar}-target`,getDropdownId:()=>`${ar}-dropdown`,withRoles:Pt,targetProps:tr,__staticSelector:At,classNames:Ot,styles:Nt,unstyled:Lt,variant:$t,keepMounted:Rt,getStyles:Xt}},d)}Popover.Target=PopoverTarget;Popover.Dropdown=PopoverDropdown;Popover.displayName="@mantine/core/Popover";Popover.extend=c=>c;var classes$B={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const Bars=reactExports.forwardRef(({className:c,...a},d)=>React.createElement(Box,{component:"span",className:clsx(classes$B.barsLoader,c),...a,ref:d},React.createElement("span",{className:classes$B.bar}),React.createElement("span",{className:classes$B.bar}),React.createElement("span",{className:classes$B.bar}))),Dots=reactExports.forwardRef(({className:c,...a},d)=>React.createElement(Box,{component:"span",className:clsx(classes$B.dotsLoader,c),...a,ref:d},React.createElement("span",{className:classes$B.dot}),React.createElement("span",{className:classes$B.dot}),React.createElement("span",{className:classes$B.dot}))),Oval=reactExports.forwardRef(({className:c,...a},d)=>React.createElement(Box,{component:"span",className:clsx(classes$B.ovalLoader,c),...a,ref:d})),defaultLoaders={bars:Bars,oval:Oval,dots:Dots},defaultProps$1f={loaders:defaultLoaders,type:"oval"},varsResolver$x=(c,{size:a,color:d})=>({root:{"--loader-size":getSize(a,"loader-size"),"--loader-color":d?getThemeColor(d,c):void 0}}),Loader=factory((c,a)=>{const d=useProps("Loader",defaultProps$1f,c),{size:et,color:nt,type:tt,vars:bt,className:gt,style:wt,classNames:St,styles:Mt,unstyled:_t,loaders:Tt,variant:Bt,children:kt,...It}=d,Lt=useStyles({name:"Loader",props:d,classes:classes$B,className:gt,style:wt,classNames:St,styles:Mt,unstyled:_t,vars:bt,varsResolver:varsResolver$x});return kt?React.createElement(Box,{...Lt("root"),ref:a,...It},kt):React.createElement(Box,{...Lt("root"),ref:a,component:Tt[tt],variant:Bt,size:et,...It})});Loader.defaultLoaders=defaultLoaders;Loader.classes=classes$B;Loader.displayName="@mantine/core/Loader";var classes$A={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21"};const defaultProps$1e={orientation:"horizontal"},varsResolver$w=(c,{borderWidth:a})=>({group:{"--ai-border-width":rem(a)}}),ActionIconGroup=factory((c,a)=>{const d=useProps("ActionIconGroup",defaultProps$1e,c),{className:et,style:nt,classNames:tt,styles:bt,unstyled:gt,orientation:wt,vars:St,borderWidth:Mt,variant:_t,mod:Tt,...Bt}=useProps("ActionIconGroup",defaultProps$1e,c),kt=useStyles({name:"ActionIconGroup",props:d,classes:classes$A,className:et,style:nt,classNames:tt,styles:bt,unstyled:gt,vars:St,varsResolver:varsResolver$w,rootSelector:"group"});return React.createElement(Box,{...kt("group"),ref:a,variant:_t,mod:[{"data-orientation":wt},Tt],role:"group",...Bt})});ActionIconGroup.classes=classes$A;ActionIconGroup.displayName="@mantine/core/ActionIconGroup";const defaultProps$1d={},varsResolver$v=(c,{size:a,radius:d,variant:et,gradient:nt,color:tt,autoContrast:bt})=>{const gt=c.variantColorResolver({color:tt||c.primaryColor,theme:c,gradient:nt,variant:et||"filled",autoContrast:bt});return{root:{"--ai-size":getSize(a,"ai-size"),"--ai-radius":d===void 0?void 0:getRadius(d),"--ai-bg":tt||et?gt.background:void 0,"--ai-hover":tt||et?gt.hover:void 0,"--ai-hover-color":tt||et?gt.hoverColor:void 0,"--ai-color":gt.color,"--ai-bd":tt||et?gt.border:void 0}}},ActionIcon=polymorphicFactory((c,a)=>{const d=useProps("ActionIcon",defaultProps$1d,c),{className:et,unstyled:nt,variant:tt,classNames:bt,styles:gt,style:wt,loading:St,loaderProps:Mt,size:_t,color:Tt,radius:Bt,__staticSelector:kt,gradient:It,vars:Lt,children:Ot,disabled:Nt,"data-disabled":Ft,autoContrast:zt,mod:Vt,...Jt}=d,ir=useStyles({name:["ActionIcon",kt],props:d,className:et,style:wt,classes:classes$A,classNames:bt,styles:gt,unstyled:nt,vars:Lt,varsResolver:varsResolver$v});return React.createElement(UnstyledButton,{...ir("root",{active:!Nt&&!St&&!Ft}),...Jt,unstyled:nt,variant:tt,size:_t,disabled:Nt||St,ref:a,mod:[{loading:St,disabled:Nt||Ft},Vt]},React.createElement(Transition,{mounted:!!St,transition:"slide-down",duration:150},rr=>React.createElement(Box,{component:"span",...ir("loader",{style:rr}),"aria-hidden":!0},React.createElement(Loader,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...Mt}))),React.createElement(Box,{component:"span",mod:{loading:St},...ir("icon")},Ot))});ActionIcon.classes=classes$A;ActionIcon.displayName="@mantine/core/ActionIcon";ActionIcon.Group=ActionIconGroup;const CloseIcon=reactExports.forwardRef(({size:c="var(--cb-icon-size, 70%)",style:a,...d},et)=>React.createElement("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...a,width:c,height:c},ref:et,...d},React.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})));CloseIcon.displayName="@mantine/core/CloseIcon";var classes$z={root:"m_86a44da5","root--subtle":"m_220c80f2"};const defaultProps$1c={variant:"subtle"},varsResolver$u=(c,{size:a,radius:d,iconSize:et})=>({root:{"--cb-size":getSize(a,"cb-size"),"--cb-radius":d===void 0?void 0:getRadius(d),"--cb-icon-size":rem(et)}}),CloseButton=polymorphicFactory((c,a)=>{const d=useProps("CloseButton",defaultProps$1c,c),{iconSize:et,children:nt,vars:tt,radius:bt,className:gt,classNames:wt,style:St,styles:Mt,unstyled:_t,"data-disabled":Tt,disabled:Bt,variant:kt,icon:It,mod:Lt,...Ot}=d,Nt=useStyles({name:"CloseButton",props:d,className:gt,style:St,classes:classes$z,classNames:wt,styles:Mt,unstyled:_t,vars:tt,varsResolver:varsResolver$u});return React.createElement(UnstyledButton,{ref:a,...Ot,unstyled:_t,variant:kt,disabled:Bt,mod:[{disabled:Bt||Tt},Lt],...Nt("root",{variant:kt,active:!Bt&&!Tt})},It||React.createElement(CloseIcon,null),nt)});CloseButton.classes=classes$z;CloseButton.displayName="@mantine/core/CloseButton";function filterFalsyChildren(c){return reactExports.Children.toArray(c).filter(Boolean)}var classes$y={root:"m_4081bf90"};const defaultProps$1b={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},varsResolver$t=(c,{grow:a,preventGrowOverflow:d,gap:et,align:nt,justify:tt,wrap:bt},{childWidth:gt})=>({root:{"--group-child-width":a&&d?gt:void 0,"--group-gap":getSpacing(et),"--group-align":nt,"--group-justify":tt,"--group-wrap":bt}}),Group=factory((c,a)=>{const d=useProps("Group",defaultProps$1b,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,children:wt,gap:St,align:Mt,justify:_t,wrap:Tt,grow:Bt,preventGrowOverflow:kt,vars:It,variant:Lt,__size:Ot,mod:Nt,...Ft}=d,zt=filterFalsyChildren(wt),Vt=zt.length,Jt=getSpacing(St??"md"),rr={childWidth:`calc(${100/Vt}% - (${Jt} - ${Jt} / ${Vt}))`},er=useStyles({name:"Group",props:d,stylesCtx:rr,className:nt,style:tt,classes:classes$y,classNames:et,styles:bt,unstyled:gt,vars:It,varsResolver:varsResolver$t});return React.createElement(Box,{...er("root"),ref:a,variant:Lt,mod:[{grow:Bt},Nt],size:Ot,...Ft},zt)});Group.classes=classes$y;Group.displayName="@mantine/core/Group";var classes$x={root:"m_9814e45f"};const defaultProps$1a={zIndex:getDefaultZIndex("modal")},varsResolver$s=(c,{gradient:a,color:d,backgroundOpacity:et,blur:nt,radius:tt,zIndex:bt})=>({root:{"--overlay-bg":a||(d!==void 0||et!==void 0)&&rgba(d||"#000",et??.6)||void 0,"--overlay-filter":nt?`blur(${rem(nt)})`:void 0,"--overlay-radius":tt===void 0?void 0:getRadius(tt),"--overlay-z-index":bt==null?void 0:bt.toString()}}),Overlay=polymorphicFactory((c,a)=>{const d=useProps("Overlay",defaultProps$1a,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,fixed:St,center:Mt,children:_t,radius:Tt,zIndex:Bt,gradient:kt,blur:It,color:Lt,backgroundOpacity:Ot,mod:Nt,...Ft}=d,zt=useStyles({name:"Overlay",props:d,classes:classes$x,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$s});return React.createElement(Box,{ref:a,...zt("root"),mod:[{center:Mt,fixed:St},Nt],...Ft},_t)});Overlay.classes=classes$x;Overlay.displayName="@mantine/core/Overlay";const[ModalBaseProvider,useModalBaseContext]=createSafeContext("ModalBase component was not found in tree");function useLockScroll({opened:c,transitionDuration:a}){const[d,et]=reactExports.useState(c),nt=reactExports.useRef(),bt=useReducedMotion()?0:a;return reactExports.useEffect(()=>(c?(et(!0),window.clearTimeout(nt.current)):bt===0?et(!1):nt.current=window.setTimeout(()=>et(!1),bt),()=>window.clearTimeout(nt.current)),[c,bt]),d}function useModal({id:c,transitionProps:a,opened:d,trapFocus:et,closeOnEscape:nt,onClose:tt,returnFocus:bt}){const gt=useId$1(c),[wt,St]=reactExports.useState(!1),[Mt,_t]=reactExports.useState(!1),Tt=typeof(a==null?void 0:a.duration)=="number"?a==null?void 0:a.duration:200,Bt=useLockScroll({opened:d,transitionDuration:Tt});return useWindowEvent("keydown",kt=>{var It;kt.key==="Escape"&&nt&&((It=kt.target)==null?void 0:It.getAttribute("data-mantine-stop-propagation"))!=="true"&&tt()},{capture:!0}),useFocusReturn({opened:d,shouldReturnFocus:et&&bt}),{_id:gt,titleMounted:wt,bodyMounted:Mt,shouldLockScroll:Bt,setTitleMounted:St,setBodyMounted:_t}}const ModalBase=reactExports.forwardRef(({keepMounted:c,opened:a,onClose:d,id:et,transitionProps:nt,trapFocus:tt,closeOnEscape:bt,returnFocus:gt,closeOnClickOutside:wt,withinPortal:St,portalProps:Mt,lockScroll:_t,children:Tt,zIndex:Bt,shadow:kt,padding:It,__vars:Lt,unstyled:Ot,removeScrollProps:Nt,...Ft},zt)=>{const{_id:Vt,titleMounted:Jt,bodyMounted:ir,shouldLockScroll:rr,setTitleMounted:er,setBodyMounted:lr}=useModal({id:et,transitionProps:nt,opened:a,trapFocus:tt,closeOnEscape:bt,onClose:d,returnFocus:gt});return React.createElement(OptionalPortal,{...Mt,withinPortal:St},React.createElement(ModalBaseProvider,{value:{opened:a,onClose:d,closeOnClickOutside:wt,transitionProps:{...nt,keepMounted:c},getTitleId:()=>`${Vt}-title`,getBodyId:()=>`${Vt}-body`,titleMounted:Jt,bodyMounted:ir,setTitleMounted:er,setBodyMounted:lr,trapFocus:tt,closeOnEscape:bt,zIndex:Bt,unstyled:Ot}},React.createElement(RemoveScroll,{enabled:rr&&_t,...Nt},React.createElement(Box,{ref:zt,...Ft,__vars:{...Lt,"--mb-z-index":(Bt||getDefaultZIndex("modal")).toString(),"--mb-shadow":getShadow(kt),"--mb-padding":getSpacing(It)}},Tt))))});function useModalBodyId(){const c=useModalBaseContext();return reactExports.useEffect(()=>(c.setBodyMounted(!0),()=>c.setBodyMounted(!1)),[]),c.getBodyId()}var classes$w={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};const ModalBaseBody=reactExports.forwardRef(({className:c,...a},d)=>{const et=useModalBodyId(),nt=useModalBaseContext();return React.createElement(Box,{ref:d,...a,id:et,className:clsx({[classes$w.body]:!nt.unstyled},c)})});ModalBaseBody.displayName="@mantine/core/ModalBaseBody";const ModalBaseCloseButton=reactExports.forwardRef(({className:c,onClick:a,...d},et)=>{const nt=useModalBaseContext();return React.createElement(CloseButton,{ref:et,...d,onClick:tt=>{nt.onClose(),a==null||a(tt)},className:clsx({[classes$w.close]:!nt.unstyled},c),unstyled:nt.unstyled})});ModalBaseCloseButton.displayName="@mantine/core/ModalBaseCloseButton";const ModalBaseContent=reactExports.forwardRef(({transitionProps:c,className:a,innerProps:d,onKeyDown:et,style:nt,...tt},bt)=>{const gt=useModalBaseContext();return React.createElement(Transition,{mounted:gt.opened,transition:"pop",...gt.transitionProps,...c},wt=>React.createElement("div",{...d,className:clsx({[classes$w.inner]:!gt.unstyled},d.className)},React.createElement(FocusTrap,{active:gt.opened&>.trapFocus},React.createElement(Paper,{...tt,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":gt.bodyMounted?gt.getBodyId():void 0,"aria-labelledby":gt.titleMounted?gt.getTitleId():void 0,ref:bt,style:[nt,wt],className:clsx({[classes$w.content]:!gt.unstyled},a),unstyled:gt.unstyled},tt.children))))}),ModalBaseHeader=reactExports.forwardRef(({className:c,...a},d)=>{const et=useModalBaseContext();return React.createElement(Box,{component:"header",ref:d,className:clsx({[classes$w.header]:!et.unstyled},c),...a})});ModalBaseHeader.displayName="@mantine/core/ModalBaseHeader";const DEFAULT_TRANSITION={duration:200,timingFunction:"ease",transition:"fade"};function useModalTransition(c){const a=useModalBaseContext();return{...DEFAULT_TRANSITION,...a.transitionProps,...c}}const ModalBaseOverlay=reactExports.forwardRef(({onClick:c,transitionProps:a,style:d,...et},nt)=>{const tt=useModalBaseContext(),bt=useModalTransition(a);return React.createElement(Transition,{mounted:tt.opened,...bt,transition:"fade"},gt=>React.createElement(Overlay,{ref:nt,fixed:!0,style:[d,gt],zIndex:tt.zIndex,unstyled:tt.unstyled,onClick:wt=>{c==null||c(wt),tt.closeOnClickOutside&&tt.onClose()},...et}))});ModalBaseOverlay.displayName="@mantine/core/ModalBaseOverlay";function useModalTitle(){const c=useModalBaseContext();return reactExports.useEffect(()=>(c.setTitleMounted(!0),()=>c.setTitleMounted(!1)),[]),c.getTitleId()}const ModalBaseTitle=reactExports.forwardRef(({className:c,...a},d)=>{const et=useModalTitle(),nt=useModalBaseContext();return React.createElement(Box,{component:"h2",ref:d,className:clsx({[classes$w.title]:!nt.unstyled},c),...a,id:et})});ModalBaseTitle.displayName="@mantine/core/ModalBaseTitle";function NativeScrollArea({children:c}){return React.createElement(React.Fragment,null,c)}const[InputWrapperProvider,useInputWrapperContext]=createOptionalContext({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var classes$v={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const defaultProps$19={},varsResolver$r=(c,{size:a})=>({description:{"--input-description-size":a===void 0?void 0:`calc(${getFontSize(a)} - ${rem(2)})`}}),InputDescription=factory((c,a)=>{const d=useProps("InputDescription",defaultProps$19,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,size:St,__staticSelector:Mt,__inheritStyles:_t=!0,variant:Tt,...Bt}=useProps("InputDescription",defaultProps$19,d),kt=useInputWrapperContext(),It=useStyles({name:["InputWrapper",Mt],props:d,classes:classes$v,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,rootSelector:"description",vars:wt,varsResolver:varsResolver$r}),Lt=_t&&(kt==null?void 0:kt.getStyles)||It;return React.createElement(Box,{component:"p",ref:a,variant:Tt,size:St,...Lt("description",kt!=null&&kt.getStyles?{className:nt,style:tt}:void 0),...Bt})});InputDescription.classes=classes$v;InputDescription.displayName="@mantine/core/InputDescription";const defaultProps$18={},varsResolver$q=(c,{size:a})=>({error:{"--input-error-size":a===void 0?void 0:`calc(${getFontSize(a)} - ${rem(2)})`}}),InputError=factory((c,a)=>{const d=useProps("InputError",defaultProps$18,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,size:St,__staticSelector:Mt,__inheritStyles:_t=!0,variant:Tt,...Bt}=d,kt=useStyles({name:["InputWrapper",Mt],props:d,classes:classes$v,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,rootSelector:"error",vars:wt,varsResolver:varsResolver$q}),It=useInputWrapperContext(),Lt=_t&&(It==null?void 0:It.getStyles)||kt;return React.createElement(Box,{component:"p",ref:a,variant:Tt,size:St,...Lt("error",It!=null&&It.getStyles?{className:nt,style:tt}:void 0),...Bt})});InputError.classes=classes$v;InputError.displayName="@mantine/core/InputError";const defaultProps$17={labelElement:"label"},varsResolver$p=(c,{size:a})=>({label:{"--input-label-size":getFontSize(a),"--input-asterisk-color":void 0}}),InputLabel=factory((c,a)=>{const d=useProps("InputLabel",defaultProps$17,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,labelElement:St,size:Mt,required:_t,htmlFor:Tt,onMouseDown:Bt,children:kt,__staticSelector:It,variant:Lt,mod:Ot,...Nt}=useProps("InputLabel",defaultProps$17,d),Ft=useStyles({name:["InputWrapper",It],props:d,classes:classes$v,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,rootSelector:"label",vars:wt,varsResolver:varsResolver$p}),zt=useInputWrapperContext(),Vt=(zt==null?void 0:zt.getStyles)||Ft;return React.createElement(Box,{...Vt("label",zt!=null&&zt.getStyles?{className:nt,style:tt}:void 0),component:St,variant:Lt,size:Mt,ref:a,htmlFor:St==="label"?Tt:void 0,mod:[{required:_t},Ot],onMouseDown:Jt=>{Bt==null||Bt(Jt),!Jt.defaultPrevented&&Jt.detail>1&&Jt.preventDefault()},...Nt},kt,_t&&React.createElement("span",{...Vt("required"),"aria-hidden":!0}," *"))});InputLabel.classes=classes$v;InputLabel.displayName="@mantine/core/InputLabel";const defaultProps$16={},InputPlaceholder=factory((c,a)=>{const d=useProps("InputPlaceholder",defaultProps$16,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,__staticSelector:St,variant:Mt,error:_t,mod:Tt,...Bt}=useProps("InputPlaceholder",defaultProps$16,d),kt=useStyles({name:["InputPlaceholder",St],props:d,classes:classes$v,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,rootSelector:"placeholder"});return React.createElement(Box,{...kt("placeholder"),mod:[{error:!!_t},Tt],component:"span",variant:Mt,ref:a,...Bt})});InputPlaceholder.classes=classes$v;InputPlaceholder.displayName="@mantine/core/InputPlaceholder";function getInputOffsets(c,{hasDescription:a,hasError:d}){const et=c.findIndex(wt=>wt==="input"),nt=c[et-1],tt=c[et+1];return{offsetBottom:a&&tt==="description"||d&&tt==="error",offsetTop:a&&nt==="description"||d&&nt==="error"}}const defaultProps$15={labelElement:"label",inputContainer:c=>c,inputWrapperOrder:["label","description","input","error"]},varsResolver$o=(c,{size:a})=>({label:{"--input-label-size":getFontSize(a),"--input-asterisk-color":void 0},error:{"--input-error-size":a===void 0?void 0:`calc(${getFontSize(a)} - ${rem(2)})`},description:{"--input-description-size":a===void 0?void 0:`calc(${getFontSize(a)} - ${rem(2)})`}}),InputWrapper=factory((c,a)=>{const d=useProps("InputWrapper",defaultProps$15,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,size:St,variant:Mt,__staticSelector:_t,inputContainer:Tt,inputWrapperOrder:Bt,label:kt,error:It,description:Lt,labelProps:Ot,descriptionProps:Nt,errorProps:Ft,labelElement:zt,children:Vt,withAsterisk:Jt,id:ir,required:rr,__stylesApiProps:er,mod:lr,...Ct}=d,dt=useStyles({name:["InputWrapper",_t],props:er||d,classes:classes$v,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$o}),mt={size:St,variant:Mt,__staticSelector:_t},yt=useId$1(ir),vt=typeof Jt=="boolean"?Jt:rr,Et=(Ft==null?void 0:Ft.id)||`${yt}-error`,At=(Nt==null?void 0:Nt.id)||`${yt}-description`,Pt=yt,xt=!!It&&typeof It!="boolean",ht=!!Lt,$t=`${xt?Et:""} ${ht?At:""}`,Rt=$t.trim().length>0?$t.trim():void 0,Dt=(Ot==null?void 0:Ot.id)||`${yt}-label`,Ht=kt&&React.createElement(InputLabel,{key:"label",labelElement:zt,id:Dt,htmlFor:Pt,required:vt,...mt,...Ot},kt),tr=ht&&React.createElement(InputDescription,{key:"description",...Nt,...mt,size:(Nt==null?void 0:Nt.size)||mt.size,id:(Nt==null?void 0:Nt.id)||At},Lt),Xt=React.createElement(React.Fragment,{key:"input"},Tt(Vt)),Ut=xt&&React.createElement(InputError,{...Ft,...mt,size:(Ft==null?void 0:Ft.size)||mt.size,key:"error",id:(Ft==null?void 0:Ft.id)||Et},It),qt=Bt.map(Gt=>{switch(Gt){case"label":return Ht;case"input":return Xt;case"description":return tr;case"error":return Ut;default:return null}});return React.createElement(InputWrapperProvider,{value:{getStyles:dt,describedBy:Rt,inputId:Pt,labelId:Dt,...getInputOffsets(Bt,{hasDescription:ht,hasError:xt})}},React.createElement(Box,{ref:a,variant:Mt,size:St,mod:[{error:!!It},lr],...dt("root"),...Ct},qt))});InputWrapper.classes=classes$v;InputWrapper.displayName="@mantine/core/InputWrapper";const defaultProps$14={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0},varsResolver$n=(c,a,d)=>({wrapper:{"--input-margin-top":d.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":d.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":getSize(a.size,"input-height"),"--input-fz":getFontSize(a.size),"--input-radius":a.radius===void 0?void 0:getRadius(a.radius),"--input-left-section-width":a.leftSectionWidth!==void 0?rem(a.leftSectionWidth):void 0,"--input-right-section-width":a.rightSectionWidth!==void 0?rem(a.rightSectionWidth):void 0,"--input-padding-y":a.multiline?getSize(a.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":a.leftSectionPointerEvents,"--input-right-section-pointer-events":a.rightSectionPointerEvents}}),Input=polymorphicFactory((c,a)=>{const d=useProps("Input",defaultProps$14,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,required:wt,__staticSelector:St,__stylesApiProps:Mt,size:_t,wrapperProps:Tt,error:Bt,disabled:kt,leftSection:It,leftSectionProps:Lt,leftSectionWidth:Ot,rightSection:Nt,rightSectionProps:Ft,rightSectionWidth:zt,rightSectionPointerEvents:Vt,leftSectionPointerEvents:Jt,variant:ir,vars:rr,pointer:er,multiline:lr,radius:Ct,id:dt,withAria:mt,withErrorStyles:yt,mod:vt,...Et}=d,{styleProps:At,rest:Pt}=extractStyleProps(Et),xt=useInputWrapperContext(),ht={offsetBottom:xt==null?void 0:xt.offsetBottom,offsetTop:xt==null?void 0:xt.offsetTop},$t=useStyles({name:["Input",St],props:Mt||d,classes:classes$v,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,stylesCtx:ht,rootSelector:"wrapper",vars:rr,varsResolver:varsResolver$n}),Rt=mt?{required:wt,disabled:kt,"aria-invalid":!!Bt,"aria-describedby":xt==null?void 0:xt.describedBy,id:(xt==null?void 0:xt.inputId)||dt}:{};return React.createElement(Box,{...$t("wrapper"),...At,...Tt,mod:[{error:!!Bt&&yt,pointer:er,disabled:kt,multiline:lr,"data-with-right-section":!!Nt,"data-with-left-section":!!It},vt],variant:ir,size:_t},It&&React.createElement("div",{...Lt,"data-position":"left",...$t("section",{className:Lt==null?void 0:Lt.className,style:Lt==null?void 0:Lt.style})},It),React.createElement(Box,{component:"input",...Pt,...Rt,ref:a,required:wt,mod:{disabled:kt,error:!!Bt&&yt},variant:ir,...$t("input")}),Nt&&React.createElement("div",{...Ft,"data-position":"right",...$t("section",{className:Ft==null?void 0:Ft.className,style:Ft==null?void 0:Ft.style})},Nt))});Input.classes=classes$v;Input.Wrapper=InputWrapper;Input.Label=InputLabel;Input.Error=InputError;Input.Description=InputDescription;Input.Placeholder=InputPlaceholder;Input.displayName="@mantine/core/Input";function useInputProps(c,a,d){const et=useProps(c,a,d),{label:nt,description:tt,error:bt,required:gt,classNames:wt,styles:St,className:Mt,unstyled:_t,__staticSelector:Tt,__stylesApiProps:Bt,errorProps:kt,labelProps:It,descriptionProps:Lt,wrapperProps:Ot,id:Nt,size:Ft,style:zt,inputContainer:Vt,inputWrapperOrder:Jt,withAsterisk:ir,variant:rr,vars:er,mod:lr,...Ct}=et,{styleProps:dt,rest:mt}=extractStyleProps(Ct),yt={label:nt,description:tt,error:bt,required:gt,classNames:wt,className:Mt,__staticSelector:Tt,__stylesApiProps:Bt||et,errorProps:kt,labelProps:It,descriptionProps:Lt,unstyled:_t,styles:St,size:Ft,style:zt,inputContainer:Vt,inputWrapperOrder:Jt,withAsterisk:ir,variant:rr,id:Nt,mod:lr,...Ot};return{...mt,classNames:wt,styles:St,unstyled:_t,wrapperProps:{...yt,...dt},inputProps:{required:gt,classNames:wt,styles:St,unstyled:_t,size:Ft,__staticSelector:Tt,__stylesApiProps:Bt||et,error:bt,variant:rr,id:Nt}}}const defaultProps$13={__staticSelector:"InputBase",withAria:!0},InputBase=polymorphicFactory((c,a)=>{const{inputProps:d,wrapperProps:et,...nt}=useInputProps("InputBase",defaultProps$13,c);return React.createElement(Input.Wrapper,{...et},React.createElement(Input,{...d,...nt,ref:a}))});InputBase.classes={...Input.classes,...Input.Wrapper.classes};InputBase.displayName="@mantine/core/InputBase";function AccordionChevron({style:c,size:a=16,...d}){return React.createElement("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...c,width:rem(a),height:rem(a),display:"block"},...d},React.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}AccordionChevron.displayName="@mantine/core/AccordionChevron";var classes$u={root:"m_7f854edf"};const defaultProps$12={position:{bottom:0,right:0},zIndex:getDefaultZIndex("modal"),withinPortal:!0},varsResolver$m=(c,{zIndex:a,position:d})=>({root:{"--affix-z-index":a==null?void 0:a.toString(),"--affix-top":rem(d==null?void 0:d.top),"--affix-left":rem(d==null?void 0:d.left),"--affix-bottom":rem(d==null?void 0:d.bottom),"--affix-right":rem(d==null?void 0:d.right)}}),Affix=factory((c,a)=>{const d=useProps("Affix",defaultProps$12,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,portalProps:St,zIndex:Mt,withinPortal:_t,position:Tt,...Bt}=d,kt=useStyles({name:"Affix",classes:classes$u,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$m});return React.createElement(OptionalPortal,{...St,withinPortal:_t},React.createElement(Box,{ref:a,...kt("root"),...Bt}))});Affix.classes=classes$u;Affix.displayName="@mantine/core/Affix";var classes$t={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};const defaultProps$11={},varsResolver$l=(c,{radius:a,color:d,variant:et,autoContrast:nt})=>{const tt=c.variantColorResolver({color:d||c.primaryColor,theme:c,variant:et||"light",autoContrast:nt});return{root:{"--alert-radius":a===void 0?void 0:getRadius(a),"--alert-bg":d||et?tt.background:void 0,"--alert-color":tt.color,"--alert-bd":d||et?tt.border:void 0}}},Alert=factory((c,a)=>{const d=useProps("Alert",defaultProps$11,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,radius:St,color:Mt,title:_t,children:Tt,id:Bt,icon:kt,withCloseButton:It,onClose:Lt,closeButtonLabel:Ot,variant:Nt,autoContrast:Ft,...zt}=d,Vt=useStyles({name:"Alert",classes:classes$t,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$l}),Jt=useId$1(Bt),ir=_t&&`${Jt}-title`||void 0,rr=`${Jt}-body`;return React.createElement(Box,{id:Jt,...Vt("root",{variant:Nt}),variant:Nt,ref:a,...zt,role:"alert","aria-describedby":rr,"aria-labelledby":ir},React.createElement("div",{...Vt("wrapper")},kt&&React.createElement("div",{...Vt("icon")},kt),React.createElement("div",{...Vt("body")},_t&&React.createElement("div",{...Vt("title"),"data-with-close-button":It||void 0},React.createElement("span",{id:ir,...Vt("label")},_t)),Tt&&React.createElement("div",{id:rr,...Vt("message"),"data-variant":Nt},Tt)),It&&React.createElement(CloseButton,{...Vt("closeButton"),onClick:Lt,variant:"transparent",size:16,iconSize:16,"aria-label":Ot,unstyled:gt})))});Alert.classes=classes$t;Alert.displayName="@mantine/core/Alert";var classes$s={root:"m_b6d8b162"};function getTextTruncate(c){if(c==="start")return"start";if(c==="end"||c)return"end"}const defaultProps$10={inherit:!1},varsResolver$k=(c,{variant:a,lineClamp:d,gradient:et,size:nt,color:tt})=>({root:{"--text-fz":getFontSize(nt),"--text-lh":getLineHeight(nt),"--text-gradient":a==="gradient"?getGradient(et,c):void 0,"--text-line-clamp":typeof d=="number"?d.toString():void 0,"--text-color":tt?getThemeColor(tt,c):void 0}}),Text=polymorphicFactory((c,a)=>{const d=useProps("Text",defaultProps$10,c),{lineClamp:et,truncate:nt,inline:tt,inherit:bt,gradient:gt,span:wt,__staticSelector:St,vars:Mt,className:_t,style:Tt,classNames:Bt,styles:kt,unstyled:It,variant:Lt,mod:Ot,size:Nt,...Ft}=d,zt=useStyles({name:["Text",St],props:d,classes:classes$s,className:_t,style:Tt,classNames:Bt,styles:kt,unstyled:It,vars:Mt,varsResolver:varsResolver$k});return React.createElement(Box,{...zt("root",{focusable:!0}),ref:a,component:wt?"span":"p",variant:Lt,mod:[{"data-truncate":getTextTruncate(nt),"data-line-clamp":typeof et=="number","data-inline":tt,"data-inherit":bt},Ot],size:Nt,...Ft})});Text.classes=classes$s;Text.displayName="@mantine/core/Text";var classes$r={root:"m_849cf0da"};const defaultProps$$={underline:"hover"},Anchor=polymorphicFactory((c,a)=>{const{underline:d,className:et,unstyled:nt,mod:tt,...bt}=useProps("Anchor",defaultProps$$,c);return React.createElement(Text,{component:"a",ref:a,className:clsx({[classes$r.root]:!nt},et),...bt,mod:[{underline:d},tt],__staticSelector:"Anchor",unstyled:nt})});Anchor.classes=classes$r;Anchor.displayName="@mantine/core/Anchor";const[AppShellProvider,useAppShellContext]=createSafeContext("AppShell was not found in tree");var classes$q={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const defaultProps$_={},AppShellAside=factory((c,a)=>{const d=useProps("AppShellAside",defaultProps$_,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,withBorder:St,zIndex:Mt,mod:_t,...Tt}=d,Bt=useAppShellContext();return Bt.disabled?null:React.createElement(Box,{component:"aside",ref:a,mod:[{"with-border":St??Bt.withBorder},_t],...Bt.getStyles("aside",{className:nt,classNames:et,styles:bt,style:tt}),...Tt,__vars:{"--app-shell-aside-z-index":`calc(${Mt??Bt.zIndex} + 1)`}})});AppShellAside.classes=classes$q;AppShellAside.displayName="@mantine/core/AppShellAside";const defaultProps$Z={},AppShellFooter=factory((c,a)=>{var kt;const d=useProps("AppShellFooter",defaultProps$Z,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,withBorder:St,zIndex:Mt,mod:_t,...Tt}=d,Bt=useAppShellContext();return Bt.disabled?null:React.createElement(Box,{component:"footer",ref:a,mod:[{"with-border":St??Bt.withBorder},_t],...Bt.getStyles("footer",{className:clsx({[RemoveScroll.classNames.zeroRight]:Bt.offsetScrollbars},nt),classNames:et,styles:bt,style:tt}),...Tt,__vars:{"--app-shell-footer-z-index":(kt=Mt??Bt.zIndex)==null?void 0:kt.toString()}})});AppShellFooter.classes=classes$q;AppShellFooter.displayName="@mantine/core/AppShellFooter";const defaultProps$Y={},AppShellHeader=factory((c,a)=>{var kt;const d=useProps("AppShellHeader",defaultProps$Y,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,withBorder:St,zIndex:Mt,mod:_t,...Tt}=d,Bt=useAppShellContext();return Bt.disabled?null:React.createElement(Box,{component:"header",ref:a,mod:[{"with-border":St??Bt.withBorder},_t],...Bt.getStyles("header",{className:clsx({[RemoveScroll.classNames.zeroRight]:Bt.offsetScrollbars},nt),classNames:et,styles:bt,style:tt}),...Tt,__vars:{"--app-shell-header-z-index":(kt=Mt??Bt.zIndex)==null?void 0:kt.toString()}})});AppShellHeader.classes=classes$q;AppShellHeader.displayName="@mantine/core/AppShellHeader";const defaultProps$X={},AppShellMain=factory((c,a)=>{const d=useProps("AppShellMain",defaultProps$X,c),{classNames:et,className:nt,style:tt,styles:bt,vars:gt,...wt}=d,St=useAppShellContext();return React.createElement(Box,{component:"main",ref:a,...St.getStyles("main",{className:nt,style:tt,classNames:et,styles:bt}),...wt})});AppShellMain.classes=classes$q;AppShellMain.displayName="@mantine/core/AppShellMain";function getBaseSize(c){return typeof c=="object"?c.base:c}function isPrimitiveSize(c){const a=typeof c=="object"&&c!==null&&typeof c.base<"u"&&Object.keys(c).length===1;return typeof c=="number"||typeof c=="string"||a}function isResponsiveSize(c){return!(typeof c!="object"||c===null||Object.keys(c).length===1&&"base"in c)}function assignAsideVariables({baseStyles:c,minMediaStyles:a,maxMediaStyles:d,aside:et,theme:nt}){var wt,St,Mt;const tt=et==null?void 0:et.width,bt="translateX(var(--app-shell-aside-width))",gt="translateX(calc(var(--app-shell-aside-width) * -1))";if(et!=null&&et.breakpoint&&!((wt=et==null?void 0:et.collapsed)!=null&&wt.mobile)&&(d[et==null?void 0:et.breakpoint]=d[et==null?void 0:et.breakpoint]||{},d[et==null?void 0:et.breakpoint]["--app-shell-aside-width"]="100%",d[et==null?void 0:et.breakpoint]["--app-shell-aside-offset"]="0px"),isPrimitiveSize(tt)){const _t=rem(getBaseSize(tt));c["--app-shell-aside-width"]=_t,c["--app-shell-aside-offset"]=_t}if(isResponsiveSize(tt)&&(typeof tt.base<"u"&&(c["--app-shell-aside-width"]=rem(tt.base),c["--app-shell-aside-offset"]=rem(tt.base)),keys(tt).forEach(_t=>{_t!=="base"&&(a[_t]=a[_t]||{},a[_t]["--app-shell-aside-width"]=rem(tt[_t]),a[_t]["--app-shell-aside-offset"]=rem(tt[_t]))})),(St=et==null?void 0:et.collapsed)!=null&&St.desktop){const _t=et.breakpoint;a[_t]=a[_t]||{},a[_t]["--app-shell-aside-transform"]=bt,a[_t]["--app-shell-aside-transform-rtl"]=gt,a[_t]["--app-shell-aside-offset"]="0px !important"}if((Mt=et==null?void 0:et.collapsed)!=null&&Mt.mobile){const _t=getBreakpointValue$1(et.breakpoint,nt)-.1;d[_t]=d[_t]||{},d[_t]["--app-shell-aside-width"]="100%",d[_t]["--app-shell-aside-offset"]="0px",d[_t]["--app-shell-aside-transform"]=bt,d[_t]["--app-shell-aside-transform-rtl"]=gt}}function assignFooterVariables({baseStyles:c,minMediaStyles:a,footer:d}){const et=d==null?void 0:d.height,nt="translateY(var(--app-shell-footer-height))",tt=(d==null?void 0:d.offset)??!0;if(isPrimitiveSize(et)){const bt=rem(getBaseSize(et));c["--app-shell-footer-height"]=bt,tt&&(c["--app-shell-footer-offset"]=bt)}isResponsiveSize(et)&&(typeof et.base<"u"&&(c["--app-shell-footer-height"]=rem(et.base),tt&&(c["--app-shell-footer-offset"]=rem(et.base))),keys(et).forEach(bt=>{bt!=="base"&&(a[bt]=a[bt]||{},a[bt]["--app-shell-footer-height"]=rem(et[bt]),tt&&(a[bt]["--app-shell-footer-offset"]=rem(et[bt])))})),d!=null&&d.collapsed&&(c["--app-shell-footer-transform"]=nt,c["--app-shell-footer-offset"]="0px !important")}function assignHeaderVariables({baseStyles:c,minMediaStyles:a,header:d}){const et=d==null?void 0:d.height,nt="translateY(calc(var(--app-shell-header-height) * -1))",tt=(d==null?void 0:d.offset)??!0;if(isPrimitiveSize(et)){const bt=rem(getBaseSize(et));c["--app-shell-header-height"]=bt,tt&&(c["--app-shell-header-offset"]=bt)}isResponsiveSize(et)&&(typeof et.base<"u"&&(c["--app-shell-header-height"]=rem(et.base),tt&&(c["--app-shell-header-offset"]=rem(et.base))),keys(et).forEach(bt=>{bt!=="base"&&(a[bt]=a[bt]||{},a[bt]["--app-shell-header-height"]=rem(et[bt]),tt&&(a[bt]["--app-shell-header-offset"]=rem(et[bt])))})),d!=null&&d.collapsed&&(c["--app-shell-header-transform"]=nt,c["--app-shell-header-offset"]="0px !important")}function assignNavbarVariables({baseStyles:c,minMediaStyles:a,maxMediaStyles:d,navbar:et,theme:nt}){var wt,St,Mt;const tt=et==null?void 0:et.width,bt="translateX(calc(var(--app-shell-navbar-width) * -1))",gt="translateX(var(--app-shell-navbar-width))";if(et!=null&&et.breakpoint&&!((wt=et==null?void 0:et.collapsed)!=null&&wt.mobile)&&(d[et==null?void 0:et.breakpoint]=d[et==null?void 0:et.breakpoint]||{},d[et==null?void 0:et.breakpoint]["--app-shell-navbar-width"]="100%",d[et==null?void 0:et.breakpoint]["--app-shell-navbar-offset"]="0px"),isPrimitiveSize(tt)){const _t=rem(getBaseSize(tt));c["--app-shell-navbar-width"]=_t,c["--app-shell-navbar-offset"]=_t}if(isResponsiveSize(tt)&&(typeof tt.base<"u"&&(c["--app-shell-navbar-width"]=rem(tt.base),c["--app-shell-navbar-offset"]=rem(tt.base)),keys(tt).forEach(_t=>{_t!=="base"&&(a[_t]=a[_t]||{},a[_t]["--app-shell-navbar-width"]=rem(tt[_t]),a[_t]["--app-shell-navbar-offset"]=rem(tt[_t]))})),(St=et==null?void 0:et.collapsed)!=null&&St.desktop){const _t=et.breakpoint;a[_t]=a[_t]||{},a[_t]["--app-shell-navbar-transform"]=bt,a[_t]["--app-shell-navbar-transform-rtl"]=gt,a[_t]["--app-shell-navbar-offset"]="0px !important"}if((Mt=et==null?void 0:et.collapsed)!=null&&Mt.mobile){const _t=getBreakpointValue$1(et.breakpoint,nt)-.1;d[_t]=d[_t]||{},d[_t]["--app-shell-navbar-width"]="100%",d[_t]["--app-shell-navbar-offset"]="0px",d[_t]["--app-shell-navbar-transform"]=bt,d[_t]["--app-shell-navbar-transform-rtl"]=gt}}function getPaddingValue(c){return Number(c)===0?"0px":getSpacing(c)}function assignPaddingVariables({padding:c,baseStyles:a,minMediaStyles:d}){isPrimitiveSize(c)&&(a["--app-shell-padding"]=getPaddingValue(getBaseSize(c))),isResponsiveSize(c)&&(c.base&&(a["--app-shell-padding"]=getPaddingValue(c.base)),keys(c).forEach(et=>{et!=="base"&&(d[et]=d[et]||{},d[et]["--app-shell-padding"]=getPaddingValue(c[et]))}))}function getVariables({navbar:c,header:a,footer:d,aside:et,padding:nt,theme:tt}){const bt={},gt={},wt={};assignNavbarVariables({baseStyles:wt,minMediaStyles:bt,maxMediaStyles:gt,navbar:c,theme:tt}),assignAsideVariables({baseStyles:wt,minMediaStyles:bt,maxMediaStyles:gt,aside:et,theme:tt}),assignHeaderVariables({baseStyles:wt,minMediaStyles:bt,header:a}),assignFooterVariables({baseStyles:wt,minMediaStyles:bt,footer:d}),assignPaddingVariables({baseStyles:wt,minMediaStyles:bt,padding:nt});const St=getSortedBreakpoints(keys(bt),tt).map(Tt=>({query:`(min-width: ${em(Tt.px)})`,styles:bt[Tt.value]})),Mt=getSortedBreakpoints(keys(gt),tt).map(Tt=>({query:`(max-width: ${em(Tt.px)})`,styles:gt[Tt.value]})),_t=[...St,...Mt];return{baseStyles:wt,media:_t}}function AppShellMediaStyles({navbar:c,header:a,aside:d,footer:et,padding:nt}){const tt=useMantineTheme(),bt=useMantineContext(),{media:gt,baseStyles:wt}=getVariables({navbar:c,header:a,footer:et,aside:d,padding:nt,theme:tt});return React.createElement(InlineStyles,{media:gt,styles:wt,selector:bt.cssVariablesSelector})}const defaultProps$W={},AppShellNavbar=factory((c,a)=>{const d=useProps("AppShellNavbar",defaultProps$W,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,withBorder:St,zIndex:Mt,mod:_t,...Tt}=d,Bt=useAppShellContext();return Bt.disabled?null:React.createElement(Box,{component:"nav",ref:a,mod:[{"with-border":St??Bt.withBorder},_t],...Bt.getStyles("navbar",{className:nt,classNames:et,styles:bt,style:tt}),...Tt,__vars:{"--app-shell-navbar-z-index":`calc(${Mt??Bt.zIndex} + 1)`}})});AppShellNavbar.classes=classes$q;AppShellNavbar.displayName="@mantine/core/AppShellNavbar";const defaultProps$V={},AppShellSection=polymorphicFactory((c,a)=>{const d=useProps("AppShellSection",defaultProps$V,c),{classNames:et,className:nt,style:tt,styles:bt,vars:gt,grow:wt,mod:St,...Mt}=d,_t=useAppShellContext();return React.createElement(Box,{ref:a,mod:[{grow:wt},St],..._t.getStyles("section",{className:nt,style:tt,classNames:et,styles:bt}),...Mt})});AppShellSection.classes=classes$q;AppShellSection.displayName="@mantine/core/AppShellSection";function useResizing({transitionDuration:c,disabled:a}){const[d,et]=reactExports.useState(!0),nt=reactExports.useRef(),tt=reactExports.useRef();return useWindowEvent("resize",()=>{et(!0),clearTimeout(nt.current),nt.current=window.setTimeout(()=>et(!1),200)}),useIsomorphicEffect(()=>{reactExports.startTransition(()=>{et(!0),clearTimeout(tt.current),tt.current=window.setTimeout(()=>et(!1),c||0)})},[a,c]),d}const defaultProps$U={withBorder:!0,offsetScrollbars:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:getDefaultZIndex("app")},varsResolver$j=(c,{transitionDuration:a,transitionTimingFunction:d})=>({root:{"--app-shell-transition-duration":`${a}ms`,"--app-shell-transition-timing-function":d}}),AppShell=factory((c,a)=>{const d=useProps("AppShell",defaultProps$U,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,navbar:St,withBorder:Mt,padding:_t,transitionDuration:Tt,transitionTimingFunction:Bt,header:kt,zIndex:It,layout:Lt,disabled:Ot,aside:Nt,footer:Ft,offsetScrollbars:zt,mod:Vt,...Jt}=d,ir=useStyles({name:"AppShell",classes:classes$q,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$j}),rr=useResizing({disabled:Ot,transitionDuration:Tt});return React.createElement(AppShellProvider,{value:{getStyles:ir,withBorder:Mt,zIndex:It,disabled:Ot,offsetScrollbars:zt}},React.createElement(AppShellMediaStyles,{navbar:St,header:kt,aside:Nt,footer:Ft,padding:_t}),React.createElement(Box,{ref:a,...ir("root"),mod:[{resizing:rr,layout:Lt,disabled:Ot},Vt],...Jt}))});AppShell.classes=classes$q;AppShell.displayName="@mantine/core/AppShell";AppShell.Navbar=AppShellNavbar;AppShell.Header=AppShellHeader;AppShell.Main=AppShellMain;AppShell.Aside=AppShellAside;AppShell.Footer=AppShellFooter;AppShell.Section=AppShellSection;var classes$p={dropdown:"m_88b62a41",options:"m_b2821a6e",option:"m_92253aa5",search:"m_985517d8",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2"};const defaultProps$T={error:null},varsResolver$i=(c,{size:a})=>({chevron:{"--combobox-chevron-size":getSize(a,"combobox-chevron-size")}}),ComboboxChevron=factory((c,a)=>{const d=useProps("ComboboxChevron",defaultProps$T,c),{size:et,error:nt,style:tt,className:bt,classNames:gt,styles:wt,unstyled:St,vars:Mt,mod:_t,...Tt}=d,Bt=useStyles({name:"ComboboxChevron",classes:classes$p,props:d,style:tt,className:bt,classNames:gt,styles:wt,unstyled:St,vars:Mt,varsResolver:varsResolver$i,rootSelector:"chevron"});return React.createElement(Box,{component:"svg",...Tt,...Bt("chevron"),size:et,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:nt},_t],ref:a},React.createElement("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))});ComboboxChevron.classes=classes$p;ComboboxChevron.displayName="@mantine/core/ComboboxChevron";const[ComboboxProvider,useComboboxContext]=createSafeContext("Combobox component was not found in tree"),ComboboxClearButton=reactExports.forwardRef(({size:c,onMouseDown:a,onClick:d,onClear:et,...nt},tt)=>React.createElement(CloseButton,{ref:tt,size:c||"sm",variant:"transparent",tabIndex:-1,"aria-hidden":!0,...nt,onMouseDown:bt=>{bt.preventDefault(),a==null||a(bt)},onClick:bt=>{et(),d==null||d(bt)}}));ComboboxClearButton.displayName="@mantine/core/ComboboxClearButton";const defaultProps$S={},ComboboxDropdown=factory((c,a)=>{const{classNames:d,styles:et,className:nt,style:tt,hidden:bt,...gt}=useProps("ComboboxDropdown",defaultProps$S,c),wt=useComboboxContext();return React.createElement(Popover.Dropdown,{...gt,ref:a,role:"presentation","data-hidden":bt||void 0,...wt.getStyles("dropdown",{className:nt,style:tt,classNames:d,styles:et})})});ComboboxDropdown.classes=classes$p;ComboboxDropdown.displayName="@mantine/core/ComboboxDropdown";const defaultProps$R={refProp:"ref"},ComboboxDropdownTarget=factory((c,a)=>{const{children:d,refProp:et}=useProps("ComboboxDropdownTarget",defaultProps$R,c);if(useComboboxContext(),!isElement$1(d))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return React.createElement(Popover.Target,{ref:a,refProp:et},d)});ComboboxDropdownTarget.displayName="@mantine/core/ComboboxDropdownTarget";const defaultProps$Q={},ComboboxEmpty=factory((c,a)=>{const{classNames:d,className:et,style:nt,styles:tt,vars:bt,...gt}=useProps("ComboboxEmpty",defaultProps$Q,c),wt=useComboboxContext();return React.createElement(Box,{ref:a,...wt.getStyles("empty",{className:et,classNames:d,styles:tt,style:nt}),...gt})});ComboboxEmpty.classes=classes$p;ComboboxEmpty.displayName="@mantine/core/ComboboxEmpty";function useComboboxTargetProps({onKeyDown:c,withKeyboardNavigation:a,withAriaAttributes:d,withExpandedAttribute:et,targetType:nt,autoComplete:tt}){const bt=useComboboxContext(),[gt,wt]=reactExports.useState(null),St=_t=>{if(c==null||c(_t),!bt.readOnly&&a){if(_t.nativeEvent.isComposing)return;if(_t.nativeEvent.code==="ArrowDown"&&(_t.preventDefault(),bt.store.dropdownOpened?wt(bt.store.selectNextOption()):(bt.store.openDropdown("keyboard"),wt(bt.store.selectActiveOption()))),_t.nativeEvent.code==="ArrowUp"&&(_t.preventDefault(),bt.store.dropdownOpened?wt(bt.store.selectPreviousOption()):(bt.store.openDropdown("keyboard"),wt(bt.store.selectActiveOption()))),_t.nativeEvent.code==="Enter"||_t.nativeEvent.code==="NumpadEnter"){if(_t.nativeEvent.keyCode===229)return;const Tt=bt.store.getSelectedOptionIndex();bt.store.dropdownOpened&&Tt!==-1?(_t.preventDefault(),bt.store.clickSelectedOption()):nt==="button"&&(_t.preventDefault(),bt.store.openDropdown("keyboard"))}_t.nativeEvent.code==="Escape"&&bt.store.closeDropdown("keyboard"),_t.nativeEvent.code==="Space"&&nt==="button"&&(_t.preventDefault(),bt.store.toggleDropdown("keyboard"))}};return{...d?{"aria-haspopup":"listbox","aria-expanded":et&&!!(bt.store.listId&&bt.store.dropdownOpened)||void 0,"aria-controls":bt.store.listId,"aria-activedescendant":bt.store.dropdownOpened&>||void 0,autoComplete:tt,"data-expanded":bt.store.dropdownOpened||void 0,"data-mantine-stop-propagation":bt.store.dropdownOpened||void 0}:{},onKeyDown:St}}const defaultProps$P={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},ComboboxEventsTarget=factory((c,a)=>{const{children:d,refProp:et,withKeyboardNavigation:nt,withAriaAttributes:tt,withExpandedAttribute:bt,targetType:gt,autoComplete:wt,...St}=useProps("ComboboxEventsTarget",defaultProps$P,c);if(!isElement$1(d))throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const Mt=useComboboxContext(),_t=useComboboxTargetProps({targetType:gt,withAriaAttributes:tt,withKeyboardNavigation:nt,withExpandedAttribute:bt,onKeyDown:d.props.onKeyDown,autoComplete:wt});return reactExports.cloneElement(d,{..._t,...St,[et]:useMergedRef(a,Mt.store.targetRef,d==null?void 0:d.ref)})});ComboboxEventsTarget.displayName="@mantine/core/ComboboxEventsTarget";const defaultProps$O={},ComboboxFooter=factory((c,a)=>{const{classNames:d,className:et,style:nt,styles:tt,vars:bt,...gt}=useProps("ComboboxFooter",defaultProps$O,c),wt=useComboboxContext();return React.createElement(Box,{ref:a,...wt.getStyles("footer",{className:et,classNames:d,style:nt,styles:tt}),...gt})});ComboboxFooter.classes=classes$p;ComboboxFooter.displayName="@mantine/core/ComboboxFooter";const defaultProps$N={},ComboboxGroup=factory((c,a)=>{const{classNames:d,className:et,style:nt,styles:tt,vars:bt,children:gt,label:wt,...St}=useProps("ComboboxGroup",defaultProps$N,c),Mt=useComboboxContext();return React.createElement(Box,{ref:a,...Mt.getStyles("group",{className:et,classNames:d,style:nt,styles:tt}),...St},wt&&React.createElement("div",{...Mt.getStyles("groupLabel",{classNames:d,styles:tt})},wt),gt)});ComboboxGroup.classes=classes$p;ComboboxGroup.displayName="@mantine/core/ComboboxGroup";const defaultProps$M={},ComboboxHeader=factory((c,a)=>{const{classNames:d,className:et,style:nt,styles:tt,vars:bt,...gt}=useProps("ComboboxHeader",defaultProps$M,c),wt=useComboboxContext();return React.createElement(Box,{ref:a,...wt.getStyles("header",{className:et,classNames:d,style:nt,styles:tt}),...gt})});ComboboxHeader.classes=classes$p;ComboboxHeader.displayName="@mantine/core/ComboboxHeader";function ComboboxHiddenInput({value:c,valuesDivider:a=",",...d}){return React.createElement("input",{type:"hidden",value:Array.isArray(c)?c.join(a):c||"",...d})}ComboboxHiddenInput.displayName="@mantine/core/ComboboxHiddenInput";const defaultProps$L={},ComboboxOption=factory((c,a)=>{const d=useProps("ComboboxOption",defaultProps$L,c),{classNames:et,className:nt,style:tt,styles:bt,vars:gt,onClick:wt,id:St,active:Mt,onMouseDown:_t,onMouseOver:Tt,disabled:Bt,selected:kt,mod:It,...Lt}=d,Ot=useComboboxContext(),Nt=reactExports.useId(),Ft=St||Nt;return React.createElement(Box,{...Ot.getStyles("option",{className:nt,classNames:et,styles:bt,style:tt}),...Lt,ref:a,id:Ft,mod:["combobox-option",{"combobox-active":Mt,"combobox-disabled":Bt,"combobox-selected":kt},It],role:"option",onClick:zt=>{var Vt;Bt?zt.preventDefault():((Vt=Ot.onOptionSubmit)==null||Vt.call(Ot,d.value,d),wt==null||wt(zt))},onMouseDown:zt=>{zt.preventDefault(),_t==null||_t(zt)},onMouseOver:zt=>{Ot.resetSelectionOnOptionHover&&Ot.store.resetSelectedOption(),Tt==null||Tt(zt)}})});ComboboxOption.classes=classes$p;ComboboxOption.displayName="@mantine/core/ComboboxOption";const defaultProps$K={},ComboboxOptions=factory((c,a)=>{const d=useProps("ComboboxOptions",defaultProps$K,c),{classNames:et,className:nt,style:tt,styles:bt,id:gt,onMouseDown:wt,labelledBy:St,...Mt}=d,_t=useComboboxContext(),Tt=useId$1(gt);return reactExports.useEffect(()=>{_t.store.setListId(Tt)},[Tt]),React.createElement(Box,{ref:a,..._t.getStyles("options",{className:nt,style:tt,classNames:et,styles:bt}),...Mt,id:Tt,role:"listbox","aria-labelledby":St,onMouseDown:Bt=>{Bt.preventDefault(),wt==null||wt(Bt)}})});ComboboxOptions.classes=classes$p;ComboboxOptions.displayName="@mantine/core/ComboboxOptions";const defaultProps$J={withAriaAttributes:!0,withKeyboardNavigation:!0},ComboboxSearch=factory((c,a)=>{const d=useProps("ComboboxSearch",defaultProps$J,c),{classNames:et,styles:nt,unstyled:tt,vars:bt,withAriaAttributes:gt,onKeyDown:wt,withKeyboardNavigation:St,size:Mt,..._t}=d,Tt=useComboboxContext(),Bt=Tt.getStyles("search"),kt=useComboboxTargetProps({targetType:"input",withAriaAttributes:gt,withKeyboardNavigation:St,withExpandedAttribute:!1,onKeyDown:wt,autoComplete:"off"});return React.createElement(Input,{ref:useMergedRef(a,Tt.store.searchRef),classNames:[{input:Bt.className},et],styles:[{input:Bt.style},nt],size:Mt||Tt.size,...kt,..._t,__staticSelector:"Combobox"})});ComboboxSearch.classes=classes$p;ComboboxSearch.displayName="@mantine/core/ComboboxSearch";const defaultProps$I={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},ComboboxTarget=factory((c,a)=>{const{children:d,refProp:et,withKeyboardNavigation:nt,withAriaAttributes:tt,withExpandedAttribute:bt,targetType:gt,autoComplete:wt,...St}=useProps("ComboboxTarget",defaultProps$I,c);if(!isElement$1(d))throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const Mt=useComboboxContext(),_t=useComboboxTargetProps({targetType:gt,withAriaAttributes:tt,withKeyboardNavigation:nt,withExpandedAttribute:bt,onKeyDown:d.props.onKeyDown,autoComplete:wt}),Tt=reactExports.cloneElement(d,{..._t,...St});return React.createElement(Popover.Target,{ref:useMergedRef(a,Mt.store.targetRef)},Tt)});ComboboxTarget.displayName="@mantine/core/ComboboxTarget";function getPreviousIndex(c,a,d){for(let et=c-1;et>=0;et-=1)if(!a[et].hasAttribute("data-combobox-disabled"))return et;if(d){for(let et=a.length-1;et>-1;et-=1)if(!a[et].hasAttribute("data-combobox-disabled"))return et}return c}function getNextIndex$1(c,a,d){for(let et=c+1;et{gt||(wt(!0),nt==null||nt(Et))},[wt,nt,gt]),Ot=reactExports.useCallback((Et="unknown")=>{gt&&(wt(!1),et==null||et(Et))},[wt,et,gt]),Nt=reactExports.useCallback((Et="unknown")=>{gt?Ot(Et):Lt(Et)},[Ot,Lt,gt]),Ft=reactExports.useCallback(()=>{const Et=document.querySelector(`#${St.current} [data-combobox-selected]`);Et==null||Et.removeAttribute("data-combobox-selected"),Et==null||Et.removeAttribute("aria-selected")},[]),zt=reactExports.useCallback(Et=>{const At=document.getElementById(St.current),Pt=At==null?void 0:At.querySelectorAll("[data-combobox-option]");if(!Pt)return null;const xt=Et>=Pt.length?0:Et<0?Pt.length-1:Et;return Mt.current=xt,Pt!=null&&Pt[xt]&&!Pt[xt].hasAttribute("data-combobox-disabled")?(Ft(),Pt[xt].setAttribute("data-combobox-selected","true"),Pt[xt].setAttribute("aria-selected","true"),Pt[xt].scrollIntoView({block:"nearest",behavior:bt}),Pt[xt].id):null},[bt,Ft]),Vt=reactExports.useCallback(()=>{const Et=document.querySelector(`#${St.current} [data-combobox-active]`);if(Et){const At=document.querySelectorAll(`#${St.current} [data-combobox-option]`),Pt=Array.from(At).findIndex(xt=>xt===Et);return zt(Pt)}return zt(0)},[zt]),Jt=reactExports.useCallback(()=>zt(getNextIndex$1(Mt.current,document.querySelectorAll(`#${St.current} [data-combobox-option]`),tt)),[zt,tt]),ir=reactExports.useCallback(()=>zt(getPreviousIndex(Mt.current,document.querySelectorAll(`#${St.current} [data-combobox-option]`),tt)),[zt,tt]),rr=reactExports.useCallback(()=>zt(getFirstIndex(document.querySelectorAll(`#${St.current} [data-combobox-option]`))),[zt]),er=reactExports.useCallback((Et="selected",At)=>{It.current=window.setTimeout(()=>{var ht;const Pt=document.querySelectorAll(`#${St.current} [data-combobox-option]`),xt=Array.from(Pt).findIndex($t=>$t.hasAttribute(`data-combobox-${Et}`));Mt.current=xt,At!=null&&At.scrollIntoView&&((ht=Pt[xt])==null||ht.scrollIntoView({block:"nearest",behavior:bt}))},0)},[]),lr=reactExports.useCallback(()=>{Mt.current=-1,Ft()},[Ft]),Ct=reactExports.useCallback(()=>{const Et=document.querySelectorAll(`#${St.current} [data-combobox-option]`),At=Et==null?void 0:Et[Mt.current];At==null||At.click()},[]),dt=reactExports.useCallback(Et=>{St.current=Et},[]),mt=reactExports.useCallback(()=>{Bt.current=window.setTimeout(()=>_t.current.focus(),0)},[]),yt=reactExports.useCallback(()=>{kt.current=window.setTimeout(()=>Tt.current.focus(),0)},[]),vt=reactExports.useCallback(()=>Mt.current,[]);return reactExports.useEffect(()=>()=>{window.clearTimeout(Bt.current),window.clearTimeout(kt.current),window.clearTimeout(It.current)},[]),{dropdownOpened:gt,openDropdown:Lt,closeDropdown:Ot,toggleDropdown:Nt,selectedOptionIndex:Mt.current,getSelectedOptionIndex:vt,selectOption:zt,selectFirstOption:rr,selectActiveOption:Vt,selectNextOption:Jt,selectPreviousOption:ir,resetSelectedOption:lr,updateSelectedOptionIndex:er,listId:St.current,setListId:dt,clickSelectedOption:Ct,searchRef:_t,focusSearchInput:mt,targetRef:Tt,focusTarget:yt}}const defaultProps$H={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0}},varsResolver$h=(c,{size:a,dropdownPadding:d})=>({options:{"--combobox-option-fz":getFontSize(a),"--combobox-option-padding":getSize(a,"combobox-option-padding")},dropdown:{"--combobox-padding":d===void 0?void 0:rem(d),"--combobox-option-fz":getFontSize(a),"--combobox-option-padding":getSize(a,"combobox-option-padding")}});function Combobox(c){const a=useProps("Combobox",defaultProps$H,c),{classNames:d,styles:et,unstyled:nt,children:tt,store:bt,vars:gt,onOptionSubmit:wt,onClose:St,size:Mt,dropdownPadding:_t,resetSelectionOnOptionHover:Tt,__staticSelector:Bt,readOnly:kt,...It}=a,Lt=useCombobox(),Ot=bt||Lt,Nt=useStyles({name:Bt||"Combobox",classes:classes$p,props:a,classNames:d,styles:et,unstyled:nt,vars:gt,varsResolver:varsResolver$h}),Ft=()=>{St==null||St(),Ot.closeDropdown()};return React.createElement(ComboboxProvider,{value:{getStyles:Nt,store:Ot,onOptionSubmit:wt,size:Mt,resetSelectionOnOptionHover:Tt,readOnly:kt}},React.createElement(Popover,{opened:Ot.dropdownOpened,...It,onClose:Ft,withRoles:!1,unstyled:nt},tt))}const extendCombobox=c=>c;Combobox.extend=extendCombobox;Combobox.classes=classes$p;Combobox.displayName="@mantine/core/Combobox";Combobox.Target=ComboboxTarget;Combobox.Dropdown=ComboboxDropdown;Combobox.Options=ComboboxOptions;Combobox.Option=ComboboxOption;Combobox.Search=ComboboxSearch;Combobox.Empty=ComboboxEmpty;Combobox.Chevron=ComboboxChevron;Combobox.Footer=ComboboxFooter;Combobox.Header=ComboboxHeader;Combobox.EventsTarget=ComboboxEventsTarget;Combobox.DropdownTarget=ComboboxDropdownTarget;Combobox.Group=ComboboxGroup;Combobox.ClearButton=ComboboxClearButton;Combobox.HiddenInput=ComboboxHiddenInput;function CheckIcon({size:c,style:a,...d}){const et=c!==void 0?{width:rem(c),height:rem(c),...a}:a;return React.createElement("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:et,"aria-hidden":!0,...d},React.createElement("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}const AvatarGroupContext=reactExports.createContext(null),AvatarGroupProvider=AvatarGroupContext.Provider;function useAvatarGroupContext(){return{withinGroup:!!reactExports.useContext(AvatarGroupContext)}}var classes$o={group:"m_11def92b",root:"m_f85678b6",image:"m_11f8ac07",placeholder:"m_104cd71f"};const defaultProps$G={},varsResolver$g=(c,{spacing:a})=>({group:{"--ag-spacing":getSpacing(a)}}),AvatarGroup=factory((c,a)=>{const d=useProps("AvatarGroup",defaultProps$G,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,spacing:St,...Mt}=d,_t=useStyles({name:"AvatarGroup",classes:classes$o,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$g,rootSelector:"group"});return React.createElement(AvatarGroupProvider,{value:!0},React.createElement(Box,{ref:a,..._t("group"),...Mt}))});AvatarGroup.classes=classes$o;AvatarGroup.displayName="@mantine/core/AvatarGroup";function AvatarPlaceholderIcon(c){return React.createElement("svg",{...c,"data-avatar-placeholder-icon":!0,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}const defaultProps$F={},varsResolver$f=(c,{size:a,radius:d,variant:et,gradient:nt,color:tt,autoContrast:bt})=>{const gt=c.variantColorResolver({color:tt||"gray",theme:c,gradient:nt,variant:et||"light",autoContrast:bt});return{root:{"--avatar-size":getSize(a,"avatar-size"),"--avatar-radius":d===void 0?void 0:getRadius(d),"--avatar-bg":tt||et?gt.background:void 0,"--avatar-color":tt||et?gt.color:void 0,"--avatar-bd":tt||et?gt.border:void 0}}},Avatar=polymorphicFactory((c,a)=>{const d=useProps("Avatar",defaultProps$F,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,src:St,alt:Mt,radius:_t,color:Tt,gradient:Bt,imageProps:kt,children:It,autoContrast:Lt,mod:Ot,...Nt}=d,Ft=useAvatarGroupContext(),[zt,Vt]=reactExports.useState(!St),Jt=useStyles({name:"Avatar",props:d,classes:classes$o,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$f});return reactExports.useEffect(()=>Vt(!St),[St]),React.createElement(Box,{...Jt("root"),mod:[{"within-group":Ft.withinGroup},Ot],ref:a,...Nt},zt?React.createElement("span",{...Jt("placeholder"),title:Mt},It||React.createElement(AvatarPlaceholderIcon,null)):React.createElement("img",{...kt,...Jt("image"),src:St,alt:Mt,onError:ir=>{var rr;Vt(!0),(rr=kt==null?void 0:kt.onError)==null||rr.call(kt,ir)}}))});Avatar.classes=classes$o;Avatar.displayName="@mantine/core/Avatar";Avatar.Group=AvatarGroup;var classes$n={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const defaultProps$E={},varsResolver$e=(c,{radius:a,color:d,gradient:et,variant:nt,size:tt,autoContrast:bt})=>{const gt=c.variantColorResolver({color:d||c.primaryColor,theme:c,gradient:et,variant:nt||"filled",autoContrast:bt});return{root:{"--badge-height":getSize(tt,"badge-height"),"--badge-padding-x":getSize(tt,"badge-padding-x"),"--badge-fz":getSize(tt,"badge-fz"),"--badge-radius":a===void 0?void 0:getRadius(a),"--badge-bg":d||nt?gt.background:void 0,"--badge-color":d||nt?gt.color:void 0,"--badge-bd":d||nt?gt.border:void 0,"--badge-dot-color":nt==="dot"?getThemeColor(d,c):void 0}}},Badge=polymorphicFactory((c,a)=>{const d=useProps("Badge",defaultProps$E,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,radius:St,color:Mt,gradient:_t,leftSection:Tt,rightSection:Bt,children:kt,variant:It,fullWidth:Lt,autoContrast:Ot,circle:Nt,mod:Ft,...zt}=d,Vt=useStyles({name:"Badge",props:d,classes:classes$n,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$e});return React.createElement(Box,{variant:It,mod:[{block:Lt,circle:Nt},Ft],...Vt("root",{variant:It}),ref:a,...zt},Tt&&React.createElement("span",{...Vt("section"),"data-position":"left"},Tt),React.createElement("span",{...Vt("label")},kt),Bt&&React.createElement("span",{...Vt("section"),"data-position":"right"},Bt))});Badge.classes=classes$n;Badge.displayName="@mantine/core/Badge";var classes$m={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844"};const defaultProps$D={orientation:"horizontal"},varsResolver$d=(c,{borderWidth:a})=>({group:{"--button-border-width":rem(a)}}),ButtonGroup=factory((c,a)=>{const d=useProps("ButtonGroup",defaultProps$D,c),{className:et,style:nt,classNames:tt,styles:bt,unstyled:gt,orientation:wt,vars:St,borderWidth:Mt,variant:_t,mod:Tt,...Bt}=useProps("ButtonGroup",defaultProps$D,c),kt=useStyles({name:"ButtonGroup",props:d,classes:classes$m,className:et,style:nt,classNames:tt,styles:bt,unstyled:gt,vars:St,varsResolver:varsResolver$d,rootSelector:"group"});return React.createElement(Box,{...kt("group"),ref:a,variant:_t,mod:[{"data-orientation":wt},Tt],role:"group",...Bt})});ButtonGroup.classes=classes$m;ButtonGroup.displayName="@mantine/core/ButtonGroup";const loaderTransition={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${rem(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},defaultProps$C={},varsResolver$c=(c,{radius:a,color:d,gradient:et,variant:nt,size:tt,justify:bt,autoContrast:gt})=>{const wt=c.variantColorResolver({color:d||c.primaryColor,theme:c,gradient:et,variant:nt||"filled",autoContrast:gt});return{root:{"--button-justify":bt,"--button-height":getSize(tt,"button-height"),"--button-padding-x":getSize(tt,"button-padding-x"),"--button-fz":tt!=null&&tt.includes("compact")?getFontSize(tt.replace("compact-","")):getFontSize(tt),"--button-radius":a===void 0?void 0:getRadius(a),"--button-bg":d||nt?wt.background:void 0,"--button-hover":d||nt?wt.hover:void 0,"--button-color":wt.color,"--button-bd":d||nt?wt.border:void 0,"--button-hover-color":d||nt?wt.hoverColor:void 0}}},Button=polymorphicFactory((c,a)=>{const d=useProps("Button",defaultProps$C,c),{style:et,vars:nt,className:tt,color:bt,disabled:gt,children:wt,leftSection:St,rightSection:Mt,fullWidth:_t,variant:Tt,radius:Bt,loading:kt,loaderProps:It,gradient:Lt,classNames:Ot,styles:Nt,unstyled:Ft,"data-disabled":zt,autoContrast:Vt,mod:Jt,...ir}=d,rr=useStyles({name:"Button",props:d,classes:classes$m,className:tt,style:et,classNames:Ot,styles:Nt,unstyled:Ft,vars:nt,varsResolver:varsResolver$c}),er=!!St,lr=!!Mt;return React.createElement(UnstyledButton,{ref:a,...rr("root",{active:!gt&&!kt&&!zt}),unstyled:Ft,variant:Tt,disabled:gt||kt,mod:[{disabled:gt||zt,loading:kt,block:_t,"with-left-section":er,"with-right-section":lr},Jt],...ir},React.createElement(Transition,{mounted:!!kt,transition:loaderTransition,duration:150},Ct=>React.createElement(Box,{component:"span",...rr("loader",{style:Ct}),"aria-hidden":!0},React.createElement(Loader,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...It}))),React.createElement("span",{...rr("inner")},St&&React.createElement(Box,{component:"span",...rr("section"),mod:{position:"left"}},St),React.createElement(Box,{component:"span",mod:{loading:kt},...rr("label")},wt),Mt&&React.createElement(Box,{component:"span",...rr("section"),mod:{position:"right"}},Mt)))});Button.classes=classes$m;Button.displayName="@mantine/core/Button";Button.Group=ButtonGroup;var classes$l={root:"m_e2125a27",closeButton:"m_5abab665"};const defaultProps$B={shadow:"md",p:"md",withBorder:!1,transitionProps:{transition:"pop-top-right",duration:200},position:{bottom:30,right:30}},varsResolver$b=(c,{size:a})=>({root:{"--dialog-size":getSize(a,"dialog-size")}}),Dialog=factory((c,a)=>{const d=useProps("Dialog",defaultProps$B,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,zIndex:St,position:Mt,keepMounted:_t,opened:Tt,transitionProps:Bt,withCloseButton:kt,withinPortal:It,children:Lt,onClose:Ot,portalProps:Nt,...Ft}=d,zt=useStyles({name:"Dialog",classes:classes$l,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$b});return React.createElement(Affix,{zIndex:St,position:Mt,ref:a,withinPortal:It,portalProps:Nt,unstyled:gt},React.createElement(Transition,{keepMounted:_t,mounted:Tt,...Bt},Vt=>React.createElement(Paper,{unstyled:gt,...zt("root",{style:Vt}),...Ft},kt&&React.createElement(CloseButton,{onClick:Ot,unstyled:gt,...zt("closeButton")}),Lt)))});Dialog.classes=classes$l;Dialog.displayName="@mantine/core/Dialog";var classes$k={root:"m_9e117634"};const defaultProps$A={},varsResolver$a=(c,{radius:a,fit:d})=>({root:{"--image-radius":a===void 0?void 0:getRadius(a),"--image-object-fit":d}}),Image$1=polymorphicFactory((c,a)=>{const d=useProps("Image",defaultProps$A,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,onError:St,src:Mt,radius:_t,fit:Tt,fallbackSrc:Bt,mod:kt,...It}=d,[Lt,Ot]=reactExports.useState(!Mt);reactExports.useEffect(()=>Ot(!Mt),[Mt]);const Nt=useStyles({name:"Image",classes:classes$k,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$a});return Lt&&Bt?React.createElement(Box,{component:"img",ref:a,src:Bt,...Nt("root"),onError:St,mod:["fallback",kt],...It}):React.createElement(Box,{component:"img",ref:a,...Nt("root"),src:Mt,onError:Ft=>{St==null||St(Ft),Ot(!0)},mod:kt,...It})});Image$1.classes=classes$k;Image$1.displayName="@mantine/core/Image";const[ModalProvider,useModalContext]=createSafeContext("Modal component was not found in tree");var classes$j={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const defaultProps$z={},ModalBody=factory((c,a)=>{const d=useProps("ModalBody",defaultProps$z,c),{classNames:et,className:nt,style:tt,styles:bt,vars:gt,...wt}=d,St=useModalContext();return React.createElement(ModalBaseBody,{ref:a,...St.getStyles("body",{classNames:et,style:tt,styles:bt,className:nt}),...wt})});ModalBody.classes=classes$j;ModalBody.displayName="@mantine/core/ModalBody";const defaultProps$y={},ModalCloseButton=factory((c,a)=>{const d=useProps("ModalCloseButton",defaultProps$y,c),{classNames:et,className:nt,style:tt,styles:bt,vars:gt,...wt}=d,St=useModalContext();return React.createElement(ModalBaseCloseButton,{ref:a,...St.getStyles("close",{classNames:et,style:tt,styles:bt,className:nt}),...wt})});ModalCloseButton.classes=classes$j;ModalCloseButton.displayName="@mantine/core/ModalCloseButton";const defaultProps$x={},ModalContent=factory((c,a)=>{const d=useProps("ModalContent",defaultProps$x,c),{classNames:et,className:nt,style:tt,styles:bt,vars:gt,children:wt,...St}=d,Mt=useModalContext(),_t=Mt.scrollAreaComponent||NativeScrollArea;return React.createElement(ModalBaseContent,{...Mt.getStyles("content",{className:nt,style:tt,styles:bt,classNames:et}),innerProps:Mt.getStyles("inner",{className:nt,style:tt,styles:bt,classNames:et}),"data-full-screen":Mt.fullScreen||void 0,"data-modal-content":!0,ref:a,...St},React.createElement(_t,{style:{maxHeight:Mt.fullScreen?"100dvh":`calc(100dvh - (${rem(Mt.yOffset)} * 2))`}},wt))});ModalContent.classes=classes$j;ModalContent.displayName="@mantine/core/ModalContent";const defaultProps$w={},ModalHeader=factory((c,a)=>{const d=useProps("ModalHeader",defaultProps$w,c),{classNames:et,className:nt,style:tt,styles:bt,vars:gt,...wt}=d,St=useModalContext();return React.createElement(ModalBaseHeader,{ref:a,...St.getStyles("header",{classNames:et,style:tt,styles:bt,className:nt}),...wt})});ModalHeader.classes=classes$j;ModalHeader.displayName="@mantine/core/ModalHeader";const defaultProps$v={},ModalOverlay=factory((c,a)=>{const d=useProps("ModalOverlay",defaultProps$v,c),{classNames:et,className:nt,style:tt,styles:bt,vars:gt,...wt}=d,St=useModalContext();return React.createElement(ModalBaseOverlay,{ref:a,...St.getStyles("overlay",{classNames:et,style:tt,styles:bt,className:nt}),...wt})});ModalOverlay.classes=classes$j;ModalOverlay.displayName="@mantine/core/ModalOverlay";const defaultProps$u={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:getDefaultZIndex("modal"),transitionProps:{duration:200,transition:"pop"},yOffset:"5dvh"},varsResolver$9=(c,{radius:a,size:d,yOffset:et,xOffset:nt})=>({root:{"--modal-radius":a===void 0?void 0:getRadius(a),"--modal-size":getSize(d,"modal-size"),"--modal-y-offset":rem(et),"--modal-x-offset":rem(nt)}}),ModalRoot=factory((c,a)=>{const d=useProps("ModalRoot",defaultProps$u,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,yOffset:St,scrollAreaComponent:Mt,radius:_t,fullScreen:Tt,centered:Bt,xOffset:kt,__staticSelector:It,...Lt}=d,Ot=useStyles({name:It,classes:classes$j,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$9});return React.createElement(ModalProvider,{value:{yOffset:St,scrollAreaComponent:Mt,getStyles:Ot,fullScreen:Tt}},React.createElement(ModalBase,{ref:a,...Ot("root"),"data-full-screen":Tt||void 0,"data-centered":Bt||void 0,unstyled:gt,...Lt}))});ModalRoot.classes=classes$j;ModalRoot.displayName="@mantine/core/ModalRoot";const defaultProps$t={},ModalTitle=factory((c,a)=>{const d=useProps("ModalTitle",defaultProps$t,c),{classNames:et,className:nt,style:tt,styles:bt,vars:gt,...wt}=d,St=useModalContext();return React.createElement(ModalBaseTitle,{ref:a,...St.getStyles("title",{classNames:et,style:tt,styles:bt,className:nt}),...wt})});ModalTitle.classes=classes$j;ModalTitle.displayName="@mantine/core/ModalTitle";const defaultProps$s={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:getDefaultZIndex("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},Modal=factory((c,a)=>{const{title:d,withOverlay:et,overlayProps:nt,withCloseButton:tt,closeButtonProps:bt,children:gt,radius:wt,...St}=useProps("Modal",defaultProps$s,c),Mt=!!d||tt;return React.createElement(ModalRoot,{ref:a,radius:wt,...St},et&&React.createElement(ModalOverlay,{...nt}),React.createElement(ModalContent,{radius:wt},Mt&&React.createElement(ModalHeader,null,d&&React.createElement(ModalTitle,null,d),tt&&React.createElement(ModalCloseButton,{...bt})),React.createElement(ModalBody,null,gt)))});Modal.classes=classes$j;Modal.displayName="@mantine/core/Modal";Modal.Root=ModalRoot;Modal.Overlay=ModalOverlay;Modal.Content=ModalContent;Modal.Body=ModalBody;Modal.Header=ModalHeader;Modal.Title=ModalTitle;Modal.CloseButton=ModalCloseButton;const[PillsInputProvider,usePillsInputContext]=createOptionalContext(),[PillGroupProvider,usePillGroupContext]=createOptionalContext();var classes$i={root:"m_7cda1cd6","root--default":"m_44da308b","root--contrast":"m_e3a01f8",label:"m_1e0e6180",remove:"m_ae386778",group:"m_1dcfd90b"};const defaultProps$r={},varsResolver$8=(c,{gap:a},{size:d})=>({group:{"--pg-gap":a!==void 0?getSize(a):getSize(d,"pg-gap")}}),PillGroup=factory((c,a)=>{const d=useProps("PillGroup",defaultProps$r,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,size:St,disabled:Mt,..._t}=d,Tt=usePillsInputContext(),Bt=(Tt==null?void 0:Tt.size)||St||void 0,kt=useStyles({name:"PillGroup",classes:classes$i,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$8,stylesCtx:{size:Bt},rootSelector:"group"});return React.createElement(PillGroupProvider,{value:{size:Bt,disabled:Mt}},React.createElement(Box,{ref:a,size:Bt,...kt("group"),..._t}))});PillGroup.classes=classes$i;PillGroup.displayName="@mantine/core/PillGroup";const defaultProps$q={variant:"default"},varsResolver$7=(c,{radius:a},{size:d})=>({root:{"--pill-fz":getSize(d,"pill-fz"),"--pill-height":getSize(d,"pill-height"),"--pill-radius":a===void 0?void 0:getRadius(a)}}),Pill=factory((c,a)=>{const d=useProps("Pill",defaultProps$q,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,variant:St,children:Mt,withRemoveButton:_t,onRemove:Tt,removeButtonProps:Bt,radius:kt,size:It,disabled:Lt,mod:Ot,...Nt}=d,Ft=usePillGroupContext(),zt=usePillsInputContext(),Vt=It||(Ft==null?void 0:Ft.size)||void 0,Jt=(zt==null?void 0:zt.variant)==="filled"?"contrast":St||"default",ir=useStyles({name:"Pill",classes:classes$i,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$7,stylesCtx:{size:Vt}});return React.createElement(Box,{component:"span",ref:a,variant:Jt,size:Vt,...ir("root",{variant:Jt}),mod:[{"with-remove":_t&&!Lt,disabled:Lt||(Ft==null?void 0:Ft.disabled)},Ot],...Nt},React.createElement("span",{...ir("label")},Mt),_t&&React.createElement(CloseButton,{variant:"transparent",radius:kt,tabIndex:-1,"aria-hidden":!0,unstyled:gt,...Bt,...ir("remove",{className:Bt==null?void 0:Bt.className,style:Bt==null?void 0:Bt.style}),onMouseDown:rr=>{var er;rr.preventDefault(),rr.stopPropagation(),(er=Bt==null?void 0:Bt.onMouseDown)==null||er.call(Bt,rr)},onClick:rr=>{var er;rr.stopPropagation(),Tt==null||Tt(),(er=Bt==null?void 0:Bt.onClick)==null||er.call(Bt,rr)}}))});Pill.classes=classes$i;Pill.displayName="@mantine/core/Pill";Pill.Group=PillGroup;var classes$h={field:"m_45c4369d"};const defaultProps$p={type:"visible"},PillsInputField=factory((c,a)=>{const d=useProps("PillsInputField",defaultProps$p,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,type:St,disabled:Mt,id:_t,pointer:Tt,mod:Bt,...kt}=d,It=usePillsInputContext(),Lt=useInputWrapperContext(),Ot=useStyles({name:"PillsInputField",classes:classes$h,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,rootSelector:"field"}),Nt=Mt||(It==null?void 0:It.disabled);return React.createElement(Box,{component:"input",ref:useMergedRef(a,It==null?void 0:It.fieldRef),"data-type":St,disabled:Nt,mod:[{disabled:Nt,pointer:Tt},Bt],...Ot("field"),...kt,id:(Lt==null?void 0:Lt.inputId)||_t,"aria-invalid":It==null?void 0:It.hasError,"aria-describedby":Lt==null?void 0:Lt.describedBy,type:"text",onMouseDown:Ft=>!Tt&&Ft.stopPropagation()})});PillsInputField.classes=classes$h;PillsInputField.displayName="@mantine/core/PillsInputField";const defaultProps$o={},PillsInput=factory((c,a)=>{const d=useProps("PillsInput",defaultProps$o,c),{children:et,onMouseDown:nt,onClick:tt,size:bt,disabled:gt,__staticSelector:wt,error:St,variant:Mt,..._t}=d,Tt=reactExports.useRef();return React.createElement(PillsInputProvider,{value:{fieldRef:Tt,size:bt,disabled:gt,hasError:!!St,variant:Mt}},React.createElement(InputBase,{size:bt,error:St,variant:Mt,component:"div",ref:a,onMouseDown:Bt=>{var kt;Bt.preventDefault(),nt==null||nt(Bt),(kt=Tt.current)==null||kt.focus()},onClick:Bt=>{var kt;Bt.preventDefault(),tt==null||tt(Bt),(kt=Tt.current)==null||kt.focus()},..._t,multiline:!0,disabled:gt,__staticSelector:wt||"PillsInput",withAria:!1},et))});PillsInput.displayName="@mantine/core/PillsInput";PillsInput.Field=PillsInputField;var classes$g={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const defaultProps$n={withCloseButton:!0},varsResolver$6=(c,{radius:a,color:d})=>({root:{"--notification-radius":a===void 0?void 0:getRadius(a),"--notification-color":d?getThemeColor(d,c):void 0}}),Notification=factory((c,a)=>{const d=useProps("Notification",defaultProps$n,c),{className:et,color:nt,radius:tt,loading:bt,withCloseButton:gt,withBorder:wt,title:St,icon:Mt,children:_t,onClose:Tt,closeButtonProps:Bt,classNames:kt,style:It,styles:Lt,unstyled:Ot,variant:Nt,vars:Ft,mod:zt,...Vt}=d,Jt=useStyles({name:"Notification",classes:classes$g,props:d,className:et,style:It,classNames:kt,styles:Lt,unstyled:Ot,vars:Ft,varsResolver:varsResolver$6});return React.createElement(Box,{...Jt("root"),mod:[{"data-with-icon":!!Mt||bt,"data-with-border":wt},zt],ref:a,variant:Nt,...Vt,role:"alert"},Mt&&!bt&&React.createElement("div",{...Jt("icon")},Mt),bt&&React.createElement(Loader,{size:28,color:nt,...Jt("loader")}),React.createElement("div",{...Jt("body")},St&&React.createElement("div",{...Jt("title")},St),React.createElement(Box,{...Jt("description"),mod:{"data-with-title":!!St}},_t)),gt&&React.createElement(CloseButton,{iconSize:16,color:"gray",...Bt,unstyled:Ot,onClick:Tt,...Jt("closeButton")}))});Notification.classes=classes$g;Notification.displayName="@mantine/core/Notification";var classes$f={root:"m_6d731127"};const defaultProps$m={gap:"md",align:"stretch",justify:"flex-start"},varsResolver$5=(c,{gap:a,align:d,justify:et})=>({root:{"--stack-gap":getSpacing(a),"--stack-align":d,"--stack-justify":et}}),Stack=factory((c,a)=>{const d=useProps("Stack",defaultProps$m,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,align:St,justify:Mt,gap:_t,variant:Tt,...Bt}=d,kt=useStyles({name:"Stack",props:d,classes:classes$f,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$5});return React.createElement(Box,{ref:a,...kt("root"),variant:Tt,...Bt})});Stack.classes=classes$f;Stack.displayName="@mantine/core/Stack";const[StepperProvider,useStepperContext]=createSafeContext("Stepper component was not found in tree"),StepperCompleted=()=>null;StepperCompleted.displayName="@mantine/core/StepperCompleted";var classes$e={root:"m_cbb4ea7e",steps:"m_aaf89d0b",separator:"m_2a371ac9",content:"m_78da155d",step:"m_cbb57068","step--horizontal":"m_f56b1e2c","step--vertical":"m_833edb7e",verticalSeparator:"m_6496b3f3",stepWrapper:"m_818e70b",stepIcon:"m_1959ad01",stepCompletedIcon:"m_a79331dc",stepBody:"m_1956aa2a",stepLabel:"m_12051f6c",stepDescription:"m_164eea74"};const getStepFragment=(c,a)=>typeof c=="function"?React.createElement(c,{step:a||0}):c,defaultProps$l={withIcon:!0,allowStepClick:!0,iconPosition:"left"},StepperStep=factory((c,a)=>{const{classNames:d,className:et,style:nt,styles:tt,vars:bt,step:gt,state:wt,color:St,icon:Mt,completedIcon:_t,progressIcon:Tt,label:Bt,description:kt,withIcon:It,iconSize:Lt,loading:Ot,allowStepClick:Nt,allowStepSelect:Ft,iconPosition:zt,orientation:Vt,mod:Jt,...ir}=useProps("StepperStep",defaultProps$l,c),rr=useStepperContext(),er=useMantineTheme(),lr={classNames:d,styles:tt},Ct=wt==="stepCompleted"?null:wt==="stepProgress"?Tt:Mt,dt={"data-progress":wt==="stepProgress"||void 0,"data-completed":wt==="stepCompleted"||void 0};return React.createElement(UnstyledButton,{...rr.getStyles("step",{className:et,style:nt,variant:rr.orientation,...lr}),mod:[{"icon-position":zt||rr.iconPosition,"allow-click":Nt},Jt],ref:a,...dt,...ir,__vars:{"--step-color":St?getThemeColor(St,er):void 0},tabIndex:Nt?0:-1},It&&React.createElement("span",{...rr.getStyles("stepWrapper",lr)},React.createElement("span",{...rr.getStyles("stepIcon",lr),...dt},React.createElement(Transition,{mounted:wt==="stepCompleted",transition:"pop",duration:200},mt=>React.createElement("span",{...rr.getStyles("stepCompletedIcon",{style:mt,...lr})},Ot?React.createElement(Loader,{color:"var(--mantine-color-white)",size:"calc(var(--stepper-icon-size) / 2)",...rr.getStyles("stepLoader",lr)}):getStepFragment(_t,gt)||React.createElement(CheckIcon,{size:"60%"}))),wt!=="stepCompleted"?Ot?React.createElement(Loader,{...rr.getStyles("stepLoader",lr),size:"calc(var(--stepper-icon-size) / 2)",color:St}):getStepFragment(Ct||Mt,gt):null),Vt==="vertical"&&React.createElement("span",{...rr.getStyles("verticalSeparator",lr),"data-active":wt==="stepCompleted"||void 0})),(Bt||kt)&&React.createElement("span",{...rr.getStyles("stepBody",lr),"data-orientation":rr.orientation,"data-icon-position":zt||rr.iconPosition},Bt&&React.createElement("span",{...rr.getStyles("stepLabel",lr)},getStepFragment(Bt,gt)),kt&&React.createElement("span",{...rr.getStyles("stepDescription",lr)},getStepFragment(kt,gt))))});StepperStep.classes=classes$e;StepperStep.displayName="@mantine/core/StepperStep";const defaultProps$k={orientation:"horizontal",iconPosition:"left",allowNextStepsSelect:!0,wrap:!0},varsResolver$4=(c,{color:a,iconSize:d,size:et,contentPadding:nt,radius:tt,autoContrast:bt})=>({root:{"--stepper-color":a?getThemeColor(a,c):void 0,"--stepper-icon-color":getAutoContrastValue(bt,c)?getContrastColor({color:a,theme:c}):void 0,"--stepper-icon-size":d===void 0?getSize(et,"stepper-icon-size"):rem(d),"--stepper-content-padding":getSpacing(nt),"--stepper-radius":tt===void 0?void 0:getRadius(tt),"--stepper-fz":getFontSize(et),"--stepper-spacing":getSpacing(et)}}),Stepper=factory((c,a)=>{var At,Pt,xt;const d=useProps("Stepper",defaultProps$k,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,children:St,onStepClick:Mt,active:_t,icon:Tt,completedIcon:Bt,progressIcon:kt,color:It,iconSize:Lt,contentPadding:Ot,orientation:Nt,iconPosition:Ft,size:zt,radius:Vt,allowNextStepsSelect:Jt,wrap:ir,...rr}=d,er=useStyles({name:"Stepper",classes:classes$e,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$4}),lr=reactExports.Children.toArray(St),Ct=lr.filter(ht=>ht.type!==StepperCompleted),dt=lr.find(ht=>ht.type===StepperCompleted),mt=Ct.reduce((ht,$t,Rt)=>{const Dt=_t===Rt?"stepProgress":_t>Rt?"stepCompleted":"stepInactive",tr=(()=>typeof Mt!="function"?!1:typeof $t.props.allowStepSelect=="boolean"?$t.props.allowStepSelect:Dt==="stepCompleted"||Jt)();return ht.push(reactExports.cloneElement($t,{icon:$t.props.icon||Tt||Rt+1,key:Rt,step:Rt,state:Dt,onClick:()=>tr&&(Mt==null?void 0:Mt(Rt)),allowStepClick:tr,completedIcon:$t.props.completedIcon||Bt,progressIcon:$t.props.progressIcon||kt,color:$t.props.color||It,iconSize:Lt,radius:Vt,iconPosition:$t.props.iconPosition||Ft,orientation:Nt,unstyled:gt})),Nt==="horizontal"&&Rt!==Ct.length-1&&ht.push(React.createElement("div",{...er("separator"),"data-active":Rt<_t||void 0,"data-orientation":Nt,key:`separator-${Rt}`})),ht},[]),yt=(Pt=(At=Ct[_t])==null?void 0:At.props)==null?void 0:Pt.children,vt=(xt=dt==null?void 0:dt.props)==null?void 0:xt.children,Et=_t>Ct.length-1?vt:yt;return React.createElement(StepperProvider,{value:{getStyles:er,orientation:Nt,iconPosition:Ft}},React.createElement(Box,{...er("root"),ref:a,size:zt,...rr},React.createElement(Box,{...er("steps"),mod:{orientation:Nt,"icon-position":Ft,wrap:ir&&Nt!=="vertical"}},mt),Et&&React.createElement("div",{...er("content")},Et)))});Stepper.classes=classes$e;Stepper.displayName="@mantine/core/Stepper";Stepper.Completed=StepperCompleted;Stepper.Step=StepperStep;const defaultProps$j={},TextInput=factory((c,a)=>{const d=useProps("TextInput",defaultProps$j,c);return React.createElement(InputBase,{component:"input",ref:a,...d,__staticSelector:"TextInput"})});TextInput.classes=InputBase.classes;TextInput.displayName="@mantine/core/TextInput";const createStoreImpl=c=>{let a;const d=new Set,et=(Mt,_t)=>{const Tt=typeof Mt=="function"?Mt(a):Mt;if(!Object.is(Tt,a)){const Bt=a;a=_t??(typeof Tt!="object"||Tt===null)?Tt:Object.assign({},a,Tt),d.forEach(kt=>kt(a,Bt))}},nt=()=>a,wt={setState:et,getState:nt,getInitialState:()=>St,subscribe:Mt=>(d.add(Mt),()=>d.delete(Mt)),destroy:()=>{d.clear()}},St=a=c(et,nt,wt);return wt},createStore=c=>c?createStoreImpl(c):createStoreImpl;var withSelector={exports:{}},withSelector_production_min={},shim={exports:{}},useSyncExternalStoreShim_production_min={};/** +`}function MantineCssVariables({cssVariablesSelector:c,deduplicateCssVariables:a}){const d=useMantineTheme(),et=useMantineStyleNonce(),nt=useMantineCssVariablesResolver(),tt=getMergedVariables({theme:d,generator:nt}),bt=c===":root"&&a,gt=bt?removeDefaultVariables(tt):tt,wt=convertCssVariables(gt,c);return wt?React.createElement("style",{"data-mantine-styles":!0,nonce:et==null?void 0:et(),dangerouslySetInnerHTML:{__html:`${wt}${bt?"":getColorSchemeCssVariables(c)}`}}):null}MantineCssVariables.displayName="@mantine/CssVariables";function suppressNextjsWarning(){const c=console.error;console.error=(...a)=>{a.length>1&&typeof a[0]=="string"&&a[0].toLowerCase().includes("extra attributes from the server")&&typeof a[1]=="string"&&a[1].toLowerCase().includes("data-mantine-color-scheme")||c(...a)}}function setColorSchemeAttribute(c,a){var et;const d=c!=="auto"?c:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";(et=a())==null||et.setAttribute("data-mantine-color-scheme",d)}function useProviderColorScheme({manager:c,defaultColorScheme:a,getRootElement:d,forceColorScheme:et}){const nt=reactExports.useRef(),[tt,bt]=reactExports.useState(()=>c.get(a)),gt=et||tt,wt=reactExports.useCallback(Mt=>{et||(setColorSchemeAttribute(Mt,d),bt(Mt),c.set(Mt))},[c.set,gt,et]),St=reactExports.useCallback(()=>{bt(a),setColorSchemeAttribute(a,d),c.clear()},[c.clear,a]);return reactExports.useEffect(()=>(c.subscribe(wt),c.unsubscribe),[c.subscribe,c.unsubscribe]),useIsomorphicEffect(()=>{setColorSchemeAttribute(c.get(a),d)},[]),reactExports.useEffect(()=>{var _t;if(et)return setColorSchemeAttribute(et,d),()=>{};et===void 0&&setColorSchemeAttribute(tt,d),nt.current=window.matchMedia("(prefers-color-scheme: dark)");const Mt=Tt=>{tt==="auto"&&setColorSchemeAttribute(Tt.matches?"dark":"light",d)};return(_t=nt.current)==null||_t.addEventListener("change",Mt),()=>{var Tt;return(Tt=nt.current)==null?void 0:Tt.removeEventListener("change",Mt)}},[tt,et]),{colorScheme:gt,setColorScheme:wt,clearColorScheme:St}}function useRespectReduceMotion({respectReducedMotion:c,getRootElement:a}){useIsomorphicEffect(()=>{var d;c&&((d=a())==null||d.setAttribute("data-respect-reduced-motion","true"))},[c])}suppressNextjsWarning();function MantineProvider({theme:c,children:a,getStyleNonce:d,withStaticClasses:et=!0,withGlobalClasses:nt=!0,deduplicateCssVariables:tt=!0,withCssVariables:bt=!0,cssVariablesSelector:gt=":root",classNamesPrefix:wt="mantine",colorSchemeManager:St=localStorageColorSchemeManager(),defaultColorScheme:Mt="light",getRootElement:_t=()=>document.documentElement,cssVariablesResolver:Tt,forceColorScheme:Rt}){const{colorScheme:kt,setColorScheme:It,clearColorScheme:Lt}=useProviderColorScheme({defaultColorScheme:Mt,forceColorScheme:Rt,manager:St,getRootElement:_t});return useRespectReduceMotion({respectReducedMotion:(c==null?void 0:c.respectReducedMotion)||!1,getRootElement:_t}),React.createElement(MantineContext.Provider,{value:{colorScheme:kt,setColorScheme:It,clearColorScheme:Lt,getRootElement:_t,classNamesPrefix:wt,getStyleNonce:d,cssVariablesResolver:Tt,cssVariablesSelector:gt,withStaticClasses:et}},React.createElement(MantineThemeProvider,{theme:c},bt&&React.createElement(MantineCssVariables,{cssVariablesSelector:gt,deduplicateCssVariables:tt}),nt&&React.createElement(MantineClasses,null),a))}MantineProvider.displayName="@mantine/core/MantineProvider";function useResolvedStylesApi({classNames:c,styles:a,props:d,stylesCtx:et}){const nt=useMantineTheme();return{resolvedClassNames:resolveClassNames({theme:nt,classNames:c,props:d,stylesCtx:et||void 0}),resolvedStyles:resolveStyles({theme:nt,styles:a,props:d,stylesCtx:et||void 0})}}const FOCUS_CLASS_NAMES={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function getGlobalClassNames({theme:c,options:a,unstyled:d}){return clsx((a==null?void 0:a.focusable)&&!d&&(c.focusClassName||FOCUS_CLASS_NAMES[c.focusRing]),(a==null?void 0:a.active)&&!d&&c.activeClassName)}function getOptionsClassNames({selector:c,stylesCtx:a,options:d,props:et,theme:nt}){return resolveClassNames({theme:nt,classNames:d==null?void 0:d.classNames,props:(d==null?void 0:d.props)||et,stylesCtx:a})[c]}function getResolvedClassNames({selector:c,stylesCtx:a,theme:d,classNames:et,props:nt}){return resolveClassNames({theme:d,classNames:et,props:nt,stylesCtx:a})[c]}function getRootClassName({rootSelector:c,selector:a,className:d}){return c===a?d:void 0}function getSelectorClassName({selector:c,classes:a,unstyled:d}){return d?void 0:a[c]}function getStaticClassNames({themeName:c,classNamesPrefix:a,selector:d,withStaticClass:et}){return et===!1?[]:c.map(nt=>`${a}-${nt}-${d}`)}function getThemeClassNames({themeName:c,theme:a,selector:d,props:et,stylesCtx:nt}){return c.map(tt=>{var bt,gt;return(gt=resolveClassNames({theme:a,classNames:(bt=a.components[tt])==null?void 0:bt.classNames,props:et,stylesCtx:nt}))==null?void 0:gt[d]})}function getVariantClassName({options:c,classes:a,selector:d,unstyled:et}){return c!=null&&c.variant&&!et?a[`${d}--${c.variant}`]:void 0}function getClassName({theme:c,options:a,themeName:d,selector:et,classNamesPrefix:nt,classNames:tt,classes:bt,unstyled:gt,className:wt,rootSelector:St,props:Mt,stylesCtx:_t,withStaticClasses:Tt,headless:Rt}){return clsx(getGlobalClassNames({theme:c,options:a,unstyled:gt||Rt}),getThemeClassNames({theme:c,themeName:d,selector:et,props:Mt,stylesCtx:_t}),getVariantClassName({options:a,classes:bt,selector:et,unstyled:gt}),getResolvedClassNames({selector:et,stylesCtx:_t,theme:c,classNames:tt,props:Mt}),getOptionsClassNames({selector:et,stylesCtx:_t,options:a,props:Mt,theme:c}),getRootClassName({rootSelector:St,selector:et,className:wt}),getSelectorClassName({selector:et,classes:bt,unstyled:gt||Rt}),Tt&&!Rt&&getStaticClassNames({themeName:d,classNamesPrefix:nt,selector:et,withStaticClass:a==null?void 0:a.withStaticClass}),a==null?void 0:a.className)}function getThemeStyles({theme:c,themeName:a,props:d,stylesCtx:et,selector:nt}){return a.map(tt=>{var bt;return resolveStyles({theme:c,styles:(bt=c.components[tt])==null?void 0:bt.styles,props:d,stylesCtx:et})[nt]}).reduce((tt,bt)=>({...tt,...bt}),{})}function resolveStyle({style:c,theme:a}){return Array.isArray(c)?[...c].reduce((d,et)=>({...d,...resolveStyle({style:et,theme:a})}),{}):typeof c=="function"?c(a):c??{}}function mergeVars(c){return c.reduce((a,d)=>(d&&Object.keys(d).forEach(et=>{a[et]={...a[et],...filterProps(d[et])}}),a),{})}function resolveVars({vars:c,varsResolver:a,theme:d,props:et,stylesCtx:nt,selector:tt,themeName:bt,headless:gt}){var wt;return(wt=mergeVars([gt?{}:a==null?void 0:a(d,et,nt),...bt.map(St=>{var Mt,_t,Tt;return(Tt=(_t=(Mt=d.components)==null?void 0:Mt[St])==null?void 0:_t.vars)==null?void 0:Tt.call(_t,d,et,nt)}),c==null?void 0:c(d,et,nt)]))==null?void 0:wt[tt]}function getStyle({theme:c,themeName:a,selector:d,options:et,props:nt,stylesCtx:tt,rootSelector:bt,styles:gt,style:wt,vars:St,varsResolver:Mt,headless:_t}){return{...getThemeStyles({theme:c,themeName:a,props:nt,stylesCtx:tt,selector:d}),...resolveStyles({theme:c,styles:gt,props:nt,stylesCtx:tt})[d],...resolveStyles({theme:c,styles:et==null?void 0:et.styles,props:(et==null?void 0:et.props)||nt,stylesCtx:tt})[d],...resolveVars({theme:c,props:nt,stylesCtx:tt,vars:St,varsResolver:Mt,selector:d,themeName:a,headless:_t}),...bt===d?resolveStyle({style:wt,theme:c}):null,...resolveStyle({style:et==null?void 0:et.style,theme:c})}}function useStyles({name:c,classes:a,props:d,stylesCtx:et,className:nt,style:tt,rootSelector:bt="root",unstyled:gt,classNames:wt,styles:St,vars:Mt,varsResolver:_t}){const Tt=useMantineTheme(),Rt=useMantineClassNamesPrefix(),kt=useMantineWithStaticClasses(),It=useMantineIsHeadless(),Lt=(Array.isArray(c)?c:[c]).filter(Ot=>Ot);return(Ot,Nt)=>({className:getClassName({theme:Tt,options:Nt,themeName:Lt,selector:Ot,classNamesPrefix:Rt,classNames:wt,classes:a,unstyled:gt,className:nt,rootSelector:bt,props:d,stylesCtx:et,withStaticClasses:kt,headless:It}),style:getStyle({theme:Tt,themeName:Lt,selector:Ot,options:Nt,props:d,stylesCtx:et,rootSelector:bt,styles:St,style:tt,vars:Mt,varsResolver:_t,headless:It})})}function getAutoContrastValue(c,a){return typeof c=="boolean"?c:a.autoContrast}function disableTransition(){const c=document.createElement("style");return c.innerHTML="*, *::before, *::after {transition: none !important;}",c.setAttribute("data-mantine-disable-transition","true"),document.head.appendChild(c),()=>document.querySelectorAll("[data-mantine-disable-transition]").forEach(d=>d.remove())}function useMantineColorScheme({keepTransitions:c}={}){const a=reactExports.useRef(),d=reactExports.useRef(),et=reactExports.useContext(MantineContext);if(!et)throw new Error("[@mantine/core] MantineProvider was not found in tree");const nt=St=>{et.setColorScheme(St),a.current=c?()=>{}:disableTransition(),window.clearTimeout(d.current),d.current=window.setTimeout(()=>{var Mt;(Mt=a.current)==null||Mt.call(a)},10)},tt=()=>{et.clearColorScheme(),a.current=c?()=>{}:disableTransition(),window.clearTimeout(d.current),d.current=window.setTimeout(()=>{var St;(St=a.current)==null||St.call(a)},10)},bt=useColorScheme("light",{getInitialValueInEffect:!1}),gt=et.colorScheme==="auto"?bt:et.colorScheme,wt=reactExports.useCallback(()=>nt(gt==="light"?"dark":"light"),[nt,gt]);return reactExports.useEffect(()=>()=>{var St;(St=a.current)==null||St.call(a),window.clearTimeout(d.current)},[]),{colorScheme:et.colorScheme,setColorScheme:nt,clearColorScheme:tt,toggleColorScheme:wt}}function useProps(c,a,d){var bt;const et=useMantineTheme(),nt=(bt=et.components[c])==null?void 0:bt.defaultProps,tt=typeof nt=="function"?nt(et):nt;return{...a,...tt,...filterProps(d)}}function createTheme(c){return c}function cssObjectToString(c){return keys(c).reduce((a,d)=>c[d]!==void 0?`${a}${camelToKebabCase(d)}:${c[d]};`:a,"").trim()}function stylesToString({selector:c,styles:a,media:d}){const et=a?cssObjectToString(a):"",nt=Array.isArray(d)?d.map(tt=>`@media${tt.query}{${c}{${cssObjectToString(tt.styles)}}}`):[];return`${et?`${c}{${et}}`:""}${nt.join("")}`.trim()}function InlineStyles({selector:c,styles:a,media:d}){const et=useMantineStyleNonce();return React.createElement("style",{"data-mantine-styles":"inline",nonce:et==null?void 0:et(),dangerouslySetInnerHTML:{__html:stylesToString({selector:c,styles:a,media:d})}})}function extractStyleProps(c){const{m:a,mx:d,my:et,mt:nt,mb:tt,ml:bt,mr:gt,me:wt,ms:St,p:Mt,px:_t,py:Tt,pt:Rt,pb:kt,pl:It,pr:Lt,pe:Ot,ps:Nt,bg:Ft,c:jt,opacity:Vt,ff:Jt,fz:ir,fw:rr,lts:er,ta:lr,lh:Ct,fs:dt,tt:mt,td:yt,w:vt,miw:Et,maw:At,h:Pt,mih:xt,mah:ht,bgsz:$t,bgp:Bt,bgr:Dt,bga:Ht,pos:tr,top:Xt,left:Ut,bottom:qt,right:Gt,inset:Zt,display:Yt,flex:Kt,hiddenFrom:ar,visibleFrom:gr,lightHidden:cr,darkHidden:ur,...Pr}=c;return{styleProps:filterProps({m:a,mx:d,my:et,mt:nt,mb:tt,ml:bt,mr:gt,me:wt,ms:St,p:Mt,px:_t,py:Tt,pt:Rt,pb:kt,pl:It,pr:Lt,pe:Ot,ps:Nt,bg:Ft,c:jt,opacity:Vt,ff:Jt,fz:ir,fw:rr,lts:er,ta:lr,lh:Ct,fs:dt,tt:mt,td:yt,w:vt,miw:Et,maw:At,h:Pt,mih:xt,mah:ht,bgsz:$t,bgp:Bt,bgr:Dt,bga:Ht,pos:tr,top:Xt,left:Ut,bottom:qt,right:Gt,inset:Zt,display:Yt,flex:Kt,hiddenFrom:ar,visibleFrom:gr,lightHidden:cr,darkHidden:ur}),rest:Pr}}const STYlE_PROPS_DATA={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"identity",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function colorResolver(c,a){const d=parseThemeColor({color:c,theme:a});return d.color==="dimmed"?"var(--mantine-color-dimmed)":d.color==="bright"?"var(--mantine-color-bright)":d.variable?`var(${d.variable})`:d.color}function textColorResolver(c,a){const d=parseThemeColor({color:c,theme:a});return d.isThemeColor&&d.shade===void 0?`var(--mantine-color-${d.color}-text)`:colorResolver(c,a)}const values={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function fontFamilyResolver(c){return typeof c=="string"&&c in values?values[c]:c}const headings$1=["h1","h2","h3","h4","h5","h6"];function fontSizeResolver(c,a){return typeof c=="string"&&c in a.fontSizes?`var(--mantine-font-size-${c})`:typeof c=="string"&&headings$1.includes(c)?`var(--mantine-${c}-font-size)`:typeof c=="number"||typeof c=="string"?rem(c):c}function identityResolver(c){return c}const headings=["h1","h2","h3","h4","h5","h6"];function lineHeightResolver(c,a){return typeof c=="string"&&c in a.lineHeights?`var(--mantine-line-height-${c})`:typeof c=="string"&&headings.includes(c)?`var(--mantine-${c}-line-height)`:c}function sizeResolver(c){return typeof c=="number"?rem(c):c}function spacingResolver(c,a){if(typeof c=="number")return rem(c);if(typeof c=="string"){const d=c.replace("-","");if(!(d in a.spacing))return rem(c);const et=`--mantine-spacing-${d}`;return c.startsWith("-")?`calc(var(${et}) * -1)`:`var(${et})`}return c}const resolvers={color:colorResolver,textColor:textColorResolver,fontSize:fontSizeResolver,spacing:spacingResolver,identity:identityResolver,size:sizeResolver,lineHeight:lineHeightResolver,fontFamily:fontFamilyResolver};function replaceMediaQuery(c){return c.replace("(min-width: ","").replace("em)","")}function sortMediaQueries({media:c,...a}){const et=Object.keys(c).sort((nt,tt)=>Number(replaceMediaQuery(nt))-Number(replaceMediaQuery(tt))).map(nt=>({query:nt,styles:c[nt]}));return{...a,media:et}}function hasResponsiveStyles(c){if(typeof c!="object"||c===null)return!1;const a=Object.keys(c);return!(a.length===1&&a[0]==="base")}function getBaseValue(c){return typeof c=="object"&&c!==null?"base"in c?c.base:void 0:c}function getBreakpointKeys(c){return typeof c=="object"&&c!==null?keys(c).filter(a=>a!=="base"):[]}function getBreakpointValue(c,a){return typeof c=="object"&&c!==null&&a in c?c[a]:c}function parseStyleProps({styleProps:c,data:a,theme:d}){return sortMediaQueries(keys(c).reduce((et,nt)=>{if(nt==="hiddenFrom"||nt==="visibleFrom")return et;const tt=a[nt],bt=Array.isArray(tt.property)?tt.property:[tt.property],gt=getBaseValue(c[nt]);if(!hasResponsiveStyles(c[nt]))return bt.forEach(St=>{et.inlineStyles[St]=resolvers[tt.type](gt,d)}),et;et.hasResponsiveStyles=!0;const wt=getBreakpointKeys(c[nt]);return bt.forEach(St=>{gt&&(et.styles[St]=resolvers[tt.type](gt,d)),wt.forEach(Mt=>{const _t=`(min-width: ${d.breakpoints[Mt]})`;et.media[_t]={...et.media[_t],[St]:resolvers[tt.type](getBreakpointValue(c[nt],Mt),d)}})}),et},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function useRandomClassName(){return`__m__-${reactExports.useId().replace(/:/g,"")}`}function createPolymorphicComponent(c){return c}function transformModKey(c){return c.startsWith("data-")?c:`data-${c}`}function getMod(c){return Object.keys(c).reduce((a,d)=>{const et=c[d];return et===void 0||et===""||et===!1||et===null||(a[transformModKey(d)]=c[d]),a},{})}function getBoxMod(c){return c?typeof c=="string"?{[transformModKey(c)]:!0}:Array.isArray(c)?[...c].reduce((a,d)=>({...a,...getBoxMod(d)}),{}):getMod(c):null}function mergeStyles(c,a){return Array.isArray(c)?[...c].reduce((d,et)=>({...d,...mergeStyles(et,a)}),{}):typeof c=="function"?c(a):c??{}}function getBoxStyle({theme:c,style:a,vars:d,styleProps:et}){const nt=mergeStyles(a,c),tt=mergeStyles(d,c);return{...nt,...tt,...et}}const _Box=reactExports.forwardRef(({component:c,style:a,__vars:d,className:et,variant:nt,mod:tt,size:bt,hiddenFrom:gt,visibleFrom:wt,lightHidden:St,darkHidden:Mt,renderRoot:_t,...Tt},Rt)=>{const kt=useMantineTheme(),It=c||"div",{styleProps:Lt,rest:Ot}=extractStyleProps(Tt),Nt=useRandomClassName(),Ft=parseStyleProps({styleProps:Lt,theme:kt,data:STYlE_PROPS_DATA}),jt={ref:Rt,style:getBoxStyle({theme:kt,style:a,vars:d,styleProps:Ft.inlineStyles}),className:clsx(et,{[Nt]:Ft.hasResponsiveStyles,"mantine-light-hidden":St,"mantine-dark-hidden":Mt,[`mantine-hidden-from-${gt}`]:gt,[`mantine-visible-from-${wt}`]:wt}),"data-variant":nt,"data-size":isNumberLike(bt)?void 0:bt||void 0,...getBoxMod(tt),...Ot};return React.createElement(React.Fragment,null,Ft.hasResponsiveStyles&&React.createElement(InlineStyles,{selector:`.${Nt}`,styles:Ft.styles,media:Ft.media}),typeof _t=="function"?_t(jt):React.createElement(It,{...jt}))});_Box.displayName="@mantine/core/Box";const Box=_Box;function identity$1(c){return c}function factory(c){const a=reactExports.forwardRef(c);return a.extend=identity$1,a}function polymorphicFactory(c){const a=reactExports.forwardRef(c);return a.extend=identity$1,a}const DirectionContext=reactExports.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function useDirection(){return reactExports.useContext(DirectionContext)}var classes$G={root:"m_87cf2631"};const defaultProps$1n={__staticSelector:"UnstyledButton"},UnstyledButton=polymorphicFactory((c,a)=>{const d=useProps("UnstyledButton",defaultProps$1n,c),{className:et,component:nt="button",__staticSelector:tt,unstyled:bt,classNames:gt,styles:wt,style:St,...Mt}=d,_t=useStyles({name:tt,props:d,classes:classes$G,className:et,style:St,classNames:gt,styles:wt,unstyled:bt});return React.createElement(Box,{..._t("root",{focusable:!0}),component:nt,ref:a,type:nt==="button"?"button":void 0,...Mt})});UnstyledButton.classes=classes$G;UnstyledButton.displayName="@mantine/core/UnstyledButton";var classes$F={root:"m_515a97f8"};const defaultProps$1m={},VisuallyHidden=factory((c,a)=>{const d=useProps("VisuallyHidden",defaultProps$1m,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,...St}=d,Mt=useStyles({name:"VisuallyHidden",classes:classes$F,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt});return React.createElement(Box,{component:"span",ref:a,...Mt("root"),...St})});VisuallyHidden.classes=classes$F;VisuallyHidden.displayName="@mantine/core/VisuallyHidden";var classes$E={root:"m_1b7284a3"};const defaultProps$1l={},varsResolver$A=(c,{radius:a,shadow:d})=>({root:{"--paper-radius":a===void 0?void 0:getRadius(a),"--paper-shadow":getShadow(d)}}),Paper=polymorphicFactory((c,a)=>{const d=useProps("Paper",defaultProps$1l,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,withBorder:wt,vars:St,radius:Mt,shadow:_t,variant:Tt,mod:Rt,...kt}=d,It=useStyles({name:"Paper",props:d,classes:classes$E,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:St,varsResolver:varsResolver$A});return React.createElement(Box,{ref:a,mod:[{"data-with-border":wt},Rt],...It("root"),variant:Tt,...kt})});Paper.classes=classes$E;Paper.displayName="@mantine/core/Paper";function getNodeName(c){return isNode(c)?(c.nodeName||"").toLowerCase():"#document"}function getWindow(c){var a;return(c==null||(a=c.ownerDocument)==null?void 0:a.defaultView)||window}function getDocumentElement(c){var a;return(a=(isNode(c)?c.ownerDocument:c.document)||window.document)==null?void 0:a.documentElement}function isNode(c){return c instanceof Node||c instanceof getWindow(c).Node}function isElement(c){return c instanceof Element||c instanceof getWindow(c).Element}function isHTMLElement(c){return c instanceof HTMLElement||c instanceof getWindow(c).HTMLElement}function isShadowRoot(c){return typeof ShadowRoot>"u"?!1:c instanceof ShadowRoot||c instanceof getWindow(c).ShadowRoot}function isOverflowElement(c){const{overflow:a,overflowX:d,overflowY:et,display:nt}=getComputedStyle(c);return/auto|scroll|overlay|hidden|clip/.test(a+et+d)&&!["inline","contents"].includes(nt)}function isTableElement(c){return["table","td","th"].includes(getNodeName(c))}function isContainingBlock(c){const a=isWebKit(),d=getComputedStyle(c);return d.transform!=="none"||d.perspective!=="none"||(d.containerType?d.containerType!=="normal":!1)||!a&&(d.backdropFilter?d.backdropFilter!=="none":!1)||!a&&(d.filter?d.filter!=="none":!1)||["transform","perspective","filter"].some(et=>(d.willChange||"").includes(et))||["paint","layout","strict","content"].some(et=>(d.contain||"").includes(et))}function getContainingBlock(c){let a=getParentNode(c);for(;isHTMLElement(a)&&!isLastTraversableNode(a);){if(isContainingBlock(a))return a;a=getParentNode(a)}return null}function isWebKit(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(c){return["html","body","#document"].includes(getNodeName(c))}function getComputedStyle(c){return getWindow(c).getComputedStyle(c)}function getNodeScroll(c){return isElement(c)?{scrollLeft:c.scrollLeft,scrollTop:c.scrollTop}:{scrollLeft:c.pageXOffset,scrollTop:c.pageYOffset}}function getParentNode(c){if(getNodeName(c)==="html")return c;const a=c.assignedSlot||c.parentNode||isShadowRoot(c)&&c.host||getDocumentElement(c);return isShadowRoot(a)?a.host:a}function getNearestOverflowAncestor(c){const a=getParentNode(c);return isLastTraversableNode(a)?c.ownerDocument?c.ownerDocument.body:c.body:isHTMLElement(a)&&isOverflowElement(a)?a:getNearestOverflowAncestor(a)}function getOverflowAncestors(c,a,d){var et;a===void 0&&(a=[]),d===void 0&&(d=!0);const nt=getNearestOverflowAncestor(c),tt=nt===((et=c.ownerDocument)==null?void 0:et.body),bt=getWindow(nt);return tt?a.concat(bt,bt.visualViewport||[],isOverflowElement(nt)?nt:[],bt.frameElement&&d?getOverflowAncestors(bt.frameElement):[]):a.concat(nt,getOverflowAncestors(nt,[],d))}const min=Math.min,max$1=Math.max,round=Math.round,floor=Math.floor,createCoords=c=>({x:c,y:c}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp(c,a,d){return max$1(c,min(a,d))}function evaluate(c,a){return typeof c=="function"?c(a):c}function getSide(c){return c.split("-")[0]}function getAlignment(c){return c.split("-")[1]}function getOppositeAxis(c){return c==="x"?"y":"x"}function getAxisLength(c){return c==="y"?"height":"width"}function getSideAxis(c){return["top","bottom"].includes(getSide(c))?"y":"x"}function getAlignmentAxis(c){return getOppositeAxis(getSideAxis(c))}function getAlignmentSides(c,a,d){d===void 0&&(d=!1);const et=getAlignment(c),nt=getAlignmentAxis(c),tt=getAxisLength(nt);let bt=nt==="x"?et===(d?"end":"start")?"right":"left":et==="start"?"bottom":"top";return a.reference[tt]>a.floating[tt]&&(bt=getOppositePlacement(bt)),[bt,getOppositePlacement(bt)]}function getExpandedPlacements(c){const a=getOppositePlacement(c);return[getOppositeAlignmentPlacement(c),a,getOppositeAlignmentPlacement(a)]}function getOppositeAlignmentPlacement(c){return c.replace(/start|end/g,a=>oppositeAlignmentMap[a])}function getSideList(c,a,d){const et=["left","right"],nt=["right","left"],tt=["top","bottom"],bt=["bottom","top"];switch(c){case"top":case"bottom":return d?a?nt:et:a?et:nt;case"left":case"right":return a?tt:bt;default:return[]}}function getOppositeAxisPlacements(c,a,d,et){const nt=getAlignment(c);let tt=getSideList(getSide(c),d==="start",et);return nt&&(tt=tt.map(bt=>bt+"-"+nt),a&&(tt=tt.concat(tt.map(getOppositeAlignmentPlacement)))),tt}function getOppositePlacement(c){return c.replace(/left|right|bottom|top/g,a=>oppositeSideMap[a])}function expandPaddingObject(c){return{top:0,right:0,bottom:0,left:0,...c}}function getPaddingObject(c){return typeof c!="number"?expandPaddingObject(c):{top:c,right:c,bottom:c,left:c}}function rectToClientRect(c){const{x:a,y:d,width:et,height:nt}=c;return{width:et,height:nt,top:d,left:a,right:a+et,bottom:d+nt,x:a,y:d}}function computeCoordsFromPlacement(c,a,d){let{reference:et,floating:nt}=c;const tt=getSideAxis(a),bt=getAlignmentAxis(a),gt=getAxisLength(bt),wt=getSide(a),St=tt==="y",Mt=et.x+et.width/2-nt.width/2,_t=et.y+et.height/2-nt.height/2,Tt=et[gt]/2-nt[gt]/2;let Rt;switch(wt){case"top":Rt={x:Mt,y:et.y-nt.height};break;case"bottom":Rt={x:Mt,y:et.y+et.height};break;case"right":Rt={x:et.x+et.width,y:_t};break;case"left":Rt={x:et.x-nt.width,y:_t};break;default:Rt={x:et.x,y:et.y}}switch(getAlignment(a)){case"start":Rt[bt]-=Tt*(d&&St?-1:1);break;case"end":Rt[bt]+=Tt*(d&&St?-1:1);break}return Rt}const computePosition$1=async(c,a,d)=>{const{placement:et="bottom",strategy:nt="absolute",middleware:tt=[],platform:bt}=d,gt=tt.filter(Boolean),wt=await(bt.isRTL==null?void 0:bt.isRTL(a));let St=await bt.getElementRects({reference:c,floating:a,strategy:nt}),{x:Mt,y:_t}=computeCoordsFromPlacement(St,et,wt),Tt=et,Rt={},kt=0;for(let It=0;It({name:"arrow",options:c,async fn(a){const{x:d,y:et,placement:nt,rects:tt,platform:bt,elements:gt,middlewareData:wt}=a,{element:St,padding:Mt=0}=evaluate(c,a)||{};if(St==null)return{};const _t=getPaddingObject(Mt),Tt={x:d,y:et},Rt=getAlignmentAxis(nt),kt=getAxisLength(Rt),It=await bt.getDimensions(St),Lt=Rt==="y",Ot=Lt?"top":"left",Nt=Lt?"bottom":"right",Ft=Lt?"clientHeight":"clientWidth",jt=tt.reference[kt]+tt.reference[Rt]-Tt[Rt]-tt.floating[kt],Vt=Tt[Rt]-tt.reference[Rt],Jt=await(bt.getOffsetParent==null?void 0:bt.getOffsetParent(St));let ir=Jt?Jt[Ft]:0;(!ir||!await(bt.isElement==null?void 0:bt.isElement(Jt)))&&(ir=gt.floating[Ft]||tt.floating[kt]);const rr=jt/2-Vt/2,er=ir/2-It[kt]/2-1,lr=min(_t[Ot],er),Ct=min(_t[Nt],er),dt=lr,mt=ir-It[kt]-Ct,yt=ir/2-It[kt]/2+rr,vt=clamp(dt,yt,mt),Et=!wt.arrow&&getAlignment(nt)!=null&&yt!==vt&&tt.reference[kt]/2-(ytdt<=0)){var er,lr;const dt=(((er=tt.flip)==null?void 0:er.index)||0)+1,mt=Vt[dt];if(mt)return{data:{index:dt,overflows:rr},reset:{placement:mt}};let yt=(lr=rr.filter(vt=>vt.overflows[0]<=0).sort((vt,Et)=>vt.overflows[1]-Et.overflows[1])[0])==null?void 0:lr.placement;if(!yt)switch(Rt){case"bestFit":{var Ct;const vt=(Ct=rr.map(Et=>[Et.placement,Et.overflows.filter(At=>At>0).reduce((At,Pt)=>At+Pt,0)]).sort((Et,At)=>Et[1]-At[1])[0])==null?void 0:Ct[0];vt&&(yt=vt);break}case"initialPlacement":yt=gt;break}if(nt!==yt)return{reset:{placement:yt}}}return{}}}};function getBoundingRect(c){const a=min(...c.map(tt=>tt.left)),d=min(...c.map(tt=>tt.top)),et=max$1(...c.map(tt=>tt.right)),nt=max$1(...c.map(tt=>tt.bottom));return{x:a,y:d,width:et-a,height:nt-d}}function getRectsByLine(c){const a=c.slice().sort((nt,tt)=>nt.y-tt.y),d=[];let et=null;for(let nt=0;ntet.height/2?d.push([tt]):d[d.length-1].push(tt),et=tt}return d.map(nt=>rectToClientRect(getBoundingRect(nt)))}const inline$2=function(c){return c===void 0&&(c={}),{name:"inline",options:c,async fn(a){const{placement:d,elements:et,rects:nt,platform:tt,strategy:bt}=a,{padding:gt=2,x:wt,y:St}=evaluate(c,a),Mt=Array.from(await(tt.getClientRects==null?void 0:tt.getClientRects(et.reference))||[]),_t=getRectsByLine(Mt),Tt=rectToClientRect(getBoundingRect(Mt)),Rt=getPaddingObject(gt);function kt(){if(_t.length===2&&_t[0].left>_t[1].right&&wt!=null&&St!=null)return _t.find(Lt=>wt>Lt.left-Rt.left&&wtLt.top-Rt.top&&St=2){if(getSideAxis(d)==="y"){const lr=_t[0],Ct=_t[_t.length-1],dt=getSide(d)==="top",mt=lr.top,yt=Ct.bottom,vt=dt?lr.left:Ct.left,Et=dt?lr.right:Ct.right,At=Et-vt,Pt=yt-mt;return{top:mt,bottom:yt,left:vt,right:Et,width:At,height:Pt,x:vt,y:mt}}const Lt=getSide(d)==="left",Ot=max$1(..._t.map(lr=>lr.right)),Nt=min(..._t.map(lr=>lr.left)),Ft=_t.filter(lr=>Lt?lr.left===Nt:lr.right===Ot),jt=Ft[0].top,Vt=Ft[Ft.length-1].bottom,Jt=Nt,ir=Ot,rr=ir-Jt,er=Vt-jt;return{top:jt,bottom:Vt,left:Jt,right:ir,width:rr,height:er,x:Jt,y:jt}}return Tt}const It=await tt.getElementRects({reference:{getBoundingClientRect:kt},floating:et.floating,strategy:bt});return nt.reference.x!==It.reference.x||nt.reference.y!==It.reference.y||nt.reference.width!==It.reference.width||nt.reference.height!==It.reference.height?{reset:{rects:It}}:{}}}};async function convertValueToCoords(c,a){const{placement:d,platform:et,elements:nt}=c,tt=await(et.isRTL==null?void 0:et.isRTL(nt.floating)),bt=getSide(d),gt=getAlignment(d),wt=getSideAxis(d)==="y",St=["left","top"].includes(bt)?-1:1,Mt=tt&&wt?-1:1,_t=evaluate(a,c);let{mainAxis:Tt,crossAxis:Rt,alignmentAxis:kt}=typeof _t=="number"?{mainAxis:_t,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,..._t};return gt&&typeof kt=="number"&&(Rt=gt==="end"?kt*-1:kt),wt?{x:Rt*Mt,y:Tt*St}:{x:Tt*St,y:Rt*Mt}}const offset$2=function(c){return c===void 0&&(c=0),{name:"offset",options:c,async fn(a){var d,et;const{x:nt,y:tt,placement:bt,middlewareData:gt}=a,wt=await convertValueToCoords(a,c);return bt===((d=gt.offset)==null?void 0:d.placement)&&(et=gt.arrow)!=null&&et.alignmentOffset?{}:{x:nt+wt.x,y:tt+wt.y,data:{...wt,placement:bt}}}}},shift$2=function(c){return c===void 0&&(c={}),{name:"shift",options:c,async fn(a){const{x:d,y:et,placement:nt}=a,{mainAxis:tt=!0,crossAxis:bt=!1,limiter:gt={fn:Lt=>{let{x:Ot,y:Nt}=Lt;return{x:Ot,y:Nt}}},...wt}=evaluate(c,a),St={x:d,y:et},Mt=await detectOverflow(a,wt),_t=getSideAxis(getSide(nt)),Tt=getOppositeAxis(_t);let Rt=St[Tt],kt=St[_t];if(tt){const Lt=Tt==="y"?"top":"left",Ot=Tt==="y"?"bottom":"right",Nt=Rt+Mt[Lt],Ft=Rt-Mt[Ot];Rt=clamp(Nt,Rt,Ft)}if(bt){const Lt=_t==="y"?"top":"left",Ot=_t==="y"?"bottom":"right",Nt=kt+Mt[Lt],Ft=kt-Mt[Ot];kt=clamp(Nt,kt,Ft)}const It=gt.fn({...a,[Tt]:Rt,[_t]:kt});return{...It,data:{x:It.x-d,y:It.y-et}}}}},limitShift$2=function(c){return c===void 0&&(c={}),{options:c,fn(a){const{x:d,y:et,placement:nt,rects:tt,middlewareData:bt}=a,{offset:gt=0,mainAxis:wt=!0,crossAxis:St=!0}=evaluate(c,a),Mt={x:d,y:et},_t=getSideAxis(nt),Tt=getOppositeAxis(_t);let Rt=Mt[Tt],kt=Mt[_t];const It=evaluate(gt,a),Lt=typeof It=="number"?{mainAxis:It,crossAxis:0}:{mainAxis:0,crossAxis:0,...It};if(wt){const Ft=Tt==="y"?"height":"width",jt=tt.reference[Tt]-tt.floating[Ft]+Lt.mainAxis,Vt=tt.reference[Tt]+tt.reference[Ft]-Lt.mainAxis;RtVt&&(Rt=Vt)}if(St){var Ot,Nt;const Ft=Tt==="y"?"width":"height",jt=["top","left"].includes(getSide(nt)),Vt=tt.reference[_t]-tt.floating[Ft]+(jt&&((Ot=bt.offset)==null?void 0:Ot[_t])||0)+(jt?0:Lt.crossAxis),Jt=tt.reference[_t]+tt.reference[Ft]+(jt?0:((Nt=bt.offset)==null?void 0:Nt[_t])||0)-(jt?Lt.crossAxis:0);ktJt&&(kt=Jt)}return{[Tt]:Rt,[_t]:kt}}}},size$5=function(c){return c===void 0&&(c={}),{name:"size",options:c,async fn(a){const{placement:d,rects:et,platform:nt,elements:tt}=a,{apply:bt=()=>{},...gt}=evaluate(c,a),wt=await detectOverflow(a,gt),St=getSide(d),Mt=getAlignment(d),_t=getSideAxis(d)==="y",{width:Tt,height:Rt}=et.floating;let kt,It;St==="top"||St==="bottom"?(kt=St,It=Mt===(await(nt.isRTL==null?void 0:nt.isRTL(tt.floating))?"start":"end")?"left":"right"):(It=St,kt=Mt==="end"?"top":"bottom");const Lt=Rt-wt.top-wt.bottom,Ot=Tt-wt.left-wt.right,Nt=min(Rt-wt[kt],Lt),Ft=min(Tt-wt[It],Ot),jt=!a.middlewareData.shift;let Vt=Nt,Jt=Ft;if(_t?Jt=Mt||jt?min(Ft,Ot):Ot:Vt=Mt||jt?min(Nt,Lt):Lt,jt&&!Mt){const rr=max$1(wt.left,0),er=max$1(wt.right,0),lr=max$1(wt.top,0),Ct=max$1(wt.bottom,0);_t?Jt=Tt-2*(rr!==0||er!==0?rr+er:max$1(wt.left,wt.right)):Vt=Rt-2*(lr!==0||Ct!==0?lr+Ct:max$1(wt.top,wt.bottom))}await bt({...a,availableWidth:Jt,availableHeight:Vt});const ir=await nt.getDimensions(tt.floating);return Tt!==ir.width||Rt!==ir.height?{reset:{rects:!0}}:{}}}};function getCssDimensions(c){const a=getComputedStyle(c);let d=parseFloat(a.width)||0,et=parseFloat(a.height)||0;const nt=isHTMLElement(c),tt=nt?c.offsetWidth:d,bt=nt?c.offsetHeight:et,gt=round(d)!==tt||round(et)!==bt;return gt&&(d=tt,et=bt),{width:d,height:et,$:gt}}function unwrapElement(c){return isElement(c)?c:c.contextElement}function getScale(c){const a=unwrapElement(c);if(!isHTMLElement(a))return createCoords(1);const d=a.getBoundingClientRect(),{width:et,height:nt,$:tt}=getCssDimensions(a);let bt=(tt?round(d.width):d.width)/et,gt=(tt?round(d.height):d.height)/nt;return(!bt||!Number.isFinite(bt))&&(bt=1),(!gt||!Number.isFinite(gt))&&(gt=1),{x:bt,y:gt}}const noOffsets=createCoords(0);function getVisualOffsets(c){const a=getWindow(c);return!isWebKit()||!a.visualViewport?noOffsets:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function shouldAddVisualOffsets(c,a,d){return a===void 0&&(a=!1),!d||a&&d!==getWindow(c)?!1:a}function getBoundingClientRect(c,a,d,et){a===void 0&&(a=!1),d===void 0&&(d=!1);const nt=c.getBoundingClientRect(),tt=unwrapElement(c);let bt=createCoords(1);a&&(et?isElement(et)&&(bt=getScale(et)):bt=getScale(c));const gt=shouldAddVisualOffsets(tt,d,et)?getVisualOffsets(tt):createCoords(0);let wt=(nt.left+gt.x)/bt.x,St=(nt.top+gt.y)/bt.y,Mt=nt.width/bt.x,_t=nt.height/bt.y;if(tt){const Tt=getWindow(tt),Rt=et&&isElement(et)?getWindow(et):et;let kt=Tt,It=kt.frameElement;for(;It&&et&&Rt!==kt;){const Lt=getScale(It),Ot=It.getBoundingClientRect(),Nt=getComputedStyle(It),Ft=Ot.left+(It.clientLeft+parseFloat(Nt.paddingLeft))*Lt.x,jt=Ot.top+(It.clientTop+parseFloat(Nt.paddingTop))*Lt.y;wt*=Lt.x,St*=Lt.y,Mt*=Lt.x,_t*=Lt.y,wt+=Ft,St+=jt,kt=getWindow(It),It=kt.frameElement}}return rectToClientRect({width:Mt,height:_t,x:wt,y:St})}const topLayerSelectors=[":popover-open",":modal"];function isTopLayer(c){return topLayerSelectors.some(a=>{try{return c.matches(a)}catch{return!1}})}function convertOffsetParentRelativeRectToViewportRelativeRect(c){let{elements:a,rect:d,offsetParent:et,strategy:nt}=c;const tt=nt==="fixed",bt=getDocumentElement(et),gt=a?isTopLayer(a.floating):!1;if(et===bt||gt&&tt)return d;let wt={scrollLeft:0,scrollTop:0},St=createCoords(1);const Mt=createCoords(0),_t=isHTMLElement(et);if((_t||!_t&&!tt)&&((getNodeName(et)!=="body"||isOverflowElement(bt))&&(wt=getNodeScroll(et)),isHTMLElement(et))){const Tt=getBoundingClientRect(et);St=getScale(et),Mt.x=Tt.x+et.clientLeft,Mt.y=Tt.y+et.clientTop}return{width:d.width*St.x,height:d.height*St.y,x:d.x*St.x-wt.scrollLeft*St.x+Mt.x,y:d.y*St.y-wt.scrollTop*St.y+Mt.y}}function getClientRects(c){return Array.from(c.getClientRects())}function getWindowScrollBarX(c){return getBoundingClientRect(getDocumentElement(c)).left+getNodeScroll(c).scrollLeft}function getDocumentRect(c){const a=getDocumentElement(c),d=getNodeScroll(c),et=c.ownerDocument.body,nt=max$1(a.scrollWidth,a.clientWidth,et.scrollWidth,et.clientWidth),tt=max$1(a.scrollHeight,a.clientHeight,et.scrollHeight,et.clientHeight);let bt=-d.scrollLeft+getWindowScrollBarX(c);const gt=-d.scrollTop;return getComputedStyle(et).direction==="rtl"&&(bt+=max$1(a.clientWidth,et.clientWidth)-nt),{width:nt,height:tt,x:bt,y:gt}}function getViewportRect(c,a){const d=getWindow(c),et=getDocumentElement(c),nt=d.visualViewport;let tt=et.clientWidth,bt=et.clientHeight,gt=0,wt=0;if(nt){tt=nt.width,bt=nt.height;const St=isWebKit();(!St||St&&a==="fixed")&&(gt=nt.offsetLeft,wt=nt.offsetTop)}return{width:tt,height:bt,x:gt,y:wt}}function getInnerBoundingClientRect(c,a){const d=getBoundingClientRect(c,!0,a==="fixed"),et=d.top+c.clientTop,nt=d.left+c.clientLeft,tt=isHTMLElement(c)?getScale(c):createCoords(1),bt=c.clientWidth*tt.x,gt=c.clientHeight*tt.y,wt=nt*tt.x,St=et*tt.y;return{width:bt,height:gt,x:wt,y:St}}function getClientRectFromClippingAncestor(c,a,d){let et;if(a==="viewport")et=getViewportRect(c,d);else if(a==="document")et=getDocumentRect(getDocumentElement(c));else if(isElement(a))et=getInnerBoundingClientRect(a,d);else{const nt=getVisualOffsets(c);et={...a,x:a.x-nt.x,y:a.y-nt.y}}return rectToClientRect(et)}function hasFixedPositionAncestor(c,a){const d=getParentNode(c);return d===a||!isElement(d)||isLastTraversableNode(d)?!1:getComputedStyle(d).position==="fixed"||hasFixedPositionAncestor(d,a)}function getClippingElementAncestors(c,a){const d=a.get(c);if(d)return d;let et=getOverflowAncestors(c,[],!1).filter(gt=>isElement(gt)&&getNodeName(gt)!=="body"),nt=null;const tt=getComputedStyle(c).position==="fixed";let bt=tt?getParentNode(c):c;for(;isElement(bt)&&!isLastTraversableNode(bt);){const gt=getComputedStyle(bt),wt=isContainingBlock(bt);!wt&>.position==="fixed"&&(nt=null),(tt?!wt&&!nt:!wt&>.position==="static"&&!!nt&&["absolute","fixed"].includes(nt.position)||isOverflowElement(bt)&&!wt&&hasFixedPositionAncestor(c,bt))?et=et.filter(Mt=>Mt!==bt):nt=gt,bt=getParentNode(bt)}return a.set(c,et),et}function getClippingRect(c){let{element:a,boundary:d,rootBoundary:et,strategy:nt}=c;const bt=[...d==="clippingAncestors"?isTopLayer(a)?[]:getClippingElementAncestors(a,this._c):[].concat(d),et],gt=bt[0],wt=bt.reduce((St,Mt)=>{const _t=getClientRectFromClippingAncestor(a,Mt,nt);return St.top=max$1(_t.top,St.top),St.right=min(_t.right,St.right),St.bottom=min(_t.bottom,St.bottom),St.left=max$1(_t.left,St.left),St},getClientRectFromClippingAncestor(a,gt,nt));return{width:wt.right-wt.left,height:wt.bottom-wt.top,x:wt.left,y:wt.top}}function getDimensions(c){const{width:a,height:d}=getCssDimensions(c);return{width:a,height:d}}function getRectRelativeToOffsetParent(c,a,d){const et=isHTMLElement(a),nt=getDocumentElement(a),tt=d==="fixed",bt=getBoundingClientRect(c,!0,tt,a);let gt={scrollLeft:0,scrollTop:0};const wt=createCoords(0);if(et||!et&&!tt)if((getNodeName(a)!=="body"||isOverflowElement(nt))&&(gt=getNodeScroll(a)),et){const _t=getBoundingClientRect(a,!0,tt,a);wt.x=_t.x+a.clientLeft,wt.y=_t.y+a.clientTop}else nt&&(wt.x=getWindowScrollBarX(nt));const St=bt.left+gt.scrollLeft-wt.x,Mt=bt.top+gt.scrollTop-wt.y;return{x:St,y:Mt,width:bt.width,height:bt.height}}function isStaticPositioned(c){return getComputedStyle(c).position==="static"}function getTrueOffsetParent(c,a){return!isHTMLElement(c)||getComputedStyle(c).position==="fixed"?null:a?a(c):c.offsetParent}function getOffsetParent(c,a){const d=getWindow(c);if(isTopLayer(c))return d;if(!isHTMLElement(c)){let nt=getParentNode(c);for(;nt&&!isLastTraversableNode(nt);){if(isElement(nt)&&!isStaticPositioned(nt))return nt;nt=getParentNode(nt)}return d}let et=getTrueOffsetParent(c,a);for(;et&&isTableElement(et)&&isStaticPositioned(et);)et=getTrueOffsetParent(et,a);return et&&isLastTraversableNode(et)&&isStaticPositioned(et)&&!isContainingBlock(et)?d:et||getContainingBlock(c)||d}const getElementRects=async function(c){const a=this.getOffsetParent||getOffsetParent,d=this.getDimensions,et=await d(c.floating);return{reference:getRectRelativeToOffsetParent(c.reference,await a(c.floating),c.strategy),floating:{x:0,y:0,width:et.width,height:et.height}}};function isRTL(c){return getComputedStyle(c).direction==="rtl"}const platform={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement,isRTL};function observeMove(c,a){let d=null,et;const nt=getDocumentElement(c);function tt(){var gt;clearTimeout(et),(gt=d)==null||gt.disconnect(),d=null}function bt(gt,wt){gt===void 0&&(gt=!1),wt===void 0&&(wt=1),tt();const{left:St,top:Mt,width:_t,height:Tt}=c.getBoundingClientRect();if(gt||a(),!_t||!Tt)return;const Rt=floor(Mt),kt=floor(nt.clientWidth-(St+_t)),It=floor(nt.clientHeight-(Mt+Tt)),Lt=floor(St),Nt={rootMargin:-Rt+"px "+-kt+"px "+-It+"px "+-Lt+"px",threshold:max$1(0,min(1,wt))||1};let Ft=!0;function jt(Vt){const Jt=Vt[0].intersectionRatio;if(Jt!==wt){if(!Ft)return bt();Jt?bt(!1,Jt):et=setTimeout(()=>{bt(!1,1e-7)},1e3)}Ft=!1}try{d=new IntersectionObserver(jt,{...Nt,root:nt.ownerDocument})}catch{d=new IntersectionObserver(jt,Nt)}d.observe(c)}return bt(!0),tt}function autoUpdate(c,a,d,et){et===void 0&&(et={});const{ancestorScroll:nt=!0,ancestorResize:tt=!0,elementResize:bt=typeof ResizeObserver=="function",layoutShift:gt=typeof IntersectionObserver=="function",animationFrame:wt=!1}=et,St=unwrapElement(c),Mt=nt||tt?[...St?getOverflowAncestors(St):[],...getOverflowAncestors(a)]:[];Mt.forEach(Ot=>{nt&&Ot.addEventListener("scroll",d,{passive:!0}),tt&&Ot.addEventListener("resize",d)});const _t=St&>?observeMove(St,d):null;let Tt=-1,Rt=null;bt&&(Rt=new ResizeObserver(Ot=>{let[Nt]=Ot;Nt&&Nt.target===St&&Rt&&(Rt.unobserve(a),cancelAnimationFrame(Tt),Tt=requestAnimationFrame(()=>{var Ft;(Ft=Rt)==null||Ft.observe(a)})),d()}),St&&!wt&&Rt.observe(St),Rt.observe(a));let kt,It=wt?getBoundingClientRect(c):null;wt&&Lt();function Lt(){const Ot=getBoundingClientRect(c);It&&(Ot.x!==It.x||Ot.y!==It.y||Ot.width!==It.width||Ot.height!==It.height)&&d(),It=Ot,kt=requestAnimationFrame(Lt)}return d(),()=>{var Ot;Mt.forEach(Nt=>{nt&&Nt.removeEventListener("scroll",d),tt&&Nt.removeEventListener("resize",d)}),_t==null||_t(),(Ot=Rt)==null||Ot.disconnect(),Rt=null,wt&&cancelAnimationFrame(kt)}}const offset$1=offset$2,shift$1=shift$2,flip$1=flip$2,size$4=size$5,arrow$2=arrow$3,inline$1=inline$2,limitShift$1=limitShift$2,computePosition=(c,a,d)=>{const et=new Map,nt={platform,...d},tt={...nt.platform,_c:et};return computePosition$1(c,a,{...nt,platform:tt})};var index$3=typeof document<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function deepEqual(c,a){if(c===a)return!0;if(typeof c!=typeof a)return!1;if(typeof c=="function"&&c.toString()===a.toString())return!0;let d,et,nt;if(c&&a&&typeof c=="object"){if(Array.isArray(c)){if(d=c.length,d!==a.length)return!1;for(et=d;et--!==0;)if(!deepEqual(c[et],a[et]))return!1;return!0}if(nt=Object.keys(c),d=nt.length,d!==Object.keys(a).length)return!1;for(et=d;et--!==0;)if(!{}.hasOwnProperty.call(a,nt[et]))return!1;for(et=d;et--!==0;){const tt=nt[et];if(!(tt==="_owner"&&c.$$typeof)&&!deepEqual(c[tt],a[tt]))return!1}return!0}return c!==c&&a!==a}function getDPR(c){return typeof window>"u"?1:(c.ownerDocument.defaultView||window).devicePixelRatio||1}function roundByDPR(c,a){const d=getDPR(c);return Math.round(a*d)/d}function useLatestRef(c){const a=reactExports.useRef(c);return index$3(()=>{a.current=c}),a}function useFloating$1(c){c===void 0&&(c={});const{placement:a="bottom",strategy:d="absolute",middleware:et=[],platform:nt,elements:{reference:tt,floating:bt}={},transform:gt=!0,whileElementsMounted:wt,open:St}=c,[Mt,_t]=reactExports.useState({x:0,y:0,strategy:d,placement:a,middlewareData:{},isPositioned:!1}),[Tt,Rt]=reactExports.useState(et);deepEqual(Tt,et)||Rt(et);const[kt,It]=reactExports.useState(null),[Lt,Ot]=reactExports.useState(null),Nt=reactExports.useCallback(At=>{At!==Jt.current&&(Jt.current=At,It(At))},[]),Ft=reactExports.useCallback(At=>{At!==ir.current&&(ir.current=At,Ot(At))},[]),jt=tt||kt,Vt=bt||Lt,Jt=reactExports.useRef(null),ir=reactExports.useRef(null),rr=reactExports.useRef(Mt),er=wt!=null,lr=useLatestRef(wt),Ct=useLatestRef(nt),dt=reactExports.useCallback(()=>{if(!Jt.current||!ir.current)return;const At={placement:a,strategy:d,middleware:Tt};Ct.current&&(At.platform=Ct.current),computePosition(Jt.current,ir.current,At).then(Pt=>{const xt={...Pt,isPositioned:!0};mt.current&&!deepEqual(rr.current,xt)&&(rr.current=xt,reactDomExports.flushSync(()=>{_t(xt)}))})},[Tt,a,d,Ct]);index$3(()=>{St===!1&&rr.current.isPositioned&&(rr.current.isPositioned=!1,_t(At=>({...At,isPositioned:!1})))},[St]);const mt=reactExports.useRef(!1);index$3(()=>(mt.current=!0,()=>{mt.current=!1}),[]),index$3(()=>{if(jt&&(Jt.current=jt),Vt&&(ir.current=Vt),jt&&Vt){if(lr.current)return lr.current(jt,Vt,dt);dt()}},[jt,Vt,dt,lr,er]);const yt=reactExports.useMemo(()=>({reference:Jt,floating:ir,setReference:Nt,setFloating:Ft}),[Nt,Ft]),vt=reactExports.useMemo(()=>({reference:jt,floating:Vt}),[jt,Vt]),Et=reactExports.useMemo(()=>{const At={position:d,left:0,top:0};if(!vt.floating)return At;const Pt=roundByDPR(vt.floating,Mt.x),xt=roundByDPR(vt.floating,Mt.y);return gt?{...At,transform:"translate("+Pt+"px, "+xt+"px)",...getDPR(vt.floating)>=1.5&&{willChange:"transform"}}:{position:d,left:Pt,top:xt}},[d,gt,vt.floating,Mt.x,Mt.y]);return reactExports.useMemo(()=>({...Mt,update:dt,refs:yt,elements:vt,floatingStyles:Et}),[Mt,dt,yt,vt,Et])}const arrow$1=c=>{function a(d){return{}.hasOwnProperty.call(d,"current")}return{name:"arrow",options:c,fn(d){const{element:et,padding:nt}=typeof c=="function"?c(d):c;return et&&a(et)?et.current!=null?arrow$2({element:et.current,padding:nt}).fn(d):{}:et?arrow$2({element:et,padding:nt}).fn(d):{}}}},offset=(c,a)=>({...offset$1(c),options:[c,a]}),shift=(c,a)=>({...shift$1(c),options:[c,a]}),limitShift=(c,a)=>({...limitShift$1(c),options:[c,a]}),flip=(c,a)=>({...flip$1(c),options:[c,a]}),size$3=(c,a)=>({...size$4(c),options:[c,a]}),inline=(c,a)=>({...inline$1(c),options:[c,a]}),arrow=(c,a)=>({...arrow$1(c),options:[c,a]}),SafeReact={...React$1},useInsertionEffect=SafeReact.useInsertionEffect,useSafeInsertionEffect=useInsertionEffect||(c=>c());function useEffectEvent(c){const a=reactExports.useRef(()=>{});return useSafeInsertionEffect(()=>{a.current=c}),reactExports.useCallback(function(){for(var d=arguments.length,et=new Array(d),nt=0;nt"floating-ui-"+Math.random().toString(36).slice(2,6)+count++;function useFloatingId(){const[c,a]=reactExports.useState(()=>serverHandoffComplete?genId():void 0);return index$2(()=>{c==null&&a(genId())},[]),reactExports.useEffect(()=>{serverHandoffComplete=!0},[]),c}const useReactId=SafeReact.useId,useId=useReactId||useFloatingId;function createPubSub(){const c=new Map;return{emit(a,d){var et;(et=c.get(a))==null||et.forEach(nt=>nt(d))},on(a,d){c.set(a,[...c.get(a)||[],d])},off(a,d){var et;c.set(a,((et=c.get(a))==null?void 0:et.filter(nt=>nt!==d))||[])}}}const FloatingNodeContext=reactExports.createContext(null),FloatingTreeContext=reactExports.createContext(null),useFloatingParentNodeId=()=>{var c;return((c=reactExports.useContext(FloatingNodeContext))==null?void 0:c.id)||null},useFloatingTree=()=>reactExports.useContext(FloatingTreeContext);function useFloatingRootContext(c){const{open:a=!1,onOpenChange:d,elements:et}=c,nt=useId(),tt=reactExports.useRef({}),[bt]=reactExports.useState(()=>createPubSub()),gt=useFloatingParentNodeId()!=null,[wt,St]=reactExports.useState(et.reference),Mt=useEffectEvent((Rt,kt,It)=>{tt.current.openEvent=Rt?kt:void 0,bt.emit("openchange",{open:Rt,event:kt,reason:It,nested:gt}),d==null||d(Rt,kt,It)}),_t=reactExports.useMemo(()=>({setPositionReference:St}),[]),Tt=reactExports.useMemo(()=>({reference:wt||et.reference||null,floating:et.floating||null,domReference:et.reference}),[wt,et.reference,et.floating]);return reactExports.useMemo(()=>({dataRef:tt,open:a,onOpenChange:Mt,elements:Tt,events:bt,floatingId:nt,refs:_t}),[a,Mt,Tt,bt,nt,_t])}function useFloating(c){c===void 0&&(c={});const{nodeId:a}=c,d=useFloatingRootContext({...c,elements:{reference:null,floating:null,...c.elements}}),et=c.rootContext||d,nt=et.elements,[tt,bt]=reactExports.useState(null),[gt,wt]=reactExports.useState(null),Mt=(nt==null?void 0:nt.reference)||tt,_t=reactExports.useRef(null),Tt=useFloatingTree();index$2(()=>{Mt&&(_t.current=Mt)},[Mt]);const Rt=useFloating$1({...c,elements:{...nt,...gt&&{reference:gt}}}),kt=reactExports.useCallback(Ft=>{const jt=isElement(Ft)?{getBoundingClientRect:()=>Ft.getBoundingClientRect(),contextElement:Ft}:Ft;wt(jt),Rt.refs.setReference(jt)},[Rt.refs]),It=reactExports.useCallback(Ft=>{(isElement(Ft)||Ft===null)&&(_t.current=Ft,bt(Ft)),(isElement(Rt.refs.reference.current)||Rt.refs.reference.current===null||Ft!==null&&!isElement(Ft))&&Rt.refs.setReference(Ft)},[Rt.refs]),Lt=reactExports.useMemo(()=>({...Rt.refs,setReference:It,setPositionReference:kt,domReference:_t}),[Rt.refs,It,kt]),Ot=reactExports.useMemo(()=>({...Rt.elements,domReference:Mt}),[Rt.elements,Mt]),Nt=reactExports.useMemo(()=>({...Rt,...et,refs:Lt,elements:Ot,nodeId:a}),[Rt,Lt,Ot,a,et]);return index$2(()=>{et.dataRef.current.floatingContext=Nt;const Ft=Tt==null?void 0:Tt.nodesRef.current.find(jt=>jt.id===a);Ft&&(Ft.context=Nt)}),reactExports.useMemo(()=>({...Rt,context:Nt,refs:Lt,elements:Ot}),[Rt,Lt,Ot,Nt])}function getFloatingPosition(c,a){if(c==="rtl"&&(a.includes("right")||a.includes("left"))){const[d,et]=a.split("-"),nt=d==="right"?"left":"right";return et===void 0?nt:`${nt}-${et}`}return a}function horizontalSide(c,a,d,et){return c==="center"||et==="center"?{top:a}:c==="end"?{bottom:d}:c==="start"?{top:d}:{}}function verticalSide(c,a,d,et,nt){return c==="center"||et==="center"?{left:a}:c==="end"?{[nt==="ltr"?"right":"left"]:d}:c==="start"?{[nt==="ltr"?"left":"right"]:d}:{}}const radiusByFloatingSide={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function getArrowPositionStyles({position:c,arrowSize:a,arrowOffset:d,arrowRadius:et,arrowPosition:nt,arrowX:tt,arrowY:bt,dir:gt}){const[wt,St="center"]=c.split("-"),Mt={width:rem(a),height:rem(a),transform:"rotate(45deg)",position:"absolute",[radiusByFloatingSide[wt]]:rem(et)},_t=rem(-a/2);return wt==="left"?{...Mt,...horizontalSide(St,bt,d,nt),right:_t,borderLeftColor:"transparent",borderBottomColor:"transparent"}:wt==="right"?{...Mt,...horizontalSide(St,bt,d,nt),left:_t,borderRightColor:"transparent",borderTopColor:"transparent"}:wt==="top"?{...Mt,...verticalSide(St,tt,d,nt,gt),bottom:_t,borderTopColor:"transparent",borderLeftColor:"transparent"}:wt==="bottom"?{...Mt,...verticalSide(St,tt,d,nt,gt),top:_t,borderBottomColor:"transparent",borderRightColor:"transparent"}:{}}const FloatingArrow=reactExports.forwardRef(({position:c,arrowSize:a,arrowOffset:d,arrowRadius:et,arrowPosition:nt,visible:tt,arrowX:bt,arrowY:gt,style:wt,...St},Mt)=>{const{dir:_t}=useDirection();return tt?React.createElement("div",{...St,ref:Mt,style:{...wt,...getArrowPositionStyles({position:c,arrowSize:a,arrowOffset:d,arrowRadius:et,arrowPosition:nt,dir:_t,arrowX:bt,arrowY:gt})}}):null});FloatingArrow.displayName="@mantine/core/FloatingArrow";const[PopoverContextProvider,usePopoverContext]=createSafeContext("Popover component was not found in the tree");function FocusTrap({children:c,active:a=!0,refProp:d="ref"}){const et=useFocusTrap(a),nt=useMergedRef(et,c==null?void 0:c.ref);return isElement$1(c)?reactExports.cloneElement(c,{[d]:nt}):c}function FocusTrapInitialFocus(c){return React.createElement(VisuallyHidden,{tabIndex:-1,"data-autofocus":!0,...c})}FocusTrap.displayName="@mantine/core/FocusTrap";FocusTrapInitialFocus.displayName="@mantine/core/FocusTrapInitialFocus";FocusTrap.InitialFocus=FocusTrapInitialFocus;function createPortalNode(c){const a=document.createElement("div");return a.setAttribute("data-portal","true"),typeof c.className=="string"&&a.classList.add(...c.className.split(" ").filter(Boolean)),typeof c.style=="object"&&Object.assign(a.style,c.style),typeof c.id=="string"&&a.setAttribute("id",c.id),a}const defaultProps$1k={},Portal=reactExports.forwardRef((c,a)=>{const{children:d,target:et,...nt}=useProps("Portal",defaultProps$1k,c),[tt,bt]=reactExports.useState(!1),gt=reactExports.useRef(null);return useIsomorphicEffect(()=>(bt(!0),gt.current=et?typeof et=="string"?document.querySelector(et):et:createPortalNode(nt),assignRef(a,gt.current),!et&>.current&&document.body.appendChild(gt.current),()=>{!et&>.current&&document.body.removeChild(gt.current)}),[et]),!tt||!gt.current?null:reactDomExports.createPortal(React.createElement(React.Fragment,null,d),gt.current)});Portal.displayName="@mantine/core/Portal";function OptionalPortal({withinPortal:c=!0,children:a,...d}){return c?React.createElement(Portal,{...d},a):React.createElement(React.Fragment,null,a)}OptionalPortal.displayName="@mantine/core/OptionalPortal";const popIn=c=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${rem(c==="bottom"?10:-10)})`},transitionProperty:"transform, opacity"}),transitions={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:`translateY(${rem(30)}`},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:`translateY(${rem(-30)}`},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:`translateX(${rem(30)}`},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:`translateX(${rem(-30)}`},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:`translateY(${rem(-20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:`translateY(${rem(20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${rem(20)}) rotate(-5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${rem(20)}) rotate(5deg)`},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...popIn("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...popIn("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...popIn("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...popIn("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...popIn("top"),common:{transformOrigin:"top right"}}},transitionStatuses={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function getTransitionStyles({transition:c,state:a,duration:d,timingFunction:et}){const nt={transitionDuration:`${d}ms`,transitionTimingFunction:et};return typeof c=="string"?c in transitions?{transitionProperty:transitions[c].transitionProperty,...nt,...transitions[c].common,...transitions[c][transitionStatuses[a]]}:{}:{transitionProperty:c.transitionProperty,...nt,...c.common,...c[transitionStatuses[a]]}}function useTransition({duration:c,exitDuration:a,timingFunction:d,mounted:et,onEnter:nt,onExit:tt,onEntered:bt,onExited:gt}){const wt=useMantineTheme(),St=useReducedMotion(),Mt=wt.respectReducedMotion?St:!1,[_t,Tt]=reactExports.useState(Mt?0:c),[Rt,kt]=reactExports.useState(et?"entered":"exited"),It=reactExports.useRef(-1),Lt=reactExports.useRef(-1),Ot=Nt=>{const Ft=Nt?nt:tt,jt=Nt?bt:gt;window.clearTimeout(It.current);const Vt=Mt?0:Nt?c:a;Tt(Vt),Vt===0?(typeof Ft=="function"&&Ft(),typeof jt=="function"&&jt(),kt(Nt?"entered":"exited")):Lt.current=requestAnimationFrame(()=>{ReactDOM.flushSync(()=>{kt(Nt?"pre-entering":"pre-exiting")}),Lt.current=requestAnimationFrame(()=>{typeof Ft=="function"&&Ft(),kt(Nt?"entering":"exiting"),It.current=window.setTimeout(()=>{typeof jt=="function"&&jt(),kt(Nt?"entered":"exited")},Vt)})})};return useDidUpdate(()=>{Ot(et)},[et]),reactExports.useEffect(()=>()=>{window.clearTimeout(It.current),cancelAnimationFrame(Lt.current)},[]),{transitionDuration:_t,transitionStatus:Rt,transitionTimingFunction:d||"ease"}}function Transition({keepMounted:c,transition:a="fade",duration:d=250,exitDuration:et=d,mounted:nt,children:tt,timingFunction:bt="ease",onExit:gt,onEntered:wt,onEnter:St,onExited:Mt}){const{transitionDuration:_t,transitionStatus:Tt,transitionTimingFunction:Rt}=useTransition({mounted:nt,exitDuration:et,duration:d,timingFunction:bt,onExit:gt,onEntered:wt,onEnter:St,onExited:Mt});return _t===0?nt?React.createElement(React.Fragment,null,tt({})):c?tt({display:"none"}):null:Tt==="exited"?c?tt({display:"none"}):null:React.createElement(React.Fragment,null,tt(getTransitionStyles({transition:a,duration:_t,state:Tt,timingFunction:Rt})))}Transition.displayName="@mantine/core/Transition";var classes$D={dropdown:"m_38a85659",arrow:"m_a31dc6c1"};const defaultProps$1j={},PopoverDropdown=factory((c,a)=>{var Lt,Ot,Nt,Ft;const d=useProps("PopoverDropdown",defaultProps$1j,c),{className:et,style:nt,vars:tt,children:bt,onKeyDownCapture:gt,variant:wt,classNames:St,styles:Mt,..._t}=d,Tt=usePopoverContext(),Rt=useFocusReturn({opened:Tt.opened,shouldReturnFocus:Tt.returnFocus}),kt=Tt.withRoles?{"aria-labelledby":Tt.getTargetId(),id:Tt.getDropdownId(),role:"dialog",tabIndex:-1}:{},It=useMergedRef(a,Tt.floating);return Tt.disabled?null:React.createElement(OptionalPortal,{...Tt.portalProps,withinPortal:Tt.withinPortal},React.createElement(Transition,{mounted:Tt.opened,...Tt.transitionProps,transition:((Lt=Tt.transitionProps)==null?void 0:Lt.transition)||"fade",duration:((Ot=Tt.transitionProps)==null?void 0:Ot.duration)??150,keepMounted:Tt.keepMounted,exitDuration:typeof((Nt=Tt.transitionProps)==null?void 0:Nt.exitDuration)=="number"?Tt.transitionProps.exitDuration:(Ft=Tt.transitionProps)==null?void 0:Ft.duration},jt=>React.createElement(FocusTrap,{active:Tt.trapFocus},React.createElement(Box,{...kt,..._t,variant:wt,ref:It,onKeyDownCapture:closeOnEscape(Tt.onClose,{active:Tt.closeOnEscape,onTrigger:Rt,onKeyDown:gt}),"data-position":Tt.placement,...Tt.getStyles("dropdown",{className:et,props:d,classNames:St,styles:Mt,style:[{...jt,zIndex:Tt.zIndex,top:Tt.y??0,left:Tt.x??0,width:Tt.width==="target"?void 0:rem(Tt.width)},nt]})},bt,React.createElement(FloatingArrow,{ref:Tt.arrowRef,arrowX:Tt.arrowX,arrowY:Tt.arrowY,visible:Tt.withArrow,position:Tt.placement,arrowSize:Tt.arrowSize,arrowRadius:Tt.arrowRadius,arrowOffset:Tt.arrowOffset,arrowPosition:Tt.arrowPosition,...Tt.getStyles("arrow",{props:d,classNames:St,styles:Mt})})))))});PopoverDropdown.classes=classes$D;PopoverDropdown.displayName="@mantine/core/PopoverDropdown";const defaultProps$1i={refProp:"ref",popupType:"dialog"},PopoverTarget=factory((c,a)=>{const{children:d,refProp:et,popupType:nt,...tt}=useProps("PopoverTarget",defaultProps$1i,c);if(!isElement$1(d))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const bt=tt,gt=usePopoverContext(),wt=useMergedRef(gt.reference,d.ref,a),St=gt.withRoles?{"aria-haspopup":nt,"aria-expanded":gt.opened,"aria-controls":gt.getDropdownId(),id:gt.getTargetId()}:{};return reactExports.cloneElement(d,{...bt,...St,...gt.targetProps,className:clsx(gt.targetProps.className,bt.className,d.props.className),[et]:wt,...gt.controlled?null:{onClick:gt.onToggle}})});PopoverTarget.displayName="@mantine/core/PopoverTarget";function useFloatingAutoUpdate({opened:c,floating:a,position:d,positionDependencies:et}){const[nt,tt]=reactExports.useState(0);reactExports.useEffect(()=>{if(a.refs.reference.current&&a.refs.floating.current)return autoUpdate(a.refs.reference.current,a.refs.floating.current,a.update)},[a.refs.reference.current,a.refs.floating.current,c,nt,d]),useDidUpdate(()=>{a.update()},et),useDidUpdate(()=>{tt(bt=>bt+1)},[c])}function getDefaultMiddlewares(c){if(c===void 0)return{shift:!0,flip:!0};const a={...c};return c.shift===void 0&&(a.shift=!0),c.flip===void 0&&(a.flip=!0),a}function getPopoverMiddlewares(c,a){const d=getDefaultMiddlewares(c.middlewares),et=[offset(c.offset)];return d.shift&&et.push(shift(typeof d.shift=="boolean"?{limiter:limitShift(),padding:5}:{limiter:limitShift(),padding:5,...d.shift})),d.flip&&et.push(typeof d.flip=="boolean"?flip():flip(d.flip)),d.inline&&et.push(typeof d.inline=="boolean"?inline():inline(d.inline)),et.push(arrow({element:c.arrowRef,padding:c.arrowOffset})),(d.size||c.width==="target")&&et.push(size$3({...typeof d.size=="boolean"?{}:d.size,apply({rects:nt,availableWidth:tt,availableHeight:bt}){var St;const wt=((St=a().refs.floating.current)==null?void 0:St.style)??{};d.size&&Object.assign(wt,{maxWidth:`${tt}px`,maxHeight:`${bt}px`}),c.width==="target"&&Object.assign(wt,{width:`${nt.reference.width}px`})}})),et}function usePopover(c){const[a,d]=useUncontrolled({value:c.opened,defaultValue:c.defaultOpened,finalValue:!1,onChange:c.onChange}),et=()=>{var bt;a&&((bt=c.onClose)==null||bt.call(c),d(!1))},nt=()=>{var bt,gt;a?((bt=c.onClose)==null||bt.call(c),d(!1)):((gt=c.onOpen)==null||gt.call(c),d(!0))},tt=useFloating({strategy:c.strategy,placement:c.position,middleware:getPopoverMiddlewares(c,()=>tt)});return useFloatingAutoUpdate({opened:c.opened,position:c.position,positionDependencies:c.positionDependencies||[],floating:tt}),useDidUpdate(()=>{var bt;(bt=c.onPositionChange)==null||bt.call(c,tt.placement)},[tt.placement]),useDidUpdate(()=>{var bt,gt;c.opened?(gt=c.onOpen)==null||gt.call(c):(bt=c.onClose)==null||bt.call(c)},[c.opened]),{floating:tt,controlled:typeof c.opened=="boolean",opened:a,onClose:et,onToggle:nt}}const defaultProps$1h={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:getDefaultZIndex("popover"),__staticSelector:"Popover",width:"max-content"},varsResolver$z=(c,{radius:a,shadow:d})=>({dropdown:{"--popover-radius":a===void 0?void 0:getRadius(a),"--popover-shadow":getShadow(d)}});function Popover(c){var Pr,br,dr,Kr,xr,Sr;const a=useProps("Popover",defaultProps$1h,c),{children:d,position:et,offset:nt,onPositionChange:tt,positionDependencies:bt,opened:gt,transitionProps:wt,width:St,middlewares:Mt,withArrow:_t,arrowSize:Tt,arrowOffset:Rt,arrowRadius:kt,arrowPosition:It,unstyled:Lt,classNames:Ot,styles:Nt,closeOnClickOutside:Ft,withinPortal:jt,portalProps:Vt,closeOnEscape:Jt,clickOutsideEvents:ir,trapFocus:rr,onClose:er,onOpen:lr,onChange:Ct,zIndex:dt,radius:mt,shadow:yt,id:vt,defaultOpened:Et,__staticSelector:At,withRoles:Pt,disabled:xt,returnFocus:ht,variant:$t,keepMounted:Bt,vars:Dt,floatingStrategy:Ht,...tr}=a,Xt=useStyles({name:At,props:a,classes:classes$D,classNames:Ot,styles:Nt,unstyled:Lt,rootSelector:"dropdown",vars:Dt,varsResolver:varsResolver$z}),Ut=reactExports.useRef(null),[qt,Gt]=reactExports.useState(null),[Zt,Yt]=reactExports.useState(null),{dir:Kt}=useDirection(),ar=useId$1(vt),gr=usePopover({middlewares:Mt,width:St,position:getFloatingPosition(Kt,et),offset:typeof nt=="number"?nt+(_t?Tt/2:0):nt,arrowRef:Ut,arrowOffset:Rt,onPositionChange:tt,positionDependencies:bt,opened:gt,defaultOpened:Et,onChange:Ct,onOpen:lr,onClose:er,strategy:Ht});useClickOutside(()=>Ft&&gr.onClose(),ir,[qt,Zt]);const cr=reactExports.useCallback(Zr=>{Gt(Zr),gr.floating.refs.setReference(Zr)},[gr.floating.refs.setReference]),ur=reactExports.useCallback(Zr=>{Yt(Zr),gr.floating.refs.setFloating(Zr)},[gr.floating.refs.setFloating]);return React.createElement(PopoverContextProvider,{value:{returnFocus:ht,disabled:xt,controlled:gr.controlled,reference:cr,floating:ur,x:gr.floating.x,y:gr.floating.y,arrowX:(dr=(br=(Pr=gr.floating)==null?void 0:Pr.middlewareData)==null?void 0:br.arrow)==null?void 0:dr.x,arrowY:(Sr=(xr=(Kr=gr.floating)==null?void 0:Kr.middlewareData)==null?void 0:xr.arrow)==null?void 0:Sr.y,opened:gr.opened,arrowRef:Ut,transitionProps:wt,width:St,withArrow:_t,arrowSize:Tt,arrowOffset:Rt,arrowRadius:kt,arrowPosition:It,placement:gr.floating.placement,trapFocus:rr,withinPortal:jt,portalProps:Vt,zIndex:dt,radius:mt,shadow:yt,closeOnEscape:Jt,onClose:gr.onClose,onToggle:gr.onToggle,getTargetId:()=>`${ar}-target`,getDropdownId:()=>`${ar}-dropdown`,withRoles:Pt,targetProps:tr,__staticSelector:At,classNames:Ot,styles:Nt,unstyled:Lt,variant:$t,keepMounted:Bt,getStyles:Xt}},d)}Popover.Target=PopoverTarget;Popover.Dropdown=PopoverDropdown;Popover.displayName="@mantine/core/Popover";Popover.extend=c=>c;var classes$C={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const Bars=reactExports.forwardRef(({className:c,...a},d)=>React.createElement(Box,{component:"span",className:clsx(classes$C.barsLoader,c),...a,ref:d},React.createElement("span",{className:classes$C.bar}),React.createElement("span",{className:classes$C.bar}),React.createElement("span",{className:classes$C.bar}))),Dots=reactExports.forwardRef(({className:c,...a},d)=>React.createElement(Box,{component:"span",className:clsx(classes$C.dotsLoader,c),...a,ref:d},React.createElement("span",{className:classes$C.dot}),React.createElement("span",{className:classes$C.dot}),React.createElement("span",{className:classes$C.dot}))),Oval=reactExports.forwardRef(({className:c,...a},d)=>React.createElement(Box,{component:"span",className:clsx(classes$C.ovalLoader,c),...a,ref:d})),defaultLoaders={bars:Bars,oval:Oval,dots:Dots},defaultProps$1g={loaders:defaultLoaders,type:"oval"},varsResolver$y=(c,{size:a,color:d})=>({root:{"--loader-size":getSize(a,"loader-size"),"--loader-color":d?getThemeColor(d,c):void 0}}),Loader=factory((c,a)=>{const d=useProps("Loader",defaultProps$1g,c),{size:et,color:nt,type:tt,vars:bt,className:gt,style:wt,classNames:St,styles:Mt,unstyled:_t,loaders:Tt,variant:Rt,children:kt,...It}=d,Lt=useStyles({name:"Loader",props:d,classes:classes$C,className:gt,style:wt,classNames:St,styles:Mt,unstyled:_t,vars:bt,varsResolver:varsResolver$y});return kt?React.createElement(Box,{...Lt("root"),ref:a,...It},kt):React.createElement(Box,{...Lt("root"),ref:a,component:Tt[tt],variant:Rt,size:et,...It})});Loader.defaultLoaders=defaultLoaders;Loader.classes=classes$C;Loader.displayName="@mantine/core/Loader";var classes$B={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21"};const defaultProps$1f={orientation:"horizontal"},varsResolver$x=(c,{borderWidth:a})=>({group:{"--ai-border-width":rem(a)}}),ActionIconGroup=factory((c,a)=>{const d=useProps("ActionIconGroup",defaultProps$1f,c),{className:et,style:nt,classNames:tt,styles:bt,unstyled:gt,orientation:wt,vars:St,borderWidth:Mt,variant:_t,mod:Tt,...Rt}=useProps("ActionIconGroup",defaultProps$1f,c),kt=useStyles({name:"ActionIconGroup",props:d,classes:classes$B,className:et,style:nt,classNames:tt,styles:bt,unstyled:gt,vars:St,varsResolver:varsResolver$x,rootSelector:"group"});return React.createElement(Box,{...kt("group"),ref:a,variant:_t,mod:[{"data-orientation":wt},Tt],role:"group",...Rt})});ActionIconGroup.classes=classes$B;ActionIconGroup.displayName="@mantine/core/ActionIconGroup";const defaultProps$1e={},varsResolver$w=(c,{size:a,radius:d,variant:et,gradient:nt,color:tt,autoContrast:bt})=>{const gt=c.variantColorResolver({color:tt||c.primaryColor,theme:c,gradient:nt,variant:et||"filled",autoContrast:bt});return{root:{"--ai-size":getSize(a,"ai-size"),"--ai-radius":d===void 0?void 0:getRadius(d),"--ai-bg":tt||et?gt.background:void 0,"--ai-hover":tt||et?gt.hover:void 0,"--ai-hover-color":tt||et?gt.hoverColor:void 0,"--ai-color":gt.color,"--ai-bd":tt||et?gt.border:void 0}}},ActionIcon=polymorphicFactory((c,a)=>{const d=useProps("ActionIcon",defaultProps$1e,c),{className:et,unstyled:nt,variant:tt,classNames:bt,styles:gt,style:wt,loading:St,loaderProps:Mt,size:_t,color:Tt,radius:Rt,__staticSelector:kt,gradient:It,vars:Lt,children:Ot,disabled:Nt,"data-disabled":Ft,autoContrast:jt,mod:Vt,...Jt}=d,ir=useStyles({name:["ActionIcon",kt],props:d,className:et,style:wt,classes:classes$B,classNames:bt,styles:gt,unstyled:nt,vars:Lt,varsResolver:varsResolver$w});return React.createElement(UnstyledButton,{...ir("root",{active:!Nt&&!St&&!Ft}),...Jt,unstyled:nt,variant:tt,size:_t,disabled:Nt||St,ref:a,mod:[{loading:St,disabled:Nt||Ft},Vt]},React.createElement(Transition,{mounted:!!St,transition:"slide-down",duration:150},rr=>React.createElement(Box,{component:"span",...ir("loader",{style:rr}),"aria-hidden":!0},React.createElement(Loader,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...Mt}))),React.createElement(Box,{component:"span",mod:{loading:St},...ir("icon")},Ot))});ActionIcon.classes=classes$B;ActionIcon.displayName="@mantine/core/ActionIcon";ActionIcon.Group=ActionIconGroup;const CloseIcon=reactExports.forwardRef(({size:c="var(--cb-icon-size, 70%)",style:a,...d},et)=>React.createElement("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...a,width:c,height:c},ref:et,...d},React.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})));CloseIcon.displayName="@mantine/core/CloseIcon";var classes$A={root:"m_86a44da5","root--subtle":"m_220c80f2"};const defaultProps$1d={variant:"subtle"},varsResolver$v=(c,{size:a,radius:d,iconSize:et})=>({root:{"--cb-size":getSize(a,"cb-size"),"--cb-radius":d===void 0?void 0:getRadius(d),"--cb-icon-size":rem(et)}}),CloseButton=polymorphicFactory((c,a)=>{const d=useProps("CloseButton",defaultProps$1d,c),{iconSize:et,children:nt,vars:tt,radius:bt,className:gt,classNames:wt,style:St,styles:Mt,unstyled:_t,"data-disabled":Tt,disabled:Rt,variant:kt,icon:It,mod:Lt,...Ot}=d,Nt=useStyles({name:"CloseButton",props:d,className:gt,style:St,classes:classes$A,classNames:wt,styles:Mt,unstyled:_t,vars:tt,varsResolver:varsResolver$v});return React.createElement(UnstyledButton,{ref:a,...Ot,unstyled:_t,variant:kt,disabled:Rt,mod:[{disabled:Rt||Tt},Lt],...Nt("root",{variant:kt,active:!Rt&&!Tt})},It||React.createElement(CloseIcon,null),nt)});CloseButton.classes=classes$A;CloseButton.displayName="@mantine/core/CloseButton";function filterFalsyChildren(c){return reactExports.Children.toArray(c).filter(Boolean)}var classes$z={root:"m_4081bf90"};const defaultProps$1c={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},varsResolver$u=(c,{grow:a,preventGrowOverflow:d,gap:et,align:nt,justify:tt,wrap:bt},{childWidth:gt})=>({root:{"--group-child-width":a&&d?gt:void 0,"--group-gap":getSpacing(et),"--group-align":nt,"--group-justify":tt,"--group-wrap":bt}}),Group=factory((c,a)=>{const d=useProps("Group",defaultProps$1c,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,children:wt,gap:St,align:Mt,justify:_t,wrap:Tt,grow:Rt,preventGrowOverflow:kt,vars:It,variant:Lt,__size:Ot,mod:Nt,...Ft}=d,jt=filterFalsyChildren(wt),Vt=jt.length,Jt=getSpacing(St??"md"),rr={childWidth:`calc(${100/Vt}% - (${Jt} - ${Jt} / ${Vt}))`},er=useStyles({name:"Group",props:d,stylesCtx:rr,className:nt,style:tt,classes:classes$z,classNames:et,styles:bt,unstyled:gt,vars:It,varsResolver:varsResolver$u});return React.createElement(Box,{...er("root"),ref:a,variant:Lt,mod:[{grow:Rt},Nt],size:Ot,...Ft},jt)});Group.classes=classes$z;Group.displayName="@mantine/core/Group";var classes$y={root:"m_9814e45f"};const defaultProps$1b={zIndex:getDefaultZIndex("modal")},varsResolver$t=(c,{gradient:a,color:d,backgroundOpacity:et,blur:nt,radius:tt,zIndex:bt})=>({root:{"--overlay-bg":a||(d!==void 0||et!==void 0)&&rgba(d||"#000",et??.6)||void 0,"--overlay-filter":nt?`blur(${rem(nt)})`:void 0,"--overlay-radius":tt===void 0?void 0:getRadius(tt),"--overlay-z-index":bt==null?void 0:bt.toString()}}),Overlay=polymorphicFactory((c,a)=>{const d=useProps("Overlay",defaultProps$1b,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,fixed:St,center:Mt,children:_t,radius:Tt,zIndex:Rt,gradient:kt,blur:It,color:Lt,backgroundOpacity:Ot,mod:Nt,...Ft}=d,jt=useStyles({name:"Overlay",props:d,classes:classes$y,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$t});return React.createElement(Box,{ref:a,...jt("root"),mod:[{center:Mt,fixed:St},Nt],...Ft},_t)});Overlay.classes=classes$y;Overlay.displayName="@mantine/core/Overlay";const[ModalBaseProvider,useModalBaseContext]=createSafeContext("ModalBase component was not found in tree");function useLockScroll({opened:c,transitionDuration:a}){const[d,et]=reactExports.useState(c),nt=reactExports.useRef(),bt=useReducedMotion()?0:a;return reactExports.useEffect(()=>(c?(et(!0),window.clearTimeout(nt.current)):bt===0?et(!1):nt.current=window.setTimeout(()=>et(!1),bt),()=>window.clearTimeout(nt.current)),[c,bt]),d}function useModal({id:c,transitionProps:a,opened:d,trapFocus:et,closeOnEscape:nt,onClose:tt,returnFocus:bt}){const gt=useId$1(c),[wt,St]=reactExports.useState(!1),[Mt,_t]=reactExports.useState(!1),Tt=typeof(a==null?void 0:a.duration)=="number"?a==null?void 0:a.duration:200,Rt=useLockScroll({opened:d,transitionDuration:Tt});return useWindowEvent("keydown",kt=>{var It;kt.key==="Escape"&&nt&&((It=kt.target)==null?void 0:It.getAttribute("data-mantine-stop-propagation"))!=="true"&&tt()},{capture:!0}),useFocusReturn({opened:d,shouldReturnFocus:et&&bt}),{_id:gt,titleMounted:wt,bodyMounted:Mt,shouldLockScroll:Rt,setTitleMounted:St,setBodyMounted:_t}}const ModalBase=reactExports.forwardRef(({keepMounted:c,opened:a,onClose:d,id:et,transitionProps:nt,trapFocus:tt,closeOnEscape:bt,returnFocus:gt,closeOnClickOutside:wt,withinPortal:St,portalProps:Mt,lockScroll:_t,children:Tt,zIndex:Rt,shadow:kt,padding:It,__vars:Lt,unstyled:Ot,removeScrollProps:Nt,...Ft},jt)=>{const{_id:Vt,titleMounted:Jt,bodyMounted:ir,shouldLockScroll:rr,setTitleMounted:er,setBodyMounted:lr}=useModal({id:et,transitionProps:nt,opened:a,trapFocus:tt,closeOnEscape:bt,onClose:d,returnFocus:gt});return React.createElement(OptionalPortal,{...Mt,withinPortal:St},React.createElement(ModalBaseProvider,{value:{opened:a,onClose:d,closeOnClickOutside:wt,transitionProps:{...nt,keepMounted:c},getTitleId:()=>`${Vt}-title`,getBodyId:()=>`${Vt}-body`,titleMounted:Jt,bodyMounted:ir,setTitleMounted:er,setBodyMounted:lr,trapFocus:tt,closeOnEscape:bt,zIndex:Rt,unstyled:Ot}},React.createElement(RemoveScroll,{enabled:rr&&_t,...Nt},React.createElement(Box,{ref:jt,...Ft,__vars:{...Lt,"--mb-z-index":(Rt||getDefaultZIndex("modal")).toString(),"--mb-shadow":getShadow(kt),"--mb-padding":getSpacing(It)}},Tt))))});function useModalBodyId(){const c=useModalBaseContext();return reactExports.useEffect(()=>(c.setBodyMounted(!0),()=>c.setBodyMounted(!1)),[]),c.getBodyId()}var classes$x={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};const ModalBaseBody=reactExports.forwardRef(({className:c,...a},d)=>{const et=useModalBodyId(),nt=useModalBaseContext();return React.createElement(Box,{ref:d,...a,id:et,className:clsx({[classes$x.body]:!nt.unstyled},c)})});ModalBaseBody.displayName="@mantine/core/ModalBaseBody";const ModalBaseCloseButton=reactExports.forwardRef(({className:c,onClick:a,...d},et)=>{const nt=useModalBaseContext();return React.createElement(CloseButton,{ref:et,...d,onClick:tt=>{nt.onClose(),a==null||a(tt)},className:clsx({[classes$x.close]:!nt.unstyled},c),unstyled:nt.unstyled})});ModalBaseCloseButton.displayName="@mantine/core/ModalBaseCloseButton";const ModalBaseContent=reactExports.forwardRef(({transitionProps:c,className:a,innerProps:d,onKeyDown:et,style:nt,...tt},bt)=>{const gt=useModalBaseContext();return React.createElement(Transition,{mounted:gt.opened,transition:"pop",...gt.transitionProps,...c},wt=>React.createElement("div",{...d,className:clsx({[classes$x.inner]:!gt.unstyled},d.className)},React.createElement(FocusTrap,{active:gt.opened&>.trapFocus},React.createElement(Paper,{...tt,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":gt.bodyMounted?gt.getBodyId():void 0,"aria-labelledby":gt.titleMounted?gt.getTitleId():void 0,ref:bt,style:[nt,wt],className:clsx({[classes$x.content]:!gt.unstyled},a),unstyled:gt.unstyled},tt.children))))}),ModalBaseHeader=reactExports.forwardRef(({className:c,...a},d)=>{const et=useModalBaseContext();return React.createElement(Box,{component:"header",ref:d,className:clsx({[classes$x.header]:!et.unstyled},c),...a})});ModalBaseHeader.displayName="@mantine/core/ModalBaseHeader";const DEFAULT_TRANSITION={duration:200,timingFunction:"ease",transition:"fade"};function useModalTransition(c){const a=useModalBaseContext();return{...DEFAULT_TRANSITION,...a.transitionProps,...c}}const ModalBaseOverlay=reactExports.forwardRef(({onClick:c,transitionProps:a,style:d,...et},nt)=>{const tt=useModalBaseContext(),bt=useModalTransition(a);return React.createElement(Transition,{mounted:tt.opened,...bt,transition:"fade"},gt=>React.createElement(Overlay,{ref:nt,fixed:!0,style:[d,gt],zIndex:tt.zIndex,unstyled:tt.unstyled,onClick:wt=>{c==null||c(wt),tt.closeOnClickOutside&&tt.onClose()},...et}))});ModalBaseOverlay.displayName="@mantine/core/ModalBaseOverlay";function useModalTitle(){const c=useModalBaseContext();return reactExports.useEffect(()=>(c.setTitleMounted(!0),()=>c.setTitleMounted(!1)),[]),c.getTitleId()}const ModalBaseTitle=reactExports.forwardRef(({className:c,...a},d)=>{const et=useModalTitle(),nt=useModalBaseContext();return React.createElement(Box,{component:"h2",ref:d,className:clsx({[classes$x.title]:!nt.unstyled},c),...a,id:et})});ModalBaseTitle.displayName="@mantine/core/ModalBaseTitle";function NativeScrollArea({children:c}){return React.createElement(React.Fragment,null,c)}const[InputWrapperProvider,useInputWrapperContext]=createOptionalContext({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var classes$w={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const defaultProps$1a={},varsResolver$s=(c,{size:a})=>({description:{"--input-description-size":a===void 0?void 0:`calc(${getFontSize(a)} - ${rem(2)})`}}),InputDescription=factory((c,a)=>{const d=useProps("InputDescription",defaultProps$1a,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,size:St,__staticSelector:Mt,__inheritStyles:_t=!0,variant:Tt,...Rt}=useProps("InputDescription",defaultProps$1a,d),kt=useInputWrapperContext(),It=useStyles({name:["InputWrapper",Mt],props:d,classes:classes$w,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,rootSelector:"description",vars:wt,varsResolver:varsResolver$s}),Lt=_t&&(kt==null?void 0:kt.getStyles)||It;return React.createElement(Box,{component:"p",ref:a,variant:Tt,size:St,...Lt("description",kt!=null&&kt.getStyles?{className:nt,style:tt}:void 0),...Rt})});InputDescription.classes=classes$w;InputDescription.displayName="@mantine/core/InputDescription";const defaultProps$19={},varsResolver$r=(c,{size:a})=>({error:{"--input-error-size":a===void 0?void 0:`calc(${getFontSize(a)} - ${rem(2)})`}}),InputError=factory((c,a)=>{const d=useProps("InputError",defaultProps$19,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,size:St,__staticSelector:Mt,__inheritStyles:_t=!0,variant:Tt,...Rt}=d,kt=useStyles({name:["InputWrapper",Mt],props:d,classes:classes$w,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,rootSelector:"error",vars:wt,varsResolver:varsResolver$r}),It=useInputWrapperContext(),Lt=_t&&(It==null?void 0:It.getStyles)||kt;return React.createElement(Box,{component:"p",ref:a,variant:Tt,size:St,...Lt("error",It!=null&&It.getStyles?{className:nt,style:tt}:void 0),...Rt})});InputError.classes=classes$w;InputError.displayName="@mantine/core/InputError";const defaultProps$18={labelElement:"label"},varsResolver$q=(c,{size:a})=>({label:{"--input-label-size":getFontSize(a),"--input-asterisk-color":void 0}}),InputLabel=factory((c,a)=>{const d=useProps("InputLabel",defaultProps$18,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,labelElement:St,size:Mt,required:_t,htmlFor:Tt,onMouseDown:Rt,children:kt,__staticSelector:It,variant:Lt,mod:Ot,...Nt}=useProps("InputLabel",defaultProps$18,d),Ft=useStyles({name:["InputWrapper",It],props:d,classes:classes$w,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,rootSelector:"label",vars:wt,varsResolver:varsResolver$q}),jt=useInputWrapperContext(),Vt=(jt==null?void 0:jt.getStyles)||Ft;return React.createElement(Box,{...Vt("label",jt!=null&&jt.getStyles?{className:nt,style:tt}:void 0),component:St,variant:Lt,size:Mt,ref:a,htmlFor:St==="label"?Tt:void 0,mod:[{required:_t},Ot],onMouseDown:Jt=>{Rt==null||Rt(Jt),!Jt.defaultPrevented&&Jt.detail>1&&Jt.preventDefault()},...Nt},kt,_t&&React.createElement("span",{...Vt("required"),"aria-hidden":!0}," *"))});InputLabel.classes=classes$w;InputLabel.displayName="@mantine/core/InputLabel";const defaultProps$17={},InputPlaceholder=factory((c,a)=>{const d=useProps("InputPlaceholder",defaultProps$17,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,__staticSelector:St,variant:Mt,error:_t,mod:Tt,...Rt}=useProps("InputPlaceholder",defaultProps$17,d),kt=useStyles({name:["InputPlaceholder",St],props:d,classes:classes$w,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,rootSelector:"placeholder"});return React.createElement(Box,{...kt("placeholder"),mod:[{error:!!_t},Tt],component:"span",variant:Mt,ref:a,...Rt})});InputPlaceholder.classes=classes$w;InputPlaceholder.displayName="@mantine/core/InputPlaceholder";function getInputOffsets(c,{hasDescription:a,hasError:d}){const et=c.findIndex(wt=>wt==="input"),nt=c[et-1],tt=c[et+1];return{offsetBottom:a&&tt==="description"||d&&tt==="error",offsetTop:a&&nt==="description"||d&&nt==="error"}}const defaultProps$16={labelElement:"label",inputContainer:c=>c,inputWrapperOrder:["label","description","input","error"]},varsResolver$p=(c,{size:a})=>({label:{"--input-label-size":getFontSize(a),"--input-asterisk-color":void 0},error:{"--input-error-size":a===void 0?void 0:`calc(${getFontSize(a)} - ${rem(2)})`},description:{"--input-description-size":a===void 0?void 0:`calc(${getFontSize(a)} - ${rem(2)})`}}),InputWrapper=factory((c,a)=>{const d=useProps("InputWrapper",defaultProps$16,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,size:St,variant:Mt,__staticSelector:_t,inputContainer:Tt,inputWrapperOrder:Rt,label:kt,error:It,description:Lt,labelProps:Ot,descriptionProps:Nt,errorProps:Ft,labelElement:jt,children:Vt,withAsterisk:Jt,id:ir,required:rr,__stylesApiProps:er,mod:lr,...Ct}=d,dt=useStyles({name:["InputWrapper",_t],props:er||d,classes:classes$w,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$p}),mt={size:St,variant:Mt,__staticSelector:_t},yt=useId$1(ir),vt=typeof Jt=="boolean"?Jt:rr,Et=(Ft==null?void 0:Ft.id)||`${yt}-error`,At=(Nt==null?void 0:Nt.id)||`${yt}-description`,Pt=yt,xt=!!It&&typeof It!="boolean",ht=!!Lt,$t=`${xt?Et:""} ${ht?At:""}`,Bt=$t.trim().length>0?$t.trim():void 0,Dt=(Ot==null?void 0:Ot.id)||`${yt}-label`,Ht=kt&&React.createElement(InputLabel,{key:"label",labelElement:jt,id:Dt,htmlFor:Pt,required:vt,...mt,...Ot},kt),tr=ht&&React.createElement(InputDescription,{key:"description",...Nt,...mt,size:(Nt==null?void 0:Nt.size)||mt.size,id:(Nt==null?void 0:Nt.id)||At},Lt),Xt=React.createElement(React.Fragment,{key:"input"},Tt(Vt)),Ut=xt&&React.createElement(InputError,{...Ft,...mt,size:(Ft==null?void 0:Ft.size)||mt.size,key:"error",id:(Ft==null?void 0:Ft.id)||Et},It),qt=Rt.map(Gt=>{switch(Gt){case"label":return Ht;case"input":return Xt;case"description":return tr;case"error":return Ut;default:return null}});return React.createElement(InputWrapperProvider,{value:{getStyles:dt,describedBy:Bt,inputId:Pt,labelId:Dt,...getInputOffsets(Rt,{hasDescription:ht,hasError:xt})}},React.createElement(Box,{ref:a,variant:Mt,size:St,mod:[{error:!!It},lr],...dt("root"),...Ct},qt))});InputWrapper.classes=classes$w;InputWrapper.displayName="@mantine/core/InputWrapper";const defaultProps$15={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0},varsResolver$o=(c,a,d)=>({wrapper:{"--input-margin-top":d.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":d.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":getSize(a.size,"input-height"),"--input-fz":getFontSize(a.size),"--input-radius":a.radius===void 0?void 0:getRadius(a.radius),"--input-left-section-width":a.leftSectionWidth!==void 0?rem(a.leftSectionWidth):void 0,"--input-right-section-width":a.rightSectionWidth!==void 0?rem(a.rightSectionWidth):void 0,"--input-padding-y":a.multiline?getSize(a.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":a.leftSectionPointerEvents,"--input-right-section-pointer-events":a.rightSectionPointerEvents}}),Input=polymorphicFactory((c,a)=>{const d=useProps("Input",defaultProps$15,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,required:wt,__staticSelector:St,__stylesApiProps:Mt,size:_t,wrapperProps:Tt,error:Rt,disabled:kt,leftSection:It,leftSectionProps:Lt,leftSectionWidth:Ot,rightSection:Nt,rightSectionProps:Ft,rightSectionWidth:jt,rightSectionPointerEvents:Vt,leftSectionPointerEvents:Jt,variant:ir,vars:rr,pointer:er,multiline:lr,radius:Ct,id:dt,withAria:mt,withErrorStyles:yt,mod:vt,...Et}=d,{styleProps:At,rest:Pt}=extractStyleProps(Et),xt=useInputWrapperContext(),ht={offsetBottom:xt==null?void 0:xt.offsetBottom,offsetTop:xt==null?void 0:xt.offsetTop},$t=useStyles({name:["Input",St],props:Mt||d,classes:classes$w,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,stylesCtx:ht,rootSelector:"wrapper",vars:rr,varsResolver:varsResolver$o}),Bt=mt?{required:wt,disabled:kt,"aria-invalid":!!Rt,"aria-describedby":xt==null?void 0:xt.describedBy,id:(xt==null?void 0:xt.inputId)||dt}:{};return React.createElement(Box,{...$t("wrapper"),...At,...Tt,mod:[{error:!!Rt&&yt,pointer:er,disabled:kt,multiline:lr,"data-with-right-section":!!Nt,"data-with-left-section":!!It},vt],variant:ir,size:_t},It&&React.createElement("div",{...Lt,"data-position":"left",...$t("section",{className:Lt==null?void 0:Lt.className,style:Lt==null?void 0:Lt.style})},It),React.createElement(Box,{component:"input",...Pt,...Bt,ref:a,required:wt,mod:{disabled:kt,error:!!Rt&&yt},variant:ir,...$t("input")}),Nt&&React.createElement("div",{...Ft,"data-position":"right",...$t("section",{className:Ft==null?void 0:Ft.className,style:Ft==null?void 0:Ft.style})},Nt))});Input.classes=classes$w;Input.Wrapper=InputWrapper;Input.Label=InputLabel;Input.Error=InputError;Input.Description=InputDescription;Input.Placeholder=InputPlaceholder;Input.displayName="@mantine/core/Input";function useInputProps(c,a,d){const et=useProps(c,a,d),{label:nt,description:tt,error:bt,required:gt,classNames:wt,styles:St,className:Mt,unstyled:_t,__staticSelector:Tt,__stylesApiProps:Rt,errorProps:kt,labelProps:It,descriptionProps:Lt,wrapperProps:Ot,id:Nt,size:Ft,style:jt,inputContainer:Vt,inputWrapperOrder:Jt,withAsterisk:ir,variant:rr,vars:er,mod:lr,...Ct}=et,{styleProps:dt,rest:mt}=extractStyleProps(Ct),yt={label:nt,description:tt,error:bt,required:gt,classNames:wt,className:Mt,__staticSelector:Tt,__stylesApiProps:Rt||et,errorProps:kt,labelProps:It,descriptionProps:Lt,unstyled:_t,styles:St,size:Ft,style:jt,inputContainer:Vt,inputWrapperOrder:Jt,withAsterisk:ir,variant:rr,id:Nt,mod:lr,...Ot};return{...mt,classNames:wt,styles:St,unstyled:_t,wrapperProps:{...yt,...dt},inputProps:{required:gt,classNames:wt,styles:St,unstyled:_t,size:Ft,__staticSelector:Tt,__stylesApiProps:Rt||et,error:bt,variant:rr,id:Nt}}}const defaultProps$14={__staticSelector:"InputBase",withAria:!0},InputBase=polymorphicFactory((c,a)=>{const{inputProps:d,wrapperProps:et,...nt}=useInputProps("InputBase",defaultProps$14,c);return React.createElement(Input.Wrapper,{...et},React.createElement(Input,{...d,...nt,ref:a}))});InputBase.classes={...Input.classes,...Input.Wrapper.classes};InputBase.displayName="@mantine/core/InputBase";function AccordionChevron({style:c,size:a=16,...d}){return React.createElement("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...c,width:rem(a),height:rem(a),display:"block"},...d},React.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}AccordionChevron.displayName="@mantine/core/AccordionChevron";var classes$v={root:"m_7f854edf"};const defaultProps$13={position:{bottom:0,right:0},zIndex:getDefaultZIndex("modal"),withinPortal:!0},varsResolver$n=(c,{zIndex:a,position:d})=>({root:{"--affix-z-index":a==null?void 0:a.toString(),"--affix-top":rem(d==null?void 0:d.top),"--affix-left":rem(d==null?void 0:d.left),"--affix-bottom":rem(d==null?void 0:d.bottom),"--affix-right":rem(d==null?void 0:d.right)}}),Affix=factory((c,a)=>{const d=useProps("Affix",defaultProps$13,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,portalProps:St,zIndex:Mt,withinPortal:_t,position:Tt,...Rt}=d,kt=useStyles({name:"Affix",classes:classes$v,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$n});return React.createElement(OptionalPortal,{...St,withinPortal:_t},React.createElement(Box,{ref:a,...kt("root"),...Rt}))});Affix.classes=classes$v;Affix.displayName="@mantine/core/Affix";var classes$u={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};const defaultProps$12={},varsResolver$m=(c,{radius:a,color:d,variant:et,autoContrast:nt})=>{const tt=c.variantColorResolver({color:d||c.primaryColor,theme:c,variant:et||"light",autoContrast:nt});return{root:{"--alert-radius":a===void 0?void 0:getRadius(a),"--alert-bg":d||et?tt.background:void 0,"--alert-color":tt.color,"--alert-bd":d||et?tt.border:void 0}}},Alert=factory((c,a)=>{const d=useProps("Alert",defaultProps$12,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,radius:St,color:Mt,title:_t,children:Tt,id:Rt,icon:kt,withCloseButton:It,onClose:Lt,closeButtonLabel:Ot,variant:Nt,autoContrast:Ft,...jt}=d,Vt=useStyles({name:"Alert",classes:classes$u,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$m}),Jt=useId$1(Rt),ir=_t&&`${Jt}-title`||void 0,rr=`${Jt}-body`;return React.createElement(Box,{id:Jt,...Vt("root",{variant:Nt}),variant:Nt,ref:a,...jt,role:"alert","aria-describedby":rr,"aria-labelledby":ir},React.createElement("div",{...Vt("wrapper")},kt&&React.createElement("div",{...Vt("icon")},kt),React.createElement("div",{...Vt("body")},_t&&React.createElement("div",{...Vt("title"),"data-with-close-button":It||void 0},React.createElement("span",{id:ir,...Vt("label")},_t)),Tt&&React.createElement("div",{id:rr,...Vt("message"),"data-variant":Nt},Tt)),It&&React.createElement(CloseButton,{...Vt("closeButton"),onClick:Lt,variant:"transparent",size:16,iconSize:16,"aria-label":Ot,unstyled:gt})))});Alert.classes=classes$u;Alert.displayName="@mantine/core/Alert";var classes$t={root:"m_b6d8b162"};function getTextTruncate(c){if(c==="start")return"start";if(c==="end"||c)return"end"}const defaultProps$11={inherit:!1},varsResolver$l=(c,{variant:a,lineClamp:d,gradient:et,size:nt,color:tt})=>({root:{"--text-fz":getFontSize(nt),"--text-lh":getLineHeight(nt),"--text-gradient":a==="gradient"?getGradient(et,c):void 0,"--text-line-clamp":typeof d=="number"?d.toString():void 0,"--text-color":tt?getThemeColor(tt,c):void 0}}),Text=polymorphicFactory((c,a)=>{const d=useProps("Text",defaultProps$11,c),{lineClamp:et,truncate:nt,inline:tt,inherit:bt,gradient:gt,span:wt,__staticSelector:St,vars:Mt,className:_t,style:Tt,classNames:Rt,styles:kt,unstyled:It,variant:Lt,mod:Ot,size:Nt,...Ft}=d,jt=useStyles({name:["Text",St],props:d,classes:classes$t,className:_t,style:Tt,classNames:Rt,styles:kt,unstyled:It,vars:Mt,varsResolver:varsResolver$l});return React.createElement(Box,{...jt("root",{focusable:!0}),ref:a,component:wt?"span":"p",variant:Lt,mod:[{"data-truncate":getTextTruncate(nt),"data-line-clamp":typeof et=="number","data-inline":tt,"data-inherit":bt},Ot],size:Nt,...Ft})});Text.classes=classes$t;Text.displayName="@mantine/core/Text";var classes$s={root:"m_849cf0da"};const defaultProps$10={underline:"hover"},Anchor=polymorphicFactory((c,a)=>{const{underline:d,className:et,unstyled:nt,mod:tt,...bt}=useProps("Anchor",defaultProps$10,c);return React.createElement(Text,{component:"a",ref:a,className:clsx({[classes$s.root]:!nt},et),...bt,mod:[{underline:d},tt],__staticSelector:"Anchor",unstyled:nt})});Anchor.classes=classes$s;Anchor.displayName="@mantine/core/Anchor";const[AppShellProvider,useAppShellContext]=createSafeContext("AppShell was not found in tree");var classes$r={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const defaultProps$$={},AppShellAside=factory((c,a)=>{const d=useProps("AppShellAside",defaultProps$$,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,withBorder:St,zIndex:Mt,mod:_t,...Tt}=d,Rt=useAppShellContext();return Rt.disabled?null:React.createElement(Box,{component:"aside",ref:a,mod:[{"with-border":St??Rt.withBorder},_t],...Rt.getStyles("aside",{className:nt,classNames:et,styles:bt,style:tt}),...Tt,__vars:{"--app-shell-aside-z-index":`calc(${Mt??Rt.zIndex} + 1)`}})});AppShellAside.classes=classes$r;AppShellAside.displayName="@mantine/core/AppShellAside";const defaultProps$_={},AppShellFooter=factory((c,a)=>{var kt;const d=useProps("AppShellFooter",defaultProps$_,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,withBorder:St,zIndex:Mt,mod:_t,...Tt}=d,Rt=useAppShellContext();return Rt.disabled?null:React.createElement(Box,{component:"footer",ref:a,mod:[{"with-border":St??Rt.withBorder},_t],...Rt.getStyles("footer",{className:clsx({[RemoveScroll.classNames.zeroRight]:Rt.offsetScrollbars},nt),classNames:et,styles:bt,style:tt}),...Tt,__vars:{"--app-shell-footer-z-index":(kt=Mt??Rt.zIndex)==null?void 0:kt.toString()}})});AppShellFooter.classes=classes$r;AppShellFooter.displayName="@mantine/core/AppShellFooter";const defaultProps$Z={},AppShellHeader=factory((c,a)=>{var kt;const d=useProps("AppShellHeader",defaultProps$Z,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,withBorder:St,zIndex:Mt,mod:_t,...Tt}=d,Rt=useAppShellContext();return Rt.disabled?null:React.createElement(Box,{component:"header",ref:a,mod:[{"with-border":St??Rt.withBorder},_t],...Rt.getStyles("header",{className:clsx({[RemoveScroll.classNames.zeroRight]:Rt.offsetScrollbars},nt),classNames:et,styles:bt,style:tt}),...Tt,__vars:{"--app-shell-header-z-index":(kt=Mt??Rt.zIndex)==null?void 0:kt.toString()}})});AppShellHeader.classes=classes$r;AppShellHeader.displayName="@mantine/core/AppShellHeader";const defaultProps$Y={},AppShellMain=factory((c,a)=>{const d=useProps("AppShellMain",defaultProps$Y,c),{classNames:et,className:nt,style:tt,styles:bt,vars:gt,...wt}=d,St=useAppShellContext();return React.createElement(Box,{component:"main",ref:a,...St.getStyles("main",{className:nt,style:tt,classNames:et,styles:bt}),...wt})});AppShellMain.classes=classes$r;AppShellMain.displayName="@mantine/core/AppShellMain";function getBaseSize(c){return typeof c=="object"?c.base:c}function isPrimitiveSize(c){const a=typeof c=="object"&&c!==null&&typeof c.base<"u"&&Object.keys(c).length===1;return typeof c=="number"||typeof c=="string"||a}function isResponsiveSize(c){return!(typeof c!="object"||c===null||Object.keys(c).length===1&&"base"in c)}function assignAsideVariables({baseStyles:c,minMediaStyles:a,maxMediaStyles:d,aside:et,theme:nt}){var wt,St,Mt;const tt=et==null?void 0:et.width,bt="translateX(var(--app-shell-aside-width))",gt="translateX(calc(var(--app-shell-aside-width) * -1))";if(et!=null&&et.breakpoint&&!((wt=et==null?void 0:et.collapsed)!=null&&wt.mobile)&&(d[et==null?void 0:et.breakpoint]=d[et==null?void 0:et.breakpoint]||{},d[et==null?void 0:et.breakpoint]["--app-shell-aside-width"]="100%",d[et==null?void 0:et.breakpoint]["--app-shell-aside-offset"]="0px"),isPrimitiveSize(tt)){const _t=rem(getBaseSize(tt));c["--app-shell-aside-width"]=_t,c["--app-shell-aside-offset"]=_t}if(isResponsiveSize(tt)&&(typeof tt.base<"u"&&(c["--app-shell-aside-width"]=rem(tt.base),c["--app-shell-aside-offset"]=rem(tt.base)),keys(tt).forEach(_t=>{_t!=="base"&&(a[_t]=a[_t]||{},a[_t]["--app-shell-aside-width"]=rem(tt[_t]),a[_t]["--app-shell-aside-offset"]=rem(tt[_t]))})),(St=et==null?void 0:et.collapsed)!=null&&St.desktop){const _t=et.breakpoint;a[_t]=a[_t]||{},a[_t]["--app-shell-aside-transform"]=bt,a[_t]["--app-shell-aside-transform-rtl"]=gt,a[_t]["--app-shell-aside-offset"]="0px !important"}if((Mt=et==null?void 0:et.collapsed)!=null&&Mt.mobile){const _t=getBreakpointValue$1(et.breakpoint,nt)-.1;d[_t]=d[_t]||{},d[_t]["--app-shell-aside-width"]="100%",d[_t]["--app-shell-aside-offset"]="0px",d[_t]["--app-shell-aside-transform"]=bt,d[_t]["--app-shell-aside-transform-rtl"]=gt}}function assignFooterVariables({baseStyles:c,minMediaStyles:a,footer:d}){const et=d==null?void 0:d.height,nt="translateY(var(--app-shell-footer-height))",tt=(d==null?void 0:d.offset)??!0;if(isPrimitiveSize(et)){const bt=rem(getBaseSize(et));c["--app-shell-footer-height"]=bt,tt&&(c["--app-shell-footer-offset"]=bt)}isResponsiveSize(et)&&(typeof et.base<"u"&&(c["--app-shell-footer-height"]=rem(et.base),tt&&(c["--app-shell-footer-offset"]=rem(et.base))),keys(et).forEach(bt=>{bt!=="base"&&(a[bt]=a[bt]||{},a[bt]["--app-shell-footer-height"]=rem(et[bt]),tt&&(a[bt]["--app-shell-footer-offset"]=rem(et[bt])))})),d!=null&&d.collapsed&&(c["--app-shell-footer-transform"]=nt,c["--app-shell-footer-offset"]="0px !important")}function assignHeaderVariables({baseStyles:c,minMediaStyles:a,header:d}){const et=d==null?void 0:d.height,nt="translateY(calc(var(--app-shell-header-height) * -1))",tt=(d==null?void 0:d.offset)??!0;if(isPrimitiveSize(et)){const bt=rem(getBaseSize(et));c["--app-shell-header-height"]=bt,tt&&(c["--app-shell-header-offset"]=bt)}isResponsiveSize(et)&&(typeof et.base<"u"&&(c["--app-shell-header-height"]=rem(et.base),tt&&(c["--app-shell-header-offset"]=rem(et.base))),keys(et).forEach(bt=>{bt!=="base"&&(a[bt]=a[bt]||{},a[bt]["--app-shell-header-height"]=rem(et[bt]),tt&&(a[bt]["--app-shell-header-offset"]=rem(et[bt])))})),d!=null&&d.collapsed&&(c["--app-shell-header-transform"]=nt,c["--app-shell-header-offset"]="0px !important")}function assignNavbarVariables({baseStyles:c,minMediaStyles:a,maxMediaStyles:d,navbar:et,theme:nt}){var wt,St,Mt;const tt=et==null?void 0:et.width,bt="translateX(calc(var(--app-shell-navbar-width) * -1))",gt="translateX(var(--app-shell-navbar-width))";if(et!=null&&et.breakpoint&&!((wt=et==null?void 0:et.collapsed)!=null&&wt.mobile)&&(d[et==null?void 0:et.breakpoint]=d[et==null?void 0:et.breakpoint]||{},d[et==null?void 0:et.breakpoint]["--app-shell-navbar-width"]="100%",d[et==null?void 0:et.breakpoint]["--app-shell-navbar-offset"]="0px"),isPrimitiveSize(tt)){const _t=rem(getBaseSize(tt));c["--app-shell-navbar-width"]=_t,c["--app-shell-navbar-offset"]=_t}if(isResponsiveSize(tt)&&(typeof tt.base<"u"&&(c["--app-shell-navbar-width"]=rem(tt.base),c["--app-shell-navbar-offset"]=rem(tt.base)),keys(tt).forEach(_t=>{_t!=="base"&&(a[_t]=a[_t]||{},a[_t]["--app-shell-navbar-width"]=rem(tt[_t]),a[_t]["--app-shell-navbar-offset"]=rem(tt[_t]))})),(St=et==null?void 0:et.collapsed)!=null&&St.desktop){const _t=et.breakpoint;a[_t]=a[_t]||{},a[_t]["--app-shell-navbar-transform"]=bt,a[_t]["--app-shell-navbar-transform-rtl"]=gt,a[_t]["--app-shell-navbar-offset"]="0px !important"}if((Mt=et==null?void 0:et.collapsed)!=null&&Mt.mobile){const _t=getBreakpointValue$1(et.breakpoint,nt)-.1;d[_t]=d[_t]||{},d[_t]["--app-shell-navbar-width"]="100%",d[_t]["--app-shell-navbar-offset"]="0px",d[_t]["--app-shell-navbar-transform"]=bt,d[_t]["--app-shell-navbar-transform-rtl"]=gt}}function getPaddingValue(c){return Number(c)===0?"0px":getSpacing(c)}function assignPaddingVariables({padding:c,baseStyles:a,minMediaStyles:d}){isPrimitiveSize(c)&&(a["--app-shell-padding"]=getPaddingValue(getBaseSize(c))),isResponsiveSize(c)&&(c.base&&(a["--app-shell-padding"]=getPaddingValue(c.base)),keys(c).forEach(et=>{et!=="base"&&(d[et]=d[et]||{},d[et]["--app-shell-padding"]=getPaddingValue(c[et]))}))}function getVariables({navbar:c,header:a,footer:d,aside:et,padding:nt,theme:tt}){const bt={},gt={},wt={};assignNavbarVariables({baseStyles:wt,minMediaStyles:bt,maxMediaStyles:gt,navbar:c,theme:tt}),assignAsideVariables({baseStyles:wt,minMediaStyles:bt,maxMediaStyles:gt,aside:et,theme:tt}),assignHeaderVariables({baseStyles:wt,minMediaStyles:bt,header:a}),assignFooterVariables({baseStyles:wt,minMediaStyles:bt,footer:d}),assignPaddingVariables({baseStyles:wt,minMediaStyles:bt,padding:nt});const St=getSortedBreakpoints(keys(bt),tt).map(Tt=>({query:`(min-width: ${em(Tt.px)})`,styles:bt[Tt.value]})),Mt=getSortedBreakpoints(keys(gt),tt).map(Tt=>({query:`(max-width: ${em(Tt.px)})`,styles:gt[Tt.value]})),_t=[...St,...Mt];return{baseStyles:wt,media:_t}}function AppShellMediaStyles({navbar:c,header:a,aside:d,footer:et,padding:nt}){const tt=useMantineTheme(),bt=useMantineContext(),{media:gt,baseStyles:wt}=getVariables({navbar:c,header:a,footer:et,aside:d,padding:nt,theme:tt});return React.createElement(InlineStyles,{media:gt,styles:wt,selector:bt.cssVariablesSelector})}const defaultProps$X={},AppShellNavbar=factory((c,a)=>{const d=useProps("AppShellNavbar",defaultProps$X,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,withBorder:St,zIndex:Mt,mod:_t,...Tt}=d,Rt=useAppShellContext();return Rt.disabled?null:React.createElement(Box,{component:"nav",ref:a,mod:[{"with-border":St??Rt.withBorder},_t],...Rt.getStyles("navbar",{className:nt,classNames:et,styles:bt,style:tt}),...Tt,__vars:{"--app-shell-navbar-z-index":`calc(${Mt??Rt.zIndex} + 1)`}})});AppShellNavbar.classes=classes$r;AppShellNavbar.displayName="@mantine/core/AppShellNavbar";const defaultProps$W={},AppShellSection=polymorphicFactory((c,a)=>{const d=useProps("AppShellSection",defaultProps$W,c),{classNames:et,className:nt,style:tt,styles:bt,vars:gt,grow:wt,mod:St,...Mt}=d,_t=useAppShellContext();return React.createElement(Box,{ref:a,mod:[{grow:wt},St],..._t.getStyles("section",{className:nt,style:tt,classNames:et,styles:bt}),...Mt})});AppShellSection.classes=classes$r;AppShellSection.displayName="@mantine/core/AppShellSection";function useResizing({transitionDuration:c,disabled:a}){const[d,et]=reactExports.useState(!0),nt=reactExports.useRef(),tt=reactExports.useRef();return useWindowEvent("resize",()=>{et(!0),clearTimeout(nt.current),nt.current=window.setTimeout(()=>et(!1),200)}),useIsomorphicEffect(()=>{reactExports.startTransition(()=>{et(!0),clearTimeout(tt.current),tt.current=window.setTimeout(()=>et(!1),c||0)})},[a,c]),d}const defaultProps$V={withBorder:!0,offsetScrollbars:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:getDefaultZIndex("app")},varsResolver$k=(c,{transitionDuration:a,transitionTimingFunction:d})=>({root:{"--app-shell-transition-duration":`${a}ms`,"--app-shell-transition-timing-function":d}}),AppShell=factory((c,a)=>{const d=useProps("AppShell",defaultProps$V,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,navbar:St,withBorder:Mt,padding:_t,transitionDuration:Tt,transitionTimingFunction:Rt,header:kt,zIndex:It,layout:Lt,disabled:Ot,aside:Nt,footer:Ft,offsetScrollbars:jt,mod:Vt,...Jt}=d,ir=useStyles({name:"AppShell",classes:classes$r,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$k}),rr=useResizing({disabled:Ot,transitionDuration:Tt});return React.createElement(AppShellProvider,{value:{getStyles:ir,withBorder:Mt,zIndex:It,disabled:Ot,offsetScrollbars:jt}},React.createElement(AppShellMediaStyles,{navbar:St,header:kt,aside:Nt,footer:Ft,padding:_t}),React.createElement(Box,{ref:a,...ir("root"),mod:[{resizing:rr,layout:Lt,disabled:Ot},Vt],...Jt}))});AppShell.classes=classes$r;AppShell.displayName="@mantine/core/AppShell";AppShell.Navbar=AppShellNavbar;AppShell.Header=AppShellHeader;AppShell.Main=AppShellMain;AppShell.Aside=AppShellAside;AppShell.Footer=AppShellFooter;AppShell.Section=AppShellSection;var classes$q={dropdown:"m_88b62a41",options:"m_b2821a6e",option:"m_92253aa5",search:"m_985517d8",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2"};const defaultProps$U={error:null},varsResolver$j=(c,{size:a})=>({chevron:{"--combobox-chevron-size":getSize(a,"combobox-chevron-size")}}),ComboboxChevron=factory((c,a)=>{const d=useProps("ComboboxChevron",defaultProps$U,c),{size:et,error:nt,style:tt,className:bt,classNames:gt,styles:wt,unstyled:St,vars:Mt,mod:_t,...Tt}=d,Rt=useStyles({name:"ComboboxChevron",classes:classes$q,props:d,style:tt,className:bt,classNames:gt,styles:wt,unstyled:St,vars:Mt,varsResolver:varsResolver$j,rootSelector:"chevron"});return React.createElement(Box,{component:"svg",...Tt,...Rt("chevron"),size:et,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:nt},_t],ref:a},React.createElement("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))});ComboboxChevron.classes=classes$q;ComboboxChevron.displayName="@mantine/core/ComboboxChevron";const[ComboboxProvider,useComboboxContext]=createSafeContext("Combobox component was not found in tree"),ComboboxClearButton=reactExports.forwardRef(({size:c,onMouseDown:a,onClick:d,onClear:et,...nt},tt)=>React.createElement(CloseButton,{ref:tt,size:c||"sm",variant:"transparent",tabIndex:-1,"aria-hidden":!0,...nt,onMouseDown:bt=>{bt.preventDefault(),a==null||a(bt)},onClick:bt=>{et(),d==null||d(bt)}}));ComboboxClearButton.displayName="@mantine/core/ComboboxClearButton";const defaultProps$T={},ComboboxDropdown=factory((c,a)=>{const{classNames:d,styles:et,className:nt,style:tt,hidden:bt,...gt}=useProps("ComboboxDropdown",defaultProps$T,c),wt=useComboboxContext();return React.createElement(Popover.Dropdown,{...gt,ref:a,role:"presentation","data-hidden":bt||void 0,...wt.getStyles("dropdown",{className:nt,style:tt,classNames:d,styles:et})})});ComboboxDropdown.classes=classes$q;ComboboxDropdown.displayName="@mantine/core/ComboboxDropdown";const defaultProps$S={refProp:"ref"},ComboboxDropdownTarget=factory((c,a)=>{const{children:d,refProp:et}=useProps("ComboboxDropdownTarget",defaultProps$S,c);if(useComboboxContext(),!isElement$1(d))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return React.createElement(Popover.Target,{ref:a,refProp:et},d)});ComboboxDropdownTarget.displayName="@mantine/core/ComboboxDropdownTarget";const defaultProps$R={},ComboboxEmpty=factory((c,a)=>{const{classNames:d,className:et,style:nt,styles:tt,vars:bt,...gt}=useProps("ComboboxEmpty",defaultProps$R,c),wt=useComboboxContext();return React.createElement(Box,{ref:a,...wt.getStyles("empty",{className:et,classNames:d,styles:tt,style:nt}),...gt})});ComboboxEmpty.classes=classes$q;ComboboxEmpty.displayName="@mantine/core/ComboboxEmpty";function useComboboxTargetProps({onKeyDown:c,withKeyboardNavigation:a,withAriaAttributes:d,withExpandedAttribute:et,targetType:nt,autoComplete:tt}){const bt=useComboboxContext(),[gt,wt]=reactExports.useState(null),St=_t=>{if(c==null||c(_t),!bt.readOnly&&a){if(_t.nativeEvent.isComposing)return;if(_t.nativeEvent.code==="ArrowDown"&&(_t.preventDefault(),bt.store.dropdownOpened?wt(bt.store.selectNextOption()):(bt.store.openDropdown("keyboard"),wt(bt.store.selectActiveOption()))),_t.nativeEvent.code==="ArrowUp"&&(_t.preventDefault(),bt.store.dropdownOpened?wt(bt.store.selectPreviousOption()):(bt.store.openDropdown("keyboard"),wt(bt.store.selectActiveOption()))),_t.nativeEvent.code==="Enter"||_t.nativeEvent.code==="NumpadEnter"){if(_t.nativeEvent.keyCode===229)return;const Tt=bt.store.getSelectedOptionIndex();bt.store.dropdownOpened&&Tt!==-1?(_t.preventDefault(),bt.store.clickSelectedOption()):nt==="button"&&(_t.preventDefault(),bt.store.openDropdown("keyboard"))}_t.nativeEvent.code==="Escape"&&bt.store.closeDropdown("keyboard"),_t.nativeEvent.code==="Space"&&nt==="button"&&(_t.preventDefault(),bt.store.toggleDropdown("keyboard"))}};return{...d?{"aria-haspopup":"listbox","aria-expanded":et&&!!(bt.store.listId&&bt.store.dropdownOpened)||void 0,"aria-controls":bt.store.listId,"aria-activedescendant":bt.store.dropdownOpened&>||void 0,autoComplete:tt,"data-expanded":bt.store.dropdownOpened||void 0,"data-mantine-stop-propagation":bt.store.dropdownOpened||void 0}:{},onKeyDown:St}}const defaultProps$Q={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},ComboboxEventsTarget=factory((c,a)=>{const{children:d,refProp:et,withKeyboardNavigation:nt,withAriaAttributes:tt,withExpandedAttribute:bt,targetType:gt,autoComplete:wt,...St}=useProps("ComboboxEventsTarget",defaultProps$Q,c);if(!isElement$1(d))throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const Mt=useComboboxContext(),_t=useComboboxTargetProps({targetType:gt,withAriaAttributes:tt,withKeyboardNavigation:nt,withExpandedAttribute:bt,onKeyDown:d.props.onKeyDown,autoComplete:wt});return reactExports.cloneElement(d,{..._t,...St,[et]:useMergedRef(a,Mt.store.targetRef,d==null?void 0:d.ref)})});ComboboxEventsTarget.displayName="@mantine/core/ComboboxEventsTarget";const defaultProps$P={},ComboboxFooter=factory((c,a)=>{const{classNames:d,className:et,style:nt,styles:tt,vars:bt,...gt}=useProps("ComboboxFooter",defaultProps$P,c),wt=useComboboxContext();return React.createElement(Box,{ref:a,...wt.getStyles("footer",{className:et,classNames:d,style:nt,styles:tt}),...gt})});ComboboxFooter.classes=classes$q;ComboboxFooter.displayName="@mantine/core/ComboboxFooter";const defaultProps$O={},ComboboxGroup=factory((c,a)=>{const{classNames:d,className:et,style:nt,styles:tt,vars:bt,children:gt,label:wt,...St}=useProps("ComboboxGroup",defaultProps$O,c),Mt=useComboboxContext();return React.createElement(Box,{ref:a,...Mt.getStyles("group",{className:et,classNames:d,style:nt,styles:tt}),...St},wt&&React.createElement("div",{...Mt.getStyles("groupLabel",{classNames:d,styles:tt})},wt),gt)});ComboboxGroup.classes=classes$q;ComboboxGroup.displayName="@mantine/core/ComboboxGroup";const defaultProps$N={},ComboboxHeader=factory((c,a)=>{const{classNames:d,className:et,style:nt,styles:tt,vars:bt,...gt}=useProps("ComboboxHeader",defaultProps$N,c),wt=useComboboxContext();return React.createElement(Box,{ref:a,...wt.getStyles("header",{className:et,classNames:d,style:nt,styles:tt}),...gt})});ComboboxHeader.classes=classes$q;ComboboxHeader.displayName="@mantine/core/ComboboxHeader";function ComboboxHiddenInput({value:c,valuesDivider:a=",",...d}){return React.createElement("input",{type:"hidden",value:Array.isArray(c)?c.join(a):c||"",...d})}ComboboxHiddenInput.displayName="@mantine/core/ComboboxHiddenInput";const defaultProps$M={},ComboboxOption=factory((c,a)=>{const d=useProps("ComboboxOption",defaultProps$M,c),{classNames:et,className:nt,style:tt,styles:bt,vars:gt,onClick:wt,id:St,active:Mt,onMouseDown:_t,onMouseOver:Tt,disabled:Rt,selected:kt,mod:It,...Lt}=d,Ot=useComboboxContext(),Nt=reactExports.useId(),Ft=St||Nt;return React.createElement(Box,{...Ot.getStyles("option",{className:nt,classNames:et,styles:bt,style:tt}),...Lt,ref:a,id:Ft,mod:["combobox-option",{"combobox-active":Mt,"combobox-disabled":Rt,"combobox-selected":kt},It],role:"option",onClick:jt=>{var Vt;Rt?jt.preventDefault():((Vt=Ot.onOptionSubmit)==null||Vt.call(Ot,d.value,d),wt==null||wt(jt))},onMouseDown:jt=>{jt.preventDefault(),_t==null||_t(jt)},onMouseOver:jt=>{Ot.resetSelectionOnOptionHover&&Ot.store.resetSelectedOption(),Tt==null||Tt(jt)}})});ComboboxOption.classes=classes$q;ComboboxOption.displayName="@mantine/core/ComboboxOption";const defaultProps$L={},ComboboxOptions=factory((c,a)=>{const d=useProps("ComboboxOptions",defaultProps$L,c),{classNames:et,className:nt,style:tt,styles:bt,id:gt,onMouseDown:wt,labelledBy:St,...Mt}=d,_t=useComboboxContext(),Tt=useId$1(gt);return reactExports.useEffect(()=>{_t.store.setListId(Tt)},[Tt]),React.createElement(Box,{ref:a,..._t.getStyles("options",{className:nt,style:tt,classNames:et,styles:bt}),...Mt,id:Tt,role:"listbox","aria-labelledby":St,onMouseDown:Rt=>{Rt.preventDefault(),wt==null||wt(Rt)}})});ComboboxOptions.classes=classes$q;ComboboxOptions.displayName="@mantine/core/ComboboxOptions";const defaultProps$K={withAriaAttributes:!0,withKeyboardNavigation:!0},ComboboxSearch=factory((c,a)=>{const d=useProps("ComboboxSearch",defaultProps$K,c),{classNames:et,styles:nt,unstyled:tt,vars:bt,withAriaAttributes:gt,onKeyDown:wt,withKeyboardNavigation:St,size:Mt,..._t}=d,Tt=useComboboxContext(),Rt=Tt.getStyles("search"),kt=useComboboxTargetProps({targetType:"input",withAriaAttributes:gt,withKeyboardNavigation:St,withExpandedAttribute:!1,onKeyDown:wt,autoComplete:"off"});return React.createElement(Input,{ref:useMergedRef(a,Tt.store.searchRef),classNames:[{input:Rt.className},et],styles:[{input:Rt.style},nt],size:Mt||Tt.size,...kt,..._t,__staticSelector:"Combobox"})});ComboboxSearch.classes=classes$q;ComboboxSearch.displayName="@mantine/core/ComboboxSearch";const defaultProps$J={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},ComboboxTarget=factory((c,a)=>{const{children:d,refProp:et,withKeyboardNavigation:nt,withAriaAttributes:tt,withExpandedAttribute:bt,targetType:gt,autoComplete:wt,...St}=useProps("ComboboxTarget",defaultProps$J,c);if(!isElement$1(d))throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const Mt=useComboboxContext(),_t=useComboboxTargetProps({targetType:gt,withAriaAttributes:tt,withKeyboardNavigation:nt,withExpandedAttribute:bt,onKeyDown:d.props.onKeyDown,autoComplete:wt}),Tt=reactExports.cloneElement(d,{..._t,...St});return React.createElement(Popover.Target,{ref:useMergedRef(a,Mt.store.targetRef)},Tt)});ComboboxTarget.displayName="@mantine/core/ComboboxTarget";function getPreviousIndex(c,a,d){for(let et=c-1;et>=0;et-=1)if(!a[et].hasAttribute("data-combobox-disabled"))return et;if(d){for(let et=a.length-1;et>-1;et-=1)if(!a[et].hasAttribute("data-combobox-disabled"))return et}return c}function getNextIndex$1(c,a,d){for(let et=c+1;et{gt||(wt(!0),nt==null||nt(Et))},[wt,nt,gt]),Ot=reactExports.useCallback((Et="unknown")=>{gt&&(wt(!1),et==null||et(Et))},[wt,et,gt]),Nt=reactExports.useCallback((Et="unknown")=>{gt?Ot(Et):Lt(Et)},[Ot,Lt,gt]),Ft=reactExports.useCallback(()=>{const Et=document.querySelector(`#${St.current} [data-combobox-selected]`);Et==null||Et.removeAttribute("data-combobox-selected"),Et==null||Et.removeAttribute("aria-selected")},[]),jt=reactExports.useCallback(Et=>{const At=document.getElementById(St.current),Pt=At==null?void 0:At.querySelectorAll("[data-combobox-option]");if(!Pt)return null;const xt=Et>=Pt.length?0:Et<0?Pt.length-1:Et;return Mt.current=xt,Pt!=null&&Pt[xt]&&!Pt[xt].hasAttribute("data-combobox-disabled")?(Ft(),Pt[xt].setAttribute("data-combobox-selected","true"),Pt[xt].setAttribute("aria-selected","true"),Pt[xt].scrollIntoView({block:"nearest",behavior:bt}),Pt[xt].id):null},[bt,Ft]),Vt=reactExports.useCallback(()=>{const Et=document.querySelector(`#${St.current} [data-combobox-active]`);if(Et){const At=document.querySelectorAll(`#${St.current} [data-combobox-option]`),Pt=Array.from(At).findIndex(xt=>xt===Et);return jt(Pt)}return jt(0)},[jt]),Jt=reactExports.useCallback(()=>jt(getNextIndex$1(Mt.current,document.querySelectorAll(`#${St.current} [data-combobox-option]`),tt)),[jt,tt]),ir=reactExports.useCallback(()=>jt(getPreviousIndex(Mt.current,document.querySelectorAll(`#${St.current} [data-combobox-option]`),tt)),[jt,tt]),rr=reactExports.useCallback(()=>jt(getFirstIndex(document.querySelectorAll(`#${St.current} [data-combobox-option]`))),[jt]),er=reactExports.useCallback((Et="selected",At)=>{It.current=window.setTimeout(()=>{var ht;const Pt=document.querySelectorAll(`#${St.current} [data-combobox-option]`),xt=Array.from(Pt).findIndex($t=>$t.hasAttribute(`data-combobox-${Et}`));Mt.current=xt,At!=null&&At.scrollIntoView&&((ht=Pt[xt])==null||ht.scrollIntoView({block:"nearest",behavior:bt}))},0)},[]),lr=reactExports.useCallback(()=>{Mt.current=-1,Ft()},[Ft]),Ct=reactExports.useCallback(()=>{const Et=document.querySelectorAll(`#${St.current} [data-combobox-option]`),At=Et==null?void 0:Et[Mt.current];At==null||At.click()},[]),dt=reactExports.useCallback(Et=>{St.current=Et},[]),mt=reactExports.useCallback(()=>{Rt.current=window.setTimeout(()=>_t.current.focus(),0)},[]),yt=reactExports.useCallback(()=>{kt.current=window.setTimeout(()=>Tt.current.focus(),0)},[]),vt=reactExports.useCallback(()=>Mt.current,[]);return reactExports.useEffect(()=>()=>{window.clearTimeout(Rt.current),window.clearTimeout(kt.current),window.clearTimeout(It.current)},[]),{dropdownOpened:gt,openDropdown:Lt,closeDropdown:Ot,toggleDropdown:Nt,selectedOptionIndex:Mt.current,getSelectedOptionIndex:vt,selectOption:jt,selectFirstOption:rr,selectActiveOption:Vt,selectNextOption:Jt,selectPreviousOption:ir,resetSelectedOption:lr,updateSelectedOptionIndex:er,listId:St.current,setListId:dt,clickSelectedOption:Ct,searchRef:_t,focusSearchInput:mt,targetRef:Tt,focusTarget:yt}}const defaultProps$I={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0}},varsResolver$i=(c,{size:a,dropdownPadding:d})=>({options:{"--combobox-option-fz":getFontSize(a),"--combobox-option-padding":getSize(a,"combobox-option-padding")},dropdown:{"--combobox-padding":d===void 0?void 0:rem(d),"--combobox-option-fz":getFontSize(a),"--combobox-option-padding":getSize(a,"combobox-option-padding")}});function Combobox(c){const a=useProps("Combobox",defaultProps$I,c),{classNames:d,styles:et,unstyled:nt,children:tt,store:bt,vars:gt,onOptionSubmit:wt,onClose:St,size:Mt,dropdownPadding:_t,resetSelectionOnOptionHover:Tt,__staticSelector:Rt,readOnly:kt,...It}=a,Lt=useCombobox(),Ot=bt||Lt,Nt=useStyles({name:Rt||"Combobox",classes:classes$q,props:a,classNames:d,styles:et,unstyled:nt,vars:gt,varsResolver:varsResolver$i}),Ft=()=>{St==null||St(),Ot.closeDropdown()};return React.createElement(ComboboxProvider,{value:{getStyles:Nt,store:Ot,onOptionSubmit:wt,size:Mt,resetSelectionOnOptionHover:Tt,readOnly:kt}},React.createElement(Popover,{opened:Ot.dropdownOpened,...It,onClose:Ft,withRoles:!1,unstyled:nt},tt))}const extendCombobox=c=>c;Combobox.extend=extendCombobox;Combobox.classes=classes$q;Combobox.displayName="@mantine/core/Combobox";Combobox.Target=ComboboxTarget;Combobox.Dropdown=ComboboxDropdown;Combobox.Options=ComboboxOptions;Combobox.Option=ComboboxOption;Combobox.Search=ComboboxSearch;Combobox.Empty=ComboboxEmpty;Combobox.Chevron=ComboboxChevron;Combobox.Footer=ComboboxFooter;Combobox.Header=ComboboxHeader;Combobox.EventsTarget=ComboboxEventsTarget;Combobox.DropdownTarget=ComboboxDropdownTarget;Combobox.Group=ComboboxGroup;Combobox.ClearButton=ComboboxClearButton;Combobox.HiddenInput=ComboboxHiddenInput;function CheckIcon({size:c,style:a,...d}){const et=c!==void 0?{width:rem(c),height:rem(c),...a}:a;return React.createElement("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:et,"aria-hidden":!0,...d},React.createElement("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}const AvatarGroupContext=reactExports.createContext(null),AvatarGroupProvider=AvatarGroupContext.Provider;function useAvatarGroupContext(){return{withinGroup:!!reactExports.useContext(AvatarGroupContext)}}var classes$p={group:"m_11def92b",root:"m_f85678b6",image:"m_11f8ac07",placeholder:"m_104cd71f"};const defaultProps$H={},varsResolver$h=(c,{spacing:a})=>({group:{"--ag-spacing":getSpacing(a)}}),AvatarGroup=factory((c,a)=>{const d=useProps("AvatarGroup",defaultProps$H,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,spacing:St,...Mt}=d,_t=useStyles({name:"AvatarGroup",classes:classes$p,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$h,rootSelector:"group"});return React.createElement(AvatarGroupProvider,{value:!0},React.createElement(Box,{ref:a,..._t("group"),...Mt}))});AvatarGroup.classes=classes$p;AvatarGroup.displayName="@mantine/core/AvatarGroup";function AvatarPlaceholderIcon(c){return React.createElement("svg",{...c,"data-avatar-placeholder-icon":!0,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}const defaultProps$G={},varsResolver$g=(c,{size:a,radius:d,variant:et,gradient:nt,color:tt,autoContrast:bt})=>{const gt=c.variantColorResolver({color:tt||"gray",theme:c,gradient:nt,variant:et||"light",autoContrast:bt});return{root:{"--avatar-size":getSize(a,"avatar-size"),"--avatar-radius":d===void 0?void 0:getRadius(d),"--avatar-bg":tt||et?gt.background:void 0,"--avatar-color":tt||et?gt.color:void 0,"--avatar-bd":tt||et?gt.border:void 0}}},Avatar=polymorphicFactory((c,a)=>{const d=useProps("Avatar",defaultProps$G,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,src:St,alt:Mt,radius:_t,color:Tt,gradient:Rt,imageProps:kt,children:It,autoContrast:Lt,mod:Ot,...Nt}=d,Ft=useAvatarGroupContext(),[jt,Vt]=reactExports.useState(!St),Jt=useStyles({name:"Avatar",props:d,classes:classes$p,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$g});return reactExports.useEffect(()=>Vt(!St),[St]),React.createElement(Box,{...Jt("root"),mod:[{"within-group":Ft.withinGroup},Ot],ref:a,...Nt},jt?React.createElement("span",{...Jt("placeholder"),title:Mt},It||React.createElement(AvatarPlaceholderIcon,null)):React.createElement("img",{...kt,...Jt("image"),src:St,alt:Mt,onError:ir=>{var rr;Vt(!0),(rr=kt==null?void 0:kt.onError)==null||rr.call(kt,ir)}}))});Avatar.classes=classes$p;Avatar.displayName="@mantine/core/Avatar";Avatar.Group=AvatarGroup;var classes$o={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const defaultProps$F={},varsResolver$f=(c,{radius:a,color:d,gradient:et,variant:nt,size:tt,autoContrast:bt})=>{const gt=c.variantColorResolver({color:d||c.primaryColor,theme:c,gradient:et,variant:nt||"filled",autoContrast:bt});return{root:{"--badge-height":getSize(tt,"badge-height"),"--badge-padding-x":getSize(tt,"badge-padding-x"),"--badge-fz":getSize(tt,"badge-fz"),"--badge-radius":a===void 0?void 0:getRadius(a),"--badge-bg":d||nt?gt.background:void 0,"--badge-color":d||nt?gt.color:void 0,"--badge-bd":d||nt?gt.border:void 0,"--badge-dot-color":nt==="dot"?getThemeColor(d,c):void 0}}},Badge=polymorphicFactory((c,a)=>{const d=useProps("Badge",defaultProps$F,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,radius:St,color:Mt,gradient:_t,leftSection:Tt,rightSection:Rt,children:kt,variant:It,fullWidth:Lt,autoContrast:Ot,circle:Nt,mod:Ft,...jt}=d,Vt=useStyles({name:"Badge",props:d,classes:classes$o,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$f});return React.createElement(Box,{variant:It,mod:[{block:Lt,circle:Nt},Ft],...Vt("root",{variant:It}),ref:a,...jt},Tt&&React.createElement("span",{...Vt("section"),"data-position":"left"},Tt),React.createElement("span",{...Vt("label")},kt),Rt&&React.createElement("span",{...Vt("section"),"data-position":"right"},Rt))});Badge.classes=classes$o;Badge.displayName="@mantine/core/Badge";var classes$n={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844"};const defaultProps$E={orientation:"horizontal"},varsResolver$e=(c,{borderWidth:a})=>({group:{"--button-border-width":rem(a)}}),ButtonGroup=factory((c,a)=>{const d=useProps("ButtonGroup",defaultProps$E,c),{className:et,style:nt,classNames:tt,styles:bt,unstyled:gt,orientation:wt,vars:St,borderWidth:Mt,variant:_t,mod:Tt,...Rt}=useProps("ButtonGroup",defaultProps$E,c),kt=useStyles({name:"ButtonGroup",props:d,classes:classes$n,className:et,style:nt,classNames:tt,styles:bt,unstyled:gt,vars:St,varsResolver:varsResolver$e,rootSelector:"group"});return React.createElement(Box,{...kt("group"),ref:a,variant:_t,mod:[{"data-orientation":wt},Tt],role:"group",...Rt})});ButtonGroup.classes=classes$n;ButtonGroup.displayName="@mantine/core/ButtonGroup";const loaderTransition={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${rem(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},defaultProps$D={},varsResolver$d=(c,{radius:a,color:d,gradient:et,variant:nt,size:tt,justify:bt,autoContrast:gt})=>{const wt=c.variantColorResolver({color:d||c.primaryColor,theme:c,gradient:et,variant:nt||"filled",autoContrast:gt});return{root:{"--button-justify":bt,"--button-height":getSize(tt,"button-height"),"--button-padding-x":getSize(tt,"button-padding-x"),"--button-fz":tt!=null&&tt.includes("compact")?getFontSize(tt.replace("compact-","")):getFontSize(tt),"--button-radius":a===void 0?void 0:getRadius(a),"--button-bg":d||nt?wt.background:void 0,"--button-hover":d||nt?wt.hover:void 0,"--button-color":wt.color,"--button-bd":d||nt?wt.border:void 0,"--button-hover-color":d||nt?wt.hoverColor:void 0}}},Button=polymorphicFactory((c,a)=>{const d=useProps("Button",defaultProps$D,c),{style:et,vars:nt,className:tt,color:bt,disabled:gt,children:wt,leftSection:St,rightSection:Mt,fullWidth:_t,variant:Tt,radius:Rt,loading:kt,loaderProps:It,gradient:Lt,classNames:Ot,styles:Nt,unstyled:Ft,"data-disabled":jt,autoContrast:Vt,mod:Jt,...ir}=d,rr=useStyles({name:"Button",props:d,classes:classes$n,className:tt,style:et,classNames:Ot,styles:Nt,unstyled:Ft,vars:nt,varsResolver:varsResolver$d}),er=!!St,lr=!!Mt;return React.createElement(UnstyledButton,{ref:a,...rr("root",{active:!gt&&!kt&&!jt}),unstyled:Ft,variant:Tt,disabled:gt||kt,mod:[{disabled:gt||jt,loading:kt,block:_t,"with-left-section":er,"with-right-section":lr},Jt],...ir},React.createElement(Transition,{mounted:!!kt,transition:loaderTransition,duration:150},Ct=>React.createElement(Box,{component:"span",...rr("loader",{style:Ct}),"aria-hidden":!0},React.createElement(Loader,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...It}))),React.createElement("span",{...rr("inner")},St&&React.createElement(Box,{component:"span",...rr("section"),mod:{position:"left"}},St),React.createElement(Box,{component:"span",mod:{loading:kt},...rr("label")},wt),Mt&&React.createElement(Box,{component:"span",...rr("section"),mod:{position:"right"}},Mt)))});Button.classes=classes$n;Button.displayName="@mantine/core/Button";Button.Group=ButtonGroup;var classes$m={root:"m_e2125a27",closeButton:"m_5abab665"};const defaultProps$C={shadow:"md",p:"md",withBorder:!1,transitionProps:{transition:"pop-top-right",duration:200},position:{bottom:30,right:30}},varsResolver$c=(c,{size:a})=>({root:{"--dialog-size":getSize(a,"dialog-size")}}),Dialog=factory((c,a)=>{const d=useProps("Dialog",defaultProps$C,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,zIndex:St,position:Mt,keepMounted:_t,opened:Tt,transitionProps:Rt,withCloseButton:kt,withinPortal:It,children:Lt,onClose:Ot,portalProps:Nt,...Ft}=d,jt=useStyles({name:"Dialog",classes:classes$m,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$c});return React.createElement(Affix,{zIndex:St,position:Mt,ref:a,withinPortal:It,portalProps:Nt,unstyled:gt},React.createElement(Transition,{keepMounted:_t,mounted:Tt,...Rt},Vt=>React.createElement(Paper,{unstyled:gt,...jt("root",{style:Vt}),...Ft},kt&&React.createElement(CloseButton,{onClick:Ot,unstyled:gt,...jt("closeButton")}),Lt)))});Dialog.classes=classes$m;Dialog.displayName="@mantine/core/Dialog";var classes$l={root:"m_9e117634"};const defaultProps$B={},varsResolver$b=(c,{radius:a,fit:d})=>({root:{"--image-radius":a===void 0?void 0:getRadius(a),"--image-object-fit":d}}),Image$1=polymorphicFactory((c,a)=>{const d=useProps("Image",defaultProps$B,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,onError:St,src:Mt,radius:_t,fit:Tt,fallbackSrc:Rt,mod:kt,...It}=d,[Lt,Ot]=reactExports.useState(!Mt);reactExports.useEffect(()=>Ot(!Mt),[Mt]);const Nt=useStyles({name:"Image",classes:classes$l,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$b});return Lt&&Rt?React.createElement(Box,{component:"img",ref:a,src:Rt,...Nt("root"),onError:St,mod:["fallback",kt],...It}):React.createElement(Box,{component:"img",ref:a,...Nt("root"),src:Mt,onError:Ft=>{St==null||St(Ft),Ot(!0)},mod:kt,...It})});Image$1.classes=classes$l;Image$1.displayName="@mantine/core/Image";const[ModalProvider,useModalContext]=createSafeContext("Modal component was not found in tree");var classes$k={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const defaultProps$A={},ModalBody=factory((c,a)=>{const d=useProps("ModalBody",defaultProps$A,c),{classNames:et,className:nt,style:tt,styles:bt,vars:gt,...wt}=d,St=useModalContext();return React.createElement(ModalBaseBody,{ref:a,...St.getStyles("body",{classNames:et,style:tt,styles:bt,className:nt}),...wt})});ModalBody.classes=classes$k;ModalBody.displayName="@mantine/core/ModalBody";const defaultProps$z={},ModalCloseButton=factory((c,a)=>{const d=useProps("ModalCloseButton",defaultProps$z,c),{classNames:et,className:nt,style:tt,styles:bt,vars:gt,...wt}=d,St=useModalContext();return React.createElement(ModalBaseCloseButton,{ref:a,...St.getStyles("close",{classNames:et,style:tt,styles:bt,className:nt}),...wt})});ModalCloseButton.classes=classes$k;ModalCloseButton.displayName="@mantine/core/ModalCloseButton";const defaultProps$y={},ModalContent=factory((c,a)=>{const d=useProps("ModalContent",defaultProps$y,c),{classNames:et,className:nt,style:tt,styles:bt,vars:gt,children:wt,...St}=d,Mt=useModalContext(),_t=Mt.scrollAreaComponent||NativeScrollArea;return React.createElement(ModalBaseContent,{...Mt.getStyles("content",{className:nt,style:tt,styles:bt,classNames:et}),innerProps:Mt.getStyles("inner",{className:nt,style:tt,styles:bt,classNames:et}),"data-full-screen":Mt.fullScreen||void 0,"data-modal-content":!0,ref:a,...St},React.createElement(_t,{style:{maxHeight:Mt.fullScreen?"100dvh":`calc(100dvh - (${rem(Mt.yOffset)} * 2))`}},wt))});ModalContent.classes=classes$k;ModalContent.displayName="@mantine/core/ModalContent";const defaultProps$x={},ModalHeader=factory((c,a)=>{const d=useProps("ModalHeader",defaultProps$x,c),{classNames:et,className:nt,style:tt,styles:bt,vars:gt,...wt}=d,St=useModalContext();return React.createElement(ModalBaseHeader,{ref:a,...St.getStyles("header",{classNames:et,style:tt,styles:bt,className:nt}),...wt})});ModalHeader.classes=classes$k;ModalHeader.displayName="@mantine/core/ModalHeader";const defaultProps$w={},ModalOverlay=factory((c,a)=>{const d=useProps("ModalOverlay",defaultProps$w,c),{classNames:et,className:nt,style:tt,styles:bt,vars:gt,...wt}=d,St=useModalContext();return React.createElement(ModalBaseOverlay,{ref:a,...St.getStyles("overlay",{classNames:et,style:tt,styles:bt,className:nt}),...wt})});ModalOverlay.classes=classes$k;ModalOverlay.displayName="@mantine/core/ModalOverlay";const defaultProps$v={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:getDefaultZIndex("modal"),transitionProps:{duration:200,transition:"pop"},yOffset:"5dvh"},varsResolver$a=(c,{radius:a,size:d,yOffset:et,xOffset:nt})=>({root:{"--modal-radius":a===void 0?void 0:getRadius(a),"--modal-size":getSize(d,"modal-size"),"--modal-y-offset":rem(et),"--modal-x-offset":rem(nt)}}),ModalRoot=factory((c,a)=>{const d=useProps("ModalRoot",defaultProps$v,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,yOffset:St,scrollAreaComponent:Mt,radius:_t,fullScreen:Tt,centered:Rt,xOffset:kt,__staticSelector:It,...Lt}=d,Ot=useStyles({name:It,classes:classes$k,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$a});return React.createElement(ModalProvider,{value:{yOffset:St,scrollAreaComponent:Mt,getStyles:Ot,fullScreen:Tt}},React.createElement(ModalBase,{ref:a,...Ot("root"),"data-full-screen":Tt||void 0,"data-centered":Rt||void 0,unstyled:gt,...Lt}))});ModalRoot.classes=classes$k;ModalRoot.displayName="@mantine/core/ModalRoot";const defaultProps$u={},ModalTitle=factory((c,a)=>{const d=useProps("ModalTitle",defaultProps$u,c),{classNames:et,className:nt,style:tt,styles:bt,vars:gt,...wt}=d,St=useModalContext();return React.createElement(ModalBaseTitle,{ref:a,...St.getStyles("title",{classNames:et,style:tt,styles:bt,className:nt}),...wt})});ModalTitle.classes=classes$k;ModalTitle.displayName="@mantine/core/ModalTitle";const defaultProps$t={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:getDefaultZIndex("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},Modal=factory((c,a)=>{const{title:d,withOverlay:et,overlayProps:nt,withCloseButton:tt,closeButtonProps:bt,children:gt,radius:wt,...St}=useProps("Modal",defaultProps$t,c),Mt=!!d||tt;return React.createElement(ModalRoot,{ref:a,radius:wt,...St},et&&React.createElement(ModalOverlay,{...nt}),React.createElement(ModalContent,{radius:wt},Mt&&React.createElement(ModalHeader,null,d&&React.createElement(ModalTitle,null,d),tt&&React.createElement(ModalCloseButton,{...bt})),React.createElement(ModalBody,null,gt)))});Modal.classes=classes$k;Modal.displayName="@mantine/core/Modal";Modal.Root=ModalRoot;Modal.Overlay=ModalOverlay;Modal.Content=ModalContent;Modal.Body=ModalBody;Modal.Header=ModalHeader;Modal.Title=ModalTitle;Modal.CloseButton=ModalCloseButton;const[PillsInputProvider,usePillsInputContext]=createOptionalContext(),[PillGroupProvider,usePillGroupContext]=createOptionalContext();var classes$j={root:"m_7cda1cd6","root--default":"m_44da308b","root--contrast":"m_e3a01f8",label:"m_1e0e6180",remove:"m_ae386778",group:"m_1dcfd90b"};const defaultProps$s={},varsResolver$9=(c,{gap:a},{size:d})=>({group:{"--pg-gap":a!==void 0?getSize(a):getSize(d,"pg-gap")}}),PillGroup=factory((c,a)=>{const d=useProps("PillGroup",defaultProps$s,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,size:St,disabled:Mt,..._t}=d,Tt=usePillsInputContext(),Rt=(Tt==null?void 0:Tt.size)||St||void 0,kt=useStyles({name:"PillGroup",classes:classes$j,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$9,stylesCtx:{size:Rt},rootSelector:"group"});return React.createElement(PillGroupProvider,{value:{size:Rt,disabled:Mt}},React.createElement(Box,{ref:a,size:Rt,...kt("group"),..._t}))});PillGroup.classes=classes$j;PillGroup.displayName="@mantine/core/PillGroup";const defaultProps$r={variant:"default"},varsResolver$8=(c,{radius:a},{size:d})=>({root:{"--pill-fz":getSize(d,"pill-fz"),"--pill-height":getSize(d,"pill-height"),"--pill-radius":a===void 0?void 0:getRadius(a)}}),Pill=factory((c,a)=>{const d=useProps("Pill",defaultProps$r,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,variant:St,children:Mt,withRemoveButton:_t,onRemove:Tt,removeButtonProps:Rt,radius:kt,size:It,disabled:Lt,mod:Ot,...Nt}=d,Ft=usePillGroupContext(),jt=usePillsInputContext(),Vt=It||(Ft==null?void 0:Ft.size)||void 0,Jt=(jt==null?void 0:jt.variant)==="filled"?"contrast":St||"default",ir=useStyles({name:"Pill",classes:classes$j,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$8,stylesCtx:{size:Vt}});return React.createElement(Box,{component:"span",ref:a,variant:Jt,size:Vt,...ir("root",{variant:Jt}),mod:[{"with-remove":_t&&!Lt,disabled:Lt||(Ft==null?void 0:Ft.disabled)},Ot],...Nt},React.createElement("span",{...ir("label")},Mt),_t&&React.createElement(CloseButton,{variant:"transparent",radius:kt,tabIndex:-1,"aria-hidden":!0,unstyled:gt,...Rt,...ir("remove",{className:Rt==null?void 0:Rt.className,style:Rt==null?void 0:Rt.style}),onMouseDown:rr=>{var er;rr.preventDefault(),rr.stopPropagation(),(er=Rt==null?void 0:Rt.onMouseDown)==null||er.call(Rt,rr)},onClick:rr=>{var er;rr.stopPropagation(),Tt==null||Tt(),(er=Rt==null?void 0:Rt.onClick)==null||er.call(Rt,rr)}}))});Pill.classes=classes$j;Pill.displayName="@mantine/core/Pill";Pill.Group=PillGroup;var classes$i={field:"m_45c4369d"};const defaultProps$q={type:"visible"},PillsInputField=factory((c,a)=>{const d=useProps("PillsInputField",defaultProps$q,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,type:St,disabled:Mt,id:_t,pointer:Tt,mod:Rt,...kt}=d,It=usePillsInputContext(),Lt=useInputWrapperContext(),Ot=useStyles({name:"PillsInputField",classes:classes$i,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,rootSelector:"field"}),Nt=Mt||(It==null?void 0:It.disabled);return React.createElement(Box,{component:"input",ref:useMergedRef(a,It==null?void 0:It.fieldRef),"data-type":St,disabled:Nt,mod:[{disabled:Nt,pointer:Tt},Rt],...Ot("field"),...kt,id:(Lt==null?void 0:Lt.inputId)||_t,"aria-invalid":It==null?void 0:It.hasError,"aria-describedby":Lt==null?void 0:Lt.describedBy,type:"text",onMouseDown:Ft=>!Tt&&Ft.stopPropagation()})});PillsInputField.classes=classes$i;PillsInputField.displayName="@mantine/core/PillsInputField";const defaultProps$p={},PillsInput=factory((c,a)=>{const d=useProps("PillsInput",defaultProps$p,c),{children:et,onMouseDown:nt,onClick:tt,size:bt,disabled:gt,__staticSelector:wt,error:St,variant:Mt,..._t}=d,Tt=reactExports.useRef();return React.createElement(PillsInputProvider,{value:{fieldRef:Tt,size:bt,disabled:gt,hasError:!!St,variant:Mt}},React.createElement(InputBase,{size:bt,error:St,variant:Mt,component:"div",ref:a,onMouseDown:Rt=>{var kt;Rt.preventDefault(),nt==null||nt(Rt),(kt=Tt.current)==null||kt.focus()},onClick:Rt=>{var kt;Rt.preventDefault(),tt==null||tt(Rt),(kt=Tt.current)==null||kt.focus()},..._t,multiline:!0,disabled:gt,__staticSelector:wt||"PillsInput",withAria:!1},et))});PillsInput.displayName="@mantine/core/PillsInput";PillsInput.Field=PillsInputField;var classes$h={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const defaultProps$o={withCloseButton:!0},varsResolver$7=(c,{radius:a,color:d})=>({root:{"--notification-radius":a===void 0?void 0:getRadius(a),"--notification-color":d?getThemeColor(d,c):void 0}}),Notification=factory((c,a)=>{const d=useProps("Notification",defaultProps$o,c),{className:et,color:nt,radius:tt,loading:bt,withCloseButton:gt,withBorder:wt,title:St,icon:Mt,children:_t,onClose:Tt,closeButtonProps:Rt,classNames:kt,style:It,styles:Lt,unstyled:Ot,variant:Nt,vars:Ft,mod:jt,...Vt}=d,Jt=useStyles({name:"Notification",classes:classes$h,props:d,className:et,style:It,classNames:kt,styles:Lt,unstyled:Ot,vars:Ft,varsResolver:varsResolver$7});return React.createElement(Box,{...Jt("root"),mod:[{"data-with-icon":!!Mt||bt,"data-with-border":wt},jt],ref:a,variant:Nt,...Vt,role:"alert"},Mt&&!bt&&React.createElement("div",{...Jt("icon")},Mt),bt&&React.createElement(Loader,{size:28,color:nt,...Jt("loader")}),React.createElement("div",{...Jt("body")},St&&React.createElement("div",{...Jt("title")},St),React.createElement(Box,{...Jt("description"),mod:{"data-with-title":!!St}},_t)),gt&&React.createElement(CloseButton,{iconSize:16,color:"gray",...Rt,unstyled:Ot,onClick:Tt,...Jt("closeButton")}))});Notification.classes=classes$h;Notification.displayName="@mantine/core/Notification";var classes$g={root:"m_18320242","skeleton-fade":"m_299c329c"};const defaultProps$n={visible:!0,animate:!0},varsResolver$6=(c,{width:a,height:d,radius:et,circle:nt})=>({root:{"--skeleton-height":rem(d),"--skeleton-width":rem(nt?d:a),"--skeleton-radius":nt?"1000px":et===void 0?void 0:getRadius(et)}}),Skeleton=factory((c,a)=>{const d=useProps("Skeleton",defaultProps$n,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,width:St,height:Mt,circle:_t,visible:Tt,radius:Rt,animate:kt,mod:It,...Lt}=d,Ot=useStyles({name:"Skeleton",classes:classes$g,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$6});return React.createElement(Box,{ref:a,...Ot("root"),mod:[{visible:Tt,animate:kt},It],...Lt})});Skeleton.classes=classes$g;Skeleton.displayName="@mantine/core/Skeleton";var classes$f={root:"m_6d731127"};const defaultProps$m={gap:"md",align:"stretch",justify:"flex-start"},varsResolver$5=(c,{gap:a,align:d,justify:et})=>({root:{"--stack-gap":getSpacing(a),"--stack-align":d,"--stack-justify":et}}),Stack=factory((c,a)=>{const d=useProps("Stack",defaultProps$m,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,align:St,justify:Mt,gap:_t,variant:Tt,...Rt}=d,kt=useStyles({name:"Stack",props:d,classes:classes$f,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$5});return React.createElement(Box,{ref:a,...kt("root"),variant:Tt,...Rt})});Stack.classes=classes$f;Stack.displayName="@mantine/core/Stack";const[StepperProvider,useStepperContext]=createSafeContext("Stepper component was not found in tree"),StepperCompleted=()=>null;StepperCompleted.displayName="@mantine/core/StepperCompleted";var classes$e={root:"m_cbb4ea7e",steps:"m_aaf89d0b",separator:"m_2a371ac9",content:"m_78da155d",step:"m_cbb57068","step--horizontal":"m_f56b1e2c","step--vertical":"m_833edb7e",verticalSeparator:"m_6496b3f3",stepWrapper:"m_818e70b",stepIcon:"m_1959ad01",stepCompletedIcon:"m_a79331dc",stepBody:"m_1956aa2a",stepLabel:"m_12051f6c",stepDescription:"m_164eea74"};const getStepFragment=(c,a)=>typeof c=="function"?React.createElement(c,{step:a||0}):c,defaultProps$l={withIcon:!0,allowStepClick:!0,iconPosition:"left"},StepperStep=factory((c,a)=>{const{classNames:d,className:et,style:nt,styles:tt,vars:bt,step:gt,state:wt,color:St,icon:Mt,completedIcon:_t,progressIcon:Tt,label:Rt,description:kt,withIcon:It,iconSize:Lt,loading:Ot,allowStepClick:Nt,allowStepSelect:Ft,iconPosition:jt,orientation:Vt,mod:Jt,...ir}=useProps("StepperStep",defaultProps$l,c),rr=useStepperContext(),er=useMantineTheme(),lr={classNames:d,styles:tt},Ct=wt==="stepCompleted"?null:wt==="stepProgress"?Tt:Mt,dt={"data-progress":wt==="stepProgress"||void 0,"data-completed":wt==="stepCompleted"||void 0};return React.createElement(UnstyledButton,{...rr.getStyles("step",{className:et,style:nt,variant:rr.orientation,...lr}),mod:[{"icon-position":jt||rr.iconPosition,"allow-click":Nt},Jt],ref:a,...dt,...ir,__vars:{"--step-color":St?getThemeColor(St,er):void 0},tabIndex:Nt?0:-1},It&&React.createElement("span",{...rr.getStyles("stepWrapper",lr)},React.createElement("span",{...rr.getStyles("stepIcon",lr),...dt},React.createElement(Transition,{mounted:wt==="stepCompleted",transition:"pop",duration:200},mt=>React.createElement("span",{...rr.getStyles("stepCompletedIcon",{style:mt,...lr})},Ot?React.createElement(Loader,{color:"var(--mantine-color-white)",size:"calc(var(--stepper-icon-size) / 2)",...rr.getStyles("stepLoader",lr)}):getStepFragment(_t,gt)||React.createElement(CheckIcon,{size:"60%"}))),wt!=="stepCompleted"?Ot?React.createElement(Loader,{...rr.getStyles("stepLoader",lr),size:"calc(var(--stepper-icon-size) / 2)",color:St}):getStepFragment(Ct||Mt,gt):null),Vt==="vertical"&&React.createElement("span",{...rr.getStyles("verticalSeparator",lr),"data-active":wt==="stepCompleted"||void 0})),(Rt||kt)&&React.createElement("span",{...rr.getStyles("stepBody",lr),"data-orientation":rr.orientation,"data-icon-position":jt||rr.iconPosition},Rt&&React.createElement("span",{...rr.getStyles("stepLabel",lr)},getStepFragment(Rt,gt)),kt&&React.createElement("span",{...rr.getStyles("stepDescription",lr)},getStepFragment(kt,gt))))});StepperStep.classes=classes$e;StepperStep.displayName="@mantine/core/StepperStep";const defaultProps$k={orientation:"horizontal",iconPosition:"left",allowNextStepsSelect:!0,wrap:!0},varsResolver$4=(c,{color:a,iconSize:d,size:et,contentPadding:nt,radius:tt,autoContrast:bt})=>({root:{"--stepper-color":a?getThemeColor(a,c):void 0,"--stepper-icon-color":getAutoContrastValue(bt,c)?getContrastColor({color:a,theme:c}):void 0,"--stepper-icon-size":d===void 0?getSize(et,"stepper-icon-size"):rem(d),"--stepper-content-padding":getSpacing(nt),"--stepper-radius":tt===void 0?void 0:getRadius(tt),"--stepper-fz":getFontSize(et),"--stepper-spacing":getSpacing(et)}}),Stepper=factory((c,a)=>{var At,Pt,xt;const d=useProps("Stepper",defaultProps$k,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,children:St,onStepClick:Mt,active:_t,icon:Tt,completedIcon:Rt,progressIcon:kt,color:It,iconSize:Lt,contentPadding:Ot,orientation:Nt,iconPosition:Ft,size:jt,radius:Vt,allowNextStepsSelect:Jt,wrap:ir,...rr}=d,er=useStyles({name:"Stepper",classes:classes$e,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$4}),lr=reactExports.Children.toArray(St),Ct=lr.filter(ht=>ht.type!==StepperCompleted),dt=lr.find(ht=>ht.type===StepperCompleted),mt=Ct.reduce((ht,$t,Bt)=>{const Dt=_t===Bt?"stepProgress":_t>Bt?"stepCompleted":"stepInactive",tr=(()=>typeof Mt!="function"?!1:typeof $t.props.allowStepSelect=="boolean"?$t.props.allowStepSelect:Dt==="stepCompleted"||Jt)();return ht.push(reactExports.cloneElement($t,{icon:$t.props.icon||Tt||Bt+1,key:Bt,step:Bt,state:Dt,onClick:()=>tr&&(Mt==null?void 0:Mt(Bt)),allowStepClick:tr,completedIcon:$t.props.completedIcon||Rt,progressIcon:$t.props.progressIcon||kt,color:$t.props.color||It,iconSize:Lt,radius:Vt,iconPosition:$t.props.iconPosition||Ft,orientation:Nt,unstyled:gt})),Nt==="horizontal"&&Bt!==Ct.length-1&&ht.push(React.createElement("div",{...er("separator"),"data-active":Bt<_t||void 0,"data-orientation":Nt,key:`separator-${Bt}`})),ht},[]),yt=(Pt=(At=Ct[_t])==null?void 0:At.props)==null?void 0:Pt.children,vt=(xt=dt==null?void 0:dt.props)==null?void 0:xt.children,Et=_t>Ct.length-1?vt:yt;return React.createElement(StepperProvider,{value:{getStyles:er,orientation:Nt,iconPosition:Ft}},React.createElement(Box,{...er("root"),ref:a,size:jt,...rr},React.createElement(Box,{...er("steps"),mod:{orientation:Nt,"icon-position":Ft,wrap:ir&&Nt!=="vertical"}},mt),Et&&React.createElement("div",{...er("content")},Et)))});Stepper.classes=classes$e;Stepper.displayName="@mantine/core/Stepper";Stepper.Completed=StepperCompleted;Stepper.Step=StepperStep;const defaultProps$j={},TextInput=factory((c,a)=>{const d=useProps("TextInput",defaultProps$j,c);return React.createElement(InputBase,{component:"input",ref:a,...d,__staticSelector:"TextInput"})});TextInput.classes=InputBase.classes;TextInput.displayName="@mantine/core/TextInput";const createStoreImpl=c=>{let a;const d=new Set,et=(Mt,_t)=>{const Tt=typeof Mt=="function"?Mt(a):Mt;if(!Object.is(Tt,a)){const Rt=a;a=_t??(typeof Tt!="object"||Tt===null)?Tt:Object.assign({},a,Tt),d.forEach(kt=>kt(a,Rt))}},nt=()=>a,wt={setState:et,getState:nt,getInitialState:()=>St,subscribe:Mt=>(d.add(Mt),()=>d.delete(Mt)),destroy:()=>{d.clear()}},St=a=c(et,nt,wt);return wt},createStore=c=>c?createStoreImpl(c):createStoreImpl;var withSelector={exports:{}},withSelector_production_min={},shim={exports:{}},useSyncExternalStoreShim_production_min={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -101,8 +101,8 @@ Error generating stack: `+tt.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var h=reactExports,n$1=shimExports;function p(c,a){return c===a&&(c!==0||1/c===1/a)||c!==c&&a!==a}var q$1=typeof Object.is=="function"?Object.is:p,r$3=n$1.useSyncExternalStore,t$1=h.useRef,u=h.useEffect,v$1=h.useMemo,w$1=h.useDebugValue;withSelector_production_min.useSyncExternalStoreWithSelector=function(c,a,d,et,nt){var tt=t$1(null);if(tt.current===null){var bt={hasValue:!1,value:null};tt.current=bt}else bt=tt.current;tt=v$1(function(){function wt(Bt){if(!St){if(St=!0,Mt=Bt,Bt=et(Bt),nt!==void 0&&bt.hasValue){var kt=bt.value;if(nt(kt,Bt))return _t=kt}return _t=Bt}if(kt=_t,q$1(Mt,Bt))return kt;var It=et(Bt);return nt!==void 0&&nt(kt,It)?kt:(Mt=Bt,_t=It)}var St=!1,Mt,_t,Tt=d===void 0?null:d;return[function(){return wt(a())},Tt===null?void 0:function(){return wt(Tt())}]},[a,d,et,nt]);var gt=r$3(c,tt[0],tt[1]);return u(function(){bt.hasValue=!0,bt.value=gt},[gt]),w$1(gt),gt};withSelector.exports=withSelector_production_min;var withSelectorExports=withSelector.exports;const useSyncExternalStoreExports=getDefaultExportFromCjs(withSelectorExports),{useDebugValue}=React,{useSyncExternalStoreWithSelector}=useSyncExternalStoreExports;let didWarnAboutEqualityFn=!1;const identity=c=>c;function useStore(c,a=identity,d){const et=useSyncExternalStoreWithSelector(c.subscribe,c.getState,c.getServerState||c.getInitialState,a,d);return useDebugValue(et),et}const createImpl=c=>{const a=typeof c=="function"?createStore(c):c,d=(et,nt)=>useStore(a,et,nt);return Object.assign(d,a),d},create=c=>c?createImpl(c):createImpl;var react=c=>create(c);const useLinkStore=react(c=>({fetching:!1,accountDetails:{},authDetails:{},chainId:localStorage.getItem("chainId")?parseInt(localStorage.getItem("chainId")):8453,confirming:!1,confirmed:!1,claimDetails:{chainId:8453},wallet:{},setChainId:a=>{c(d=>({...d,chainId:a}))},setClaimDetails:a=>{c(d=>({...d,claimDetails:a}))},setWallet:a=>{c(d=>({...d,wallet:a}))},setConfirming:a=>{c(d=>({...d,confirming:a}))},setConfirmed:a=>{c(d=>({...d,confirmed:a}))},setFetching:a=>{c(d=>({...d,fetching:a}))},setAccountDetails:a=>c(d=>({accountDetails:a})),setAuthDetails:a=>c(d=>({authDetails:a}))}));var __assign=function(){return __assign=Object.assign||function(a){for(var d,et=1,nt=arguments.length;et0?charat(characters,--position):0,column--,character===10&&(column=1,line--),character}function next(){return character=position2||token(character)>3?"":" "}function escaping(c,a){for(;--a&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice$2(c,caret()+(a<6&&peek()==32&&next()==32))}function delimiter(c){for(;next();)switch(character){case c:return position;case 34:case 39:c!==34&&c!==39&&delimiter(character);break;case 40:c===41&&delimiter(c);break;case 92:next();break}return position}function commenter(c,a){for(;next()&&c+character!==47+10;)if(c+character===42+42&&peek()===47)break;return"/*"+slice$2(a,position-1)+"*"+from(c===47?c:next())}function identifier(c){for(;!token(peek());)next();return slice$2(c,position)}function compile(c){return dealloc(parse("",null,null,null,[""],c=alloc(c),0,[0],c))}function parse(c,a,d,et,nt,tt,bt,gt,wt){for(var St=0,Mt=0,_t=bt,Tt=0,Bt=0,kt=0,It=1,Lt=1,Ot=1,Nt=0,Ft="",zt=nt,Vt=tt,Jt=et,ir=Ft;Lt;)switch(kt=Nt,Nt=next()){case 40:if(kt!=108&&charat(ir,_t-1)==58){indexof(ir+=replace(delimit(Nt),"&","&\f"),"&\f",abs(St?gt[St-1]:0))!=-1&&(Ot=-1);break}case 34:case 39:case 91:ir+=delimit(Nt);break;case 9:case 10:case 13:case 32:ir+=whitespace(kt);break;case 92:ir+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),a,d,wt),wt);break;default:ir+="/"}break;case 123*It:gt[St++]=strlen(ir)*Ot;case 125*It:case 59:case 0:switch(Nt){case 0:case 125:Lt=0;case 59+Mt:Ot==-1&&(ir=replace(ir,/\f/g,"")),Bt>0&&strlen(ir)-_t&&append(Bt>32?declaration(ir+";",et,d,_t-1,wt):declaration(replace(ir," ","")+";",et,d,_t-2,wt),wt);break;case 59:ir+=";";default:if(append(Jt=ruleset(ir,a,d,St,Mt,nt,gt,Ft,zt=[],Vt=[],_t,tt),tt),Nt===123)if(Mt===0)parse(ir,a,Jt,Jt,zt,tt,_t,gt,Vt);else switch(Tt===99&&charat(ir,3)===110?100:Tt){case 100:case 108:case 109:case 115:parse(c,Jt,Jt,et&&append(ruleset(c,Jt,Jt,0,0,nt,gt,Ft,nt,zt=[],_t,Vt),Vt),nt,Vt,_t,gt,et?zt:Vt);break;default:parse(ir,Jt,Jt,Jt,[""],Vt,0,gt,Vt)}}St=Mt=Bt=0,It=Ot=1,Ft=ir="",_t=bt;break;case 58:_t=1+strlen(ir),Bt=kt;default:if(It<1){if(Nt==123)--It;else if(Nt==125&&It++==0&&prev()==125)continue}switch(ir+=from(Nt),Nt*It){case 38:Ot=Mt>0?1:(ir+="\f",-1);break;case 44:gt[St++]=(strlen(ir)-1)*Ot,Ot=1;break;case 64:peek()===45&&(ir+=delimit(next())),Tt=peek(),Mt=_t=strlen(Ft=ir+=identifier(caret())),Nt++;break;case 45:kt===45&&strlen(ir)==2&&(It=0)}}return tt}function ruleset(c,a,d,et,nt,tt,bt,gt,wt,St,Mt,_t){for(var Tt=nt-1,Bt=nt===0?tt:[""],kt=sizeof(Bt),It=0,Lt=0,Ot=0;It0?Bt[Nt]+" "+Ft:replace(Ft,/&\f/g,Bt[Nt])))&&(wt[Ot++]=zt);return node$1(c,a,d,nt===0?RULESET:gt,wt,St,Mt,_t)}function comment(c,a,d,et){return node$1(c,a,d,COMMENT,from(char()),substr(c,2,-2),0,et)}function declaration(c,a,d,et,nt){return node$1(c,a,d,DECLARATION,substr(c,0,et),substr(c,et+1,-1),et,nt)}function prefix(c,a,d){switch(hash$a(c,a)){case 5103:return WEBKIT+"print-"+c+c;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return WEBKIT+c+c;case 4789:return MOZ+c+c;case 5349:case 4246:case 4810:case 6968:case 2756:return WEBKIT+c+MOZ+c+MS+c+c;case 5936:switch(charat(c,a+11)){case 114:return WEBKIT+c+MS+replace(c,/[svh]\w+-[tblr]{2}/,"tb")+c;case 108:return WEBKIT+c+MS+replace(c,/[svh]\w+-[tblr]{2}/,"tb-rl")+c;case 45:return WEBKIT+c+MS+replace(c,/[svh]\w+-[tblr]{2}/,"lr")+c}case 6828:case 4268:case 2903:return WEBKIT+c+MS+c+c;case 6165:return WEBKIT+c+MS+"flex-"+c+c;case 5187:return WEBKIT+c+replace(c,/(\w+).+(:[^]+)/,WEBKIT+"box-$1$2"+MS+"flex-$1$2")+c;case 5443:return WEBKIT+c+MS+"flex-item-"+replace(c,/flex-|-self/g,"")+(match(c,/flex-|baseline/)?"":MS+"grid-row-"+replace(c,/flex-|-self/g,""))+c;case 4675:return WEBKIT+c+MS+"flex-line-pack"+replace(c,/align-content|flex-|-self/g,"")+c;case 5548:return WEBKIT+c+MS+replace(c,"shrink","negative")+c;case 5292:return WEBKIT+c+MS+replace(c,"basis","preferred-size")+c;case 6060:return WEBKIT+"box-"+replace(c,"-grow","")+WEBKIT+c+MS+replace(c,"grow","positive")+c;case 4554:return WEBKIT+replace(c,/([^-])(transform)/g,"$1"+WEBKIT+"$2")+c;case 6187:return replace(replace(replace(c,/(zoom-|grab)/,WEBKIT+"$1"),/(image-set)/,WEBKIT+"$1"),c,"")+c;case 5495:case 3959:return replace(c,/(image-set\([^]*)/,WEBKIT+"$1$`$1");case 4968:return replace(replace(c,/(.+:)(flex-)?(.*)/,WEBKIT+"box-pack:$3"+MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+WEBKIT+c+c;case 4200:if(!match(c,/flex-|baseline/))return MS+"grid-column-align"+substr(c,a)+c;break;case 2592:case 3360:return MS+replace(c,"template-","")+c;case 4384:case 3616:return d&&d.some(function(et,nt){return a=nt,match(et.props,/grid-\w+-end/)})?~indexof(c+(d=d[a].value),"span",0)?c:MS+replace(c,"-start","")+c+MS+"grid-row-span:"+(~indexof(d,"span",0)?match(d,/\d+/):+match(d,/\d+/)-+match(c,/\d+/))+";":MS+replace(c,"-start","")+c;case 4896:case 4128:return d&&d.some(function(et){return match(et.props,/grid-\w+-start/)})?c:MS+replace(replace(c,"-end","-span"),"span ","")+c;case 4095:case 3583:case 4068:case 2532:return replace(c,/(.+)-inline(.+)/,WEBKIT+"$1$2")+c;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(strlen(c)-1-a>6)switch(charat(c,a+1)){case 109:if(charat(c,a+4)!==45)break;case 102:return replace(c,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(c,a+3)==108?"$3":"$2-$3"))+c;case 115:return~indexof(c,"stretch",0)?prefix(replace(c,"stretch","fill-available"),a,d)+c:c}break;case 5152:case 5920:return replace(c,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(et,nt,tt,bt,gt,wt,St){return MS+nt+":"+tt+St+(bt?MS+nt+"-span:"+(gt?wt:+wt-+tt)+St:"")+c});case 4949:if(charat(c,a+6)===121)return replace(c,":",":"+WEBKIT)+c;break;case 6444:switch(charat(c,charat(c,14)===45?18:11)){case 120:return replace(c,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+WEBKIT+(charat(c,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+c;case 100:return replace(c,":",":"+MS)+c}break;case 5719:case 2647:case 2135:case 3927:case 2391:return replace(c,"scroll-","scroll-snap-")+c}return c}function serialize(c,a){for(var d="",et=0;et-1&&!c.return)switch(c.type){case DECLARATION:c.return=prefix(c.value,c.length,d);return;case KEYFRAMES:return serialize([copy$4(c,{value:replace(c.value,"@","@"+WEBKIT)})],et);case RULESET:if(c.length)return combine(d=c.props,function(nt){switch(match(nt,et=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":lift(copy$4(c,{props:[replace(nt,/:(read-\w+)/,":"+MOZ+"$1")]})),lift(copy$4(c,{props:[nt]})),assign(c,{props:filter(d,et)});break;case"::placeholder":lift(copy$4(c,{props:[replace(nt,/:(plac\w+)/,":"+WEBKIT+"input-$1")]})),lift(copy$4(c,{props:[replace(nt,/:(plac\w+)/,":"+MOZ+"$1")]})),lift(copy$4(c,{props:[replace(nt,/:(plac\w+)/,MS+"input-$1")]})),lift(copy$4(c,{props:[nt]})),assign(c,{props:filter(d,et)});break}return""})}}var unitlessKeys={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},f$1=typeof dist$2.process<"u"&&dist$2.process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",m="active",y="data-styled-version",v="6.1.11",g$2=`/*!sc*/ -`,S=typeof window<"u"&&"HTMLElement"in window,w=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof dist$2.process<"u"&&dist$2.process.env!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==""?{}.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&{}.REACT_APP_SC_DISABLE_SPEEDY:typeof dist$2.process<"u"&&dist$2.process.env!==void 0&&{}.SC_DISABLE_SPEEDY!==void 0&&{}.SC_DISABLE_SPEEDY!==""&&{}.SC_DISABLE_SPEEDY!=="false"&&{}.SC_DISABLE_SPEEDY),_=Object.freeze([]),C=Object.freeze({});function I(c,a,d){return d===void 0&&(d=C),c.theme!==d.theme&&c.theme||a||d.theme}var A=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),O=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,D=/(^-|-$)/g;function R$1(c){return c.replace(O,"-").replace(D,"")}var T=/(a)(d)/gi,k=52,j=function(c){return String.fromCharCode(c+(c>25?39:97))};function x(c){var a,d="";for(a=Math.abs(c);a>k;a=a/k|0)d=j(a%k)+d;return(j(a%k)+d).replace(T,"$1-$2")}var V,F=5381,M=function(c,a){for(var d=a.length;d;)c=33*c^a.charCodeAt(--d);return c},$=function(c){return M(F,c)};function z(c){return x($(c)>>>0)}function B(c){return c.displayName||c.name||"Component"}function L(c){return typeof c=="string"&&!0}var G$1=typeof Symbol=="function"&&Symbol.for,Y=G$1?Symbol.for("react.memo"):60115,W$6=G$1?Symbol.for("react.forward_ref"):60112,q={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},H={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},U={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},J=((V={})[W$6]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},V[Y]=U,V);function X(c){return("type"in(a=c)&&a.type.$$typeof)===Y?U:"$$typeof"in c?J[c.$$typeof]:q;var a}var Z=Object.defineProperty,K$5=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,ee=Object.getOwnPropertyDescriptor,te=Object.getPrototypeOf,ne=Object.prototype;function oe(c,a,d){if(typeof a!="string"){if(ne){var et=te(a);et&&et!==ne&&oe(c,et,d)}var nt=K$5(a);Q&&(nt=nt.concat(Q(a)));for(var tt=X(c),bt=X(a),gt=0;gt0?" Args: ".concat(a.join(", ")):""))}var fe=function(){function c(a){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=a}return c.prototype.indexOfGroup=function(a){for(var d=0,et=0;et=this.groupSizes.length){for(var et=this.groupSizes,nt=et.length,tt=nt;a>=tt;)if((tt<<=1)<0)throw he(16,"".concat(a));this.groupSizes=new Uint32Array(tt),this.groupSizes.set(et),this.length=tt;for(var bt=nt;bt=this.length||this.groupSizes[a]===0)return d;for(var et=this.groupSizes[a],nt=this.indexOfGroup(a),tt=nt+et,bt=nt;bt=0){var et=document.createTextNode(d);return this.element.insertBefore(et,this.nodes[a]||null),this.length++,!0}return!1},c.prototype.deleteRule=function(a){this.element.removeChild(this.nodes[a]),this.length--},c.prototype.getRule=function(a){return a0&&(Lt+="".concat(Ot,","))}),wt+="".concat(kt).concat(It,'{content:"').concat(Lt,'"}').concat(g$2)},Mt=0;Mt0?".".concat(a):Tt},Mt=wt.slice();Mt.push(function(Tt){Tt.type===RULESET&&Tt.value.includes("&")&&(Tt.props[0]=Tt.props[0].replace(ke,d).replace(et,St))}),bt.prefix&&Mt.push(prefixer),Mt.push(stringify$2);var _t=function(Tt,Bt,kt,It){Bt===void 0&&(Bt=""),kt===void 0&&(kt=""),It===void 0&&(It="&"),a=It,d=Bt,et=new RegExp("\\".concat(d,"\\b"),"g");var Lt=Tt.replace(je,""),Ot=compile(kt||Bt?"".concat(kt," ").concat(Bt," { ").concat(Lt," }"):Lt);bt.namespace&&(Ot=xe(Ot,bt.namespace));var Nt=[];return serialize(Ot,middleware(Mt.concat(rulesheet(function(Ft){return Nt.push(Ft)})))),Nt};return _t.hash=wt.length?wt.reduce(function(Tt,Bt){return Bt.name||he(15),M(Tt,Bt.name)},F).toString():"",_t}var Fe=new Te,Me=Ve(),$e=React.createContext({shouldForwardProp:void 0,styleSheet:Fe,stylis:Me});$e.Consumer;React.createContext(void 0);function Le(){return reactExports.useContext($e)}var Ye=function(){function c(a,d){var et=this;this.inject=function(nt,tt){tt===void 0&&(tt=Me);var bt=et.name+tt.hash;nt.hasNameForId(et.id,bt)||nt.insertRules(et.id,bt,tt(et.rules,bt,"@keyframes"))},this.name=a,this.id="sc-keyframes-".concat(a),this.rules=d,ue(this,function(){throw he(12,String(et.name))})}return c.prototype.getName=function(a){return a===void 0&&(a=Me),this.name+a.hash},c}(),We=function(c){return c>="A"&&c<="Z"};function qe(c){for(var a="",d=0;d>>0);if(!d.hasNameForId(this.componentId,bt)){var gt=et(tt,".".concat(bt),void 0,this.componentId);d.insertRules(this.componentId,bt,gt)}nt=ie(nt,bt),this.staticRulesId=bt}else{for(var wt=M(this.baseHash,et.hash),St="",Mt=0;Mt>>0);d.hasNameForId(this.componentId,Bt)||d.insertRules(this.componentId,Bt,et(St,".".concat(Bt),void 0,this.componentId)),nt=ie(nt,Bt)}}return nt},c}(),Qe=React.createContext(void 0);Qe.Consumer;var ot={},rt=new Set;function st(c,a,d){var et=se(c),nt=c,tt=!L(c),bt=a.attrs,gt=bt===void 0?_:bt,wt=a.componentId,St=wt===void 0?function(zt,Vt){var Jt=typeof zt!="string"?"sc":R$1(zt);ot[Jt]=(ot[Jt]||0)+1;var ir="".concat(Jt,"-").concat(z(v+Jt+ot[Jt]));return Vt?"".concat(Vt,"-").concat(ir):ir}(a.displayName,a.parentComponentId):wt,Mt=a.displayName,_t=Mt===void 0?function(zt){return L(zt)?"styled.".concat(zt):"Styled(".concat(B(zt),")")}(c):Mt,Tt=a.displayName&&a.componentId?"".concat(R$1(a.displayName),"-").concat(a.componentId):a.componentId||St,Bt=et&&nt.attrs?nt.attrs.concat(gt).filter(Boolean):gt,kt=a.shouldForwardProp;if(et&&nt.shouldForwardProp){var It=nt.shouldForwardProp;if(a.shouldForwardProp){var Lt=a.shouldForwardProp;kt=function(zt,Vt){return It(zt,Vt)&&Lt(zt,Vt)}}else kt=It}var Ot=new Ke(d,Tt,et?nt.componentStyle:void 0);function Nt(zt,Vt){return function(Jt,ir,rr){var er=Jt.attrs,lr=Jt.componentStyle,Ct=Jt.defaultProps,dt=Jt.foldedComponentIds,mt=Jt.styledComponentId,yt=Jt.target,vt=React.useContext(Qe),Et=Le(),At=Jt.shouldForwardProp||Et.shouldForwardProp,Pt=I(ir,vt,Ct)||C,xt=function(tr,Xt,Ut){for(var qt,Gt=__assign(__assign({},Xt),{className:void 0,theme:Ut}),Zt=0;Ztc;function useStore(c,a=identity,d){const et=useSyncExternalStoreWithSelector(c.subscribe,c.getState,c.getServerState||c.getInitialState,a,d);return useDebugValue(et),et}const createImpl=c=>{const a=typeof c=="function"?createStore(c):c,d=(et,nt)=>useStore(a,et,nt);return Object.assign(d,a),d},create=c=>c?createImpl(c):createImpl;var react=c=>create(c);const useLinkStore=react(c=>({fetching:!1,accountDetails:{},authDetails:{},chainId:localStorage.getItem("chainId")?parseInt(localStorage.getItem("chainId")):8453,confirming:!1,confirmed:!1,claimDetails:{chainId:8453},wallet:{},setChainId:a=>{c(d=>({...d,chainId:a}))},setClaimDetails:a=>{c(d=>({...d,claimDetails:a}))},setWallet:a=>{c(d=>({...d,wallet:a}))},setConfirming:a=>{c(d=>({...d,confirming:a}))},setConfirmed:a=>{c(d=>({...d,confirmed:a}))},setFetching:a=>{c(d=>({...d,fetching:a}))},setAccountDetails:a=>c(d=>({accountDetails:a})),setAuthDetails:a=>c(d=>({authDetails:a}))}));var __assign=function(){return __assign=Object.assign||function(a){for(var d,et=1,nt=arguments.length;et0?charat(characters,--position):0,column--,character===10&&(column=1,line--),character}function next(){return character=position2||token(character)>3?"":" "}function escaping(c,a){for(;--a&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice$2(c,caret()+(a<6&&peek()==32&&next()==32))}function delimiter(c){for(;next();)switch(character){case c:return position;case 34:case 39:c!==34&&c!==39&&delimiter(character);break;case 40:c===41&&delimiter(c);break;case 92:next();break}return position}function commenter(c,a){for(;next()&&c+character!==47+10;)if(c+character===42+42&&peek()===47)break;return"/*"+slice$2(a,position-1)+"*"+from(c===47?c:next())}function identifier(c){for(;!token(peek());)next();return slice$2(c,position)}function compile(c){return dealloc(parse("",null,null,null,[""],c=alloc(c),0,[0],c))}function parse(c,a,d,et,nt,tt,bt,gt,wt){for(var St=0,Mt=0,_t=bt,Tt=0,Rt=0,kt=0,It=1,Lt=1,Ot=1,Nt=0,Ft="",jt=nt,Vt=tt,Jt=et,ir=Ft;Lt;)switch(kt=Nt,Nt=next()){case 40:if(kt!=108&&charat(ir,_t-1)==58){indexof(ir+=replace(delimit(Nt),"&","&\f"),"&\f",abs(St?gt[St-1]:0))!=-1&&(Ot=-1);break}case 34:case 39:case 91:ir+=delimit(Nt);break;case 9:case 10:case 13:case 32:ir+=whitespace(kt);break;case 92:ir+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),a,d,wt),wt);break;default:ir+="/"}break;case 123*It:gt[St++]=strlen(ir)*Ot;case 125*It:case 59:case 0:switch(Nt){case 0:case 125:Lt=0;case 59+Mt:Ot==-1&&(ir=replace(ir,/\f/g,"")),Rt>0&&strlen(ir)-_t&&append(Rt>32?declaration(ir+";",et,d,_t-1,wt):declaration(replace(ir," ","")+";",et,d,_t-2,wt),wt);break;case 59:ir+=";";default:if(append(Jt=ruleset(ir,a,d,St,Mt,nt,gt,Ft,jt=[],Vt=[],_t,tt),tt),Nt===123)if(Mt===0)parse(ir,a,Jt,Jt,jt,tt,_t,gt,Vt);else switch(Tt===99&&charat(ir,3)===110?100:Tt){case 100:case 108:case 109:case 115:parse(c,Jt,Jt,et&&append(ruleset(c,Jt,Jt,0,0,nt,gt,Ft,nt,jt=[],_t,Vt),Vt),nt,Vt,_t,gt,et?jt:Vt);break;default:parse(ir,Jt,Jt,Jt,[""],Vt,0,gt,Vt)}}St=Mt=Rt=0,It=Ot=1,Ft=ir="",_t=bt;break;case 58:_t=1+strlen(ir),Rt=kt;default:if(It<1){if(Nt==123)--It;else if(Nt==125&&It++==0&&prev()==125)continue}switch(ir+=from(Nt),Nt*It){case 38:Ot=Mt>0?1:(ir+="\f",-1);break;case 44:gt[St++]=(strlen(ir)-1)*Ot,Ot=1;break;case 64:peek()===45&&(ir+=delimit(next())),Tt=peek(),Mt=_t=strlen(Ft=ir+=identifier(caret())),Nt++;break;case 45:kt===45&&strlen(ir)==2&&(It=0)}}return tt}function ruleset(c,a,d,et,nt,tt,bt,gt,wt,St,Mt,_t){for(var Tt=nt-1,Rt=nt===0?tt:[""],kt=sizeof(Rt),It=0,Lt=0,Ot=0;It0?Rt[Nt]+" "+Ft:replace(Ft,/&\f/g,Rt[Nt])))&&(wt[Ot++]=jt);return node$1(c,a,d,nt===0?RULESET:gt,wt,St,Mt,_t)}function comment(c,a,d,et){return node$1(c,a,d,COMMENT,from(char()),substr(c,2,-2),0,et)}function declaration(c,a,d,et,nt){return node$1(c,a,d,DECLARATION,substr(c,0,et),substr(c,et+1,-1),et,nt)}function prefix(c,a,d){switch(hash$a(c,a)){case 5103:return WEBKIT+"print-"+c+c;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return WEBKIT+c+c;case 4789:return MOZ+c+c;case 5349:case 4246:case 4810:case 6968:case 2756:return WEBKIT+c+MOZ+c+MS+c+c;case 5936:switch(charat(c,a+11)){case 114:return WEBKIT+c+MS+replace(c,/[svh]\w+-[tblr]{2}/,"tb")+c;case 108:return WEBKIT+c+MS+replace(c,/[svh]\w+-[tblr]{2}/,"tb-rl")+c;case 45:return WEBKIT+c+MS+replace(c,/[svh]\w+-[tblr]{2}/,"lr")+c}case 6828:case 4268:case 2903:return WEBKIT+c+MS+c+c;case 6165:return WEBKIT+c+MS+"flex-"+c+c;case 5187:return WEBKIT+c+replace(c,/(\w+).+(:[^]+)/,WEBKIT+"box-$1$2"+MS+"flex-$1$2")+c;case 5443:return WEBKIT+c+MS+"flex-item-"+replace(c,/flex-|-self/g,"")+(match(c,/flex-|baseline/)?"":MS+"grid-row-"+replace(c,/flex-|-self/g,""))+c;case 4675:return WEBKIT+c+MS+"flex-line-pack"+replace(c,/align-content|flex-|-self/g,"")+c;case 5548:return WEBKIT+c+MS+replace(c,"shrink","negative")+c;case 5292:return WEBKIT+c+MS+replace(c,"basis","preferred-size")+c;case 6060:return WEBKIT+"box-"+replace(c,"-grow","")+WEBKIT+c+MS+replace(c,"grow","positive")+c;case 4554:return WEBKIT+replace(c,/([^-])(transform)/g,"$1"+WEBKIT+"$2")+c;case 6187:return replace(replace(replace(c,/(zoom-|grab)/,WEBKIT+"$1"),/(image-set)/,WEBKIT+"$1"),c,"")+c;case 5495:case 3959:return replace(c,/(image-set\([^]*)/,WEBKIT+"$1$`$1");case 4968:return replace(replace(c,/(.+:)(flex-)?(.*)/,WEBKIT+"box-pack:$3"+MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+WEBKIT+c+c;case 4200:if(!match(c,/flex-|baseline/))return MS+"grid-column-align"+substr(c,a)+c;break;case 2592:case 3360:return MS+replace(c,"template-","")+c;case 4384:case 3616:return d&&d.some(function(et,nt){return a=nt,match(et.props,/grid-\w+-end/)})?~indexof(c+(d=d[a].value),"span",0)?c:MS+replace(c,"-start","")+c+MS+"grid-row-span:"+(~indexof(d,"span",0)?match(d,/\d+/):+match(d,/\d+/)-+match(c,/\d+/))+";":MS+replace(c,"-start","")+c;case 4896:case 4128:return d&&d.some(function(et){return match(et.props,/grid-\w+-start/)})?c:MS+replace(replace(c,"-end","-span"),"span ","")+c;case 4095:case 3583:case 4068:case 2532:return replace(c,/(.+)-inline(.+)/,WEBKIT+"$1$2")+c;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(strlen(c)-1-a>6)switch(charat(c,a+1)){case 109:if(charat(c,a+4)!==45)break;case 102:return replace(c,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(c,a+3)==108?"$3":"$2-$3"))+c;case 115:return~indexof(c,"stretch",0)?prefix(replace(c,"stretch","fill-available"),a,d)+c:c}break;case 5152:case 5920:return replace(c,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(et,nt,tt,bt,gt,wt,St){return MS+nt+":"+tt+St+(bt?MS+nt+"-span:"+(gt?wt:+wt-+tt)+St:"")+c});case 4949:if(charat(c,a+6)===121)return replace(c,":",":"+WEBKIT)+c;break;case 6444:switch(charat(c,charat(c,14)===45?18:11)){case 120:return replace(c,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+WEBKIT+(charat(c,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+c;case 100:return replace(c,":",":"+MS)+c}break;case 5719:case 2647:case 2135:case 3927:case 2391:return replace(c,"scroll-","scroll-snap-")+c}return c}function serialize(c,a){for(var d="",et=0;et-1&&!c.return)switch(c.type){case DECLARATION:c.return=prefix(c.value,c.length,d);return;case KEYFRAMES:return serialize([copy$4(c,{value:replace(c.value,"@","@"+WEBKIT)})],et);case RULESET:if(c.length)return combine(d=c.props,function(nt){switch(match(nt,et=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":lift(copy$4(c,{props:[replace(nt,/:(read-\w+)/,":"+MOZ+"$1")]})),lift(copy$4(c,{props:[nt]})),assign(c,{props:filter(d,et)});break;case"::placeholder":lift(copy$4(c,{props:[replace(nt,/:(plac\w+)/,":"+WEBKIT+"input-$1")]})),lift(copy$4(c,{props:[replace(nt,/:(plac\w+)/,":"+MOZ+"$1")]})),lift(copy$4(c,{props:[replace(nt,/:(plac\w+)/,MS+"input-$1")]})),lift(copy$4(c,{props:[nt]})),assign(c,{props:filter(d,et)});break}return""})}}var unitlessKeys={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},f$1=typeof dist$2.process<"u"&&dist$2.process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",m="active",y="data-styled-version",v="6.1.11",g$2=`/*!sc*/ +`,S=typeof window<"u"&&"HTMLElement"in window,w=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof dist$2.process<"u"&&dist$2.process.env!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==""?{}.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&{}.REACT_APP_SC_DISABLE_SPEEDY:typeof dist$2.process<"u"&&dist$2.process.env!==void 0&&{}.SC_DISABLE_SPEEDY!==void 0&&{}.SC_DISABLE_SPEEDY!==""&&{}.SC_DISABLE_SPEEDY!=="false"&&{}.SC_DISABLE_SPEEDY),_=Object.freeze([]),C=Object.freeze({});function I(c,a,d){return d===void 0&&(d=C),c.theme!==d.theme&&c.theme||a||d.theme}var A=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),O=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,D=/(^-|-$)/g;function R$1(c){return c.replace(O,"-").replace(D,"")}var T=/(a)(d)/gi,k=52,j=function(c){return String.fromCharCode(c+(c>25?39:97))};function x(c){var a,d="";for(a=Math.abs(c);a>k;a=a/k|0)d=j(a%k)+d;return(j(a%k)+d).replace(T,"$1-$2")}var V,F=5381,M=function(c,a){for(var d=a.length;d;)c=33*c^a.charCodeAt(--d);return c},$=function(c){return M(F,c)};function z(c){return x($(c)>>>0)}function B(c){return c.displayName||c.name||"Component"}function L(c){return typeof c=="string"&&!0}var G$1=typeof Symbol=="function"&&Symbol.for,Y=G$1?Symbol.for("react.memo"):60115,W$6=G$1?Symbol.for("react.forward_ref"):60112,q={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},H={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},U={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},J=((V={})[W$6]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},V[Y]=U,V);function X(c){return("type"in(a=c)&&a.type.$$typeof)===Y?U:"$$typeof"in c?J[c.$$typeof]:q;var a}var Z=Object.defineProperty,K$5=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,ee=Object.getOwnPropertyDescriptor,te=Object.getPrototypeOf,ne=Object.prototype;function oe(c,a,d){if(typeof a!="string"){if(ne){var et=te(a);et&&et!==ne&&oe(c,et,d)}var nt=K$5(a);Q&&(nt=nt.concat(Q(a)));for(var tt=X(c),bt=X(a),gt=0;gt0?" Args: ".concat(a.join(", ")):""))}var fe=function(){function c(a){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=a}return c.prototype.indexOfGroup=function(a){for(var d=0,et=0;et=this.groupSizes.length){for(var et=this.groupSizes,nt=et.length,tt=nt;a>=tt;)if((tt<<=1)<0)throw he(16,"".concat(a));this.groupSizes=new Uint32Array(tt),this.groupSizes.set(et),this.length=tt;for(var bt=nt;bt=this.length||this.groupSizes[a]===0)return d;for(var et=this.groupSizes[a],nt=this.indexOfGroup(a),tt=nt+et,bt=nt;bt=0){var et=document.createTextNode(d);return this.element.insertBefore(et,this.nodes[a]||null),this.length++,!0}return!1},c.prototype.deleteRule=function(a){this.element.removeChild(this.nodes[a]),this.length--},c.prototype.getRule=function(a){return a0&&(Lt+="".concat(Ot,","))}),wt+="".concat(kt).concat(It,'{content:"').concat(Lt,'"}').concat(g$2)},Mt=0;Mt0?".".concat(a):Tt},Mt=wt.slice();Mt.push(function(Tt){Tt.type===RULESET&&Tt.value.includes("&")&&(Tt.props[0]=Tt.props[0].replace(ke,d).replace(et,St))}),bt.prefix&&Mt.push(prefixer),Mt.push(stringify$2);var _t=function(Tt,Rt,kt,It){Rt===void 0&&(Rt=""),kt===void 0&&(kt=""),It===void 0&&(It="&"),a=It,d=Rt,et=new RegExp("\\".concat(d,"\\b"),"g");var Lt=Tt.replace(je,""),Ot=compile(kt||Rt?"".concat(kt," ").concat(Rt," { ").concat(Lt," }"):Lt);bt.namespace&&(Ot=xe(Ot,bt.namespace));var Nt=[];return serialize(Ot,middleware(Mt.concat(rulesheet(function(Ft){return Nt.push(Ft)})))),Nt};return _t.hash=wt.length?wt.reduce(function(Tt,Rt){return Rt.name||he(15),M(Tt,Rt.name)},F).toString():"",_t}var Fe=new Te,Me=Ve(),$e=React.createContext({shouldForwardProp:void 0,styleSheet:Fe,stylis:Me});$e.Consumer;React.createContext(void 0);function Le(){return reactExports.useContext($e)}var Ye=function(){function c(a,d){var et=this;this.inject=function(nt,tt){tt===void 0&&(tt=Me);var bt=et.name+tt.hash;nt.hasNameForId(et.id,bt)||nt.insertRules(et.id,bt,tt(et.rules,bt,"@keyframes"))},this.name=a,this.id="sc-keyframes-".concat(a),this.rules=d,ue(this,function(){throw he(12,String(et.name))})}return c.prototype.getName=function(a){return a===void 0&&(a=Me),this.name+a.hash},c}(),We=function(c){return c>="A"&&c<="Z"};function qe(c){for(var a="",d=0;d>>0);if(!d.hasNameForId(this.componentId,bt)){var gt=et(tt,".".concat(bt),void 0,this.componentId);d.insertRules(this.componentId,bt,gt)}nt=ie(nt,bt),this.staticRulesId=bt}else{for(var wt=M(this.baseHash,et.hash),St="",Mt=0;Mt>>0);d.hasNameForId(this.componentId,Rt)||d.insertRules(this.componentId,Rt,et(St,".".concat(Rt),void 0,this.componentId)),nt=ie(nt,Rt)}}return nt},c}(),Qe=React.createContext(void 0);Qe.Consumer;var ot={},rt=new Set;function st(c,a,d){var et=se(c),nt=c,tt=!L(c),bt=a.attrs,gt=bt===void 0?_:bt,wt=a.componentId,St=wt===void 0?function(jt,Vt){var Jt=typeof jt!="string"?"sc":R$1(jt);ot[Jt]=(ot[Jt]||0)+1;var ir="".concat(Jt,"-").concat(z(v+Jt+ot[Jt]));return Vt?"".concat(Vt,"-").concat(ir):ir}(a.displayName,a.parentComponentId):wt,Mt=a.displayName,_t=Mt===void 0?function(jt){return L(jt)?"styled.".concat(jt):"Styled(".concat(B(jt),")")}(c):Mt,Tt=a.displayName&&a.componentId?"".concat(R$1(a.displayName),"-").concat(a.componentId):a.componentId||St,Rt=et&&nt.attrs?nt.attrs.concat(gt).filter(Boolean):gt,kt=a.shouldForwardProp;if(et&&nt.shouldForwardProp){var It=nt.shouldForwardProp;if(a.shouldForwardProp){var Lt=a.shouldForwardProp;kt=function(jt,Vt){return It(jt,Vt)&&Lt(jt,Vt)}}else kt=It}var Ot=new Ke(d,Tt,et?nt.componentStyle:void 0);function Nt(jt,Vt){return function(Jt,ir,rr){var er=Jt.attrs,lr=Jt.componentStyle,Ct=Jt.defaultProps,dt=Jt.foldedComponentIds,mt=Jt.styledComponentId,yt=Jt.target,vt=React.useContext(Qe),Et=Le(),At=Jt.shouldForwardProp||Et.shouldForwardProp,Pt=I(ir,vt,Ct)||C,xt=function(tr,Xt,Ut){for(var qt,Gt=__assign(__assign({},Xt),{className:void 0,theme:Ut}),Zt=0;Zt"u")throw new Error(a)}function warning(c,a){if(!c){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function createKey(){return Math.random().toString(36).substr(2,8)}function getHistoryState(c,a){return{usr:c.state,key:c.key,idx:a}}function createLocation(c,a,d,et){return d===void 0&&(d=null),_extends$1({pathname:typeof c=="string"?c:c.pathname,search:"",hash:""},typeof a=="string"?parsePath(a):a,{state:d,key:a&&a.key||et||createKey()})}function createPath(c){let{pathname:a="/",search:d="",hash:et=""}=c;return d&&d!=="?"&&(a+=d.charAt(0)==="?"?d:"?"+d),et&&et!=="#"&&(a+=et.charAt(0)==="#"?et:"#"+et),a}function parsePath(c){let a={};if(c){let d=c.indexOf("#");d>=0&&(a.hash=c.substr(d),c=c.substr(0,d));let et=c.indexOf("?");et>=0&&(a.search=c.substr(et),c=c.substr(0,et)),c&&(a.pathname=c)}return a}function getUrlBasedHistory(c,a,d,et){et===void 0&&(et={});let{window:nt=document.defaultView,v5Compat:tt=!1}=et,bt=nt.history,gt=Action.Pop,wt=null,St=Mt();St==null&&(St=0,bt.replaceState(_extends$1({},bt.state,{idx:St}),""));function Mt(){return(bt.state||{idx:null}).idx}function _t(){gt=Action.Pop;let Lt=Mt(),Ot=Lt==null?null:Lt-St;St=Lt,wt&&wt({action:gt,location:It.location,delta:Ot})}function Tt(Lt,Ot){gt=Action.Push;let Nt=createLocation(It.location,Lt,Ot);d&&d(Nt,Lt),St=Mt()+1;let Ft=getHistoryState(Nt,St),zt=It.createHref(Nt);try{bt.pushState(Ft,"",zt)}catch(Vt){if(Vt instanceof DOMException&&Vt.name==="DataCloneError")throw Vt;nt.location.assign(zt)}tt&&wt&&wt({action:gt,location:It.location,delta:1})}function Bt(Lt,Ot){gt=Action.Replace;let Nt=createLocation(It.location,Lt,Ot);d&&d(Nt,Lt),St=Mt();let Ft=getHistoryState(Nt,St),zt=It.createHref(Nt);bt.replaceState(Ft,"",zt),tt&&wt&&wt({action:gt,location:It.location,delta:0})}function kt(Lt){let Ot=nt.location.origin!=="null"?nt.location.origin:nt.location.href,Nt=typeof Lt=="string"?Lt:createPath(Lt);return Nt=Nt.replace(/ $/,"%20"),invariant(Ot,"No window.location.(origin|href) available to create URL for href: "+Nt),new URL(Nt,Ot)}let It={get action(){return gt},get location(){return c(nt,bt)},listen(Lt){if(wt)throw new Error("A history only accepts one active listener");return nt.addEventListener(PopStateEventType,_t),wt=Lt,()=>{nt.removeEventListener(PopStateEventType,_t),wt=null}},createHref(Lt){return a(nt,Lt)},createURL:kt,encodeLocation(Lt){let Ot=kt(Lt);return{pathname:Ot.pathname,search:Ot.search,hash:Ot.hash}},push:Tt,replace:Bt,go(Lt){return bt.go(Lt)}};return It}var ResultType;(function(c){c.data="data",c.deferred="deferred",c.redirect="redirect",c.error="error"})(ResultType||(ResultType={}));function matchRoutes(c,a,d){d===void 0&&(d="/");let et=typeof a=="string"?parsePath(a):a,nt=stripBasename(et.pathname||"/",d);if(nt==null)return null;let tt=flattenRoutes(c);rankRouteBranches(tt);let bt=null;for(let gt=0;bt==null&>{let wt={relativePath:gt===void 0?tt.path||"":gt,caseSensitive:tt.caseSensitive===!0,childrenIndex:bt,route:tt};wt.relativePath.startsWith("/")&&(invariant(wt.relativePath.startsWith(et),'Absolute route path "'+wt.relativePath+'" nested under path '+('"'+et+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),wt.relativePath=wt.relativePath.slice(et.length));let St=joinPaths([et,wt.relativePath]),Mt=d.concat(wt);tt.children&&tt.children.length>0&&(invariant(tt.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+St+'".')),flattenRoutes(tt.children,a,Mt,St)),!(tt.path==null&&!tt.index)&&a.push({path:St,score:computeScore(St,tt.index),routesMeta:Mt})};return c.forEach((tt,bt)=>{var gt;if(tt.path===""||!((gt=tt.path)!=null&>.includes("?")))nt(tt,bt);else for(let wt of explodeOptionalSegments(tt.path))nt(tt,bt,wt)}),a}function explodeOptionalSegments(c){let a=c.split("/");if(a.length===0)return[];let[d,...et]=a,nt=d.endsWith("?"),tt=d.replace(/\?$/,"");if(et.length===0)return nt?[tt,""]:[tt];let bt=explodeOptionalSegments(et.join("/")),gt=[];return gt.push(...bt.map(wt=>wt===""?tt:[tt,wt].join("/"))),nt&>.push(...bt),gt.map(wt=>c.startsWith("/")&&wt===""?"/":wt)}function rankRouteBranches(c){c.sort((a,d)=>a.score!==d.score?d.score-a.score:compareIndexes(a.routesMeta.map(et=>et.childrenIndex),d.routesMeta.map(et=>et.childrenIndex)))}const paramRe=/^:[\w-]+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=c=>c==="*";function computeScore(c,a){let d=c.split("/"),et=d.length;return d.some(isSplat)&&(et+=splatPenalty),a&&(et+=indexRouteValue),d.filter(nt=>!isSplat(nt)).reduce((nt,tt)=>nt+(paramRe.test(tt)?dynamicSegmentValue:tt===""?emptySegmentValue:staticSegmentValue),et)}function compareIndexes(c,a){return c.length===a.length&&c.slice(0,-1).every((et,nt)=>et===a[nt])?c[c.length-1]-a[a.length-1]:0}function matchRouteBranch(c,a){let{routesMeta:d}=c,et={},nt="/",tt=[];for(let bt=0;bt{let{paramName:Tt,isOptional:Bt}=Mt;if(Tt==="*"){let It=gt[_t]||"";bt=tt.slice(0,tt.length-It.length).replace(/(.)\/+$/,"$1")}const kt=gt[_t];return Bt&&!kt?St[Tt]=void 0:St[Tt]=(kt||"").replace(/%2F/g,"/"),St},{}),pathname:tt,pathnameBase:bt,pattern:c}}function compilePath(c,a,d){a===void 0&&(a=!1),d===void 0&&(d=!0),warning(c==="*"||!c.endsWith("*")||c.endsWith("/*"),'Route path "'+c+'" will be treated as if it were '+('"'+c.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+c.replace(/\*$/,"/*")+'".'));let et=[],nt="^"+c.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(bt,gt,wt)=>(et.push({paramName:gt,isOptional:wt!=null}),wt?"/?([^\\/]+)?":"/([^\\/]+)"));return c.endsWith("*")?(et.push({paramName:"*"}),nt+=c==="*"||c==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):d?nt+="\\/*$":c!==""&&c!=="/"&&(nt+="(?:(?=\\/|$))"),[new RegExp(nt,a?void 0:"i"),et]}function decodePath(c){try{return c.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return warning(!1,'The URL path "'+c+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+a+").")),c}}function stripBasename(c,a){if(a==="/")return c;if(!c.toLowerCase().startsWith(a.toLowerCase()))return null;let d=a.endsWith("/")?a.length-1:a.length,et=c.charAt(d);return et&&et!=="/"?null:c.slice(d)||"/"}function resolvePath(c,a){a===void 0&&(a="/");let{pathname:d,search:et="",hash:nt=""}=typeof c=="string"?parsePath(c):c;return{pathname:d?d.startsWith("/")?d:resolvePathname(d,a):a,search:normalizeSearch(et),hash:normalizeHash(nt)}}function resolvePathname(c,a){let d=a.replace(/\/+$/,"").split("/");return c.split("/").forEach(nt=>{nt===".."?d.length>1&&d.pop():nt!=="."&&d.push(nt)}),d.length>1?d.join("/"):"/"}function getInvalidPathError(c,a,d,et){return"Cannot include a '"+c+"' character in a manually specified "+("`to."+a+"` field ["+JSON.stringify(et)+"]. Please separate it out to the ")+("`to."+d+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function getPathContributingMatches(c){return c.filter((a,d)=>d===0||a.route.path&&a.route.path.length>0)}function getResolveToMatches(c,a){let d=getPathContributingMatches(c);return a?d.map((et,nt)=>nt===c.length-1?et.pathname:et.pathnameBase):d.map(et=>et.pathnameBase)}function resolveTo(c,a,d,et){et===void 0&&(et=!1);let nt;typeof c=="string"?nt=parsePath(c):(nt=_extends$1({},c),invariant(!nt.pathname||!nt.pathname.includes("?"),getInvalidPathError("?","pathname","search",nt)),invariant(!nt.pathname||!nt.pathname.includes("#"),getInvalidPathError("#","pathname","hash",nt)),invariant(!nt.search||!nt.search.includes("#"),getInvalidPathError("#","search","hash",nt)));let tt=c===""||nt.pathname==="",bt=tt?"/":nt.pathname,gt;if(bt==null)gt=d;else{let _t=a.length-1;if(!et&&bt.startsWith("..")){let Tt=bt.split("/");for(;Tt[0]==="..";)Tt.shift(),_t-=1;nt.pathname=Tt.join("/")}gt=_t>=0?a[_t]:"/"}let wt=resolvePath(nt,gt),St=bt&&bt!=="/"&&bt.endsWith("/"),Mt=(tt||bt===".")&&d.endsWith("/");return!wt.pathname.endsWith("/")&&(St||Mt)&&(wt.pathname+="/"),wt}const joinPaths=c=>c.join("/").replace(/\/\/+/g,"/"),normalizePathname=c=>c.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=c=>!c||c==="?"?"":c.startsWith("?")?c:"?"+c,normalizeHash=c=>!c||c==="#"?"":c.startsWith("#")?c:"#"+c;function isRouteErrorResponse(c){return c!=null&&typeof c.status=="number"&&typeof c.statusText=="string"&&typeof c.internal=="boolean"&&"data"in c}const validMutationMethodsArr=["post","put","patch","delete"];new Set(validMutationMethodsArr);const validRequestMethodsArr=["get",...validMutationMethodsArr];new Set(validRequestMethodsArr);/** + */function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(c){for(var a=1;a"u")throw new Error(a)}function warning(c,a){if(!c){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function createKey(){return Math.random().toString(36).substr(2,8)}function getHistoryState(c,a){return{usr:c.state,key:c.key,idx:a}}function createLocation(c,a,d,et){return d===void 0&&(d=null),_extends$1({pathname:typeof c=="string"?c:c.pathname,search:"",hash:""},typeof a=="string"?parsePath(a):a,{state:d,key:a&&a.key||et||createKey()})}function createPath(c){let{pathname:a="/",search:d="",hash:et=""}=c;return d&&d!=="?"&&(a+=d.charAt(0)==="?"?d:"?"+d),et&&et!=="#"&&(a+=et.charAt(0)==="#"?et:"#"+et),a}function parsePath(c){let a={};if(c){let d=c.indexOf("#");d>=0&&(a.hash=c.substr(d),c=c.substr(0,d));let et=c.indexOf("?");et>=0&&(a.search=c.substr(et),c=c.substr(0,et)),c&&(a.pathname=c)}return a}function getUrlBasedHistory(c,a,d,et){et===void 0&&(et={});let{window:nt=document.defaultView,v5Compat:tt=!1}=et,bt=nt.history,gt=Action.Pop,wt=null,St=Mt();St==null&&(St=0,bt.replaceState(_extends$1({},bt.state,{idx:St}),""));function Mt(){return(bt.state||{idx:null}).idx}function _t(){gt=Action.Pop;let Lt=Mt(),Ot=Lt==null?null:Lt-St;St=Lt,wt&&wt({action:gt,location:It.location,delta:Ot})}function Tt(Lt,Ot){gt=Action.Push;let Nt=createLocation(It.location,Lt,Ot);d&&d(Nt,Lt),St=Mt()+1;let Ft=getHistoryState(Nt,St),jt=It.createHref(Nt);try{bt.pushState(Ft,"",jt)}catch(Vt){if(Vt instanceof DOMException&&Vt.name==="DataCloneError")throw Vt;nt.location.assign(jt)}tt&&wt&&wt({action:gt,location:It.location,delta:1})}function Rt(Lt,Ot){gt=Action.Replace;let Nt=createLocation(It.location,Lt,Ot);d&&d(Nt,Lt),St=Mt();let Ft=getHistoryState(Nt,St),jt=It.createHref(Nt);bt.replaceState(Ft,"",jt),tt&&wt&&wt({action:gt,location:It.location,delta:0})}function kt(Lt){let Ot=nt.location.origin!=="null"?nt.location.origin:nt.location.href,Nt=typeof Lt=="string"?Lt:createPath(Lt);return Nt=Nt.replace(/ $/,"%20"),invariant(Ot,"No window.location.(origin|href) available to create URL for href: "+Nt),new URL(Nt,Ot)}let It={get action(){return gt},get location(){return c(nt,bt)},listen(Lt){if(wt)throw new Error("A history only accepts one active listener");return nt.addEventListener(PopStateEventType,_t),wt=Lt,()=>{nt.removeEventListener(PopStateEventType,_t),wt=null}},createHref(Lt){return a(nt,Lt)},createURL:kt,encodeLocation(Lt){let Ot=kt(Lt);return{pathname:Ot.pathname,search:Ot.search,hash:Ot.hash}},push:Tt,replace:Rt,go(Lt){return bt.go(Lt)}};return It}var ResultType;(function(c){c.data="data",c.deferred="deferred",c.redirect="redirect",c.error="error"})(ResultType||(ResultType={}));function matchRoutes(c,a,d){d===void 0&&(d="/");let et=typeof a=="string"?parsePath(a):a,nt=stripBasename(et.pathname||"/",d);if(nt==null)return null;let tt=flattenRoutes(c);rankRouteBranches(tt);let bt=null;for(let gt=0;bt==null&>{let wt={relativePath:gt===void 0?tt.path||"":gt,caseSensitive:tt.caseSensitive===!0,childrenIndex:bt,route:tt};wt.relativePath.startsWith("/")&&(invariant(wt.relativePath.startsWith(et),'Absolute route path "'+wt.relativePath+'" nested under path '+('"'+et+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),wt.relativePath=wt.relativePath.slice(et.length));let St=joinPaths([et,wt.relativePath]),Mt=d.concat(wt);tt.children&&tt.children.length>0&&(invariant(tt.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+St+'".')),flattenRoutes(tt.children,a,Mt,St)),!(tt.path==null&&!tt.index)&&a.push({path:St,score:computeScore(St,tt.index),routesMeta:Mt})};return c.forEach((tt,bt)=>{var gt;if(tt.path===""||!((gt=tt.path)!=null&>.includes("?")))nt(tt,bt);else for(let wt of explodeOptionalSegments(tt.path))nt(tt,bt,wt)}),a}function explodeOptionalSegments(c){let a=c.split("/");if(a.length===0)return[];let[d,...et]=a,nt=d.endsWith("?"),tt=d.replace(/\?$/,"");if(et.length===0)return nt?[tt,""]:[tt];let bt=explodeOptionalSegments(et.join("/")),gt=[];return gt.push(...bt.map(wt=>wt===""?tt:[tt,wt].join("/"))),nt&>.push(...bt),gt.map(wt=>c.startsWith("/")&&wt===""?"/":wt)}function rankRouteBranches(c){c.sort((a,d)=>a.score!==d.score?d.score-a.score:compareIndexes(a.routesMeta.map(et=>et.childrenIndex),d.routesMeta.map(et=>et.childrenIndex)))}const paramRe=/^:[\w-]+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=c=>c==="*";function computeScore(c,a){let d=c.split("/"),et=d.length;return d.some(isSplat)&&(et+=splatPenalty),a&&(et+=indexRouteValue),d.filter(nt=>!isSplat(nt)).reduce((nt,tt)=>nt+(paramRe.test(tt)?dynamicSegmentValue:tt===""?emptySegmentValue:staticSegmentValue),et)}function compareIndexes(c,a){return c.length===a.length&&c.slice(0,-1).every((et,nt)=>et===a[nt])?c[c.length-1]-a[a.length-1]:0}function matchRouteBranch(c,a){let{routesMeta:d}=c,et={},nt="/",tt=[];for(let bt=0;bt{let{paramName:Tt,isOptional:Rt}=Mt;if(Tt==="*"){let It=gt[_t]||"";bt=tt.slice(0,tt.length-It.length).replace(/(.)\/+$/,"$1")}const kt=gt[_t];return Rt&&!kt?St[Tt]=void 0:St[Tt]=(kt||"").replace(/%2F/g,"/"),St},{}),pathname:tt,pathnameBase:bt,pattern:c}}function compilePath(c,a,d){a===void 0&&(a=!1),d===void 0&&(d=!0),warning(c==="*"||!c.endsWith("*")||c.endsWith("/*"),'Route path "'+c+'" will be treated as if it were '+('"'+c.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+c.replace(/\*$/,"/*")+'".'));let et=[],nt="^"+c.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(bt,gt,wt)=>(et.push({paramName:gt,isOptional:wt!=null}),wt?"/?([^\\/]+)?":"/([^\\/]+)"));return c.endsWith("*")?(et.push({paramName:"*"}),nt+=c==="*"||c==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):d?nt+="\\/*$":c!==""&&c!=="/"&&(nt+="(?:(?=\\/|$))"),[new RegExp(nt,a?void 0:"i"),et]}function decodePath(c){try{return c.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return warning(!1,'The URL path "'+c+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+a+").")),c}}function stripBasename(c,a){if(a==="/")return c;if(!c.toLowerCase().startsWith(a.toLowerCase()))return null;let d=a.endsWith("/")?a.length-1:a.length,et=c.charAt(d);return et&&et!=="/"?null:c.slice(d)||"/"}function resolvePath(c,a){a===void 0&&(a="/");let{pathname:d,search:et="",hash:nt=""}=typeof c=="string"?parsePath(c):c;return{pathname:d?d.startsWith("/")?d:resolvePathname(d,a):a,search:normalizeSearch(et),hash:normalizeHash(nt)}}function resolvePathname(c,a){let d=a.replace(/\/+$/,"").split("/");return c.split("/").forEach(nt=>{nt===".."?d.length>1&&d.pop():nt!=="."&&d.push(nt)}),d.length>1?d.join("/"):"/"}function getInvalidPathError(c,a,d,et){return"Cannot include a '"+c+"' character in a manually specified "+("`to."+a+"` field ["+JSON.stringify(et)+"]. Please separate it out to the ")+("`to."+d+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function getPathContributingMatches(c){return c.filter((a,d)=>d===0||a.route.path&&a.route.path.length>0)}function getResolveToMatches(c,a){let d=getPathContributingMatches(c);return a?d.map((et,nt)=>nt===c.length-1?et.pathname:et.pathnameBase):d.map(et=>et.pathnameBase)}function resolveTo(c,a,d,et){et===void 0&&(et=!1);let nt;typeof c=="string"?nt=parsePath(c):(nt=_extends$1({},c),invariant(!nt.pathname||!nt.pathname.includes("?"),getInvalidPathError("?","pathname","search",nt)),invariant(!nt.pathname||!nt.pathname.includes("#"),getInvalidPathError("#","pathname","hash",nt)),invariant(!nt.search||!nt.search.includes("#"),getInvalidPathError("#","search","hash",nt)));let tt=c===""||nt.pathname==="",bt=tt?"/":nt.pathname,gt;if(bt==null)gt=d;else{let _t=a.length-1;if(!et&&bt.startsWith("..")){let Tt=bt.split("/");for(;Tt[0]==="..";)Tt.shift(),_t-=1;nt.pathname=Tt.join("/")}gt=_t>=0?a[_t]:"/"}let wt=resolvePath(nt,gt),St=bt&&bt!=="/"&&bt.endsWith("/"),Mt=(tt||bt===".")&&d.endsWith("/");return!wt.pathname.endsWith("/")&&(St||Mt)&&(wt.pathname+="/"),wt}const joinPaths=c=>c.join("/").replace(/\/\/+/g,"/"),normalizePathname=c=>c.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=c=>!c||c==="?"?"":c.startsWith("?")?c:"?"+c,normalizeHash=c=>!c||c==="#"?"":c.startsWith("#")?c:"#"+c;function isRouteErrorResponse(c){return c!=null&&typeof c.status=="number"&&typeof c.statusText=="string"&&typeof c.internal=="boolean"&&"data"in c}const validMutationMethodsArr=["post","put","patch","delete"];new Set(validMutationMethodsArr);const validRequestMethodsArr=["get",...validMutationMethodsArr];new Set(validRequestMethodsArr);/** * React Router v6.23.1 * * Copyright (c) Remix Software Inc. @@ -126,7 +126,7 @@ Error generating stack: `+tt.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function _extends(){return _extends=Object.assign?Object.assign.bind():function(c){for(var a=1;a{gt.current=!0}),reactExports.useCallback(function(St,Mt){if(Mt===void 0&&(Mt={}),!gt.current)return;if(typeof St=="number"){et.go(St);return}let _t=resolveTo(St,JSON.parse(bt),tt,Mt.relative==="path");c==null&&a!=="/"&&(_t.pathname=_t.pathname==="/"?a:joinPaths([a,_t.pathname])),(Mt.replace?et.replace:et.push)(_t,Mt.state,Mt)},[a,et,bt,tt,c])}function useRoutes(c,a){return useRoutesImpl(c,a)}function useRoutesImpl(c,a,d,et){useInRouterContext()||invariant(!1);let{navigator:nt}=reactExports.useContext(NavigationContext),{matches:tt}=reactExports.useContext(RouteContext),bt=tt[tt.length-1],gt=bt?bt.params:{};bt&&bt.pathname;let wt=bt?bt.pathnameBase:"/";bt&&bt.route;let St=useLocation(),Mt;if(a){var _t;let Lt=typeof a=="string"?parsePath(a):a;wt==="/"||(_t=Lt.pathname)!=null&&_t.startsWith(wt)||invariant(!1),Mt=Lt}else Mt=St;let Tt=Mt.pathname||"/",Bt=Tt;if(wt!=="/"){let Lt=wt.replace(/^\//,"").split("/");Bt="/"+Tt.replace(/^\//,"").split("/").slice(Lt.length).join("/")}let kt=matchRoutes(c,{pathname:Bt}),It=_renderMatches(kt&&kt.map(Lt=>Object.assign({},Lt,{params:Object.assign({},gt,Lt.params),pathname:joinPaths([wt,nt.encodeLocation?nt.encodeLocation(Lt.pathname).pathname:Lt.pathname]),pathnameBase:Lt.pathnameBase==="/"?wt:joinPaths([wt,nt.encodeLocation?nt.encodeLocation(Lt.pathnameBase).pathname:Lt.pathnameBase])})),tt,d,et);return a&&It?reactExports.createElement(LocationContext.Provider,{value:{location:_extends({pathname:"/",search:"",hash:"",state:null,key:"default"},Mt),navigationType:Action.Pop}},It):It}function DefaultErrorComponent(){let c=useRouteError(),a=isRouteErrorResponse(c)?c.status+" "+c.statusText:c instanceof Error?c.message:JSON.stringify(c),d=c instanceof Error?c.stack:null,nt={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},tt=null;return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("h2",null,"Unexpected Application Error!"),reactExports.createElement("h3",{style:{fontStyle:"italic"}},a),d?reactExports.createElement("pre",{style:nt},d):null,tt)}const defaultErrorElement=reactExports.createElement(DefaultErrorComponent,null);class RenderErrorBoundary extends reactExports.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,d){return d.location!==a.location||d.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:d.error,location:d.location,revalidation:a.revalidation||d.revalidation}}componentDidCatch(a,d){console.error("React Router caught the following error during render",a,d)}render(){return this.state.error!==void 0?reactExports.createElement(RouteContext.Provider,{value:this.props.routeContext},reactExports.createElement(RouteErrorContext.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function RenderedRoute(c){let{routeContext:a,match:d,children:et}=c,nt=reactExports.useContext(DataRouterContext);return nt&&nt.static&&nt.staticContext&&(d.route.errorElement||d.route.ErrorBoundary)&&(nt.staticContext._deepestRenderedBoundaryId=d.route.id),reactExports.createElement(RouteContext.Provider,{value:a},et)}function _renderMatches(c,a,d,et){var nt;if(a===void 0&&(a=[]),d===void 0&&(d=null),et===void 0&&(et=null),c==null){var tt;if((tt=d)!=null&&tt.errors)c=d.matches;else return null}let bt=c,gt=(nt=d)==null?void 0:nt.errors;if(gt!=null){let Mt=bt.findIndex(_t=>_t.route.id&&(gt==null?void 0:gt[_t.route.id])!==void 0);Mt>=0||invariant(!1),bt=bt.slice(0,Math.min(bt.length,Mt+1))}let wt=!1,St=-1;if(d&&et&&et.v7_partialHydration)for(let Mt=0;Mt=0?bt=bt.slice(0,St+1):bt=[bt[0]];break}}}return bt.reduceRight((Mt,_t,Tt)=>{let Bt,kt=!1,It=null,Lt=null;d&&(Bt=gt&&_t.route.id?gt[_t.route.id]:void 0,It=_t.route.errorElement||defaultErrorElement,wt&&(St<0&&Tt===0?(warningOnce("route-fallback",!1),kt=!0,Lt=null):St===Tt&&(kt=!0,Lt=_t.route.hydrateFallbackElement||null)));let Ot=a.concat(bt.slice(0,Tt+1)),Nt=()=>{let Ft;return Bt?Ft=It:kt?Ft=Lt:_t.route.Component?Ft=reactExports.createElement(_t.route.Component,null):_t.route.element?Ft=_t.route.element:Ft=Mt,reactExports.createElement(RenderedRoute,{match:_t,routeContext:{outlet:Mt,matches:Ot,isDataRoute:d!=null},children:Ft})};return d&&(_t.route.ErrorBoundary||_t.route.errorElement||Tt===0)?reactExports.createElement(RenderErrorBoundary,{location:d.location,revalidation:d.revalidation,component:It,error:Bt,children:Nt(),routeContext:{outlet:null,matches:Ot,isDataRoute:!0}}):Nt()},null)}var DataRouterHook$1=function(c){return c.UseBlocker="useBlocker",c.UseRevalidator="useRevalidator",c.UseNavigateStable="useNavigate",c}(DataRouterHook$1||{}),DataRouterStateHook$1=function(c){return c.UseBlocker="useBlocker",c.UseLoaderData="useLoaderData",c.UseActionData="useActionData",c.UseRouteError="useRouteError",c.UseNavigation="useNavigation",c.UseRouteLoaderData="useRouteLoaderData",c.UseMatches="useMatches",c.UseRevalidator="useRevalidator",c.UseNavigateStable="useNavigate",c.UseRouteId="useRouteId",c}(DataRouterStateHook$1||{});function useDataRouterContext(c){let a=reactExports.useContext(DataRouterContext);return a||invariant(!1),a}function useDataRouterState(c){let a=reactExports.useContext(DataRouterStateContext);return a||invariant(!1),a}function useRouteContext(c){let a=reactExports.useContext(RouteContext);return a||invariant(!1),a}function useCurrentRouteId(c){let a=useRouteContext(),d=a.matches[a.matches.length-1];return d.route.id||invariant(!1),d.route.id}function useRouteError(){var c;let a=reactExports.useContext(RouteErrorContext),d=useDataRouterState(DataRouterStateHook$1.UseRouteError),et=useCurrentRouteId(DataRouterStateHook$1.UseRouteError);return a!==void 0?a:(c=d.errors)==null?void 0:c[et]}function useNavigateStable(){let{router:c}=useDataRouterContext(DataRouterHook$1.UseNavigateStable),a=useCurrentRouteId(DataRouterStateHook$1.UseNavigateStable),d=reactExports.useRef(!1);return useIsomorphicLayoutEffect(()=>{d.current=!0}),reactExports.useCallback(function(nt,tt){tt===void 0&&(tt={}),d.current&&(typeof nt=="number"?c.navigate(nt):c.navigate(nt,_extends({fromRouteId:a},tt)))},[c,a])}const alreadyWarned={};function warningOnce(c,a,d){!a&&!alreadyWarned[c]&&(alreadyWarned[c]=!0)}function Route(c){invariant(!1)}function Router(c){let{basename:a="/",children:d=null,location:et,navigationType:nt=Action.Pop,navigator:tt,static:bt=!1,future:gt}=c;useInRouterContext()&&invariant(!1);let wt=a.replace(/^\/*/,"/"),St=reactExports.useMemo(()=>({basename:wt,navigator:tt,static:bt,future:_extends({v7_relativeSplatPath:!1},gt)}),[wt,gt,tt,bt]);typeof et=="string"&&(et=parsePath(et));let{pathname:Mt="/",search:_t="",hash:Tt="",state:Bt=null,key:kt="default"}=et,It=reactExports.useMemo(()=>{let Lt=stripBasename(Mt,wt);return Lt==null?null:{location:{pathname:Lt,search:_t,hash:Tt,state:Bt,key:kt},navigationType:nt}},[wt,Mt,_t,Tt,Bt,kt,nt]);return It==null?null:reactExports.createElement(NavigationContext.Provider,{value:St},reactExports.createElement(LocationContext.Provider,{children:d,value:It}))}function Routes(c){let{children:a,location:d}=c;return useRoutes(createRoutesFromChildren(a),d)}new Promise(()=>{});function createRoutesFromChildren(c,a){a===void 0&&(a=[]);let d=[];return reactExports.Children.forEach(c,(et,nt)=>{if(!reactExports.isValidElement(et))return;let tt=[...a,nt];if(et.type===reactExports.Fragment){d.push.apply(d,createRoutesFromChildren(et.props.children,tt));return}et.type!==Route&&invariant(!1),!et.props.index||!et.props.children||invariant(!1);let bt={id:et.props.id||tt.join("-"),caseSensitive:et.props.caseSensitive,element:et.props.element,Component:et.props.Component,index:et.props.index,path:et.props.path,loader:et.props.loader,action:et.props.action,errorElement:et.props.errorElement,ErrorBoundary:et.props.ErrorBoundary,hasErrorBoundary:et.props.ErrorBoundary!=null||et.props.errorElement!=null,shouldRevalidate:et.props.shouldRevalidate,handle:et.props.handle,lazy:et.props.lazy};et.props.children&&(bt.children=createRoutesFromChildren(et.props.children,tt)),d.push(bt)}),d}/** + */function _extends(){return _extends=Object.assign?Object.assign.bind():function(c){for(var a=1;a{gt.current=!0}),reactExports.useCallback(function(St,Mt){if(Mt===void 0&&(Mt={}),!gt.current)return;if(typeof St=="number"){et.go(St);return}let _t=resolveTo(St,JSON.parse(bt),tt,Mt.relative==="path");c==null&&a!=="/"&&(_t.pathname=_t.pathname==="/"?a:joinPaths([a,_t.pathname])),(Mt.replace?et.replace:et.push)(_t,Mt.state,Mt)},[a,et,bt,tt,c])}function useRoutes(c,a){return useRoutesImpl(c,a)}function useRoutesImpl(c,a,d,et){useInRouterContext()||invariant(!1);let{navigator:nt}=reactExports.useContext(NavigationContext),{matches:tt}=reactExports.useContext(RouteContext),bt=tt[tt.length-1],gt=bt?bt.params:{};bt&&bt.pathname;let wt=bt?bt.pathnameBase:"/";bt&&bt.route;let St=useLocation(),Mt;if(a){var _t;let Lt=typeof a=="string"?parsePath(a):a;wt==="/"||(_t=Lt.pathname)!=null&&_t.startsWith(wt)||invariant(!1),Mt=Lt}else Mt=St;let Tt=Mt.pathname||"/",Rt=Tt;if(wt!=="/"){let Lt=wt.replace(/^\//,"").split("/");Rt="/"+Tt.replace(/^\//,"").split("/").slice(Lt.length).join("/")}let kt=matchRoutes(c,{pathname:Rt}),It=_renderMatches(kt&&kt.map(Lt=>Object.assign({},Lt,{params:Object.assign({},gt,Lt.params),pathname:joinPaths([wt,nt.encodeLocation?nt.encodeLocation(Lt.pathname).pathname:Lt.pathname]),pathnameBase:Lt.pathnameBase==="/"?wt:joinPaths([wt,nt.encodeLocation?nt.encodeLocation(Lt.pathnameBase).pathname:Lt.pathnameBase])})),tt,d,et);return a&&It?reactExports.createElement(LocationContext.Provider,{value:{location:_extends({pathname:"/",search:"",hash:"",state:null,key:"default"},Mt),navigationType:Action.Pop}},It):It}function DefaultErrorComponent(){let c=useRouteError(),a=isRouteErrorResponse(c)?c.status+" "+c.statusText:c instanceof Error?c.message:JSON.stringify(c),d=c instanceof Error?c.stack:null,nt={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},tt=null;return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("h2",null,"Unexpected Application Error!"),reactExports.createElement("h3",{style:{fontStyle:"italic"}},a),d?reactExports.createElement("pre",{style:nt},d):null,tt)}const defaultErrorElement=reactExports.createElement(DefaultErrorComponent,null);class RenderErrorBoundary extends reactExports.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,d){return d.location!==a.location||d.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:d.error,location:d.location,revalidation:a.revalidation||d.revalidation}}componentDidCatch(a,d){console.error("React Router caught the following error during render",a,d)}render(){return this.state.error!==void 0?reactExports.createElement(RouteContext.Provider,{value:this.props.routeContext},reactExports.createElement(RouteErrorContext.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function RenderedRoute(c){let{routeContext:a,match:d,children:et}=c,nt=reactExports.useContext(DataRouterContext);return nt&&nt.static&&nt.staticContext&&(d.route.errorElement||d.route.ErrorBoundary)&&(nt.staticContext._deepestRenderedBoundaryId=d.route.id),reactExports.createElement(RouteContext.Provider,{value:a},et)}function _renderMatches(c,a,d,et){var nt;if(a===void 0&&(a=[]),d===void 0&&(d=null),et===void 0&&(et=null),c==null){var tt;if((tt=d)!=null&&tt.errors)c=d.matches;else return null}let bt=c,gt=(nt=d)==null?void 0:nt.errors;if(gt!=null){let Mt=bt.findIndex(_t=>_t.route.id&&(gt==null?void 0:gt[_t.route.id])!==void 0);Mt>=0||invariant(!1),bt=bt.slice(0,Math.min(bt.length,Mt+1))}let wt=!1,St=-1;if(d&&et&&et.v7_partialHydration)for(let Mt=0;Mt=0?bt=bt.slice(0,St+1):bt=[bt[0]];break}}}return bt.reduceRight((Mt,_t,Tt)=>{let Rt,kt=!1,It=null,Lt=null;d&&(Rt=gt&&_t.route.id?gt[_t.route.id]:void 0,It=_t.route.errorElement||defaultErrorElement,wt&&(St<0&&Tt===0?(warningOnce("route-fallback",!1),kt=!0,Lt=null):St===Tt&&(kt=!0,Lt=_t.route.hydrateFallbackElement||null)));let Ot=a.concat(bt.slice(0,Tt+1)),Nt=()=>{let Ft;return Rt?Ft=It:kt?Ft=Lt:_t.route.Component?Ft=reactExports.createElement(_t.route.Component,null):_t.route.element?Ft=_t.route.element:Ft=Mt,reactExports.createElement(RenderedRoute,{match:_t,routeContext:{outlet:Mt,matches:Ot,isDataRoute:d!=null},children:Ft})};return d&&(_t.route.ErrorBoundary||_t.route.errorElement||Tt===0)?reactExports.createElement(RenderErrorBoundary,{location:d.location,revalidation:d.revalidation,component:It,error:Rt,children:Nt(),routeContext:{outlet:null,matches:Ot,isDataRoute:!0}}):Nt()},null)}var DataRouterHook$1=function(c){return c.UseBlocker="useBlocker",c.UseRevalidator="useRevalidator",c.UseNavigateStable="useNavigate",c}(DataRouterHook$1||{}),DataRouterStateHook$1=function(c){return c.UseBlocker="useBlocker",c.UseLoaderData="useLoaderData",c.UseActionData="useActionData",c.UseRouteError="useRouteError",c.UseNavigation="useNavigation",c.UseRouteLoaderData="useRouteLoaderData",c.UseMatches="useMatches",c.UseRevalidator="useRevalidator",c.UseNavigateStable="useNavigate",c.UseRouteId="useRouteId",c}(DataRouterStateHook$1||{});function useDataRouterContext(c){let a=reactExports.useContext(DataRouterContext);return a||invariant(!1),a}function useDataRouterState(c){let a=reactExports.useContext(DataRouterStateContext);return a||invariant(!1),a}function useRouteContext(c){let a=reactExports.useContext(RouteContext);return a||invariant(!1),a}function useCurrentRouteId(c){let a=useRouteContext(),d=a.matches[a.matches.length-1];return d.route.id||invariant(!1),d.route.id}function useRouteError(){var c;let a=reactExports.useContext(RouteErrorContext),d=useDataRouterState(DataRouterStateHook$1.UseRouteError),et=useCurrentRouteId(DataRouterStateHook$1.UseRouteError);return a!==void 0?a:(c=d.errors)==null?void 0:c[et]}function useNavigateStable(){let{router:c}=useDataRouterContext(DataRouterHook$1.UseNavigateStable),a=useCurrentRouteId(DataRouterStateHook$1.UseNavigateStable),d=reactExports.useRef(!1);return useIsomorphicLayoutEffect(()=>{d.current=!0}),reactExports.useCallback(function(nt,tt){tt===void 0&&(tt={}),d.current&&(typeof nt=="number"?c.navigate(nt):c.navigate(nt,_extends({fromRouteId:a},tt)))},[c,a])}const alreadyWarned={};function warningOnce(c,a,d){!a&&!alreadyWarned[c]&&(alreadyWarned[c]=!0)}function Route(c){invariant(!1)}function Router(c){let{basename:a="/",children:d=null,location:et,navigationType:nt=Action.Pop,navigator:tt,static:bt=!1,future:gt}=c;useInRouterContext()&&invariant(!1);let wt=a.replace(/^\/*/,"/"),St=reactExports.useMemo(()=>({basename:wt,navigator:tt,static:bt,future:_extends({v7_relativeSplatPath:!1},gt)}),[wt,gt,tt,bt]);typeof et=="string"&&(et=parsePath(et));let{pathname:Mt="/",search:_t="",hash:Tt="",state:Rt=null,key:kt="default"}=et,It=reactExports.useMemo(()=>{let Lt=stripBasename(Mt,wt);return Lt==null?null:{location:{pathname:Lt,search:_t,hash:Tt,state:Rt,key:kt},navigationType:nt}},[wt,Mt,_t,Tt,Rt,kt,nt]);return It==null?null:reactExports.createElement(NavigationContext.Provider,{value:St},reactExports.createElement(LocationContext.Provider,{children:d,value:It}))}function Routes(c){let{children:a,location:d}=c;return useRoutes(createRoutesFromChildren(a),d)}new Promise(()=>{});function createRoutesFromChildren(c,a){a===void 0&&(a=[]);let d=[];return reactExports.Children.forEach(c,(et,nt)=>{if(!reactExports.isValidElement(et))return;let tt=[...a,nt];if(et.type===reactExports.Fragment){d.push.apply(d,createRoutesFromChildren(et.props.children,tt));return}et.type!==Route&&invariant(!1),!et.props.index||!et.props.children||invariant(!1);let bt={id:et.props.id||tt.join("-"),caseSensitive:et.props.caseSensitive,element:et.props.element,Component:et.props.Component,index:et.props.index,path:et.props.path,loader:et.props.loader,action:et.props.action,errorElement:et.props.errorElement,ErrorBoundary:et.props.ErrorBoundary,hasErrorBoundary:et.props.ErrorBoundary!=null||et.props.errorElement!=null,shouldRevalidate:et.props.shouldRevalidate,handle:et.props.handle,lazy:et.props.lazy};et.props.children&&(bt.children=createRoutesFromChildren(et.props.children,tt)),d.push(bt)}),d}/** * React Router DOM v6.23.1 * * Copyright (c) Remix Software Inc. @@ -135,30 +135,30 @@ Error generating stack: `+tt.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */const REACT_ROUTER_VERSION="6";try{window.__reactRouterVersion=REACT_ROUTER_VERSION}catch{}const START_TRANSITION="startTransition",startTransitionImpl=React$1[START_TRANSITION];function HashRouter(c){let{basename:a,children:d,future:et,window:nt}=c,tt=reactExports.useRef();tt.current==null&&(tt.current=createHashHistory({window:nt,v5Compat:!0}));let bt=tt.current,[gt,wt]=reactExports.useState({action:bt.action,location:bt.location}),{v7_startTransition:St}=et||{},Mt=reactExports.useCallback(_t=>{St&&startTransitionImpl?startTransitionImpl(()=>wt(_t)):wt(_t)},[wt,St]);return reactExports.useLayoutEffect(()=>bt.listen(Mt),[bt,Mt]),reactExports.createElement(Router,{basename:a,children:d,location:gt.location,navigationType:gt.action,navigator:bt,future:et})}var DataRouterHook;(function(c){c.UseScrollRestoration="useScrollRestoration",c.UseSubmit="useSubmit",c.UseSubmitFetcher="useSubmitFetcher",c.UseFetcher="useFetcher",c.useViewTransitionState="useViewTransitionState"})(DataRouterHook||(DataRouterHook={}));var DataRouterStateHook;(function(c){c.UseFetcher="useFetcher",c.UseFetchers="useFetchers",c.UseScrollRestoration="useScrollRestoration"})(DataRouterStateHook||(DataRouterStateHook={}));function t(){return t=Object.assign?Object.assign.bind():function(c){for(var a=1;a=0||(Mt[wt]=bt[wt]);return Mt}(c,a);if(Object.getOwnPropertySymbols){var tt=Object.getOwnPropertySymbols(c);for(et=0;et=0||Object.prototype.propertyIsEnumerable.call(c,d)&&(nt[d]=c[d])}return nt}var Ig=["size","color","stroke"];function Ag(c){var a=c.size,d=a===void 0?24:a,et=c.color,nt=et===void 0?"currentColor":et,tt=c.stroke,bt=tt===void 0?2:tt,gt=o(c,Ig);return reactExports.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-brand-github",width:d,height:d,viewBox:"0 0 24 24",strokeWidth:bt,stroke:nt,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},gt),reactExports.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),reactExports.createElement("path",{d:"M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5"}))}var AW=["size","color","stroke"];function DW(c){var a=c.size,d=a===void 0?24:a,et=c.color,nt=et===void 0?"currentColor":et,tt=c.stroke,bt=tt===void 0?2:tt,gt=o(c,AW);return reactExports.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-check",width:d,height:d,viewBox:"0 0 24 24",strokeWidth:bt,stroke:nt,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},gt),reactExports.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),reactExports.createElement("path",{d:"M5 12l5 5l10 -10"}))}var uq=["size","color","stroke"];function gq(c){var a=c.size,d=a===void 0?24:a,et=c.color,nt=et===void 0?"currentColor":et,tt=c.stroke,bt=tt===void 0?2:tt,gt=o(c,uq);return reactExports.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-chevron-down",width:d,height:d,viewBox:"0 0 24 24",strokeWidth:bt,stroke:nt,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},gt),reactExports.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),reactExports.createElement("polyline",{points:"6 9 12 15 18 9"}))}var JD=["size","color","stroke"];function KD(c){var a=c.size,d=a===void 0?24:a,et=c.color,nt=et===void 0?"currentColor":et,tt=c.stroke,bt=tt===void 0?2:tt,gt=o(c,JD);return reactExports.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-coin",width:d,height:d,viewBox:"0 0 24 24",strokeWidth:bt,stroke:nt,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},gt),reactExports.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),reactExports.createElement("circle",{cx:12,cy:12,r:9}),reactExports.createElement("path",{d:"M14.8 9a2 2 0 0 0 -1.8 -1h-2a2 2 0 1 0 0 4h2a2 2 0 1 1 0 4h-2a2 2 0 0 1 -1.8 -1"}),reactExports.createElement("path",{d:"M12 7v10"}))}var Fme=["size","color","stroke"];function Gme(c){var a=c.size,d=a===void 0?24:a,et=c.color,nt=et===void 0?"currentColor":et,tt=c.stroke,bt=tt===void 0?2:tt,gt=o(c,Fme);return reactExports.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-moon-stars",width:d,height:d,viewBox:"0 0 24 24",strokeWidth:bt,stroke:nt,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},gt),reactExports.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),reactExports.createElement("path",{d:"M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z"}),reactExports.createElement("path",{d:"M17 4a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2"}),reactExports.createElement("path",{d:"M19 11h2m-1 -1v2"}))}var pAe=["size","color","stroke"];function EAe(c){var a=c.size,d=a===void 0?24:a,et=c.color,nt=et===void 0?"currentColor":et,tt=c.stroke,bt=tt===void 0?2:tt,gt=o(c,pAe);return reactExports.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-sun",width:d,height:d,viewBox:"0 0 24 24",strokeWidth:bt,stroke:nt,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},gt),reactExports.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),reactExports.createElement("circle",{cx:12,cy:12,r:4}),reactExports.createElement("path",{d:"M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7"}))}var WXe=["size","color","stroke"];function qXe(c){var a=c.size,d=a===void 0?24:a,et=c.color,nt=et===void 0?"currentColor":et,tt=c.stroke,bt=tt===void 0?2:tt,gt=o(c,WXe);return reactExports.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-x",width:d,height:d,viewBox:"0 0 24 24",strokeWidth:bt,stroke:nt,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},gt),reactExports.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),reactExports.createElement("line",{x1:18,y1:6,x2:6,y2:18}),reactExports.createElement("line",{x1:6,y1:6,x2:18,y2:18}))}const LogoLight="/assets/logo-light-746d0a18.svg",LogoDark="/assets/logo-dark-6aef1ca0.svg",Base$9="/assets/base-8a61917f.png",ETH="/assets/eth-dc2fb7da.svg";var RoutePath=(c=>(c.home="/",c.claim="/claim",c.account="/account",c.create="/create",c.notFound="*",c))(RoutePath||{});const INFURA_API_KEY="05d830413c5a4ac8873c84319679c7b2",ETHERSCAN_API_KEY="H8IGZCCS8XCJYSXIA3GUUKW6CDECYYMNPG",POLYGONSCAN_API_KEY="GVZS4QAMWFBGS5PK2BR76FNFPJ7X2GR44I",accountAddress="",networks={localhost:{name:"Local Chain",chainId:31337,type:"Testnet",url:"http://localhost:8545",safeService:"",blockExplorer:"",api:"",easExplorer:""},mainnet:{name:"Ethereum",type:"mainnet",chainId:1,url:`https://mainnet.infura.io/v3/${INFURA_API_KEY}`,safeService:"https://safe-transaction-mainnet.safe.global",blockExplorer:"https://etherscan.io",api:`https://api.etherscan.io/api?apikey=${ETHERSCAN_API_KEY}`,easExplorer:""},goerli:{name:"Goerli",type:"testnet",chainId:5,url:`https://goerli.infura.io/v3/${INFURA_API_KEY}`,safeService:"https://safe-transaction-goerli.safe.global",blockExplorer:"https://goerli.etherscan.io",api:`https://api-goerli.etherscan.io/api?apikey=${ETHERSCAN_API_KEY}`,easExplorer:""},sepolia:{name:"Sepolia",type:"testnet",chainId:11155111,url:"https://eth-sepolia.g.alchemy.com/v2/eCr9bFDzgYgDrox-mnXPPh7_koP-agKo",safeService:"https://safe-transaction-sepolia.safe.global",blockExplorer:"https://sepolia.etherscan.io",api:`https://api-sepolia.etherscan.io/api?apikey=${ETHERSCAN_API_KEY}`,easExplorer:""},basesepolia:{name:"Base Sepolia",type:"testnet",chainId:84532,url:"https://base-sepolia.g.alchemy.com/v2/wRVILABVfp0WrfAv449B23mIW_SJqOwL",blockExplorer:"https://sepolia.basescan.org",safeService:"https://safe-transaction-base-sepolia.safe.global",api:`https://api-sepolia.etherscan.io/api?apikey=${ETHERSCAN_API_KEY}`,easExplorer:"https://base-sepolia.easscan.org/attestation/view/"},base:{name:"Base",type:"mainnet",chainId:8453,url:"https://base-mainnet.g.alchemy.com/v2/NTGkSXMuKkoHwQ_W4eNpGlihUScplXYV",blockExplorer:"https://basescan.org",safeService:"https://safe-transaction-base.safe.global",api:`https://api-goerli.etherscan.io/api?apikey=${ETHERSCAN_API_KEY}`,easExplorer:""},optimism:{name:"Optimism",type:"mainnet",chainId:10,url:`https://optimism-mainnet.infura.io/v3/${INFURA_API_KEY}`,blockExplorer:"https://optimistic.etherscan.io",safeService:"https://safe-transaction-optimism.safe.global",api:`https://api-optimistic.etherscan.io/api?apikey=${ETHERSCAN_API_KEY}`,easExplorer:"https://optimism.easscan.org/attestation/view/"},gnosis:{name:"Gnosis",type:"mainnet",chainId:100,url:"https://rpc.ankr.com/gnosis",safeService:"https://safe-transaction-gnosis-chain.safe.global",blockExplorer:"https://gnosisscan.io",api:`https://api-goerli.etherscan.io/api?apikey=${ETHERSCAN_API_KEY}`,easExplorer:""},polygontestnet:{name:"Polygon",type:"testnet",chainId:80001,url:"https://matic-mumbai.chainstacklabs.com",safeService:"",blockExplorer:"https://mumbai.polygonscan.com",api:`https://api-testnet.polygonscan.com/api?module=account&action=balance&address=${accountAddress}&apikey=${POLYGONSCAN_API_KEY}`,easExplorer:""},polygon:{name:"Polygon",type:"mainnet",chainId:137,url:"https://rpc.ankr.com/polygon",safeService:"https://safe-transaction-polygon.safe.global",blockExplorer:"https://polygonscan.com",api:"",easExplorer:""},celo:{name:"Celo",type:"mainnet",chainId:42220,url:`https://celo-mainnet.infura.io/v3/${INFURA_API_KEY}`,safeService:"https://safe-transaction-polygon.safe.global",blockExplorer:"https://celoscan.com",api:"",easExplorer:""}};class NetworkUtil{static getNetworkById(a){return Object.values(networks).find(et=>a===et.chainId)}static getNetworkByName(a){return networks[a]}}const version$4="6.7.1";function checkType(c,a,d){const et=a.split("|").map(tt=>tt.trim());for(let tt=0;ttPromise.resolve(c[et])))).reduce((et,nt,tt)=>(et[a[tt]]=nt,et),{})}function defineProperties(c,a,d){for(let et in a){let nt=a[et];const tt=d?d[et]:null;tt&&checkType(nt,tt,et),Object.defineProperty(c,et,{enumerable:!0,value:nt,writable:!1})}}function stringify$1(c){if(c==null)return"null";if(Array.isArray(c))return"[ "+c.map(stringify$1).join(", ")+" ]";if(c instanceof Uint8Array){const a="0123456789abcdef";let d="0x";for(let et=0;et>4],d+=a[c[et]&15];return d}if(typeof c=="object"&&typeof c.toJSON=="function")return stringify$1(c.toJSON());switch(typeof c){case"boolean":case"symbol":return c.toString();case"bigint":return BigInt(c).toString();case"number":return c.toString();case"string":return JSON.stringify(c);case"object":{const a=Object.keys(c);return a.sort(),"{ "+a.map(d=>`${stringify$1(d)}: ${stringify$1(c[d])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function isError$1(c,a){return c&&c.code===a}function isCallException(c){return isError$1(c,"CALL_EXCEPTION")}function makeError(c,a,d){{const nt=[];if(d){if("message"in d||"code"in d||"name"in d)throw new Error(`value will overwrite populated values: ${stringify$1(d)}`);for(const tt in d){const bt=d[tt];nt.push(tt+"="+stringify$1(bt))}}nt.push(`code=${a}`),nt.push(`version=${version$4}`),nt.length&&(c+=" ("+nt.join(", ")+")")}let et;switch(a){case"INVALID_ARGUMENT":et=new TypeError(c);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":et=new RangeError(c);break;default:et=new Error(c)}return defineProperties(et,{code:a}),d&&Object.assign(et,d),et}function assert$s(c,a,d,et){if(!c)throw makeError(a,d,et)}function assertArgument(c,a,d,et){assert$s(c,a,"INVALID_ARGUMENT",{argument:d,value:et})}function assertArgumentCount(c,a,d){d==null&&(d=""),d&&(d=": "+d),assert$s(c>=a,"missing arguemnt"+d,"MISSING_ARGUMENT",{count:c,expectedCount:a}),assert$s(c<=a,"too many arguemnts"+d,"UNEXPECTED_ARGUMENT",{count:c,expectedCount:a})}const _normalizeForms=["NFD","NFC","NFKD","NFKC"].reduce((c,a)=>{try{if("test".normalize(a)!=="test")throw new Error("bad");if(a==="NFD"){const d=String.fromCharCode(233).normalize("NFD"),et=String.fromCharCode(101,769);if(d!==et)throw new Error("broken")}c.push(a)}catch{}return c},[]);function assertNormalize(c){assert$s(_normalizeForms.indexOf(c)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:c}})}function assertPrivate(c,a,d){if(d==null&&(d=""),c!==a){let et=d,nt="new";d&&(et+=".",nt+=" "+d),assert$s(!1,`private constructor; use ${et}from* methods`,"UNSUPPORTED_OPERATION",{operation:nt})}}function _getBytes(c,a,d){if(c instanceof Uint8Array)return d?new Uint8Array(c):c;if(typeof c=="string"&&c.match(/^0x([0-9a-f][0-9a-f])*$/i)){const et=new Uint8Array((c.length-2)/2);let nt=2;for(let tt=0;tt>4]+HexCharacters[nt&15]}return d}function concat$2(c){return"0x"+c.map(a=>hexlify(a).substring(2)).join("")}function dataLength(c){return isHexString(c,!0)?(c.length-2)/2:getBytes(c).length}function dataSlice(c,a,d){const et=getBytes(c);return d!=null&&d>et.length&&assert$s(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:et,length:et.length,offset:d}),hexlify(et.slice(a??0,d??et.length))}function zeroPad(c,a,d){const et=getBytes(c);assert$s(a>=et.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(et),length:a,offset:a+1});const nt=new Uint8Array(a);return nt.fill(0),d?nt.set(et,a-et.length):nt.set(et,0),hexlify(nt)}function zeroPadValue(c,a){return zeroPad(c,a,!0)}function zeroPadBytes(c,a){return zeroPad(c,a,!1)}const BN_0$9=BigInt(0),BN_1$4=BigInt(1),maxValue=9007199254740991;function fromTwos(c,a){const d=getUint(c,"value"),et=BigInt(getNumber(a,"width"));if(assert$s(d>>et===BN_0$9,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:c}),d>>et-BN_1$4){const nt=(BN_1$4<=-maxValue&&c<=maxValue,"overflow",a||"value",c),BigInt(c);case"string":try{if(c==="")throw new Error("empty string");return c[0]==="-"&&c[1]!=="-"?-BigInt(c.substring(1)):BigInt(c)}catch(d){assertArgument(!1,`invalid BigNumberish string: ${d.message}`,a||"value",c)}}assertArgument(!1,"invalid BigNumberish value",a||"value",c)}function getUint(c,a){const d=getBigInt(c,a);return assert$s(d>=BN_0$9,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:c}),d}const Nibbles="0123456789abcdef";function toBigInt(c){if(c instanceof Uint8Array){let a="0x0";for(const d of c)a+=Nibbles[d>>4],a+=Nibbles[d&15];return BigInt(a)}return getBigInt(c)}function getNumber(c,a){switch(typeof c){case"bigint":return assertArgument(c>=-maxValue&&c<=maxValue,"overflow",a||"value",c),Number(c);case"number":return assertArgument(Number.isInteger(c),"underflow",a||"value",c),assertArgument(c>=-maxValue&&c<=maxValue,"overflow",a||"value",c),c;case"string":try{if(c==="")throw new Error("empty string");return getNumber(BigInt(c),a)}catch(d){assertArgument(!1,`invalid numeric string: ${d.message}`,a||"value",c)}}assertArgument(!1,"invalid numeric value",a||"value",c)}function toNumber(c){return getNumber(toBigInt(c))}function toBeHex(c,a){let et=getUint(c,"value").toString(16);if(a==null)et.length%2&&(et="0"+et);else{const nt=getNumber(a,"width");for(assert$s(nt*2>=et.length,`value exceeds width (${nt} bits)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:c});et.length>6===2;bt++)tt++;return tt}return c==="OVERRUN"?d.length-a-1:0}function replaceFunc(c,a,d,et,nt){return c==="OVERLONG"?(assertArgument(typeof nt=="number","invalid bad code point for replacement","badCodepoint",nt),et.push(nt),0):(et.push(65533),ignoreFunc(c,a,d))}const Utf8ErrorFuncs=Object.freeze({error:errorFunc,ignore:ignoreFunc,replace:replaceFunc});function getUtf8CodePoints(c,a){a==null&&(a=Utf8ErrorFuncs.error);const d=getBytes(c,"bytes"),et=[];let nt=0;for(;nt>7)){et.push(tt);continue}let bt=null,gt=null;if((tt&224)===192)bt=1,gt=127;else if((tt&240)===224)bt=2,gt=2047;else if((tt&248)===240)bt=3,gt=65535;else{(tt&192)===128?nt+=a("UNEXPECTED_CONTINUE",nt-1,d,et):nt+=a("BAD_PREFIX",nt-1,d,et);continue}if(nt-1+bt>=d.length){nt+=a("OVERRUN",nt-1,d,et);continue}let wt=tt&(1<<8-bt-1)-1;for(let St=0;St1114111){nt+=a("OUT_OF_RANGE",nt-1-bt,d,et,wt);continue}if(wt>=55296&&wt<=57343){nt+=a("UTF16_SURROGATE",nt-1-bt,d,et,wt);continue}if(wt<=gt){nt+=a("OVERLONG",nt-1-bt,d,et,wt);continue}et.push(wt)}}return et}function toUtf8Bytes(c,a){a!=null&&(assertNormalize(a),c=c.normalize(a));let d=[];for(let et=0;et>6|192),d.push(nt&63|128);else if((nt&64512)==55296){et++;const tt=c.charCodeAt(et);assertArgument(et>18|240),d.push(bt>>12&63|128),d.push(bt>>6&63|128),d.push(bt&63|128)}else d.push(nt>>12|224),d.push(nt>>6&63|128),d.push(nt&63|128)}return new Uint8Array(d)}function _toUtf8String(c){return c.map(a=>a<=65535?String.fromCharCode(a):(a-=65536,String.fromCharCode((a>>10&1023)+55296,(a&1023)+56320))).join("")}function toUtf8String(c,a){return _toUtf8String(getUtf8CodePoints(c,a))}async function getUrl$1(c,a){const d=c.url.split(":")[0].toLowerCase();assert$s(d==="http"||d==="https",`unsupported protocol ${d}`,"UNSUPPORTED_OPERATION",{info:{protocol:d},operation:"request"}),assert$s(d==="https"||!c.credentials||c.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let et;if(a){const St=new AbortController;et=St.signal,a.addListener(()=>{St.abort()})}const nt={method:c.method,headers:new Headers(Array.from(c)),body:c.body||void 0,signal:et},tt=await fetch(c.url,nt),bt={};tt.headers.forEach((St,Mt)=>{bt[Mt.toLowerCase()]=St});const gt=await tt.arrayBuffer(),wt=gt==null?null:new Uint8Array(gt);return{statusCode:tt.status,statusMessage:tt.statusText,headers:bt,body:wt}}const MAX_ATTEMPTS=12,SLOT_INTERVAL=250;let getUrlFunc=getUrl$1;const reData=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),reIpfs=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let locked$2=!1;async function dataGatewayFunc(c,a){try{const d=c.match(reData);if(!d)throw new Error("invalid data");return new FetchResponse(200,"OK",{"content-type":d[1]||"text/plain"},d[2]?decodeBase64(d[3]):unpercent(d[3]))}catch{return new FetchResponse(599,"BAD REQUEST (invalid data: URI)",{},null,new FetchRequest(c))}}function getIpfsGatewayFunc(c){async function a(d,et){try{const nt=d.match(reIpfs);if(!nt)throw new Error("invalid link");return new FetchRequest(`${c}${nt[2]}`)}catch{return new FetchResponse(599,"BAD REQUEST (invalid IPFS URI)",{},null,new FetchRequest(d))}}return a}const Gateways={data:dataGatewayFunc,ipfs:getIpfsGatewayFunc("https://gateway.ipfs.io/ipfs/")},fetchSignals=new WeakMap;var qn,Pn;class FetchCancelSignal{constructor(a){Vr(this,qn,void 0);Vr(this,Pn,void 0);yr(this,qn,[]),yr(this,Pn,!1),fetchSignals.set(a,()=>{if(!or(this,Pn)){yr(this,Pn,!0);for(const d of or(this,qn))setTimeout(()=>{d()},0);yr(this,qn,[])}})}addListener(a){assert$s(!or(this,Pn),"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),or(this,qn).push(a)}get cancelled(){return or(this,Pn)}checkSignal(){assert$s(!this.cancelled,"cancelled","CANCELLED",{})}}qn=new WeakMap,Pn=new WeakMap;function checkSignal(c){if(c==null)throw new Error("missing signal; should not happen");return c.checkSignal(),c}var fs,cs,Y0,un,ls,us,_0,O0,dn,Gn,Vn,Wn,tn,hn,Kn,Ks;const Po=class Po{constructor(a){Vr(this,Kn);Vr(this,fs,void 0);Vr(this,cs,void 0);Vr(this,Y0,void 0);Vr(this,un,void 0);Vr(this,ls,void 0);Vr(this,us,void 0);Vr(this,_0,void 0);Vr(this,O0,void 0);Vr(this,dn,void 0);Vr(this,Gn,void 0);Vr(this,Vn,void 0);Vr(this,Wn,void 0);Vr(this,tn,void 0);Vr(this,hn,void 0);yr(this,us,String(a)),yr(this,fs,!1),yr(this,cs,!0),yr(this,Y0,{}),yr(this,un,""),yr(this,ls,3e5),yr(this,hn,{slotInterval:SLOT_INTERVAL,maxAttempts:MAX_ATTEMPTS})}get url(){return or(this,us)}set url(a){yr(this,us,String(a))}get body(){return or(this,_0)==null?null:new Uint8Array(or(this,_0))}set body(a){if(a==null)yr(this,_0,void 0),yr(this,O0,void 0);else if(typeof a=="string")yr(this,_0,toUtf8Bytes(a)),yr(this,O0,"text/plain");else if(a instanceof Uint8Array)yr(this,_0,a),yr(this,O0,"application/octet-stream");else if(typeof a=="object")yr(this,_0,toUtf8Bytes(JSON.stringify(a))),yr(this,O0,"application/json");else throw new Error("invalid body")}hasBody(){return or(this,_0)!=null}get method(){return or(this,un)?or(this,un):this.hasBody()?"POST":"GET"}set method(a){a==null&&(a=""),yr(this,un,String(a).toUpperCase())}get headers(){const a=Object.assign({},or(this,Y0));return or(this,dn)&&(a.authorization=`Basic ${encodeBase64(toUtf8Bytes(or(this,dn)))}`),this.allowGzip&&(a["accept-encoding"]="gzip"),a["content-type"]==null&&or(this,O0)&&(a["content-type"]=or(this,O0)),this.body&&(a["content-length"]=String(this.body.length)),a}getHeader(a){return this.headers[a.toLowerCase()]}setHeader(a,d){or(this,Y0)[String(a).toLowerCase()]=String(d)}clearHeaders(){yr(this,Y0,{})}[Symbol.iterator](){const a=this.headers,d=Object.keys(a);let et=0;return{next:()=>{if(et=0,"timeout must be non-zero","timeout",a),yr(this,ls,a)}get preflightFunc(){return or(this,Gn)||null}set preflightFunc(a){yr(this,Gn,a)}get processFunc(){return or(this,Vn)||null}set processFunc(a){yr(this,Vn,a)}get retryFunc(){return or(this,Wn)||null}set retryFunc(a){yr(this,Wn,a)}toString(){return``}setThrottleParams(a){a.slotInterval!=null&&(or(this,hn).slotInterval=a.slotInterval),a.maxAttempts!=null&&(or(this,hn).maxAttempts=a.maxAttempts)}send(){return assert$s(or(this,tn)==null,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),yr(this,tn,new FetchCancelSignal(this)),Wr(this,Kn,Ks).call(this,0,getTime$1()+this.timeout,0,this,new FetchResponse(0,"",{},null,this))}cancel(){assert$s(or(this,tn)!=null,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const a=fetchSignals.get(this);if(!a)throw new Error("missing signal; should not happen");a()}redirect(a){const d=this.url.split(":")[0].toLowerCase(),et=a.split(":")[0].toLowerCase();assert$s(this.method==="GET"&&(d!=="https"||et!=="http")&&a.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(a)})`});const nt=new Po(a);return nt.method="GET",nt.allowGzip=this.allowGzip,nt.timeout=this.timeout,yr(nt,Y0,Object.assign({},or(this,Y0))),or(this,_0)&&yr(nt,_0,new Uint8Array(or(this,_0))),yr(nt,O0,or(this,O0)),nt}clone(){const a=new Po(this.url);return yr(a,un,or(this,un)),or(this,_0)&&yr(a,_0,or(this,_0)),yr(a,O0,or(this,O0)),yr(a,Y0,Object.assign({},or(this,Y0))),yr(a,dn,or(this,dn)),this.allowGzip&&(a.allowGzip=!0),a.timeout=this.timeout,this.allowInsecureAuthentication&&(a.allowInsecureAuthentication=!0),yr(a,Gn,or(this,Gn)),yr(a,Vn,or(this,Vn)),yr(a,Wn,or(this,Wn)),a}static lockConfig(){locked$2=!0}static getGateway(a){return Gateways[a.toLowerCase()]||null}static registerGateway(a,d){if(a=a.toLowerCase(),a==="http"||a==="https")throw new Error(`cannot intercept ${a}; use registerGetUrl`);if(locked$2)throw new Error("gateways locked");Gateways[a]=d}static registerGetUrl(a){if(locked$2)throw new Error("gateways locked");getUrlFunc=a}static createDataGateway(){return dataGatewayFunc}static createIpfsGatewayFunc(a){return getIpfsGatewayFunc(a)}};fs=new WeakMap,cs=new WeakMap,Y0=new WeakMap,un=new WeakMap,ls=new WeakMap,us=new WeakMap,_0=new WeakMap,O0=new WeakMap,dn=new WeakMap,Gn=new WeakMap,Vn=new WeakMap,Wn=new WeakMap,tn=new WeakMap,hn=new WeakMap,Kn=new WeakSet,Ks=async function(a,d,et,nt,tt){var Mt,_t,Tt;if(a>=or(this,hn).maxAttempts)return tt.makeServerError("exceeded maximum retry limit");assert$s(getTime$1()<=d,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:nt}),et>0&&await wait$1(et);let bt=this.clone();const gt=(bt.url.split(":")[0]||"").toLowerCase();if(gt in Gateways){const Bt=await Gateways[gt](bt.url,checkSignal(or(nt,tn)));if(Bt instanceof FetchResponse){let kt=Bt;if(this.processFunc){checkSignal(or(nt,tn));try{kt=await this.processFunc(bt,kt)}catch(It){(It.throttle==null||typeof It.stall!="number")&&kt.makeServerError("error in post-processing function",It).assertOk()}}return kt}bt=Bt}this.preflightFunc&&(bt=await this.preflightFunc(bt));const wt=await getUrlFunc(bt,checkSignal(or(nt,tn)));let St=new FetchResponse(wt.statusCode,wt.statusMessage,wt.headers,wt.body,nt);if(St.statusCode===301||St.statusCode===302){try{const Bt=St.headers.location||"";return Wr(Mt=bt.redirect(Bt),Kn,Ks).call(Mt,a+1,d,0,nt,St)}catch{}return St}else if(St.statusCode===429&&(this.retryFunc==null||await this.retryFunc(bt,St,a))){const Bt=St.headers["retry-after"];let kt=or(this,hn).slotInterval*Math.trunc(Math.random()*Math.pow(2,a));return typeof Bt=="string"&&Bt.match(/^[1-9][0-9]*$/)&&(kt=parseInt(Bt)),Wr(_t=bt.clone(),Kn,Ks).call(_t,a+1,d,kt,nt,St)}if(this.processFunc){checkSignal(or(nt,tn));try{St=await this.processFunc(bt,St)}catch(Bt){(Bt.throttle==null||typeof Bt.stall!="number")&&St.makeServerError("error in post-processing function",Bt).assertOk();let kt=or(this,hn).slotInterval*Math.trunc(Math.random()*Math.pow(2,a));return Bt.stall>=0&&(kt=Bt.stall),Wr(Tt=bt.clone(),Kn,Ks).call(Tt,a+1,d,kt,nt,St)}}return St};let FetchRequest=Po;var Xs,eo,to,Z0,ds,Yn;const Jo=class Jo{constructor(a,d,et,nt,tt){Vr(this,Xs,void 0);Vr(this,eo,void 0);Vr(this,to,void 0);Vr(this,Z0,void 0);Vr(this,ds,void 0);Vr(this,Yn,void 0);yr(this,Xs,a),yr(this,eo,d),yr(this,to,Object.keys(et).reduce((bt,gt)=>(bt[gt.toLowerCase()]=String(et[gt]),bt),{})),yr(this,Z0,nt==null?null:new Uint8Array(nt)),yr(this,ds,tt||null),yr(this,Yn,{message:""})}toString(){return``}get statusCode(){return or(this,Xs)}get statusMessage(){return or(this,eo)}get headers(){return Object.assign({},or(this,to))}get body(){return or(this,Z0)==null?null:new Uint8Array(or(this,Z0))}get bodyText(){try{return or(this,Z0)==null?"":toUtf8String(or(this,Z0))}catch{assert$s(!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{assert$s(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const a=this.headers,d=Object.keys(a);let et=0;return{next:()=>{if(et=0,"invalid stall timeout","stall",d);const et=new Error(a||"throttling requests");throw defineProperties(et,{stall:d,throttle:!0}),et}getHeader(a){return this.headers[a.toLowerCase()]}hasBody(){return or(this,Z0)!=null}get request(){return or(this,ds)}ok(){return or(this,Yn).message===""&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:a,error:d}=or(this,Yn);a===""&&(a=`server response ${this.statusCode} ${this.statusMessage}`),assert$s(!1,a,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:d})}};Xs=new WeakMap,eo=new WeakMap,to=new WeakMap,Z0=new WeakMap,ds=new WeakMap,Yn=new WeakMap;let FetchResponse=Jo;function getTime$1(){return new Date().getTime()}function unpercent(c){return toUtf8Bytes(c.replace(/%([0-9a-f][0-9a-f])/gi,(a,d)=>String.fromCharCode(parseInt(d,16))))}function wait$1(c){return new Promise(a=>setTimeout(a,c))}const BN_N1=BigInt(-1),BN_0$8=BigInt(0),BN_1$3=BigInt(1),BN_5=BigInt(5),_guard$3={};let Zeros$1="0000";for(;Zeros$1.length<80;)Zeros$1+=Zeros$1;function getTens(c){let a=Zeros$1;for(;a.length=-nt&&cBN_0$8?c=fromTwos(mask(c,et),et):c=-fromTwos(mask(-c,et),et)}else{const nt=BN_1$3<=0&&ctt[gt]==null?St:(assertArgument(typeof tt[gt]===wt,"invalid fixed format ("+gt+" not "+wt+")","format."+gt,tt[gt]),tt[gt]);a=bt("signed","boolean",a),d=bt("width","number",d),et=bt("decimals","number",et)}assertArgument(d%8===0,"invalid FixedNumber width (not byte aligned)","format.width",d),assertArgument(et<=80,"invalid FixedNumber decimals (too large)","format.decimals",et);const nt=(a?"":"u")+"fixed"+String(d)+"x"+String(et);return{signed:a,width:d,decimals:et,name:nt}}function toString$1(c,a){let d="";c0?et*=getTens(nt):nt<0&&(d*=getTens(-nt)),det?1:0}eq(a){return this.cmp(a)===0}lt(a){return this.cmp(a)<0}lte(a){return this.cmp(a)<=0}gt(a){return this.cmp(a)>0}gte(a){return this.cmp(a)>=0}floor(){let a=or(this,A0);return or(this,A0)BN_0$8&&(a+=or(this,k0)-BN_1$3),a=or(this,A0)/or(this,k0)*or(this,k0),Wr(this,Q0,cn).call(this,a,"ceiling")}round(a){if(a==null&&(a=0),a>=this.decimals)return this;const d=this.decimals-a,et=BN_5*getTens(d-1);let nt=this.value+et;const tt=getTens(d);return nt=nt/tt*tt,checkValue(nt,or(this,J0),"round"),new An(_guard$3,nt,or(this,J0))}isZero(){return or(this,A0)===BN_0$8}isNegative(){return or(this,A0)0){const wt=getTens(gt);assert$s(bt%wt===BN_0$8,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:a}),bt/=wt}else gt<0&&(bt*=getTens(-gt));return checkValue(bt,tt,"fromValue"),new An(_guard$3,bt,tt)}static fromString(a,d){const et=a.match(/^(-?)([0-9]*)\.?([0-9]*)$/);assertArgument(et&&et[2].length+et[3].length>0,"invalid FixedNumber string value","value",a);const nt=getFormat(d);let tt=et[2]||"0",bt=et[3]||"";for(;bt.length{assert$s(et<=c.length,"data short segment too short","BUFFER_OVERRUN",{buffer:c,length:c.length,offset:et})};if(c[a]>=248){const et=c[a]-247;d(a+1+et);const nt=unarrayifyInteger(c,a+1,et);return d(a+1+et+nt),_decodeChildren(c,a,a+1+et,et+nt)}else if(c[a]>=192){const et=c[a]-192;return d(a+1+et),_decodeChildren(c,a,a+1,et)}else if(c[a]>=184){const et=c[a]-183;d(a+1+et);const nt=unarrayifyInteger(c,a+1,et);d(a+1+et+nt);const tt=hexlify(c.slice(a+1+et,a+1+et+nt));return{consumed:1+et+nt,result:tt}}else if(c[a]>=128){const et=c[a]-128;d(a+1+et);const nt=hexlify(c.slice(a+1,a+1+et));return{consumed:1+et,result:nt}}return{consumed:1,result:hexlifyByte(c[a])}}function decodeRlp(c){const a=getBytes(c,"data"),d=_decode(a,0);return assertArgument(d.consumed===a.length,"unexpected junk after rlp payload","data",c),d.result}function arrayifyInteger(c){const a=[];for(;c;)a.unshift(c&255),c>>=8;return a}function _encode(c){if(Array.isArray(c)){let et=[];if(c.forEach(function(tt){et=et.concat(_encode(tt))}),et.length<=55)return et.unshift(192+et.length),et;const nt=arrayifyInteger(et.length);return nt.unshift(247+nt.length),nt.concat(et)}const a=Array.prototype.slice.call(getBytes(c,"object"));if(a.length===1&&a[0]<=127)return a;if(a.length<=55)return a.unshift(128+a.length),a;const d=arrayifyInteger(a.length);return d.unshift(183+d.length),d.concat(a)}const nibbles="0123456789abcdef";function encodeRlp(c){let a="0x";for(const d of _encode(c))a+=nibbles[d>>4],a+=nibbles[d&15];return a}const names=["wei","kwei","mwei","gwei","szabo","finney","ether"];function formatUnits$1(c,a){let d=18;if(typeof a=="string"){const et=names.indexOf(a);assertArgument(et>=0,"invalid unit","unit",a),d=3*et}else a!=null&&(d=getNumber(a,"unit"));return FixedNumber.fromValue(c,d,{decimals:d,width:512}).toString()}function parseUnits$1(c,a){assertArgument(typeof c=="string","value must be a string","value",c);let d=18;if(typeof a=="string"){const et=names.indexOf(a);assertArgument(et>=0,"invalid unit","unit",a),d=3*et}else a!=null&&(d=getNumber(a,"unit"));return FixedNumber.fromString(c,{decimals:d,width:512}).value}function formatEther$1(c){return formatUnits$1(c,18)}const WordSize=32,Padding=new Uint8Array(WordSize),passProperties$1=["then"],_guard$2={};function throwError(c,a){const d=new Error(`deferred error during ABI decoding triggered accessing ${c}`);throw d.error=a,d}var Cn;const Js=class Js extends Array{constructor(...d){const et=d[0];let nt=d[1],tt=(d[2]||[]).slice(),bt=!0;et!==_guard$2&&(nt=d,tt=[],bt=!1);super(nt.length);Vr(this,Cn,void 0);nt.forEach((wt,St)=>{this[St]=wt});const gt=tt.reduce((wt,St)=>(typeof St=="string"&&wt.set(St,(wt.get(St)||0)+1),wt),new Map);if(yr(this,Cn,Object.freeze(nt.map((wt,St)=>{const Mt=tt[St];return Mt!=null&>.get(Mt)===1?Mt:null}))),!!bt)return Object.freeze(this),new Proxy(this,{get:(wt,St,Mt)=>{if(typeof St=="string"){if(St.match(/^[0-9]+$/)){const Tt=getNumber(St,"%index");if(Tt<0||Tt>=this.length)throw new RangeError("out of result range");const Bt=wt[Tt];return Bt instanceof Error&&throwError(`index ${Tt}`,Bt),Bt}if(passProperties$1.indexOf(St)>=0)return Reflect.get(wt,St,Mt);const _t=wt[St];if(_t instanceof Function)return function(...Tt){return _t.apply(this===Mt?wt:this,Tt)};if(!(St in wt))return wt.getValue.apply(this===Mt?wt:this,[St])}return Reflect.get(wt,St,Mt)}})}toArray(){const d=[];return this.forEach((et,nt)=>{et instanceof Error&&throwError(`index ${nt}`,et),d.push(et)}),d}toObject(){return or(this,Cn).reduce((d,et,nt)=>(assert$s(et!=null,"value at index ${ index } unnamed","UNSUPPORTED_OPERATION",{operation:"toObject()"}),et in d||(d[et]=this.getValue(et)),d),{})}slice(d,et){d==null&&(d=0),d<0&&(d+=this.length,d<0&&(d=0)),et==null&&(et=this.length),et<0&&(et+=this.length,et<0&&(et=0)),et>this.length&&(et=this.length);const nt=[],tt=[];for(let bt=d;bt{or(this,mn)[a]=getValue$1(d)}}}mn=new WeakMap,Zn=new WeakMap,hs=new WeakSet,xo=function(a){return or(this,mn).push(a),yr(this,Zn,or(this,Zn)+a.length),a.length};var D0,H0,Co,e1;const Qo=class Qo{constructor(a,d){Vr(this,Co);Gr(this,"allowLoose");Vr(this,D0,void 0);Vr(this,H0,void 0);defineProperties(this,{allowLoose:!!d}),yr(this,D0,getBytesCopy(a)),yr(this,H0,0)}get data(){return hexlify(or(this,D0))}get dataLength(){return or(this,D0).length}get consumed(){return or(this,H0)}get bytes(){return new Uint8Array(or(this,D0))}subReader(a){return new Qo(or(this,D0).slice(or(this,H0)+a),this.allowLoose)}readBytes(a,d){let et=Wr(this,Co,e1).call(this,0,a,!!d);return yr(this,H0,or(this,H0)+et.length),et.slice(0,a)}readValue(){return toBigInt(this.readBytes(WordSize))}readIndex(){return toNumber(this.readBytes(WordSize))}};D0=new WeakMap,H0=new WeakMap,Co=new WeakSet,e1=function(a,d,et){let nt=Math.ceil(d/WordSize)*WordSize;return or(this,H0)+nt>or(this,D0).length&&(this.allowLoose&&et&&or(this,H0)+d<=or(this,D0).length?nt=d:assert$s(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:getBytesCopy(or(this,D0)),length:or(this,D0).length,offset:or(this,H0)+nt})),or(this,D0).slice(or(this,H0),or(this,H0)+nt)};let Reader=Qo;function number$1(c){if(!Number.isSafeInteger(c)||c<0)throw new Error(`Wrong positive integer: ${c}`)}function bool(c){if(typeof c!="boolean")throw new Error(`Expected boolean, not ${c}`)}function bytes$1(c,...a){if(!(c instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(a.length>0&&!a.includes(c.length))throw new TypeError(`Expected Uint8Array of length ${a}, not of length=${c.length}`)}function hash$9(c){if(typeof c!="function"||typeof c.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");number$1(c.outputLen),number$1(c.blockLen)}function exists$1(c,a=!0){if(c.destroyed)throw new Error("Hash instance has been destroyed");if(a&&c.finished)throw new Error("Hash#digest() has already been called")}function output$1(c,a){bytes$1(c);const d=a.outputLen;if(c.lengthnew Uint32Array(c.buffer,c.byteOffset,Math.floor(c.byteLength/4)),createView$1=c=>new DataView(c.buffer,c.byteOffset,c.byteLength),rotr$1=(c,a)=>c<<32-a|c>>>a,isLE$1=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!isLE$1)throw new Error("Non little-endian hardware is not supported");Array.from({length:256},(c,a)=>a.toString(16).padStart(2,"0"));function utf8ToBytes$2(c){if(typeof c!="string")throw new TypeError(`utf8ToBytes expected string, got ${typeof c}`);return new TextEncoder().encode(c)}function toBytes$3(c){if(typeof c=="string"&&(c=utf8ToBytes$2(c)),!(c instanceof Uint8Array))throw new TypeError(`Expected input type is Uint8Array (got ${typeof c})`);return c}let Hash$9=class{clone(){return this._cloneInto()}};function wrapConstructor$1(c){const a=et=>c().update(toBytes$3(et)).digest(),d=c();return a.outputLen=d.outputLen,a.blockLen=d.blockLen,a.create=()=>c(),a}function wrapConstructorWithOpts(c){const a=(et,nt)=>c(nt).update(toBytes$3(et)).digest(),d=c({});return a.outputLen=d.outputLen,a.blockLen=d.blockLen,a.create=et=>c(et),a}let HMAC$1=class extends Hash$9{constructor(a,d){super(),this.finished=!1,this.destroyed=!1,assert$r.hash(a);const et=toBytes$3(d);if(this.iHash=a.create(),!(this.iHash instanceof Hash$9))throw new TypeError("Expected instance of class which extends utils.Hash");const nt=this.blockLen=this.iHash.blockLen;this.outputLen=this.iHash.outputLen;const tt=new Uint8Array(nt);tt.set(et.length>this.iHash.blockLen?a.create().update(et).digest():et);for(let bt=0;btnew HMAC$1(c,a).update(d).digest();hmac$2.create=(c,a)=>new HMAC$1(c,a);function setBigUint64$1(c,a,d,et){if(typeof c.setBigUint64=="function")return c.setBigUint64(a,d,et);const nt=BigInt(32),tt=BigInt(4294967295),bt=Number(d>>nt&tt),gt=Number(d&tt),wt=et?4:0,St=et?0:4;c.setUint32(a+wt,bt,et),c.setUint32(a+St,gt,et)}let SHA2$1=class extends Hash$9{constructor(a,d,et,nt){super(),this.blockLen=a,this.outputLen=d,this.padOffset=et,this.isLE=nt,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(a),this.view=createView$1(this.buffer)}update(a){assert$r.exists(this);const{view:d,buffer:et,blockLen:nt}=this;a=toBytes$3(a);const tt=a.length;for(let bt=0;btnt-bt&&(this.process(et,0),bt=0);for(let wt=bt;wtgt.setUint32(4*St,wt,tt))}digest(){const{buffer:a,outputLen:d}=this;this.digestInto(a);const et=a.slice(0,d);return this.destroy(),et}_cloneInto(a){a||(a=new this.constructor),a.set(...this.get());const{blockLen:d,buffer:et,length:nt,finished:tt,destroyed:bt,pos:gt}=this;return a.length=nt,a.pos=gt,a.finished=tt,a.destroyed=bt,nt%d&&a.buffer.set(et),a}};const Chi$1=(c,a,d)=>c&a^~c&d,Maj$1=(c,a,d)=>c&a^c&d^a&d,SHA256_K$1=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]),IV$1=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W$1=new Uint32Array(64);let SHA256$3=class extends SHA2$1{constructor(){super(64,32,8,!1),this.A=IV$1[0]|0,this.B=IV$1[1]|0,this.C=IV$1[2]|0,this.D=IV$1[3]|0,this.E=IV$1[4]|0,this.F=IV$1[5]|0,this.G=IV$1[6]|0,this.H=IV$1[7]|0}get(){const{A:a,B:d,C:et,D:nt,E:tt,F:bt,G:gt,H:wt}=this;return[a,d,et,nt,tt,bt,gt,wt]}set(a,d,et,nt,tt,bt,gt,wt){this.A=a|0,this.B=d|0,this.C=et|0,this.D=nt|0,this.E=tt|0,this.F=bt|0,this.G=gt|0,this.H=wt|0}process(a,d){for(let _t=0;_t<16;_t++,d+=4)SHA256_W$1[_t]=a.getUint32(d,!1);for(let _t=16;_t<64;_t++){const Tt=SHA256_W$1[_t-15],Bt=SHA256_W$1[_t-2],kt=rotr$1(Tt,7)^rotr$1(Tt,18)^Tt>>>3,It=rotr$1(Bt,17)^rotr$1(Bt,19)^Bt>>>10;SHA256_W$1[_t]=It+SHA256_W$1[_t-7]+kt+SHA256_W$1[_t-16]|0}let{A:et,B:nt,C:tt,D:bt,E:gt,F:wt,G:St,H:Mt}=this;for(let _t=0;_t<64;_t++){const Tt=rotr$1(gt,6)^rotr$1(gt,11)^rotr$1(gt,25),Bt=Mt+Tt+Chi$1(gt,wt,St)+SHA256_K$1[_t]+SHA256_W$1[_t]|0,It=(rotr$1(et,2)^rotr$1(et,13)^rotr$1(et,22))+Maj$1(et,nt,tt)|0;Mt=St,St=wt,wt=gt,gt=bt+Bt|0,bt=tt,tt=nt,nt=et,et=Bt+It|0}et=et+this.A|0,nt=nt+this.B|0,tt=tt+this.C|0,bt=bt+this.D|0,gt=gt+this.E|0,wt=wt+this.F|0,St=St+this.G|0,Mt=Mt+this.H|0,this.set(et,nt,tt,bt,gt,wt,St,Mt)}roundClean(){SHA256_W$1.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};const sha256$4=wrapConstructor$1(()=>new SHA256$3),U32_MASK64$1=BigInt(2**32-1),_32n$1=BigInt(32);function fromBig$1(c,a=!1){return a?{h:Number(c&U32_MASK64$1),l:Number(c>>_32n$1&U32_MASK64$1)}:{h:Number(c>>_32n$1&U32_MASK64$1)|0,l:Number(c&U32_MASK64$1)|0}}function split$1(c,a=!1){let d=new Uint32Array(c.length),et=new Uint32Array(c.length);for(let nt=0;ntBigInt(c>>>0)<<_32n$1|BigInt(a>>>0),shrSH=(c,a,d)=>c>>>d,shrSL=(c,a,d)=>c<<32-d|a>>>d,rotrSH=(c,a,d)=>c>>>d|a<<32-d,rotrSL=(c,a,d)=>c<<32-d|a>>>d,rotrBH=(c,a,d)=>c<<64-d|a>>>d-32,rotrBL=(c,a,d)=>c>>>d-32|a<<64-d,rotr32H=(c,a)=>a,rotr32L=(c,a)=>c,rotlSH$1=(c,a,d)=>c<>>32-d,rotlSL$1=(c,a,d)=>a<>>32-d,rotlBH$1=(c,a,d)=>a<>>64-d,rotlBL$1=(c,a,d)=>c<>>64-d;function add(c,a,d,et){const nt=(a>>>0)+(et>>>0);return{h:c+d+(nt/2**32|0)|0,l:nt|0}}const add3L=(c,a,d)=>(c>>>0)+(a>>>0)+(d>>>0),add3H=(c,a,d,et)=>a+d+et+(c/2**32|0)|0,add4L=(c,a,d,et)=>(c>>>0)+(a>>>0)+(d>>>0)+(et>>>0),add4H=(c,a,d,et,nt)=>a+d+et+nt+(c/2**32|0)|0,add5L=(c,a,d,et,nt)=>(c>>>0)+(a>>>0)+(d>>>0)+(et>>>0)+(nt>>>0),add5H=(c,a,d,et,nt,tt)=>a+d+et+nt+tt+(c/2**32|0)|0,u64={fromBig:fromBig$1,split:split$1,toBig,shrSH,shrSL,rotrSH,rotrSL,rotrBH,rotrBL,rotr32H,rotr32L,rotlSH:rotlSH$1,rotlSL:rotlSL$1,rotlBH:rotlBH$1,rotlBL:rotlBL$1,add,add3L,add3H,add4L,add4H,add5H,add5L},[SHA512_Kh,SHA512_Kl]=u64.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(c=>BigInt(c))),SHA512_W_H=new Uint32Array(80),SHA512_W_L=new Uint32Array(80);let SHA512$3=class extends SHA2$1{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:a,Al:d,Bh:et,Bl:nt,Ch:tt,Cl:bt,Dh:gt,Dl:wt,Eh:St,El:Mt,Fh:_t,Fl:Tt,Gh:Bt,Gl:kt,Hh:It,Hl:Lt}=this;return[a,d,et,nt,tt,bt,gt,wt,St,Mt,_t,Tt,Bt,kt,It,Lt]}set(a,d,et,nt,tt,bt,gt,wt,St,Mt,_t,Tt,Bt,kt,It,Lt){this.Ah=a|0,this.Al=d|0,this.Bh=et|0,this.Bl=nt|0,this.Ch=tt|0,this.Cl=bt|0,this.Dh=gt|0,this.Dl=wt|0,this.Eh=St|0,this.El=Mt|0,this.Fh=_t|0,this.Fl=Tt|0,this.Gh=Bt|0,this.Gl=kt|0,this.Hh=It|0,this.Hl=Lt|0}process(a,d){for(let Ft=0;Ft<16;Ft++,d+=4)SHA512_W_H[Ft]=a.getUint32(d),SHA512_W_L[Ft]=a.getUint32(d+=4);for(let Ft=16;Ft<80;Ft++){const zt=SHA512_W_H[Ft-15]|0,Vt=SHA512_W_L[Ft-15]|0,Jt=u64.rotrSH(zt,Vt,1)^u64.rotrSH(zt,Vt,8)^u64.shrSH(zt,Vt,7),ir=u64.rotrSL(zt,Vt,1)^u64.rotrSL(zt,Vt,8)^u64.shrSL(zt,Vt,7),rr=SHA512_W_H[Ft-2]|0,er=SHA512_W_L[Ft-2]|0,lr=u64.rotrSH(rr,er,19)^u64.rotrBH(rr,er,61)^u64.shrSH(rr,er,6),Ct=u64.rotrSL(rr,er,19)^u64.rotrBL(rr,er,61)^u64.shrSL(rr,er,6),dt=u64.add4L(ir,Ct,SHA512_W_L[Ft-7],SHA512_W_L[Ft-16]),mt=u64.add4H(dt,Jt,lr,SHA512_W_H[Ft-7],SHA512_W_H[Ft-16]);SHA512_W_H[Ft]=mt|0,SHA512_W_L[Ft]=dt|0}let{Ah:et,Al:nt,Bh:tt,Bl:bt,Ch:gt,Cl:wt,Dh:St,Dl:Mt,Eh:_t,El:Tt,Fh:Bt,Fl:kt,Gh:It,Gl:Lt,Hh:Ot,Hl:Nt}=this;for(let Ft=0;Ft<80;Ft++){const zt=u64.rotrSH(_t,Tt,14)^u64.rotrSH(_t,Tt,18)^u64.rotrBH(_t,Tt,41),Vt=u64.rotrSL(_t,Tt,14)^u64.rotrSL(_t,Tt,18)^u64.rotrBL(_t,Tt,41),Jt=_t&Bt^~_t&It,ir=Tt&kt^~Tt&Lt,rr=u64.add5L(Nt,Vt,ir,SHA512_Kl[Ft],SHA512_W_L[Ft]),er=u64.add5H(rr,Ot,zt,Jt,SHA512_Kh[Ft],SHA512_W_H[Ft]),lr=rr|0,Ct=u64.rotrSH(et,nt,28)^u64.rotrBH(et,nt,34)^u64.rotrBH(et,nt,39),dt=u64.rotrSL(et,nt,28)^u64.rotrBL(et,nt,34)^u64.rotrBL(et,nt,39),mt=et&tt^et>^tt>,yt=nt&bt^nt&wt^bt&wt;Ot=It|0,Nt=Lt|0,It=Bt|0,Lt=kt|0,Bt=_t|0,kt=Tt|0,{h:_t,l:Tt}=u64.add(St|0,Mt|0,er|0,lr|0),St=gt|0,Mt=wt|0,gt=tt|0,wt=bt|0,tt=et|0,bt=nt|0;const vt=u64.add3L(lr,dt,yt);et=u64.add3H(vt,er,Ct,mt),nt=vt|0}({h:et,l:nt}=u64.add(this.Ah|0,this.Al|0,et|0,nt|0)),{h:tt,l:bt}=u64.add(this.Bh|0,this.Bl|0,tt|0,bt|0),{h:gt,l:wt}=u64.add(this.Ch|0,this.Cl|0,gt|0,wt|0),{h:St,l:Mt}=u64.add(this.Dh|0,this.Dl|0,St|0,Mt|0),{h:_t,l:Tt}=u64.add(this.Eh|0,this.El|0,_t|0,Tt|0),{h:Bt,l:kt}=u64.add(this.Fh|0,this.Fl|0,Bt|0,kt|0),{h:It,l:Lt}=u64.add(this.Gh|0,this.Gl|0,It|0,Lt|0),{h:Ot,l:Nt}=u64.add(this.Hh|0,this.Hl|0,Ot|0,Nt|0),this.set(et,nt,tt,bt,gt,wt,St,Mt,_t,Tt,Bt,kt,It,Lt,Ot,Nt)}roundClean(){SHA512_W_H.fill(0),SHA512_W_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)}};class SHA512_256 extends SHA512$3{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}}let SHA384$1=class extends SHA512$3{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}};const sha512$2=wrapConstructor$1(()=>new SHA512$3);wrapConstructor$1(()=>new SHA512_256);wrapConstructor$1(()=>new SHA384$1);function getGlobal(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof dist$2.global<"u")return dist$2.global;throw new Error("unable to locate global object")}const anyGlobal=getGlobal();anyGlobal.crypto||anyGlobal.msCrypto;function createHmac(c,a){const d={sha256:sha256$4,sha512:sha512$2}[c];return assertArgument(d!=null,"invalid hmac algorithm","algorithm",c),hmac$2.create(d,a)}let locked$1=!1;const _computeHmac=function(c,a,d){return createHmac(c,a).update(d).digest()};let __computeHmac=_computeHmac;function computeHmac(c,a,d){const et=getBytes(a,"key"),nt=getBytes(d,"data");return hexlify(__computeHmac(c,et,nt))}computeHmac._=_computeHmac;computeHmac.lock=function(){locked$1=!0};computeHmac.register=function(c){if(locked$1)throw new Error("computeHmac is locked");__computeHmac=c};Object.freeze(computeHmac);const[SHA3_PI$1,SHA3_ROTL$1,_SHA3_IOTA$1]=[[],[],[]],_0n$6=BigInt(0),_1n$7=BigInt(1),_2n$5=BigInt(2),_7n$1=BigInt(7),_256n$1=BigInt(256),_0x71n$1=BigInt(113);for(let c=0,a=_1n$7,d=1,et=0;c<24;c++){[d,et]=[et,(2*d+3*et)%5],SHA3_PI$1.push(2*(5*et+d)),SHA3_ROTL$1.push((c+1)*(c+2)/2%64);let nt=_0n$6;for(let tt=0;tt<7;tt++)a=(a<<_1n$7^(a>>_7n$1)*_0x71n$1)%_256n$1,a&_2n$5&&(nt^=_1n$7<<(_1n$7<d>32?u64.rotlBH(c,a,d):u64.rotlSH(c,a,d),rotlL$1=(c,a,d)=>d>32?u64.rotlBL(c,a,d):u64.rotlSL(c,a,d);function keccakP$1(c,a=24){const d=new Uint32Array(10);for(let et=24-a;et<24;et++){for(let bt=0;bt<10;bt++)d[bt]=c[bt]^c[bt+10]^c[bt+20]^c[bt+30]^c[bt+40];for(let bt=0;bt<10;bt+=2){const gt=(bt+8)%10,wt=(bt+2)%10,St=d[wt],Mt=d[wt+1],_t=rotlH$1(St,Mt,1)^d[gt],Tt=rotlL$1(St,Mt,1)^d[gt+1];for(let Bt=0;Bt<50;Bt+=10)c[bt+Bt]^=_t,c[bt+Bt+1]^=Tt}let nt=c[2],tt=c[3];for(let bt=0;bt<24;bt++){const gt=SHA3_ROTL$1[bt],wt=rotlH$1(nt,tt,gt),St=rotlL$1(nt,tt,gt),Mt=SHA3_PI$1[bt];nt=c[Mt],tt=c[Mt+1],c[Mt]=wt,c[Mt+1]=St}for(let bt=0;bt<50;bt+=10){for(let gt=0;gt<10;gt++)d[gt]=c[bt+gt];for(let gt=0;gt<10;gt++)c[bt+gt]^=~d[(gt+2)%10]&d[(gt+4)%10]}c[0]^=SHA3_IOTA_H$1[et],c[1]^=SHA3_IOTA_L$1[et]}d.fill(0)}let Keccak$1=class t1 extends Hash$9{constructor(a,d,et,nt=!1,tt=24){if(super(),this.blockLen=a,this.suffix=d,this.outputLen=et,this.enableXOF=nt,this.rounds=tt,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,assert$r.number(et),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=u32$1(this.state)}keccak(){keccakP$1(this.state32,this.rounds),this.posOut=0,this.pos=0}update(a){assert$r.exists(this);const{blockLen:d,state:et}=this;a=toBytes$3(a);const nt=a.length;for(let tt=0;tt=et&&this.keccak();const bt=Math.min(et-this.posOut,tt-nt);a.set(d.subarray(this.posOut,this.posOut+bt),nt),this.posOut+=bt,nt+=bt}return a}xofInto(a){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(a)}xof(a){return assert$r.number(a),this.xofInto(new Uint8Array(a))}digestInto(a){if(assert$r.output(a,this),this.finished)throw new Error("digest() was already called");return this.writeInto(a),this.destroy(),a}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(a){const{blockLen:d,suffix:et,outputLen:nt,rounds:tt,enableXOF:bt}=this;return a||(a=new t1(d,et,nt,bt,tt)),a.state32.set(this.state32),a.pos=this.pos,a.posOut=this.posOut,a.finished=this.finished,a.rounds=tt,a.suffix=et,a.outputLen=nt,a.enableXOF=bt,a.destroyed=this.destroyed,a}};const gen$1=(c,a,d)=>wrapConstructor$1(()=>new Keccak$1(a,c,d));gen$1(6,144,224/8);gen$1(6,136,256/8);gen$1(6,104,384/8);gen$1(6,72,512/8);gen$1(1,144,224/8);const keccak_256$1=gen$1(1,136,256/8);gen$1(1,104,384/8);gen$1(1,72,512/8);const genShake=(c,a,d)=>wrapConstructorWithOpts((et={})=>new Keccak$1(a,c,et.dkLen===void 0?d:et.dkLen,!0));genShake(31,168,128/8);genShake(31,136,256/8);let locked=!1;const _keccak256=function(c){return keccak_256$1(c)};let __keccak256=_keccak256;function keccak256$2(c){const a=getBytes(c,"data");return hexlify(__keccak256(a))}keccak256$2._=_keccak256;keccak256$2.lock=function(){locked=!0};keccak256$2.register=function(c){if(locked)throw new TypeError("keccak256 is locked");__keccak256=c};Object.freeze(keccak256$2);var cryptoBrowserify={},browser$b={exports:{}},safeBuffer$2={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh */(function(c,a){var d=bufferPolyfill,et=d.Buffer;function nt(bt,gt){for(var wt in bt)gt[wt]=bt[wt]}et.from&&et.alloc&&et.allocUnsafe&&et.allocUnsafeSlow?c.exports=d:(nt(d,a),a.Buffer=tt);function tt(bt,gt,wt){return et(bt,gt,wt)}tt.prototype=Object.create(et.prototype),nt(et,tt),tt.from=function(bt,gt,wt){if(typeof bt=="number")throw new TypeError("Argument must not be a number");return et(bt,gt,wt)},tt.alloc=function(bt,gt,wt){if(typeof bt!="number")throw new TypeError("Argument must be a number");var St=et(bt);return gt!==void 0?typeof wt=="string"?St.fill(gt,wt):St.fill(gt):St.fill(0),St},tt.allocUnsafe=function(bt){if(typeof bt!="number")throw new TypeError("Argument must be a number");return et(bt)},tt.allocUnsafeSlow=function(bt){if(typeof bt!="number")throw new TypeError("Argument must be a number");return d.SlowBuffer(bt)}})(safeBuffer$2,safeBuffer$2.exports);var safeBufferExports$1=safeBuffer$2.exports,MAX_BYTES=65536,MAX_UINT32=4294967295;function oldBrowser$1(){throw new Error(`Secure random number generation is not supported by this browser. -Use Chrome, Firefox or Internet Explorer 11`)}var Buffer$A=safeBufferExports$1.Buffer,crypto$3=commonjsGlobal.crypto||commonjsGlobal.msCrypto;crypto$3&&crypto$3.getRandomValues?browser$b.exports=randomBytes$3:browser$b.exports=oldBrowser$1;function randomBytes$3(c,a){if(c>MAX_UINT32)throw new RangeError("requested too many random bytes");var d=Buffer$A.allocUnsafe(c);if(c>0)if(c>MAX_BYTES)for(var et=0;et0&&(bt=d[0]),bt instanceof Error)throw bt;var gt=new Error("Unhandled error."+(bt?" ("+bt.message+")":""));throw gt.context=bt,gt}var wt=tt[a];if(wt===void 0)return!1;if(typeof wt=="function")ReflectApply(wt,this,d);else for(var St=wt.length,Mt=arrayClone(wt,St),et=0;et0&&bt.length>nt&&!bt.warned){bt.warned=!0;var gt=new Error("Possible EventEmitter memory leak detected. "+bt.length+" "+String(a)+" listeners added. Use emitter.setMaxListeners() to increase limit");gt.name="MaxListenersExceededWarning",gt.emitter=c,gt.type=a,gt.count=bt.length,ProcessEmitWarning(gt)}return c}EventEmitter.prototype.addListener=function(a,d){return _addListener(this,a,d,!1)};EventEmitter.prototype.on=EventEmitter.prototype.addListener;EventEmitter.prototype.prependListener=function(a,d){return _addListener(this,a,d,!0)};function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(c,a,d){var et={fired:!1,wrapFn:void 0,target:c,type:a,listener:d},nt=onceWrapper.bind(et);return nt.listener=d,et.wrapFn=nt,nt}EventEmitter.prototype.once=function(a,d){return checkListener(d),this.on(a,_onceWrap(this,a,d)),this};EventEmitter.prototype.prependOnceListener=function(a,d){return checkListener(d),this.prependListener(a,_onceWrap(this,a,d)),this};EventEmitter.prototype.removeListener=function(a,d){var et,nt,tt,bt,gt;if(checkListener(d),nt=this._events,nt===void 0)return this;if(et=nt[a],et===void 0)return this;if(et===d||et.listener===d)--this._eventsCount===0?this._events=Object.create(null):(delete nt[a],nt.removeListener&&this.emit("removeListener",a,et.listener||d));else if(typeof et!="function"){for(tt=-1,bt=et.length-1;bt>=0;bt--)if(et[bt]===d||et[bt].listener===d){gt=et[bt].listener,tt=bt;break}if(tt<0)return this;tt===0?et.shift():spliceOne(et,tt),et.length===1&&(nt[a]=et[0]),nt.removeListener!==void 0&&this.emit("removeListener",a,gt||d)}return this};EventEmitter.prototype.off=EventEmitter.prototype.removeListener;EventEmitter.prototype.removeAllListeners=function(a){var d,et,nt;if(et=this._events,et===void 0)return this;if(et.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):et[a]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete et[a]),this;if(arguments.length===0){var tt=Object.keys(et),bt;for(nt=0;nt=0;nt--)this.removeListener(a,d[nt]);return this};function _listeners(c,a,d){var et=c._events;if(et===void 0)return[];var nt=et[a];return nt===void 0?[]:typeof nt=="function"?d?[nt.listener||nt]:[nt]:d?unwrapListeners(nt):arrayClone(nt,nt.length)}EventEmitter.prototype.listeners=function(a){return _listeners(this,a,!0)};EventEmitter.prototype.rawListeners=function(a){return _listeners(this,a,!1)};EventEmitter.listenerCount=function(c,a){return typeof c.listenerCount=="function"?c.listenerCount(a):listenerCount.call(c,a)};EventEmitter.prototype.listenerCount=listenerCount;function listenerCount(c){var a=this._events;if(a!==void 0){var d=a[c];if(typeof d=="function")return 1;if(d!==void 0)return d.length}return 0}EventEmitter.prototype.eventNames=function(){return this._eventsCount>0?ReflectOwnKeys(this._events):[]};function arrayClone(c,a){for(var d=new Array(a),et=0;et"u"||!getProto$1?undefined$1:getProto$1(Uint8Array),INTRINSICS={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto$1?getProto$1([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$Error,"%eval%":eval,"%EvalError%":$EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto$1?getProto$1(getProto$1([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols||!getProto$1?undefined$1:getProto$1(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":$RangeError,"%ReferenceError%":$ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols||!getProto$1?undefined$1:getProto$1(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto$1?getProto$1(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError$1,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$2,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":$URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet};if(getProto$1)try{null.error}catch(c){var errorProto=getProto$1(getProto$1(c));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function c(a){var d;if(a==="%AsyncFunction%")d=getEvalledConstructor("async function () {}");else if(a==="%GeneratorFunction%")d=getEvalledConstructor("function* () {}");else if(a==="%AsyncGeneratorFunction%")d=getEvalledConstructor("async function* () {}");else if(a==="%AsyncGenerator%"){var et=c("%AsyncGeneratorFunction%");et&&(d=et.prototype)}else if(a==="%AsyncIteratorPrototype%"){var nt=c("%AsyncGenerator%");nt&&getProto$1&&(d=getProto$1(nt.prototype))}return INTRINSICS[a]=d,d},LEGACY_ALIASES={__proto__:null,"%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"]},bind=functionBind,hasOwn=hasown,$concat=bind.call(Function.call,Array.prototype.concat),$spliceApply=bind.call(Function.apply,Array.prototype.splice),$replace=bind.call(Function.call,String.prototype.replace),$strSlice=bind.call(Function.call,String.prototype.slice),$exec=bind.call(Function.call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function(a){var d=$strSlice(a,0,1),et=$strSlice(a,-1);if(d==="%"&&et!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");if(et==="%"&&d!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");var nt=[];return $replace(a,rePropName,function(tt,bt,gt,wt){nt[nt.length]=gt?$replace(wt,reEscapeChar,"$1"):bt||tt}),nt},getBaseIntrinsic=function(a,d){var et=a,nt;if(hasOwn(LEGACY_ALIASES,et)&&(nt=LEGACY_ALIASES[et],et="%"+nt[0]+"%"),hasOwn(INTRINSICS,et)){var tt=INTRINSICS[et];if(tt===needsEval&&(tt=doEval(et)),typeof tt>"u"&&!d)throw new $TypeError$2("intrinsic "+a+" exists, but is not available. Please file an issue!");return{alias:nt,name:et,value:tt}}throw new $SyntaxError$1("intrinsic "+a+" does not exist!")},getIntrinsic=function(a,d){if(typeof a!="string"||a.length===0)throw new $TypeError$2("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof d!="boolean")throw new $TypeError$2('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,a)===null)throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var et=stringToPath(a),nt=et.length>0?et[0]:"",tt=getBaseIntrinsic("%"+nt+"%",d),bt=tt.name,gt=tt.value,wt=!1,St=tt.alias;St&&(nt=St[0],$spliceApply(et,$concat([0,1],St)));for(var Mt=1,_t=!0;Mt=et.length){var It=$gOPD$1(gt,Tt);_t=!!It,_t&&"get"in It&&!("originalValue"in It.get)?gt=It.get:gt=gt[Tt]}else _t=hasOwn(gt,Tt),gt=gt[Tt];_t&&!wt&&(INTRINSICS[bt]=gt)}}return gt},callBind$2={exports:{}},esDefineProperty,hasRequiredEsDefineProperty;function requireEsDefineProperty(){if(hasRequiredEsDefineProperty)return esDefineProperty;hasRequiredEsDefineProperty=1;var c=getIntrinsic,a=c("%Object.defineProperty%",!0)||!1;if(a)try{a({},"a",{value:1})}catch{a=!1}return esDefineProperty=a,esDefineProperty}var GetIntrinsic$2=getIntrinsic,$gOPD=GetIntrinsic$2("%Object.getOwnPropertyDescriptor%",!0);if($gOPD)try{$gOPD([],"length")}catch{$gOPD=null}var gopd$1=$gOPD,$defineProperty$1=requireEsDefineProperty(),$SyntaxError=syntax,$TypeError$1=type,gopd=gopd$1,defineDataProperty=function(a,d,et){if(!a||typeof a!="object"&&typeof a!="function")throw new $TypeError$1("`obj` must be an object or a function`");if(typeof d!="string"&&typeof d!="symbol")throw new $TypeError$1("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new $TypeError$1("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new $TypeError$1("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new $TypeError$1("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new $TypeError$1("`loose`, if provided, must be a boolean");var nt=arguments.length>3?arguments[3]:null,tt=arguments.length>4?arguments[4]:null,bt=arguments.length>5?arguments[5]:null,gt=arguments.length>6?arguments[6]:!1,wt=!!gopd&&gopd(a,d);if($defineProperty$1)$defineProperty$1(a,d,{configurable:bt===null&&wt?wt.configurable:!bt,enumerable:nt===null&&wt?wt.enumerable:!nt,value:et,writable:tt===null&&wt?wt.writable:!tt});else if(gt||!nt&&!tt&&!bt)a[d]=et;else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},$defineProperty=requireEsDefineProperty(),hasPropertyDescriptors=function(){return!!$defineProperty};hasPropertyDescriptors.hasArrayLengthDefineBug=function(){if(!$defineProperty)return null;try{return $defineProperty([],"length",{value:1}).length!==1}catch{return!0}};var hasPropertyDescriptors_1=hasPropertyDescriptors,GetIntrinsic$1=getIntrinsic,define=defineDataProperty,hasDescriptors=hasPropertyDescriptors_1(),gOPD$1=gopd$1,$TypeError=type,$floor=GetIntrinsic$1("%Math.floor%"),setFunctionLength=function(a,d){if(typeof a!="function")throw new $TypeError("`fn` is not a function");if(typeof d!="number"||d<0||d>4294967295||$floor(d)!==d)throw new $TypeError("`length` must be a positive 32-bit integer");var et=arguments.length>2&&!!arguments[2],nt=!0,tt=!0;if("length"in a&&gOPD$1){var bt=gOPD$1(a,"length");bt&&!bt.configurable&&(nt=!1),bt&&!bt.writable&&(tt=!1)}return(nt||tt||!et)&&(hasDescriptors?define(a,"length",d,!0,!0):define(a,"length",d)),a};(function(c){var a=functionBind,d=getIntrinsic,et=setFunctionLength,nt=type,tt=d("%Function.prototype.apply%"),bt=d("%Function.prototype.call%"),gt=d("%Reflect.apply%",!0)||a.call(bt,tt),wt=requireEsDefineProperty(),St=d("%Math.max%");c.exports=function(Tt){if(typeof Tt!="function")throw new nt("a function is required");var Bt=gt(a,bt,arguments);return et(Bt,1+St(0,Tt.length-(arguments.length-1)),!0)};var Mt=function(){return gt(a,tt,arguments)};wt?wt(c.exports,"apply",{value:Mt}):c.exports.apply=Mt})(callBind$2);var callBindExports=callBind$2.exports,GetIntrinsic=getIntrinsic,callBind$1=callBindExports,$indexOf$1=callBind$1(GetIntrinsic("String.prototype.indexOf")),callBound$2=function(a,d){var et=GetIntrinsic(a,!!d);return typeof et=="function"&&$indexOf$1(a,".prototype.")>-1?callBind$1(et):et},hasToStringTag$3=shams(),callBound$1=callBound$2,$toString$1=callBound$1("Object.prototype.toString"),isStandardArguments=function(a){return hasToStringTag$3&&a&&typeof a=="object"&&Symbol.toStringTag in a?!1:$toString$1(a)==="[object Arguments]"},isLegacyArguments=function(a){return isStandardArguments(a)?!0:a!==null&&typeof a=="object"&&typeof a.length=="number"&&a.length>=0&&$toString$1(a)!=="[object Array]"&&$toString$1(a.callee)==="[object Function]"},supportsStandardArguments=function(){return isStandardArguments(arguments)}();isStandardArguments.isLegacyArguments=isLegacyArguments;var isArguments=supportsStandardArguments?isStandardArguments:isLegacyArguments,toStr$2=Object.prototype.toString,fnToStr$1=Function.prototype.toString,isFnRegex=/^\s*(?:function)?\*/,hasToStringTag$2=shams(),getProto=Object.getPrototypeOf,getGeneratorFunc=function(){if(!hasToStringTag$2)return!1;try{return Function("return function*() {}")()}catch{}},GeneratorFunction,isGeneratorFunction=function(a){if(typeof a!="function")return!1;if(isFnRegex.test(fnToStr$1.call(a)))return!0;if(!hasToStringTag$2){var d=toStr$2.call(a);return d==="[object GeneratorFunction]"}if(!getProto)return!1;if(typeof GeneratorFunction>"u"){var et=getGeneratorFunc();GeneratorFunction=et?getProto(et):!1}return getProto(a)===GeneratorFunction},fnToStr=Function.prototype.toString,reflectApply=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,badArrayLike,isCallableMarker;if(typeof reflectApply=="function"&&typeof Object.defineProperty=="function")try{badArrayLike=Object.defineProperty({},"length",{get:function(){throw isCallableMarker}}),isCallableMarker={},reflectApply(function(){throw 42},null,badArrayLike)}catch(c){c!==isCallableMarker&&(reflectApply=null)}else reflectApply=null;var constructorRegex=/^\s*class\b/,isES6ClassFn=function(a){try{var d=fnToStr.call(a);return constructorRegex.test(d)}catch{return!1}},tryFunctionObject=function(a){try{return isES6ClassFn(a)?!1:(fnToStr.call(a),!0)}catch{return!1}},toStr$1=Object.prototype.toString,objectClass="[object Object]",fnClass="[object Function]",genClass="[object GeneratorFunction]",ddaClass="[object HTMLAllCollection]",ddaClass2="[object HTML document.all class]",ddaClass3="[object HTMLCollection]",hasToStringTag$1=typeof Symbol=="function"&&!!Symbol.toStringTag,isIE68=!(0 in[,]),isDDA=function(){return!1};if(typeof document=="object"){var all=document.all;toStr$1.call(all)===toStr$1.call(document.all)&&(isDDA=function(a){if((isIE68||!a)&&(typeof a>"u"||typeof a=="object"))try{var d=toStr$1.call(a);return(d===ddaClass||d===ddaClass2||d===ddaClass3||d===objectClass)&&a("")==null}catch{}return!1})}var isCallable$1=reflectApply?function(a){if(isDDA(a))return!0;if(!a||typeof a!="function"&&typeof a!="object")return!1;try{reflectApply(a,null,badArrayLike)}catch(d){if(d!==isCallableMarker)return!1}return!isES6ClassFn(a)&&tryFunctionObject(a)}:function(a){if(isDDA(a))return!0;if(!a||typeof a!="function"&&typeof a!="object")return!1;if(hasToStringTag$1)return tryFunctionObject(a);if(isES6ClassFn(a))return!1;var d=toStr$1.call(a);return d!==fnClass&&d!==genClass&&!/^\[object HTML/.test(d)?!1:tryFunctionObject(a)},isCallable=isCallable$1,toStr=Object.prototype.toString,hasOwnProperty=Object.prototype.hasOwnProperty,forEachArray=function(a,d,et){for(var nt=0,tt=a.length;nt=3&&(nt=et),toStr.call(a)==="[object Array]"?forEachArray(a,d,nt):typeof a=="string"?forEachString(a,d,nt):forEachObject(a,d,nt)},forEach_1=forEach$1,possibleTypedArrayNames=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],possibleNames=possibleTypedArrayNames,g$1=typeof globalThis>"u"?commonjsGlobal:globalThis,availableTypedArrays$1=function(){for(var a=[],d=0;d"u"?commonjsGlobal:globalThis,typedArrays=availableTypedArrays(),$slice=callBound("String.prototype.slice"),getPrototypeOf=Object.getPrototypeOf,$indexOf=callBound("Array.prototype.indexOf",!0)||function(a,d){for(var et=0;et-1?d:d!=="Object"?!1:trySlices(a)}return gOPD?tryTypedArrays(a):null},whichTypedArray=whichTypedArray$1,isTypedArray=function(a){return!!whichTypedArray(a)};(function(c){var a=isArguments,d=isGeneratorFunction,et=whichTypedArray$1,nt=isTypedArray;function tt(dr){return dr.call.bind(dr)}var bt=typeof BigInt<"u",gt=typeof Symbol<"u",wt=tt(Object.prototype.toString),St=tt(Number.prototype.valueOf),Mt=tt(String.prototype.valueOf),_t=tt(Boolean.prototype.valueOf);if(bt)var Tt=tt(BigInt.prototype.valueOf);if(gt)var Bt=tt(Symbol.prototype.valueOf);function kt(dr,Kr){if(typeof dr!="object")return!1;try{return Kr(dr),!0}catch{return!1}}c.isArgumentsObject=a,c.isGeneratorFunction=d,c.isTypedArray=nt;function It(dr){return typeof Promise<"u"&&dr instanceof Promise||dr!==null&&typeof dr=="object"&&typeof dr.then=="function"&&typeof dr.catch=="function"}c.isPromise=It;function Lt(dr){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(dr):nt(dr)||Dt(dr)}c.isArrayBufferView=Lt;function Ot(dr){return et(dr)==="Uint8Array"}c.isUint8Array=Ot;function Nt(dr){return et(dr)==="Uint8ClampedArray"}c.isUint8ClampedArray=Nt;function Ft(dr){return et(dr)==="Uint16Array"}c.isUint16Array=Ft;function zt(dr){return et(dr)==="Uint32Array"}c.isUint32Array=zt;function Vt(dr){return et(dr)==="Int8Array"}c.isInt8Array=Vt;function Jt(dr){return et(dr)==="Int16Array"}c.isInt16Array=Jt;function ir(dr){return et(dr)==="Int32Array"}c.isInt32Array=ir;function rr(dr){return et(dr)==="Float32Array"}c.isFloat32Array=rr;function er(dr){return et(dr)==="Float64Array"}c.isFloat64Array=er;function lr(dr){return et(dr)==="BigInt64Array"}c.isBigInt64Array=lr;function Ct(dr){return et(dr)==="BigUint64Array"}c.isBigUint64Array=Ct;function dt(dr){return wt(dr)==="[object Map]"}dt.working=typeof Map<"u"&&dt(new Map);function mt(dr){return typeof Map>"u"?!1:dt.working?dt(dr):dr instanceof Map}c.isMap=mt;function yt(dr){return wt(dr)==="[object Set]"}yt.working=typeof Set<"u"&&yt(new Set);function vt(dr){return typeof Set>"u"?!1:yt.working?yt(dr):dr instanceof Set}c.isSet=vt;function Et(dr){return wt(dr)==="[object WeakMap]"}Et.working=typeof WeakMap<"u"&&Et(new WeakMap);function At(dr){return typeof WeakMap>"u"?!1:Et.working?Et(dr):dr instanceof WeakMap}c.isWeakMap=At;function Pt(dr){return wt(dr)==="[object WeakSet]"}Pt.working=typeof WeakSet<"u"&&Pt(new WeakSet);function xt(dr){return Pt(dr)}c.isWeakSet=xt;function ht(dr){return wt(dr)==="[object ArrayBuffer]"}ht.working=typeof ArrayBuffer<"u"&&ht(new ArrayBuffer);function $t(dr){return typeof ArrayBuffer>"u"?!1:ht.working?ht(dr):dr instanceof ArrayBuffer}c.isArrayBuffer=$t;function Rt(dr){return wt(dr)==="[object DataView]"}Rt.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Rt(new DataView(new ArrayBuffer(1),0,1));function Dt(dr){return typeof DataView>"u"?!1:Rt.working?Rt(dr):dr instanceof DataView}c.isDataView=Dt;var Ht=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function tr(dr){return wt(dr)==="[object SharedArrayBuffer]"}function Xt(dr){return typeof Ht>"u"?!1:(typeof tr.working>"u"&&(tr.working=tr(new Ht)),tr.working?tr(dr):dr instanceof Ht)}c.isSharedArrayBuffer=Xt;function Ut(dr){return wt(dr)==="[object AsyncFunction]"}c.isAsyncFunction=Ut;function qt(dr){return wt(dr)==="[object Map Iterator]"}c.isMapIterator=qt;function Gt(dr){return wt(dr)==="[object Set Iterator]"}c.isSetIterator=Gt;function Zt(dr){return wt(dr)==="[object Generator]"}c.isGeneratorObject=Zt;function Yt(dr){return wt(dr)==="[object WebAssembly.Module]"}c.isWebAssemblyCompiledModule=Yt;function Kt(dr){return kt(dr,St)}c.isNumberObject=Kt;function ar(dr){return kt(dr,Mt)}c.isStringObject=ar;function gr(dr){return kt(dr,_t)}c.isBooleanObject=gr;function cr(dr){return bt&&kt(dr,Tt)}c.isBigIntObject=cr;function ur(dr){return gt&&kt(dr,Bt)}c.isSymbolObject=ur;function Pr(dr){return Kt(dr)||ar(dr)||gr(dr)||cr(dr)||ur(dr)}c.isBoxedPrimitive=Pr;function br(dr){return typeof Uint8Array<"u"&&($t(dr)||Xt(dr))}c.isAnyArrayBuffer=br,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(dr){Object.defineProperty(c,dr,{enumerable:!1,value:function(){throw new Error(dr+" is not supported in userland")}})})})(types);var isBufferBrowser=function(a){return a&&typeof a=="object"&&typeof a.copy=="function"&&typeof a.fill=="function"&&typeof a.readUInt8=="function"};(function(c){var a=Object.getOwnPropertyDescriptors||function(Dt){for(var Ht=Object.keys(Dt),tr={},Xt=0;Xt=Xt)return Gt;switch(Gt){case"%s":return String(tr[Ht++]);case"%d":return Number(tr[Ht++]);case"%j":try{return JSON.stringify(tr[Ht++])}catch{return"[Circular]"}default:return Gt}}),qt=tr[Ht];Ht"u")return function(){return c.deprecate(Rt,Dt).apply(this,arguments)};var Ht=!1;function tr(){if(!Ht){if(dist$2.process.throwDeprecation)throw new Error(Dt);dist$2.process.traceDeprecation?console.trace(Dt):console.error(Dt),Ht=!0}return Rt.apply(this,arguments)}return tr};var et={},nt=/^$/;if({}.NODE_DEBUG){var tt={}.NODE_DEBUG;tt=tt.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),nt=new RegExp("^"+tt+"$","i")}c.debuglog=function(Rt){if(Rt=Rt.toUpperCase(),!et[Rt])if(nt.test(Rt)){var Dt=dist$2.process.pid;et[Rt]=function(){var Ht=c.format.apply(c,arguments);console.error("%s %d: %s",Rt,Dt,Ht)}}else et[Rt]=function(){};return et[Rt]};function bt(Rt,Dt){var Ht={seen:[],stylize:wt};return arguments.length>=3&&(Ht.depth=arguments[2]),arguments.length>=4&&(Ht.colors=arguments[3]),Ot(Dt)?Ht.showHidden=Dt:Dt&&c._extend(Ht,Dt),ir(Ht.showHidden)&&(Ht.showHidden=!1),ir(Ht.depth)&&(Ht.depth=2),ir(Ht.colors)&&(Ht.colors=!1),ir(Ht.customInspect)&&(Ht.customInspect=!0),Ht.colors&&(Ht.stylize=gt),Mt(Ht,Rt,Ht.depth)}c.inspect=bt,bt.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]},bt.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function gt(Rt,Dt){var Ht=bt.styles[Dt];return Ht?"\x1B["+bt.colors[Ht][0]+"m"+Rt+"\x1B["+bt.colors[Ht][1]+"m":Rt}function wt(Rt,Dt){return Rt}function St(Rt){var Dt={};return Rt.forEach(function(Ht,tr){Dt[Ht]=!0}),Dt}function Mt(Rt,Dt,Ht){if(Rt.customInspect&&Dt&&dt(Dt.inspect)&&Dt.inspect!==c.inspect&&!(Dt.constructor&&Dt.constructor.prototype===Dt)){var tr=Dt.inspect(Ht,Rt);return Vt(tr)||(tr=Mt(Rt,tr,Ht)),tr}var Xt=_t(Rt,Dt);if(Xt)return Xt;var Ut=Object.keys(Dt),qt=St(Ut);if(Rt.showHidden&&(Ut=Object.getOwnPropertyNames(Dt)),Ct(Dt)&&(Ut.indexOf("message")>=0||Ut.indexOf("description")>=0))return Tt(Dt);if(Ut.length===0){if(dt(Dt)){var Gt=Dt.name?": "+Dt.name:"";return Rt.stylize("[Function"+Gt+"]","special")}if(rr(Dt))return Rt.stylize(RegExp.prototype.toString.call(Dt),"regexp");if(lr(Dt))return Rt.stylize(Date.prototype.toString.call(Dt),"date");if(Ct(Dt))return Tt(Dt)}var Zt="",Yt=!1,Kt=["{","}"];if(Lt(Dt)&&(Yt=!0,Kt=["[","]"]),dt(Dt)){var ar=Dt.name?": "+Dt.name:"";Zt=" [Function"+ar+"]"}if(rr(Dt)&&(Zt=" "+RegExp.prototype.toString.call(Dt)),lr(Dt)&&(Zt=" "+Date.prototype.toUTCString.call(Dt)),Ct(Dt)&&(Zt=" "+Tt(Dt)),Ut.length===0&&(!Yt||Dt.length==0))return Kt[0]+Zt+Kt[1];if(Ht<0)return rr(Dt)?Rt.stylize(RegExp.prototype.toString.call(Dt),"regexp"):Rt.stylize("[Object]","special");Rt.seen.push(Dt);var gr;return Yt?gr=Bt(Rt,Dt,Ht,qt,Ut):gr=Ut.map(function(cr){return kt(Rt,Dt,Ht,qt,cr,Yt)}),Rt.seen.pop(),It(gr,Zt,Kt)}function _t(Rt,Dt){if(ir(Dt))return Rt.stylize("undefined","undefined");if(Vt(Dt)){var Ht="'"+JSON.stringify(Dt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Rt.stylize(Ht,"string")}if(zt(Dt))return Rt.stylize(""+Dt,"number");if(Ot(Dt))return Rt.stylize(""+Dt,"boolean");if(Nt(Dt))return Rt.stylize("null","null")}function Tt(Rt){return"["+Error.prototype.toString.call(Rt)+"]"}function Bt(Rt,Dt,Ht,tr,Xt){for(var Ut=[],qt=0,Gt=Dt.length;qt{St&&startTransitionImpl?startTransitionImpl(()=>wt(_t)):wt(_t)},[wt,St]);return reactExports.useLayoutEffect(()=>bt.listen(Mt),[bt,Mt]),reactExports.createElement(Router,{basename:a,children:d,location:gt.location,navigationType:gt.action,navigator:bt,future:et})}var DataRouterHook;(function(c){c.UseScrollRestoration="useScrollRestoration",c.UseSubmit="useSubmit",c.UseSubmitFetcher="useSubmitFetcher",c.UseFetcher="useFetcher",c.useViewTransitionState="useViewTransitionState"})(DataRouterHook||(DataRouterHook={}));var DataRouterStateHook;(function(c){c.UseFetcher="useFetcher",c.UseFetchers="useFetchers",c.UseScrollRestoration="useScrollRestoration"})(DataRouterStateHook||(DataRouterStateHook={}));function t(){return t=Object.assign?Object.assign.bind():function(c){for(var a=1;a=0||(Mt[wt]=bt[wt]);return Mt}(c,a);if(Object.getOwnPropertySymbols){var tt=Object.getOwnPropertySymbols(c);for(et=0;et=0||Object.prototype.propertyIsEnumerable.call(c,d)&&(nt[d]=c[d])}return nt}var Ig=["size","color","stroke"];function Ag(c){var a=c.size,d=a===void 0?24:a,et=c.color,nt=et===void 0?"currentColor":et,tt=c.stroke,bt=tt===void 0?2:tt,gt=o(c,Ig);return reactExports.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-brand-github",width:d,height:d,viewBox:"0 0 24 24",strokeWidth:bt,stroke:nt,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},gt),reactExports.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),reactExports.createElement("path",{d:"M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5"}))}var AW=["size","color","stroke"];function DW(c){var a=c.size,d=a===void 0?24:a,et=c.color,nt=et===void 0?"currentColor":et,tt=c.stroke,bt=tt===void 0?2:tt,gt=o(c,AW);return reactExports.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-check",width:d,height:d,viewBox:"0 0 24 24",strokeWidth:bt,stroke:nt,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},gt),reactExports.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),reactExports.createElement("path",{d:"M5 12l5 5l10 -10"}))}var uq=["size","color","stroke"];function gq(c){var a=c.size,d=a===void 0?24:a,et=c.color,nt=et===void 0?"currentColor":et,tt=c.stroke,bt=tt===void 0?2:tt,gt=o(c,uq);return reactExports.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-chevron-down",width:d,height:d,viewBox:"0 0 24 24",strokeWidth:bt,stroke:nt,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},gt),reactExports.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),reactExports.createElement("polyline",{points:"6 9 12 15 18 9"}))}var JD=["size","color","stroke"];function KD(c){var a=c.size,d=a===void 0?24:a,et=c.color,nt=et===void 0?"currentColor":et,tt=c.stroke,bt=tt===void 0?2:tt,gt=o(c,JD);return reactExports.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-coin",width:d,height:d,viewBox:"0 0 24 24",strokeWidth:bt,stroke:nt,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},gt),reactExports.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),reactExports.createElement("circle",{cx:12,cy:12,r:9}),reactExports.createElement("path",{d:"M14.8 9a2 2 0 0 0 -1.8 -1h-2a2 2 0 1 0 0 4h2a2 2 0 1 1 0 4h-2a2 2 0 0 1 -1.8 -1"}),reactExports.createElement("path",{d:"M12 7v10"}))}var Fme=["size","color","stroke"];function Gme(c){var a=c.size,d=a===void 0?24:a,et=c.color,nt=et===void 0?"currentColor":et,tt=c.stroke,bt=tt===void 0?2:tt,gt=o(c,Fme);return reactExports.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-moon-stars",width:d,height:d,viewBox:"0 0 24 24",strokeWidth:bt,stroke:nt,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},gt),reactExports.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),reactExports.createElement("path",{d:"M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z"}),reactExports.createElement("path",{d:"M17 4a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2"}),reactExports.createElement("path",{d:"M19 11h2m-1 -1v2"}))}var pAe=["size","color","stroke"];function EAe(c){var a=c.size,d=a===void 0?24:a,et=c.color,nt=et===void 0?"currentColor":et,tt=c.stroke,bt=tt===void 0?2:tt,gt=o(c,pAe);return reactExports.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-sun",width:d,height:d,viewBox:"0 0 24 24",strokeWidth:bt,stroke:nt,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},gt),reactExports.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),reactExports.createElement("circle",{cx:12,cy:12,r:4}),reactExports.createElement("path",{d:"M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7"}))}var WXe=["size","color","stroke"];function qXe(c){var a=c.size,d=a===void 0?24:a,et=c.color,nt=et===void 0?"currentColor":et,tt=c.stroke,bt=tt===void 0?2:tt,gt=o(c,WXe);return reactExports.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-x",width:d,height:d,viewBox:"0 0 24 24",strokeWidth:bt,stroke:nt,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},gt),reactExports.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),reactExports.createElement("line",{x1:18,y1:6,x2:6,y2:18}),reactExports.createElement("line",{x1:6,y1:6,x2:18,y2:18}))}const LogoLight="/assets/logo-light-746d0a18.svg",LogoDark="/assets/logo-dark-6aef1ca0.svg",Base$9="/assets/base-8a61917f.png",ETH="/assets/eth-dc2fb7da.svg";var RoutePath=(c=>(c.home="/",c.claim="/claim",c.account="/account",c.create="/create",c.notFound="*",c))(RoutePath||{});const INFURA_API_KEY="05d830413c5a4ac8873c84319679c7b2",ETHERSCAN_API_KEY="H8IGZCCS8XCJYSXIA3GUUKW6CDECYYMNPG",POLYGONSCAN_API_KEY="GVZS4QAMWFBGS5PK2BR76FNFPJ7X2GR44I",accountAddress="",networks={localhost:{name:"Local Chain",chainId:31337,type:"Testnet",url:"http://localhost:8545",safeService:"",blockExplorer:"",api:"",easExplorer:""},mainnet:{name:"Ethereum",type:"mainnet",chainId:1,url:`https://mainnet.infura.io/v3/${INFURA_API_KEY}`,safeService:"https://safe-transaction-mainnet.safe.global",blockExplorer:"https://etherscan.io",api:`https://api.etherscan.io/api?apikey=${ETHERSCAN_API_KEY}`,easExplorer:""},goerli:{name:"Goerli",type:"testnet",chainId:5,url:`https://goerli.infura.io/v3/${INFURA_API_KEY}`,safeService:"https://safe-transaction-goerli.safe.global",blockExplorer:"https://goerli.etherscan.io",api:`https://api-goerli.etherscan.io/api?apikey=${ETHERSCAN_API_KEY}`,easExplorer:""},sepolia:{name:"Sepolia",type:"testnet",chainId:11155111,url:"https://eth-sepolia.g.alchemy.com/v2/eCr9bFDzgYgDrox-mnXPPh7_koP-agKo",safeService:"https://safe-transaction-sepolia.safe.global",blockExplorer:"https://sepolia.etherscan.io",api:`https://api-sepolia.etherscan.io/api?apikey=${ETHERSCAN_API_KEY}`,easExplorer:""},basesepolia:{name:"Base Sepolia",type:"testnet",chainId:84532,url:"https://base-sepolia.g.alchemy.com/v2/wRVILABVfp0WrfAv449B23mIW_SJqOwL",blockExplorer:"https://sepolia.basescan.org",safeService:"https://safe-transaction-base-sepolia.safe.global",api:`https://api-sepolia.etherscan.io/api?apikey=${ETHERSCAN_API_KEY}`,easExplorer:"https://base-sepolia.easscan.org/attestation/view/"},base:{name:"Base",type:"mainnet",chainId:8453,url:"https://base-mainnet.g.alchemy.com/v2/NTGkSXMuKkoHwQ_W4eNpGlihUScplXYV",blockExplorer:"https://basescan.org",safeService:"https://safe-transaction-base.safe.global",api:`https://api-goerli.etherscan.io/api?apikey=${ETHERSCAN_API_KEY}`,easExplorer:""},optimism:{name:"Optimism",type:"mainnet",chainId:10,url:`https://optimism-mainnet.infura.io/v3/${INFURA_API_KEY}`,blockExplorer:"https://optimistic.etherscan.io",safeService:"https://safe-transaction-optimism.safe.global",api:`https://api-optimistic.etherscan.io/api?apikey=${ETHERSCAN_API_KEY}`,easExplorer:"https://optimism.easscan.org/attestation/view/"},gnosis:{name:"Gnosis",type:"mainnet",chainId:100,url:"https://rpc.ankr.com/gnosis",safeService:"https://safe-transaction-gnosis-chain.safe.global",blockExplorer:"https://gnosisscan.io",api:`https://api-goerli.etherscan.io/api?apikey=${ETHERSCAN_API_KEY}`,easExplorer:""},polygontestnet:{name:"Polygon",type:"testnet",chainId:80001,url:"https://matic-mumbai.chainstacklabs.com",safeService:"",blockExplorer:"https://mumbai.polygonscan.com",api:`https://api-testnet.polygonscan.com/api?module=account&action=balance&address=${accountAddress}&apikey=${POLYGONSCAN_API_KEY}`,easExplorer:""},polygon:{name:"Polygon",type:"mainnet",chainId:137,url:"https://rpc.ankr.com/polygon",safeService:"https://safe-transaction-polygon.safe.global",blockExplorer:"https://polygonscan.com",api:"",easExplorer:""},celo:{name:"Celo",type:"mainnet",chainId:42220,url:`https://celo-mainnet.infura.io/v3/${INFURA_API_KEY}`,safeService:"https://safe-transaction-polygon.safe.global",blockExplorer:"https://celoscan.com",api:"",easExplorer:""}};class NetworkUtil{static getNetworkById(a){return Object.values(networks).find(et=>a===et.chainId)}static getNetworkByName(a){return networks[a]}}const version$4="6.7.1";function checkType(c,a,d){const et=a.split("|").map(tt=>tt.trim());for(let tt=0;ttPromise.resolve(c[et])))).reduce((et,nt,tt)=>(et[a[tt]]=nt,et),{})}function defineProperties(c,a,d){for(let et in a){let nt=a[et];const tt=d?d[et]:null;tt&&checkType(nt,tt,et),Object.defineProperty(c,et,{enumerable:!0,value:nt,writable:!1})}}function stringify$1(c){if(c==null)return"null";if(Array.isArray(c))return"[ "+c.map(stringify$1).join(", ")+" ]";if(c instanceof Uint8Array){const a="0123456789abcdef";let d="0x";for(let et=0;et>4],d+=a[c[et]&15];return d}if(typeof c=="object"&&typeof c.toJSON=="function")return stringify$1(c.toJSON());switch(typeof c){case"boolean":case"symbol":return c.toString();case"bigint":return BigInt(c).toString();case"number":return c.toString();case"string":return JSON.stringify(c);case"object":{const a=Object.keys(c);return a.sort(),"{ "+a.map(d=>`${stringify$1(d)}: ${stringify$1(c[d])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function isError$1(c,a){return c&&c.code===a}function isCallException(c){return isError$1(c,"CALL_EXCEPTION")}function makeError(c,a,d){{const nt=[];if(d){if("message"in d||"code"in d||"name"in d)throw new Error(`value will overwrite populated values: ${stringify$1(d)}`);for(const tt in d){const bt=d[tt];nt.push(tt+"="+stringify$1(bt))}}nt.push(`code=${a}`),nt.push(`version=${version$4}`),nt.length&&(c+=" ("+nt.join(", ")+")")}let et;switch(a){case"INVALID_ARGUMENT":et=new TypeError(c);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":et=new RangeError(c);break;default:et=new Error(c)}return defineProperties(et,{code:a}),d&&Object.assign(et,d),et}function assert$s(c,a,d,et){if(!c)throw makeError(a,d,et)}function assertArgument(c,a,d,et){assert$s(c,a,"INVALID_ARGUMENT",{argument:d,value:et})}function assertArgumentCount(c,a,d){d==null&&(d=""),d&&(d=": "+d),assert$s(c>=a,"missing arguemnt"+d,"MISSING_ARGUMENT",{count:c,expectedCount:a}),assert$s(c<=a,"too many arguemnts"+d,"UNEXPECTED_ARGUMENT",{count:c,expectedCount:a})}const _normalizeForms=["NFD","NFC","NFKD","NFKC"].reduce((c,a)=>{try{if("test".normalize(a)!=="test")throw new Error("bad");if(a==="NFD"){const d=String.fromCharCode(233).normalize("NFD"),et=String.fromCharCode(101,769);if(d!==et)throw new Error("broken")}c.push(a)}catch{}return c},[]);function assertNormalize(c){assert$s(_normalizeForms.indexOf(c)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:c}})}function assertPrivate(c,a,d){if(d==null&&(d=""),c!==a){let et=d,nt="new";d&&(et+=".",nt+=" "+d),assert$s(!1,`private constructor; use ${et}from* methods`,"UNSUPPORTED_OPERATION",{operation:nt})}}function _getBytes(c,a,d){if(c instanceof Uint8Array)return d?new Uint8Array(c):c;if(typeof c=="string"&&c.match(/^0x([0-9a-f][0-9a-f])*$/i)){const et=new Uint8Array((c.length-2)/2);let nt=2;for(let tt=0;tt>4]+HexCharacters[nt&15]}return d}function concat$2(c){return"0x"+c.map(a=>hexlify(a).substring(2)).join("")}function dataLength(c){return isHexString(c,!0)?(c.length-2)/2:getBytes(c).length}function dataSlice(c,a,d){const et=getBytes(c);return d!=null&&d>et.length&&assert$s(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:et,length:et.length,offset:d}),hexlify(et.slice(a??0,d??et.length))}function zeroPad(c,a,d){const et=getBytes(c);assert$s(a>=et.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(et),length:a,offset:a+1});const nt=new Uint8Array(a);return nt.fill(0),d?nt.set(et,a-et.length):nt.set(et,0),hexlify(nt)}function zeroPadValue(c,a){return zeroPad(c,a,!0)}function zeroPadBytes(c,a){return zeroPad(c,a,!1)}const BN_0$9=BigInt(0),BN_1$4=BigInt(1),maxValue=9007199254740991;function fromTwos(c,a){const d=getUint(c,"value"),et=BigInt(getNumber(a,"width"));if(assert$s(d>>et===BN_0$9,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:c}),d>>et-BN_1$4){const nt=(BN_1$4<=-maxValue&&c<=maxValue,"overflow",a||"value",c),BigInt(c);case"string":try{if(c==="")throw new Error("empty string");return c[0]==="-"&&c[1]!=="-"?-BigInt(c.substring(1)):BigInt(c)}catch(d){assertArgument(!1,`invalid BigNumberish string: ${d.message}`,a||"value",c)}}assertArgument(!1,"invalid BigNumberish value",a||"value",c)}function getUint(c,a){const d=getBigInt(c,a);return assert$s(d>=BN_0$9,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:c}),d}const Nibbles="0123456789abcdef";function toBigInt(c){if(c instanceof Uint8Array){let a="0x0";for(const d of c)a+=Nibbles[d>>4],a+=Nibbles[d&15];return BigInt(a)}return getBigInt(c)}function getNumber(c,a){switch(typeof c){case"bigint":return assertArgument(c>=-maxValue&&c<=maxValue,"overflow",a||"value",c),Number(c);case"number":return assertArgument(Number.isInteger(c),"underflow",a||"value",c),assertArgument(c>=-maxValue&&c<=maxValue,"overflow",a||"value",c),c;case"string":try{if(c==="")throw new Error("empty string");return getNumber(BigInt(c),a)}catch(d){assertArgument(!1,`invalid numeric string: ${d.message}`,a||"value",c)}}assertArgument(!1,"invalid numeric value",a||"value",c)}function toNumber(c){return getNumber(toBigInt(c))}function toBeHex(c,a){let et=getUint(c,"value").toString(16);if(a==null)et.length%2&&(et="0"+et);else{const nt=getNumber(a,"width");for(assert$s(nt*2>=et.length,`value exceeds width (${nt} bits)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:c});et.length>6===2;bt++)tt++;return tt}return c==="OVERRUN"?d.length-a-1:0}function replaceFunc(c,a,d,et,nt){return c==="OVERLONG"?(assertArgument(typeof nt=="number","invalid bad code point for replacement","badCodepoint",nt),et.push(nt),0):(et.push(65533),ignoreFunc(c,a,d))}const Utf8ErrorFuncs=Object.freeze({error:errorFunc,ignore:ignoreFunc,replace:replaceFunc});function getUtf8CodePoints(c,a){a==null&&(a=Utf8ErrorFuncs.error);const d=getBytes(c,"bytes"),et=[];let nt=0;for(;nt>7)){et.push(tt);continue}let bt=null,gt=null;if((tt&224)===192)bt=1,gt=127;else if((tt&240)===224)bt=2,gt=2047;else if((tt&248)===240)bt=3,gt=65535;else{(tt&192)===128?nt+=a("UNEXPECTED_CONTINUE",nt-1,d,et):nt+=a("BAD_PREFIX",nt-1,d,et);continue}if(nt-1+bt>=d.length){nt+=a("OVERRUN",nt-1,d,et);continue}let wt=tt&(1<<8-bt-1)-1;for(let St=0;St1114111){nt+=a("OUT_OF_RANGE",nt-1-bt,d,et,wt);continue}if(wt>=55296&&wt<=57343){nt+=a("UTF16_SURROGATE",nt-1-bt,d,et,wt);continue}if(wt<=gt){nt+=a("OVERLONG",nt-1-bt,d,et,wt);continue}et.push(wt)}}return et}function toUtf8Bytes(c,a){a!=null&&(assertNormalize(a),c=c.normalize(a));let d=[];for(let et=0;et>6|192),d.push(nt&63|128);else if((nt&64512)==55296){et++;const tt=c.charCodeAt(et);assertArgument(et>18|240),d.push(bt>>12&63|128),d.push(bt>>6&63|128),d.push(bt&63|128)}else d.push(nt>>12|224),d.push(nt>>6&63|128),d.push(nt&63|128)}return new Uint8Array(d)}function _toUtf8String(c){return c.map(a=>a<=65535?String.fromCharCode(a):(a-=65536,String.fromCharCode((a>>10&1023)+55296,(a&1023)+56320))).join("")}function toUtf8String(c,a){return _toUtf8String(getUtf8CodePoints(c,a))}async function getUrl$1(c,a){const d=c.url.split(":")[0].toLowerCase();assert$s(d==="http"||d==="https",`unsupported protocol ${d}`,"UNSUPPORTED_OPERATION",{info:{protocol:d},operation:"request"}),assert$s(d==="https"||!c.credentials||c.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let et;if(a){const St=new AbortController;et=St.signal,a.addListener(()=>{St.abort()})}const nt={method:c.method,headers:new Headers(Array.from(c)),body:c.body||void 0,signal:et},tt=await fetch(c.url,nt),bt={};tt.headers.forEach((St,Mt)=>{bt[Mt.toLowerCase()]=St});const gt=await tt.arrayBuffer(),wt=gt==null?null:new Uint8Array(gt);return{statusCode:tt.status,statusMessage:tt.statusText,headers:bt,body:wt}}const MAX_ATTEMPTS=12,SLOT_INTERVAL=250;let getUrlFunc=getUrl$1;const reData=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),reIpfs=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let locked$2=!1;async function dataGatewayFunc(c,a){try{const d=c.match(reData);if(!d)throw new Error("invalid data");return new FetchResponse(200,"OK",{"content-type":d[1]||"text/plain"},d[2]?decodeBase64(d[3]):unpercent(d[3]))}catch{return new FetchResponse(599,"BAD REQUEST (invalid data: URI)",{},null,new FetchRequest(c))}}function getIpfsGatewayFunc(c){async function a(d,et){try{const nt=d.match(reIpfs);if(!nt)throw new Error("invalid link");return new FetchRequest(`${c}${nt[2]}`)}catch{return new FetchResponse(599,"BAD REQUEST (invalid IPFS URI)",{},null,new FetchRequest(d))}}return a}const Gateways={data:dataGatewayFunc,ipfs:getIpfsGatewayFunc("https://gateway.ipfs.io/ipfs/")},fetchSignals=new WeakMap;var qn,Pn;class FetchCancelSignal{constructor(a){Vr(this,qn,void 0);Vr(this,Pn,void 0);yr(this,qn,[]),yr(this,Pn,!1),fetchSignals.set(a,()=>{if(!or(this,Pn)){yr(this,Pn,!0);for(const d of or(this,qn))setTimeout(()=>{d()},0);yr(this,qn,[])}})}addListener(a){assert$s(!or(this,Pn),"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),or(this,qn).push(a)}get cancelled(){return or(this,Pn)}checkSignal(){assert$s(!this.cancelled,"cancelled","CANCELLED",{})}}qn=new WeakMap,Pn=new WeakMap;function checkSignal(c){if(c==null)throw new Error("missing signal; should not happen");return c.checkSignal(),c}var fs,cs,Y0,un,ls,us,_0,O0,dn,Gn,Vn,Wn,tn,hn,Kn,Ks;const Po=class Po{constructor(a){Vr(this,Kn);Vr(this,fs,void 0);Vr(this,cs,void 0);Vr(this,Y0,void 0);Vr(this,un,void 0);Vr(this,ls,void 0);Vr(this,us,void 0);Vr(this,_0,void 0);Vr(this,O0,void 0);Vr(this,dn,void 0);Vr(this,Gn,void 0);Vr(this,Vn,void 0);Vr(this,Wn,void 0);Vr(this,tn,void 0);Vr(this,hn,void 0);yr(this,us,String(a)),yr(this,fs,!1),yr(this,cs,!0),yr(this,Y0,{}),yr(this,un,""),yr(this,ls,3e5),yr(this,hn,{slotInterval:SLOT_INTERVAL,maxAttempts:MAX_ATTEMPTS})}get url(){return or(this,us)}set url(a){yr(this,us,String(a))}get body(){return or(this,_0)==null?null:new Uint8Array(or(this,_0))}set body(a){if(a==null)yr(this,_0,void 0),yr(this,O0,void 0);else if(typeof a=="string")yr(this,_0,toUtf8Bytes(a)),yr(this,O0,"text/plain");else if(a instanceof Uint8Array)yr(this,_0,a),yr(this,O0,"application/octet-stream");else if(typeof a=="object")yr(this,_0,toUtf8Bytes(JSON.stringify(a))),yr(this,O0,"application/json");else throw new Error("invalid body")}hasBody(){return or(this,_0)!=null}get method(){return or(this,un)?or(this,un):this.hasBody()?"POST":"GET"}set method(a){a==null&&(a=""),yr(this,un,String(a).toUpperCase())}get headers(){const a=Object.assign({},or(this,Y0));return or(this,dn)&&(a.authorization=`Basic ${encodeBase64(toUtf8Bytes(or(this,dn)))}`),this.allowGzip&&(a["accept-encoding"]="gzip"),a["content-type"]==null&&or(this,O0)&&(a["content-type"]=or(this,O0)),this.body&&(a["content-length"]=String(this.body.length)),a}getHeader(a){return this.headers[a.toLowerCase()]}setHeader(a,d){or(this,Y0)[String(a).toLowerCase()]=String(d)}clearHeaders(){yr(this,Y0,{})}[Symbol.iterator](){const a=this.headers,d=Object.keys(a);let et=0;return{next:()=>{if(et=0,"timeout must be non-zero","timeout",a),yr(this,ls,a)}get preflightFunc(){return or(this,Gn)||null}set preflightFunc(a){yr(this,Gn,a)}get processFunc(){return or(this,Vn)||null}set processFunc(a){yr(this,Vn,a)}get retryFunc(){return or(this,Wn)||null}set retryFunc(a){yr(this,Wn,a)}toString(){return``}setThrottleParams(a){a.slotInterval!=null&&(or(this,hn).slotInterval=a.slotInterval),a.maxAttempts!=null&&(or(this,hn).maxAttempts=a.maxAttempts)}send(){return assert$s(or(this,tn)==null,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),yr(this,tn,new FetchCancelSignal(this)),Wr(this,Kn,Ks).call(this,0,getTime$1()+this.timeout,0,this,new FetchResponse(0,"",{},null,this))}cancel(){assert$s(or(this,tn)!=null,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const a=fetchSignals.get(this);if(!a)throw new Error("missing signal; should not happen");a()}redirect(a){const d=this.url.split(":")[0].toLowerCase(),et=a.split(":")[0].toLowerCase();assert$s(this.method==="GET"&&(d!=="https"||et!=="http")&&a.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(a)})`});const nt=new Po(a);return nt.method="GET",nt.allowGzip=this.allowGzip,nt.timeout=this.timeout,yr(nt,Y0,Object.assign({},or(this,Y0))),or(this,_0)&&yr(nt,_0,new Uint8Array(or(this,_0))),yr(nt,O0,or(this,O0)),nt}clone(){const a=new Po(this.url);return yr(a,un,or(this,un)),or(this,_0)&&yr(a,_0,or(this,_0)),yr(a,O0,or(this,O0)),yr(a,Y0,Object.assign({},or(this,Y0))),yr(a,dn,or(this,dn)),this.allowGzip&&(a.allowGzip=!0),a.timeout=this.timeout,this.allowInsecureAuthentication&&(a.allowInsecureAuthentication=!0),yr(a,Gn,or(this,Gn)),yr(a,Vn,or(this,Vn)),yr(a,Wn,or(this,Wn)),a}static lockConfig(){locked$2=!0}static getGateway(a){return Gateways[a.toLowerCase()]||null}static registerGateway(a,d){if(a=a.toLowerCase(),a==="http"||a==="https")throw new Error(`cannot intercept ${a}; use registerGetUrl`);if(locked$2)throw new Error("gateways locked");Gateways[a]=d}static registerGetUrl(a){if(locked$2)throw new Error("gateways locked");getUrlFunc=a}static createDataGateway(){return dataGatewayFunc}static createIpfsGatewayFunc(a){return getIpfsGatewayFunc(a)}};fs=new WeakMap,cs=new WeakMap,Y0=new WeakMap,un=new WeakMap,ls=new WeakMap,us=new WeakMap,_0=new WeakMap,O0=new WeakMap,dn=new WeakMap,Gn=new WeakMap,Vn=new WeakMap,Wn=new WeakMap,tn=new WeakMap,hn=new WeakMap,Kn=new WeakSet,Ks=async function(a,d,et,nt,tt){var Mt,_t,Tt;if(a>=or(this,hn).maxAttempts)return tt.makeServerError("exceeded maximum retry limit");assert$s(getTime$1()<=d,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:nt}),et>0&&await wait$1(et);let bt=this.clone();const gt=(bt.url.split(":")[0]||"").toLowerCase();if(gt in Gateways){const Rt=await Gateways[gt](bt.url,checkSignal(or(nt,tn)));if(Rt instanceof FetchResponse){let kt=Rt;if(this.processFunc){checkSignal(or(nt,tn));try{kt=await this.processFunc(bt,kt)}catch(It){(It.throttle==null||typeof It.stall!="number")&&kt.makeServerError("error in post-processing function",It).assertOk()}}return kt}bt=Rt}this.preflightFunc&&(bt=await this.preflightFunc(bt));const wt=await getUrlFunc(bt,checkSignal(or(nt,tn)));let St=new FetchResponse(wt.statusCode,wt.statusMessage,wt.headers,wt.body,nt);if(St.statusCode===301||St.statusCode===302){try{const Rt=St.headers.location||"";return Wr(Mt=bt.redirect(Rt),Kn,Ks).call(Mt,a+1,d,0,nt,St)}catch{}return St}else if(St.statusCode===429&&(this.retryFunc==null||await this.retryFunc(bt,St,a))){const Rt=St.headers["retry-after"];let kt=or(this,hn).slotInterval*Math.trunc(Math.random()*Math.pow(2,a));return typeof Rt=="string"&&Rt.match(/^[1-9][0-9]*$/)&&(kt=parseInt(Rt)),Wr(_t=bt.clone(),Kn,Ks).call(_t,a+1,d,kt,nt,St)}if(this.processFunc){checkSignal(or(nt,tn));try{St=await this.processFunc(bt,St)}catch(Rt){(Rt.throttle==null||typeof Rt.stall!="number")&&St.makeServerError("error in post-processing function",Rt).assertOk();let kt=or(this,hn).slotInterval*Math.trunc(Math.random()*Math.pow(2,a));return Rt.stall>=0&&(kt=Rt.stall),Wr(Tt=bt.clone(),Kn,Ks).call(Tt,a+1,d,kt,nt,St)}}return St};let FetchRequest=Po;var Xs,eo,to,Z0,ds,Yn;const Jo=class Jo{constructor(a,d,et,nt,tt){Vr(this,Xs,void 0);Vr(this,eo,void 0);Vr(this,to,void 0);Vr(this,Z0,void 0);Vr(this,ds,void 0);Vr(this,Yn,void 0);yr(this,Xs,a),yr(this,eo,d),yr(this,to,Object.keys(et).reduce((bt,gt)=>(bt[gt.toLowerCase()]=String(et[gt]),bt),{})),yr(this,Z0,nt==null?null:new Uint8Array(nt)),yr(this,ds,tt||null),yr(this,Yn,{message:""})}toString(){return``}get statusCode(){return or(this,Xs)}get statusMessage(){return or(this,eo)}get headers(){return Object.assign({},or(this,to))}get body(){return or(this,Z0)==null?null:new Uint8Array(or(this,Z0))}get bodyText(){try{return or(this,Z0)==null?"":toUtf8String(or(this,Z0))}catch{assert$s(!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{assert$s(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const a=this.headers,d=Object.keys(a);let et=0;return{next:()=>{if(et=0,"invalid stall timeout","stall",d);const et=new Error(a||"throttling requests");throw defineProperties(et,{stall:d,throttle:!0}),et}getHeader(a){return this.headers[a.toLowerCase()]}hasBody(){return or(this,Z0)!=null}get request(){return or(this,ds)}ok(){return or(this,Yn).message===""&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:a,error:d}=or(this,Yn);a===""&&(a=`server response ${this.statusCode} ${this.statusMessage}`),assert$s(!1,a,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:d})}};Xs=new WeakMap,eo=new WeakMap,to=new WeakMap,Z0=new WeakMap,ds=new WeakMap,Yn=new WeakMap;let FetchResponse=Jo;function getTime$1(){return new Date().getTime()}function unpercent(c){return toUtf8Bytes(c.replace(/%([0-9a-f][0-9a-f])/gi,(a,d)=>String.fromCharCode(parseInt(d,16))))}function wait$1(c){return new Promise(a=>setTimeout(a,c))}const BN_N1=BigInt(-1),BN_0$8=BigInt(0),BN_1$3=BigInt(1),BN_5=BigInt(5),_guard$3={};let Zeros$1="0000";for(;Zeros$1.length<80;)Zeros$1+=Zeros$1;function getTens(c){let a=Zeros$1;for(;a.length=-nt&&cBN_0$8?c=fromTwos(mask(c,et),et):c=-fromTwos(mask(-c,et),et)}else{const nt=BN_1$3<=0&&ctt[gt]==null?St:(assertArgument(typeof tt[gt]===wt,"invalid fixed format ("+gt+" not "+wt+")","format."+gt,tt[gt]),tt[gt]);a=bt("signed","boolean",a),d=bt("width","number",d),et=bt("decimals","number",et)}assertArgument(d%8===0,"invalid FixedNumber width (not byte aligned)","format.width",d),assertArgument(et<=80,"invalid FixedNumber decimals (too large)","format.decimals",et);const nt=(a?"":"u")+"fixed"+String(d)+"x"+String(et);return{signed:a,width:d,decimals:et,name:nt}}function toString$1(c,a){let d="";c0?et*=getTens(nt):nt<0&&(d*=getTens(-nt)),det?1:0}eq(a){return this.cmp(a)===0}lt(a){return this.cmp(a)<0}lte(a){return this.cmp(a)<=0}gt(a){return this.cmp(a)>0}gte(a){return this.cmp(a)>=0}floor(){let a=or(this,A0);return or(this,A0)BN_0$8&&(a+=or(this,k0)-BN_1$3),a=or(this,A0)/or(this,k0)*or(this,k0),Wr(this,Q0,cn).call(this,a,"ceiling")}round(a){if(a==null&&(a=0),a>=this.decimals)return this;const d=this.decimals-a,et=BN_5*getTens(d-1);let nt=this.value+et;const tt=getTens(d);return nt=nt/tt*tt,checkValue(nt,or(this,J0),"round"),new An(_guard$3,nt,or(this,J0))}isZero(){return or(this,A0)===BN_0$8}isNegative(){return or(this,A0)0){const wt=getTens(gt);assert$s(bt%wt===BN_0$8,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:a}),bt/=wt}else gt<0&&(bt*=getTens(-gt));return checkValue(bt,tt,"fromValue"),new An(_guard$3,bt,tt)}static fromString(a,d){const et=a.match(/^(-?)([0-9]*)\.?([0-9]*)$/);assertArgument(et&&et[2].length+et[3].length>0,"invalid FixedNumber string value","value",a);const nt=getFormat(d);let tt=et[2]||"0",bt=et[3]||"";for(;bt.length{assert$s(et<=c.length,"data short segment too short","BUFFER_OVERRUN",{buffer:c,length:c.length,offset:et})};if(c[a]>=248){const et=c[a]-247;d(a+1+et);const nt=unarrayifyInteger(c,a+1,et);return d(a+1+et+nt),_decodeChildren(c,a,a+1+et,et+nt)}else if(c[a]>=192){const et=c[a]-192;return d(a+1+et),_decodeChildren(c,a,a+1,et)}else if(c[a]>=184){const et=c[a]-183;d(a+1+et);const nt=unarrayifyInteger(c,a+1,et);d(a+1+et+nt);const tt=hexlify(c.slice(a+1+et,a+1+et+nt));return{consumed:1+et+nt,result:tt}}else if(c[a]>=128){const et=c[a]-128;d(a+1+et);const nt=hexlify(c.slice(a+1,a+1+et));return{consumed:1+et,result:nt}}return{consumed:1,result:hexlifyByte(c[a])}}function decodeRlp(c){const a=getBytes(c,"data"),d=_decode(a,0);return assertArgument(d.consumed===a.length,"unexpected junk after rlp payload","data",c),d.result}function arrayifyInteger(c){const a=[];for(;c;)a.unshift(c&255),c>>=8;return a}function _encode(c){if(Array.isArray(c)){let et=[];if(c.forEach(function(tt){et=et.concat(_encode(tt))}),et.length<=55)return et.unshift(192+et.length),et;const nt=arrayifyInteger(et.length);return nt.unshift(247+nt.length),nt.concat(et)}const a=Array.prototype.slice.call(getBytes(c,"object"));if(a.length===1&&a[0]<=127)return a;if(a.length<=55)return a.unshift(128+a.length),a;const d=arrayifyInteger(a.length);return d.unshift(183+d.length),d.concat(a)}const nibbles="0123456789abcdef";function encodeRlp(c){let a="0x";for(const d of _encode(c))a+=nibbles[d>>4],a+=nibbles[d&15];return a}const names=["wei","kwei","mwei","gwei","szabo","finney","ether"];function formatUnits$1(c,a){let d=18;if(typeof a=="string"){const et=names.indexOf(a);assertArgument(et>=0,"invalid unit","unit",a),d=3*et}else a!=null&&(d=getNumber(a,"unit"));return FixedNumber.fromValue(c,d,{decimals:d,width:512}).toString()}function parseUnits$1(c,a){assertArgument(typeof c=="string","value must be a string","value",c);let d=18;if(typeof a=="string"){const et=names.indexOf(a);assertArgument(et>=0,"invalid unit","unit",a),d=3*et}else a!=null&&(d=getNumber(a,"unit"));return FixedNumber.fromString(c,{decimals:d,width:512}).value}function formatEther$1(c){return formatUnits$1(c,18)}const WordSize=32,Padding=new Uint8Array(WordSize),passProperties$1=["then"],_guard$2={};function throwError(c,a){const d=new Error(`deferred error during ABI decoding triggered accessing ${c}`);throw d.error=a,d}var Cn;const Js=class Js extends Array{constructor(...d){const et=d[0];let nt=d[1],tt=(d[2]||[]).slice(),bt=!0;et!==_guard$2&&(nt=d,tt=[],bt=!1);super(nt.length);Vr(this,Cn,void 0);nt.forEach((wt,St)=>{this[St]=wt});const gt=tt.reduce((wt,St)=>(typeof St=="string"&&wt.set(St,(wt.get(St)||0)+1),wt),new Map);if(yr(this,Cn,Object.freeze(nt.map((wt,St)=>{const Mt=tt[St];return Mt!=null&>.get(Mt)===1?Mt:null}))),!!bt)return Object.freeze(this),new Proxy(this,{get:(wt,St,Mt)=>{if(typeof St=="string"){if(St.match(/^[0-9]+$/)){const Tt=getNumber(St,"%index");if(Tt<0||Tt>=this.length)throw new RangeError("out of result range");const Rt=wt[Tt];return Rt instanceof Error&&throwError(`index ${Tt}`,Rt),Rt}if(passProperties$1.indexOf(St)>=0)return Reflect.get(wt,St,Mt);const _t=wt[St];if(_t instanceof Function)return function(...Tt){return _t.apply(this===Mt?wt:this,Tt)};if(!(St in wt))return wt.getValue.apply(this===Mt?wt:this,[St])}return Reflect.get(wt,St,Mt)}})}toArray(){const d=[];return this.forEach((et,nt)=>{et instanceof Error&&throwError(`index ${nt}`,et),d.push(et)}),d}toObject(){return or(this,Cn).reduce((d,et,nt)=>(assert$s(et!=null,"value at index ${ index } unnamed","UNSUPPORTED_OPERATION",{operation:"toObject()"}),et in d||(d[et]=this.getValue(et)),d),{})}slice(d,et){d==null&&(d=0),d<0&&(d+=this.length,d<0&&(d=0)),et==null&&(et=this.length),et<0&&(et+=this.length,et<0&&(et=0)),et>this.length&&(et=this.length);const nt=[],tt=[];for(let bt=d;bt{or(this,mn)[a]=getValue$1(d)}}}mn=new WeakMap,Zn=new WeakMap,hs=new WeakSet,xo=function(a){return or(this,mn).push(a),yr(this,Zn,or(this,Zn)+a.length),a.length};var D0,H0,Co,e1;const Qo=class Qo{constructor(a,d){Vr(this,Co);Gr(this,"allowLoose");Vr(this,D0,void 0);Vr(this,H0,void 0);defineProperties(this,{allowLoose:!!d}),yr(this,D0,getBytesCopy(a)),yr(this,H0,0)}get data(){return hexlify(or(this,D0))}get dataLength(){return or(this,D0).length}get consumed(){return or(this,H0)}get bytes(){return new Uint8Array(or(this,D0))}subReader(a){return new Qo(or(this,D0).slice(or(this,H0)+a),this.allowLoose)}readBytes(a,d){let et=Wr(this,Co,e1).call(this,0,a,!!d);return yr(this,H0,or(this,H0)+et.length),et.slice(0,a)}readValue(){return toBigInt(this.readBytes(WordSize))}readIndex(){return toNumber(this.readBytes(WordSize))}};D0=new WeakMap,H0=new WeakMap,Co=new WeakSet,e1=function(a,d,et){let nt=Math.ceil(d/WordSize)*WordSize;return or(this,H0)+nt>or(this,D0).length&&(this.allowLoose&&et&&or(this,H0)+d<=or(this,D0).length?nt=d:assert$s(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:getBytesCopy(or(this,D0)),length:or(this,D0).length,offset:or(this,H0)+nt})),or(this,D0).slice(or(this,H0),or(this,H0)+nt)};let Reader=Qo;function number$1(c){if(!Number.isSafeInteger(c)||c<0)throw new Error(`Wrong positive integer: ${c}`)}function bool(c){if(typeof c!="boolean")throw new Error(`Expected boolean, not ${c}`)}function bytes$1(c,...a){if(!(c instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(a.length>0&&!a.includes(c.length))throw new TypeError(`Expected Uint8Array of length ${a}, not of length=${c.length}`)}function hash$9(c){if(typeof c!="function"||typeof c.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");number$1(c.outputLen),number$1(c.blockLen)}function exists$1(c,a=!0){if(c.destroyed)throw new Error("Hash instance has been destroyed");if(a&&c.finished)throw new Error("Hash#digest() has already been called")}function output$1(c,a){bytes$1(c);const d=a.outputLen;if(c.lengthnew Uint32Array(c.buffer,c.byteOffset,Math.floor(c.byteLength/4)),createView$1=c=>new DataView(c.buffer,c.byteOffset,c.byteLength),rotr$1=(c,a)=>c<<32-a|c>>>a,isLE$1=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!isLE$1)throw new Error("Non little-endian hardware is not supported");Array.from({length:256},(c,a)=>a.toString(16).padStart(2,"0"));function utf8ToBytes$2(c){if(typeof c!="string")throw new TypeError(`utf8ToBytes expected string, got ${typeof c}`);return new TextEncoder().encode(c)}function toBytes$3(c){if(typeof c=="string"&&(c=utf8ToBytes$2(c)),!(c instanceof Uint8Array))throw new TypeError(`Expected input type is Uint8Array (got ${typeof c})`);return c}let Hash$9=class{clone(){return this._cloneInto()}};function wrapConstructor$1(c){const a=et=>c().update(toBytes$3(et)).digest(),d=c();return a.outputLen=d.outputLen,a.blockLen=d.blockLen,a.create=()=>c(),a}function wrapConstructorWithOpts(c){const a=(et,nt)=>c(nt).update(toBytes$3(et)).digest(),d=c({});return a.outputLen=d.outputLen,a.blockLen=d.blockLen,a.create=et=>c(et),a}let HMAC$1=class extends Hash$9{constructor(a,d){super(),this.finished=!1,this.destroyed=!1,assert$r.hash(a);const et=toBytes$3(d);if(this.iHash=a.create(),!(this.iHash instanceof Hash$9))throw new TypeError("Expected instance of class which extends utils.Hash");const nt=this.blockLen=this.iHash.blockLen;this.outputLen=this.iHash.outputLen;const tt=new Uint8Array(nt);tt.set(et.length>this.iHash.blockLen?a.create().update(et).digest():et);for(let bt=0;btnew HMAC$1(c,a).update(d).digest();hmac$2.create=(c,a)=>new HMAC$1(c,a);function setBigUint64$1(c,a,d,et){if(typeof c.setBigUint64=="function")return c.setBigUint64(a,d,et);const nt=BigInt(32),tt=BigInt(4294967295),bt=Number(d>>nt&tt),gt=Number(d&tt),wt=et?4:0,St=et?0:4;c.setUint32(a+wt,bt,et),c.setUint32(a+St,gt,et)}let SHA2$1=class extends Hash$9{constructor(a,d,et,nt){super(),this.blockLen=a,this.outputLen=d,this.padOffset=et,this.isLE=nt,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(a),this.view=createView$1(this.buffer)}update(a){assert$r.exists(this);const{view:d,buffer:et,blockLen:nt}=this;a=toBytes$3(a);const tt=a.length;for(let bt=0;btnt-bt&&(this.process(et,0),bt=0);for(let wt=bt;wtgt.setUint32(4*St,wt,tt))}digest(){const{buffer:a,outputLen:d}=this;this.digestInto(a);const et=a.slice(0,d);return this.destroy(),et}_cloneInto(a){a||(a=new this.constructor),a.set(...this.get());const{blockLen:d,buffer:et,length:nt,finished:tt,destroyed:bt,pos:gt}=this;return a.length=nt,a.pos=gt,a.finished=tt,a.destroyed=bt,nt%d&&a.buffer.set(et),a}};const Chi$1=(c,a,d)=>c&a^~c&d,Maj$1=(c,a,d)=>c&a^c&d^a&d,SHA256_K$1=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]),IV$1=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W$1=new Uint32Array(64);let SHA256$3=class extends SHA2$1{constructor(){super(64,32,8,!1),this.A=IV$1[0]|0,this.B=IV$1[1]|0,this.C=IV$1[2]|0,this.D=IV$1[3]|0,this.E=IV$1[4]|0,this.F=IV$1[5]|0,this.G=IV$1[6]|0,this.H=IV$1[7]|0}get(){const{A:a,B:d,C:et,D:nt,E:tt,F:bt,G:gt,H:wt}=this;return[a,d,et,nt,tt,bt,gt,wt]}set(a,d,et,nt,tt,bt,gt,wt){this.A=a|0,this.B=d|0,this.C=et|0,this.D=nt|0,this.E=tt|0,this.F=bt|0,this.G=gt|0,this.H=wt|0}process(a,d){for(let _t=0;_t<16;_t++,d+=4)SHA256_W$1[_t]=a.getUint32(d,!1);for(let _t=16;_t<64;_t++){const Tt=SHA256_W$1[_t-15],Rt=SHA256_W$1[_t-2],kt=rotr$1(Tt,7)^rotr$1(Tt,18)^Tt>>>3,It=rotr$1(Rt,17)^rotr$1(Rt,19)^Rt>>>10;SHA256_W$1[_t]=It+SHA256_W$1[_t-7]+kt+SHA256_W$1[_t-16]|0}let{A:et,B:nt,C:tt,D:bt,E:gt,F:wt,G:St,H:Mt}=this;for(let _t=0;_t<64;_t++){const Tt=rotr$1(gt,6)^rotr$1(gt,11)^rotr$1(gt,25),Rt=Mt+Tt+Chi$1(gt,wt,St)+SHA256_K$1[_t]+SHA256_W$1[_t]|0,It=(rotr$1(et,2)^rotr$1(et,13)^rotr$1(et,22))+Maj$1(et,nt,tt)|0;Mt=St,St=wt,wt=gt,gt=bt+Rt|0,bt=tt,tt=nt,nt=et,et=Rt+It|0}et=et+this.A|0,nt=nt+this.B|0,tt=tt+this.C|0,bt=bt+this.D|0,gt=gt+this.E|0,wt=wt+this.F|0,St=St+this.G|0,Mt=Mt+this.H|0,this.set(et,nt,tt,bt,gt,wt,St,Mt)}roundClean(){SHA256_W$1.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};const sha256$4=wrapConstructor$1(()=>new SHA256$3),U32_MASK64$1=BigInt(2**32-1),_32n$1=BigInt(32);function fromBig$1(c,a=!1){return a?{h:Number(c&U32_MASK64$1),l:Number(c>>_32n$1&U32_MASK64$1)}:{h:Number(c>>_32n$1&U32_MASK64$1)|0,l:Number(c&U32_MASK64$1)|0}}function split$1(c,a=!1){let d=new Uint32Array(c.length),et=new Uint32Array(c.length);for(let nt=0;ntBigInt(c>>>0)<<_32n$1|BigInt(a>>>0),shrSH=(c,a,d)=>c>>>d,shrSL=(c,a,d)=>c<<32-d|a>>>d,rotrSH=(c,a,d)=>c>>>d|a<<32-d,rotrSL=(c,a,d)=>c<<32-d|a>>>d,rotrBH=(c,a,d)=>c<<64-d|a>>>d-32,rotrBL=(c,a,d)=>c>>>d-32|a<<64-d,rotr32H=(c,a)=>a,rotr32L=(c,a)=>c,rotlSH$1=(c,a,d)=>c<>>32-d,rotlSL$1=(c,a,d)=>a<>>32-d,rotlBH$1=(c,a,d)=>a<>>64-d,rotlBL$1=(c,a,d)=>c<>>64-d;function add(c,a,d,et){const nt=(a>>>0)+(et>>>0);return{h:c+d+(nt/2**32|0)|0,l:nt|0}}const add3L=(c,a,d)=>(c>>>0)+(a>>>0)+(d>>>0),add3H=(c,a,d,et)=>a+d+et+(c/2**32|0)|0,add4L=(c,a,d,et)=>(c>>>0)+(a>>>0)+(d>>>0)+(et>>>0),add4H=(c,a,d,et,nt)=>a+d+et+nt+(c/2**32|0)|0,add5L=(c,a,d,et,nt)=>(c>>>0)+(a>>>0)+(d>>>0)+(et>>>0)+(nt>>>0),add5H=(c,a,d,et,nt,tt)=>a+d+et+nt+tt+(c/2**32|0)|0,u64={fromBig:fromBig$1,split:split$1,toBig,shrSH,shrSL,rotrSH,rotrSL,rotrBH,rotrBL,rotr32H,rotr32L,rotlSH:rotlSH$1,rotlSL:rotlSL$1,rotlBH:rotlBH$1,rotlBL:rotlBL$1,add,add3L,add3H,add4L,add4H,add5H,add5L},[SHA512_Kh,SHA512_Kl]=u64.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(c=>BigInt(c))),SHA512_W_H=new Uint32Array(80),SHA512_W_L=new Uint32Array(80);let SHA512$3=class extends SHA2$1{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:a,Al:d,Bh:et,Bl:nt,Ch:tt,Cl:bt,Dh:gt,Dl:wt,Eh:St,El:Mt,Fh:_t,Fl:Tt,Gh:Rt,Gl:kt,Hh:It,Hl:Lt}=this;return[a,d,et,nt,tt,bt,gt,wt,St,Mt,_t,Tt,Rt,kt,It,Lt]}set(a,d,et,nt,tt,bt,gt,wt,St,Mt,_t,Tt,Rt,kt,It,Lt){this.Ah=a|0,this.Al=d|0,this.Bh=et|0,this.Bl=nt|0,this.Ch=tt|0,this.Cl=bt|0,this.Dh=gt|0,this.Dl=wt|0,this.Eh=St|0,this.El=Mt|0,this.Fh=_t|0,this.Fl=Tt|0,this.Gh=Rt|0,this.Gl=kt|0,this.Hh=It|0,this.Hl=Lt|0}process(a,d){for(let Ft=0;Ft<16;Ft++,d+=4)SHA512_W_H[Ft]=a.getUint32(d),SHA512_W_L[Ft]=a.getUint32(d+=4);for(let Ft=16;Ft<80;Ft++){const jt=SHA512_W_H[Ft-15]|0,Vt=SHA512_W_L[Ft-15]|0,Jt=u64.rotrSH(jt,Vt,1)^u64.rotrSH(jt,Vt,8)^u64.shrSH(jt,Vt,7),ir=u64.rotrSL(jt,Vt,1)^u64.rotrSL(jt,Vt,8)^u64.shrSL(jt,Vt,7),rr=SHA512_W_H[Ft-2]|0,er=SHA512_W_L[Ft-2]|0,lr=u64.rotrSH(rr,er,19)^u64.rotrBH(rr,er,61)^u64.shrSH(rr,er,6),Ct=u64.rotrSL(rr,er,19)^u64.rotrBL(rr,er,61)^u64.shrSL(rr,er,6),dt=u64.add4L(ir,Ct,SHA512_W_L[Ft-7],SHA512_W_L[Ft-16]),mt=u64.add4H(dt,Jt,lr,SHA512_W_H[Ft-7],SHA512_W_H[Ft-16]);SHA512_W_H[Ft]=mt|0,SHA512_W_L[Ft]=dt|0}let{Ah:et,Al:nt,Bh:tt,Bl:bt,Ch:gt,Cl:wt,Dh:St,Dl:Mt,Eh:_t,El:Tt,Fh:Rt,Fl:kt,Gh:It,Gl:Lt,Hh:Ot,Hl:Nt}=this;for(let Ft=0;Ft<80;Ft++){const jt=u64.rotrSH(_t,Tt,14)^u64.rotrSH(_t,Tt,18)^u64.rotrBH(_t,Tt,41),Vt=u64.rotrSL(_t,Tt,14)^u64.rotrSL(_t,Tt,18)^u64.rotrBL(_t,Tt,41),Jt=_t&Rt^~_t&It,ir=Tt&kt^~Tt&Lt,rr=u64.add5L(Nt,Vt,ir,SHA512_Kl[Ft],SHA512_W_L[Ft]),er=u64.add5H(rr,Ot,jt,Jt,SHA512_Kh[Ft],SHA512_W_H[Ft]),lr=rr|0,Ct=u64.rotrSH(et,nt,28)^u64.rotrBH(et,nt,34)^u64.rotrBH(et,nt,39),dt=u64.rotrSL(et,nt,28)^u64.rotrBL(et,nt,34)^u64.rotrBL(et,nt,39),mt=et&tt^et>^tt>,yt=nt&bt^nt&wt^bt&wt;Ot=It|0,Nt=Lt|0,It=Rt|0,Lt=kt|0,Rt=_t|0,kt=Tt|0,{h:_t,l:Tt}=u64.add(St|0,Mt|0,er|0,lr|0),St=gt|0,Mt=wt|0,gt=tt|0,wt=bt|0,tt=et|0,bt=nt|0;const vt=u64.add3L(lr,dt,yt);et=u64.add3H(vt,er,Ct,mt),nt=vt|0}({h:et,l:nt}=u64.add(this.Ah|0,this.Al|0,et|0,nt|0)),{h:tt,l:bt}=u64.add(this.Bh|0,this.Bl|0,tt|0,bt|0),{h:gt,l:wt}=u64.add(this.Ch|0,this.Cl|0,gt|0,wt|0),{h:St,l:Mt}=u64.add(this.Dh|0,this.Dl|0,St|0,Mt|0),{h:_t,l:Tt}=u64.add(this.Eh|0,this.El|0,_t|0,Tt|0),{h:Rt,l:kt}=u64.add(this.Fh|0,this.Fl|0,Rt|0,kt|0),{h:It,l:Lt}=u64.add(this.Gh|0,this.Gl|0,It|0,Lt|0),{h:Ot,l:Nt}=u64.add(this.Hh|0,this.Hl|0,Ot|0,Nt|0),this.set(et,nt,tt,bt,gt,wt,St,Mt,_t,Tt,Rt,kt,It,Lt,Ot,Nt)}roundClean(){SHA512_W_H.fill(0),SHA512_W_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)}};class SHA512_256 extends SHA512$3{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}}let SHA384$1=class extends SHA512$3{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}};const sha512$2=wrapConstructor$1(()=>new SHA512$3);wrapConstructor$1(()=>new SHA512_256);wrapConstructor$1(()=>new SHA384$1);function getGlobal(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof dist$2.global<"u")return dist$2.global;throw new Error("unable to locate global object")}const anyGlobal=getGlobal();anyGlobal.crypto||anyGlobal.msCrypto;function createHmac(c,a){const d={sha256:sha256$4,sha512:sha512$2}[c];return assertArgument(d!=null,"invalid hmac algorithm","algorithm",c),hmac$2.create(d,a)}let locked$1=!1;const _computeHmac=function(c,a,d){return createHmac(c,a).update(d).digest()};let __computeHmac=_computeHmac;function computeHmac(c,a,d){const et=getBytes(a,"key"),nt=getBytes(d,"data");return hexlify(__computeHmac(c,et,nt))}computeHmac._=_computeHmac;computeHmac.lock=function(){locked$1=!0};computeHmac.register=function(c){if(locked$1)throw new Error("computeHmac is locked");__computeHmac=c};Object.freeze(computeHmac);const[SHA3_PI$1,SHA3_ROTL$1,_SHA3_IOTA$1]=[[],[],[]],_0n$6=BigInt(0),_1n$7=BigInt(1),_2n$5=BigInt(2),_7n$1=BigInt(7),_256n$1=BigInt(256),_0x71n$1=BigInt(113);for(let c=0,a=_1n$7,d=1,et=0;c<24;c++){[d,et]=[et,(2*d+3*et)%5],SHA3_PI$1.push(2*(5*et+d)),SHA3_ROTL$1.push((c+1)*(c+2)/2%64);let nt=_0n$6;for(let tt=0;tt<7;tt++)a=(a<<_1n$7^(a>>_7n$1)*_0x71n$1)%_256n$1,a&_2n$5&&(nt^=_1n$7<<(_1n$7<d>32?u64.rotlBH(c,a,d):u64.rotlSH(c,a,d),rotlL$1=(c,a,d)=>d>32?u64.rotlBL(c,a,d):u64.rotlSL(c,a,d);function keccakP$1(c,a=24){const d=new Uint32Array(10);for(let et=24-a;et<24;et++){for(let bt=0;bt<10;bt++)d[bt]=c[bt]^c[bt+10]^c[bt+20]^c[bt+30]^c[bt+40];for(let bt=0;bt<10;bt+=2){const gt=(bt+8)%10,wt=(bt+2)%10,St=d[wt],Mt=d[wt+1],_t=rotlH$1(St,Mt,1)^d[gt],Tt=rotlL$1(St,Mt,1)^d[gt+1];for(let Rt=0;Rt<50;Rt+=10)c[bt+Rt]^=_t,c[bt+Rt+1]^=Tt}let nt=c[2],tt=c[3];for(let bt=0;bt<24;bt++){const gt=SHA3_ROTL$1[bt],wt=rotlH$1(nt,tt,gt),St=rotlL$1(nt,tt,gt),Mt=SHA3_PI$1[bt];nt=c[Mt],tt=c[Mt+1],c[Mt]=wt,c[Mt+1]=St}for(let bt=0;bt<50;bt+=10){for(let gt=0;gt<10;gt++)d[gt]=c[bt+gt];for(let gt=0;gt<10;gt++)c[bt+gt]^=~d[(gt+2)%10]&d[(gt+4)%10]}c[0]^=SHA3_IOTA_H$1[et],c[1]^=SHA3_IOTA_L$1[et]}d.fill(0)}let Keccak$1=class t1 extends Hash$9{constructor(a,d,et,nt=!1,tt=24){if(super(),this.blockLen=a,this.suffix=d,this.outputLen=et,this.enableXOF=nt,this.rounds=tt,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,assert$r.number(et),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=u32$1(this.state)}keccak(){keccakP$1(this.state32,this.rounds),this.posOut=0,this.pos=0}update(a){assert$r.exists(this);const{blockLen:d,state:et}=this;a=toBytes$3(a);const nt=a.length;for(let tt=0;tt=et&&this.keccak();const bt=Math.min(et-this.posOut,tt-nt);a.set(d.subarray(this.posOut,this.posOut+bt),nt),this.posOut+=bt,nt+=bt}return a}xofInto(a){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(a)}xof(a){return assert$r.number(a),this.xofInto(new Uint8Array(a))}digestInto(a){if(assert$r.output(a,this),this.finished)throw new Error("digest() was already called");return this.writeInto(a),this.destroy(),a}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(a){const{blockLen:d,suffix:et,outputLen:nt,rounds:tt,enableXOF:bt}=this;return a||(a=new t1(d,et,nt,bt,tt)),a.state32.set(this.state32),a.pos=this.pos,a.posOut=this.posOut,a.finished=this.finished,a.rounds=tt,a.suffix=et,a.outputLen=nt,a.enableXOF=bt,a.destroyed=this.destroyed,a}};const gen$1=(c,a,d)=>wrapConstructor$1(()=>new Keccak$1(a,c,d));gen$1(6,144,224/8);gen$1(6,136,256/8);gen$1(6,104,384/8);gen$1(6,72,512/8);gen$1(1,144,224/8);const keccak_256$1=gen$1(1,136,256/8);gen$1(1,104,384/8);gen$1(1,72,512/8);const genShake=(c,a,d)=>wrapConstructorWithOpts((et={})=>new Keccak$1(a,c,et.dkLen===void 0?d:et.dkLen,!0));genShake(31,168,128/8);genShake(31,136,256/8);let locked=!1;const _keccak256=function(c){return keccak_256$1(c)};let __keccak256=_keccak256;function keccak256$2(c){const a=getBytes(c,"data");return hexlify(__keccak256(a))}keccak256$2._=_keccak256;keccak256$2.lock=function(){locked=!0};keccak256$2.register=function(c){if(locked)throw new TypeError("keccak256 is locked");__keccak256=c};Object.freeze(keccak256$2);var cryptoBrowserify={},browser$b={exports:{}},safeBuffer$2={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh */(function(c,a){var d=bufferPolyfill,et=d.Buffer;function nt(bt,gt){for(var wt in bt)gt[wt]=bt[wt]}et.from&&et.alloc&&et.allocUnsafe&&et.allocUnsafeSlow?c.exports=d:(nt(d,a),a.Buffer=tt);function tt(bt,gt,wt){return et(bt,gt,wt)}tt.prototype=Object.create(et.prototype),nt(et,tt),tt.from=function(bt,gt,wt){if(typeof bt=="number")throw new TypeError("Argument must not be a number");return et(bt,gt,wt)},tt.alloc=function(bt,gt,wt){if(typeof bt!="number")throw new TypeError("Argument must be a number");var St=et(bt);return gt!==void 0?typeof wt=="string"?St.fill(gt,wt):St.fill(gt):St.fill(0),St},tt.allocUnsafe=function(bt){if(typeof bt!="number")throw new TypeError("Argument must be a number");return et(bt)},tt.allocUnsafeSlow=function(bt){if(typeof bt!="number")throw new TypeError("Argument must be a number");return d.SlowBuffer(bt)}})(safeBuffer$2,safeBuffer$2.exports);var safeBufferExports$1=safeBuffer$2.exports,MAX_BYTES=65536,MAX_UINT32=4294967295;function oldBrowser$1(){throw new Error(`Secure random number generation is not supported by this browser. +Use Chrome, Firefox or Internet Explorer 11`)}var Buffer$A=safeBufferExports$1.Buffer,crypto$3=commonjsGlobal.crypto||commonjsGlobal.msCrypto;crypto$3&&crypto$3.getRandomValues?browser$b.exports=randomBytes$3:browser$b.exports=oldBrowser$1;function randomBytes$3(c,a){if(c>MAX_UINT32)throw new RangeError("requested too many random bytes");var d=Buffer$A.allocUnsafe(c);if(c>0)if(c>MAX_BYTES)for(var et=0;et0&&(bt=d[0]),bt instanceof Error)throw bt;var gt=new Error("Unhandled error."+(bt?" ("+bt.message+")":""));throw gt.context=bt,gt}var wt=tt[a];if(wt===void 0)return!1;if(typeof wt=="function")ReflectApply(wt,this,d);else for(var St=wt.length,Mt=arrayClone(wt,St),et=0;et0&&bt.length>nt&&!bt.warned){bt.warned=!0;var gt=new Error("Possible EventEmitter memory leak detected. "+bt.length+" "+String(a)+" listeners added. Use emitter.setMaxListeners() to increase limit");gt.name="MaxListenersExceededWarning",gt.emitter=c,gt.type=a,gt.count=bt.length,ProcessEmitWarning(gt)}return c}EventEmitter.prototype.addListener=function(a,d){return _addListener(this,a,d,!1)};EventEmitter.prototype.on=EventEmitter.prototype.addListener;EventEmitter.prototype.prependListener=function(a,d){return _addListener(this,a,d,!0)};function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(c,a,d){var et={fired:!1,wrapFn:void 0,target:c,type:a,listener:d},nt=onceWrapper.bind(et);return nt.listener=d,et.wrapFn=nt,nt}EventEmitter.prototype.once=function(a,d){return checkListener(d),this.on(a,_onceWrap(this,a,d)),this};EventEmitter.prototype.prependOnceListener=function(a,d){return checkListener(d),this.prependListener(a,_onceWrap(this,a,d)),this};EventEmitter.prototype.removeListener=function(a,d){var et,nt,tt,bt,gt;if(checkListener(d),nt=this._events,nt===void 0)return this;if(et=nt[a],et===void 0)return this;if(et===d||et.listener===d)--this._eventsCount===0?this._events=Object.create(null):(delete nt[a],nt.removeListener&&this.emit("removeListener",a,et.listener||d));else if(typeof et!="function"){for(tt=-1,bt=et.length-1;bt>=0;bt--)if(et[bt]===d||et[bt].listener===d){gt=et[bt].listener,tt=bt;break}if(tt<0)return this;tt===0?et.shift():spliceOne(et,tt),et.length===1&&(nt[a]=et[0]),nt.removeListener!==void 0&&this.emit("removeListener",a,gt||d)}return this};EventEmitter.prototype.off=EventEmitter.prototype.removeListener;EventEmitter.prototype.removeAllListeners=function(a){var d,et,nt;if(et=this._events,et===void 0)return this;if(et.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):et[a]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete et[a]),this;if(arguments.length===0){var tt=Object.keys(et),bt;for(nt=0;nt=0;nt--)this.removeListener(a,d[nt]);return this};function _listeners(c,a,d){var et=c._events;if(et===void 0)return[];var nt=et[a];return nt===void 0?[]:typeof nt=="function"?d?[nt.listener||nt]:[nt]:d?unwrapListeners(nt):arrayClone(nt,nt.length)}EventEmitter.prototype.listeners=function(a){return _listeners(this,a,!0)};EventEmitter.prototype.rawListeners=function(a){return _listeners(this,a,!1)};EventEmitter.listenerCount=function(c,a){return typeof c.listenerCount=="function"?c.listenerCount(a):listenerCount.call(c,a)};EventEmitter.prototype.listenerCount=listenerCount;function listenerCount(c){var a=this._events;if(a!==void 0){var d=a[c];if(typeof d=="function")return 1;if(d!==void 0)return d.length}return 0}EventEmitter.prototype.eventNames=function(){return this._eventsCount>0?ReflectOwnKeys(this._events):[]};function arrayClone(c,a){for(var d=new Array(a),et=0;et"u"||!getProto$1?undefined$1:getProto$1(Uint8Array),INTRINSICS={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto$1?getProto$1([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$Error,"%eval%":eval,"%EvalError%":$EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto$1?getProto$1(getProto$1([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols||!getProto$1?undefined$1:getProto$1(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":$RangeError,"%ReferenceError%":$ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols||!getProto$1?undefined$1:getProto$1(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto$1?getProto$1(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError$1,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$2,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":$URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet};if(getProto$1)try{null.error}catch(c){var errorProto=getProto$1(getProto$1(c));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function c(a){var d;if(a==="%AsyncFunction%")d=getEvalledConstructor("async function () {}");else if(a==="%GeneratorFunction%")d=getEvalledConstructor("function* () {}");else if(a==="%AsyncGeneratorFunction%")d=getEvalledConstructor("async function* () {}");else if(a==="%AsyncGenerator%"){var et=c("%AsyncGeneratorFunction%");et&&(d=et.prototype)}else if(a==="%AsyncIteratorPrototype%"){var nt=c("%AsyncGenerator%");nt&&getProto$1&&(d=getProto$1(nt.prototype))}return INTRINSICS[a]=d,d},LEGACY_ALIASES={__proto__:null,"%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"]},bind=functionBind,hasOwn=hasown,$concat=bind.call(Function.call,Array.prototype.concat),$spliceApply=bind.call(Function.apply,Array.prototype.splice),$replace=bind.call(Function.call,String.prototype.replace),$strSlice=bind.call(Function.call,String.prototype.slice),$exec=bind.call(Function.call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function(a){var d=$strSlice(a,0,1),et=$strSlice(a,-1);if(d==="%"&&et!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");if(et==="%"&&d!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");var nt=[];return $replace(a,rePropName,function(tt,bt,gt,wt){nt[nt.length]=gt?$replace(wt,reEscapeChar,"$1"):bt||tt}),nt},getBaseIntrinsic=function(a,d){var et=a,nt;if(hasOwn(LEGACY_ALIASES,et)&&(nt=LEGACY_ALIASES[et],et="%"+nt[0]+"%"),hasOwn(INTRINSICS,et)){var tt=INTRINSICS[et];if(tt===needsEval&&(tt=doEval(et)),typeof tt>"u"&&!d)throw new $TypeError$2("intrinsic "+a+" exists, but is not available. Please file an issue!");return{alias:nt,name:et,value:tt}}throw new $SyntaxError$1("intrinsic "+a+" does not exist!")},getIntrinsic=function(a,d){if(typeof a!="string"||a.length===0)throw new $TypeError$2("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof d!="boolean")throw new $TypeError$2('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,a)===null)throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var et=stringToPath(a),nt=et.length>0?et[0]:"",tt=getBaseIntrinsic("%"+nt+"%",d),bt=tt.name,gt=tt.value,wt=!1,St=tt.alias;St&&(nt=St[0],$spliceApply(et,$concat([0,1],St)));for(var Mt=1,_t=!0;Mt=et.length){var It=$gOPD$1(gt,Tt);_t=!!It,_t&&"get"in It&&!("originalValue"in It.get)?gt=It.get:gt=gt[Tt]}else _t=hasOwn(gt,Tt),gt=gt[Tt];_t&&!wt&&(INTRINSICS[bt]=gt)}}return gt},callBind$2={exports:{}},esDefineProperty,hasRequiredEsDefineProperty;function requireEsDefineProperty(){if(hasRequiredEsDefineProperty)return esDefineProperty;hasRequiredEsDefineProperty=1;var c=getIntrinsic,a=c("%Object.defineProperty%",!0)||!1;if(a)try{a({},"a",{value:1})}catch{a=!1}return esDefineProperty=a,esDefineProperty}var GetIntrinsic$2=getIntrinsic,$gOPD=GetIntrinsic$2("%Object.getOwnPropertyDescriptor%",!0);if($gOPD)try{$gOPD([],"length")}catch{$gOPD=null}var gopd$1=$gOPD,$defineProperty$1=requireEsDefineProperty(),$SyntaxError=syntax,$TypeError$1=type,gopd=gopd$1,defineDataProperty=function(a,d,et){if(!a||typeof a!="object"&&typeof a!="function")throw new $TypeError$1("`obj` must be an object or a function`");if(typeof d!="string"&&typeof d!="symbol")throw new $TypeError$1("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new $TypeError$1("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new $TypeError$1("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new $TypeError$1("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new $TypeError$1("`loose`, if provided, must be a boolean");var nt=arguments.length>3?arguments[3]:null,tt=arguments.length>4?arguments[4]:null,bt=arguments.length>5?arguments[5]:null,gt=arguments.length>6?arguments[6]:!1,wt=!!gopd&&gopd(a,d);if($defineProperty$1)$defineProperty$1(a,d,{configurable:bt===null&&wt?wt.configurable:!bt,enumerable:nt===null&&wt?wt.enumerable:!nt,value:et,writable:tt===null&&wt?wt.writable:!tt});else if(gt||!nt&&!tt&&!bt)a[d]=et;else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},$defineProperty=requireEsDefineProperty(),hasPropertyDescriptors=function(){return!!$defineProperty};hasPropertyDescriptors.hasArrayLengthDefineBug=function(){if(!$defineProperty)return null;try{return $defineProperty([],"length",{value:1}).length!==1}catch{return!0}};var hasPropertyDescriptors_1=hasPropertyDescriptors,GetIntrinsic$1=getIntrinsic,define=defineDataProperty,hasDescriptors=hasPropertyDescriptors_1(),gOPD$1=gopd$1,$TypeError=type,$floor=GetIntrinsic$1("%Math.floor%"),setFunctionLength=function(a,d){if(typeof a!="function")throw new $TypeError("`fn` is not a function");if(typeof d!="number"||d<0||d>4294967295||$floor(d)!==d)throw new $TypeError("`length` must be a positive 32-bit integer");var et=arguments.length>2&&!!arguments[2],nt=!0,tt=!0;if("length"in a&&gOPD$1){var bt=gOPD$1(a,"length");bt&&!bt.configurable&&(nt=!1),bt&&!bt.writable&&(tt=!1)}return(nt||tt||!et)&&(hasDescriptors?define(a,"length",d,!0,!0):define(a,"length",d)),a};(function(c){var a=functionBind,d=getIntrinsic,et=setFunctionLength,nt=type,tt=d("%Function.prototype.apply%"),bt=d("%Function.prototype.call%"),gt=d("%Reflect.apply%",!0)||a.call(bt,tt),wt=requireEsDefineProperty(),St=d("%Math.max%");c.exports=function(Tt){if(typeof Tt!="function")throw new nt("a function is required");var Rt=gt(a,bt,arguments);return et(Rt,1+St(0,Tt.length-(arguments.length-1)),!0)};var Mt=function(){return gt(a,tt,arguments)};wt?wt(c.exports,"apply",{value:Mt}):c.exports.apply=Mt})(callBind$2);var callBindExports=callBind$2.exports,GetIntrinsic=getIntrinsic,callBind$1=callBindExports,$indexOf$1=callBind$1(GetIntrinsic("String.prototype.indexOf")),callBound$2=function(a,d){var et=GetIntrinsic(a,!!d);return typeof et=="function"&&$indexOf$1(a,".prototype.")>-1?callBind$1(et):et},hasToStringTag$3=shams(),callBound$1=callBound$2,$toString$1=callBound$1("Object.prototype.toString"),isStandardArguments=function(a){return hasToStringTag$3&&a&&typeof a=="object"&&Symbol.toStringTag in a?!1:$toString$1(a)==="[object Arguments]"},isLegacyArguments=function(a){return isStandardArguments(a)?!0:a!==null&&typeof a=="object"&&typeof a.length=="number"&&a.length>=0&&$toString$1(a)!=="[object Array]"&&$toString$1(a.callee)==="[object Function]"},supportsStandardArguments=function(){return isStandardArguments(arguments)}();isStandardArguments.isLegacyArguments=isLegacyArguments;var isArguments=supportsStandardArguments?isStandardArguments:isLegacyArguments,toStr$2=Object.prototype.toString,fnToStr$1=Function.prototype.toString,isFnRegex=/^\s*(?:function)?\*/,hasToStringTag$2=shams(),getProto=Object.getPrototypeOf,getGeneratorFunc=function(){if(!hasToStringTag$2)return!1;try{return Function("return function*() {}")()}catch{}},GeneratorFunction,isGeneratorFunction=function(a){if(typeof a!="function")return!1;if(isFnRegex.test(fnToStr$1.call(a)))return!0;if(!hasToStringTag$2){var d=toStr$2.call(a);return d==="[object GeneratorFunction]"}if(!getProto)return!1;if(typeof GeneratorFunction>"u"){var et=getGeneratorFunc();GeneratorFunction=et?getProto(et):!1}return getProto(a)===GeneratorFunction},fnToStr=Function.prototype.toString,reflectApply=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,badArrayLike,isCallableMarker;if(typeof reflectApply=="function"&&typeof Object.defineProperty=="function")try{badArrayLike=Object.defineProperty({},"length",{get:function(){throw isCallableMarker}}),isCallableMarker={},reflectApply(function(){throw 42},null,badArrayLike)}catch(c){c!==isCallableMarker&&(reflectApply=null)}else reflectApply=null;var constructorRegex=/^\s*class\b/,isES6ClassFn=function(a){try{var d=fnToStr.call(a);return constructorRegex.test(d)}catch{return!1}},tryFunctionObject=function(a){try{return isES6ClassFn(a)?!1:(fnToStr.call(a),!0)}catch{return!1}},toStr$1=Object.prototype.toString,objectClass="[object Object]",fnClass="[object Function]",genClass="[object GeneratorFunction]",ddaClass="[object HTMLAllCollection]",ddaClass2="[object HTML document.all class]",ddaClass3="[object HTMLCollection]",hasToStringTag$1=typeof Symbol=="function"&&!!Symbol.toStringTag,isIE68=!(0 in[,]),isDDA=function(){return!1};if(typeof document=="object"){var all=document.all;toStr$1.call(all)===toStr$1.call(document.all)&&(isDDA=function(a){if((isIE68||!a)&&(typeof a>"u"||typeof a=="object"))try{var d=toStr$1.call(a);return(d===ddaClass||d===ddaClass2||d===ddaClass3||d===objectClass)&&a("")==null}catch{}return!1})}var isCallable$1=reflectApply?function(a){if(isDDA(a))return!0;if(!a||typeof a!="function"&&typeof a!="object")return!1;try{reflectApply(a,null,badArrayLike)}catch(d){if(d!==isCallableMarker)return!1}return!isES6ClassFn(a)&&tryFunctionObject(a)}:function(a){if(isDDA(a))return!0;if(!a||typeof a!="function"&&typeof a!="object")return!1;if(hasToStringTag$1)return tryFunctionObject(a);if(isES6ClassFn(a))return!1;var d=toStr$1.call(a);return d!==fnClass&&d!==genClass&&!/^\[object HTML/.test(d)?!1:tryFunctionObject(a)},isCallable=isCallable$1,toStr=Object.prototype.toString,hasOwnProperty=Object.prototype.hasOwnProperty,forEachArray=function(a,d,et){for(var nt=0,tt=a.length;nt=3&&(nt=et),toStr.call(a)==="[object Array]"?forEachArray(a,d,nt):typeof a=="string"?forEachString(a,d,nt):forEachObject(a,d,nt)},forEach_1=forEach$1,possibleTypedArrayNames=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],possibleNames=possibleTypedArrayNames,g$1=typeof globalThis>"u"?commonjsGlobal:globalThis,availableTypedArrays$1=function(){for(var a=[],d=0;d"u"?commonjsGlobal:globalThis,typedArrays=availableTypedArrays(),$slice=callBound("String.prototype.slice"),getPrototypeOf=Object.getPrototypeOf,$indexOf=callBound("Array.prototype.indexOf",!0)||function(a,d){for(var et=0;et-1?d:d!=="Object"?!1:trySlices(a)}return gOPD?tryTypedArrays(a):null},whichTypedArray=whichTypedArray$1,isTypedArray=function(a){return!!whichTypedArray(a)};(function(c){var a=isArguments,d=isGeneratorFunction,et=whichTypedArray$1,nt=isTypedArray;function tt(dr){return dr.call.bind(dr)}var bt=typeof BigInt<"u",gt=typeof Symbol<"u",wt=tt(Object.prototype.toString),St=tt(Number.prototype.valueOf),Mt=tt(String.prototype.valueOf),_t=tt(Boolean.prototype.valueOf);if(bt)var Tt=tt(BigInt.prototype.valueOf);if(gt)var Rt=tt(Symbol.prototype.valueOf);function kt(dr,Kr){if(typeof dr!="object")return!1;try{return Kr(dr),!0}catch{return!1}}c.isArgumentsObject=a,c.isGeneratorFunction=d,c.isTypedArray=nt;function It(dr){return typeof Promise<"u"&&dr instanceof Promise||dr!==null&&typeof dr=="object"&&typeof dr.then=="function"&&typeof dr.catch=="function"}c.isPromise=It;function Lt(dr){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(dr):nt(dr)||Dt(dr)}c.isArrayBufferView=Lt;function Ot(dr){return et(dr)==="Uint8Array"}c.isUint8Array=Ot;function Nt(dr){return et(dr)==="Uint8ClampedArray"}c.isUint8ClampedArray=Nt;function Ft(dr){return et(dr)==="Uint16Array"}c.isUint16Array=Ft;function jt(dr){return et(dr)==="Uint32Array"}c.isUint32Array=jt;function Vt(dr){return et(dr)==="Int8Array"}c.isInt8Array=Vt;function Jt(dr){return et(dr)==="Int16Array"}c.isInt16Array=Jt;function ir(dr){return et(dr)==="Int32Array"}c.isInt32Array=ir;function rr(dr){return et(dr)==="Float32Array"}c.isFloat32Array=rr;function er(dr){return et(dr)==="Float64Array"}c.isFloat64Array=er;function lr(dr){return et(dr)==="BigInt64Array"}c.isBigInt64Array=lr;function Ct(dr){return et(dr)==="BigUint64Array"}c.isBigUint64Array=Ct;function dt(dr){return wt(dr)==="[object Map]"}dt.working=typeof Map<"u"&&dt(new Map);function mt(dr){return typeof Map>"u"?!1:dt.working?dt(dr):dr instanceof Map}c.isMap=mt;function yt(dr){return wt(dr)==="[object Set]"}yt.working=typeof Set<"u"&&yt(new Set);function vt(dr){return typeof Set>"u"?!1:yt.working?yt(dr):dr instanceof Set}c.isSet=vt;function Et(dr){return wt(dr)==="[object WeakMap]"}Et.working=typeof WeakMap<"u"&&Et(new WeakMap);function At(dr){return typeof WeakMap>"u"?!1:Et.working?Et(dr):dr instanceof WeakMap}c.isWeakMap=At;function Pt(dr){return wt(dr)==="[object WeakSet]"}Pt.working=typeof WeakSet<"u"&&Pt(new WeakSet);function xt(dr){return Pt(dr)}c.isWeakSet=xt;function ht(dr){return wt(dr)==="[object ArrayBuffer]"}ht.working=typeof ArrayBuffer<"u"&&ht(new ArrayBuffer);function $t(dr){return typeof ArrayBuffer>"u"?!1:ht.working?ht(dr):dr instanceof ArrayBuffer}c.isArrayBuffer=$t;function Bt(dr){return wt(dr)==="[object DataView]"}Bt.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Bt(new DataView(new ArrayBuffer(1),0,1));function Dt(dr){return typeof DataView>"u"?!1:Bt.working?Bt(dr):dr instanceof DataView}c.isDataView=Dt;var Ht=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function tr(dr){return wt(dr)==="[object SharedArrayBuffer]"}function Xt(dr){return typeof Ht>"u"?!1:(typeof tr.working>"u"&&(tr.working=tr(new Ht)),tr.working?tr(dr):dr instanceof Ht)}c.isSharedArrayBuffer=Xt;function Ut(dr){return wt(dr)==="[object AsyncFunction]"}c.isAsyncFunction=Ut;function qt(dr){return wt(dr)==="[object Map Iterator]"}c.isMapIterator=qt;function Gt(dr){return wt(dr)==="[object Set Iterator]"}c.isSetIterator=Gt;function Zt(dr){return wt(dr)==="[object Generator]"}c.isGeneratorObject=Zt;function Yt(dr){return wt(dr)==="[object WebAssembly.Module]"}c.isWebAssemblyCompiledModule=Yt;function Kt(dr){return kt(dr,St)}c.isNumberObject=Kt;function ar(dr){return kt(dr,Mt)}c.isStringObject=ar;function gr(dr){return kt(dr,_t)}c.isBooleanObject=gr;function cr(dr){return bt&&kt(dr,Tt)}c.isBigIntObject=cr;function ur(dr){return gt&&kt(dr,Rt)}c.isSymbolObject=ur;function Pr(dr){return Kt(dr)||ar(dr)||gr(dr)||cr(dr)||ur(dr)}c.isBoxedPrimitive=Pr;function br(dr){return typeof Uint8Array<"u"&&($t(dr)||Xt(dr))}c.isAnyArrayBuffer=br,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(dr){Object.defineProperty(c,dr,{enumerable:!1,value:function(){throw new Error(dr+" is not supported in userland")}})})})(types);var isBufferBrowser=function(a){return a&&typeof a=="object"&&typeof a.copy=="function"&&typeof a.fill=="function"&&typeof a.readUInt8=="function"};(function(c){var a=Object.getOwnPropertyDescriptors||function(Dt){for(var Ht=Object.keys(Dt),tr={},Xt=0;Xt=Xt)return Gt;switch(Gt){case"%s":return String(tr[Ht++]);case"%d":return Number(tr[Ht++]);case"%j":try{return JSON.stringify(tr[Ht++])}catch{return"[Circular]"}default:return Gt}}),qt=tr[Ht];Ht"u")return function(){return c.deprecate(Bt,Dt).apply(this,arguments)};var Ht=!1;function tr(){if(!Ht){if(dist$2.process.throwDeprecation)throw new Error(Dt);dist$2.process.traceDeprecation?console.trace(Dt):console.error(Dt),Ht=!0}return Bt.apply(this,arguments)}return tr};var et={},nt=/^$/;if({}.NODE_DEBUG){var tt={}.NODE_DEBUG;tt=tt.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),nt=new RegExp("^"+tt+"$","i")}c.debuglog=function(Bt){if(Bt=Bt.toUpperCase(),!et[Bt])if(nt.test(Bt)){var Dt=dist$2.process.pid;et[Bt]=function(){var Ht=c.format.apply(c,arguments);console.error("%s %d: %s",Bt,Dt,Ht)}}else et[Bt]=function(){};return et[Bt]};function bt(Bt,Dt){var Ht={seen:[],stylize:wt};return arguments.length>=3&&(Ht.depth=arguments[2]),arguments.length>=4&&(Ht.colors=arguments[3]),Ot(Dt)?Ht.showHidden=Dt:Dt&&c._extend(Ht,Dt),ir(Ht.showHidden)&&(Ht.showHidden=!1),ir(Ht.depth)&&(Ht.depth=2),ir(Ht.colors)&&(Ht.colors=!1),ir(Ht.customInspect)&&(Ht.customInspect=!0),Ht.colors&&(Ht.stylize=gt),Mt(Ht,Bt,Ht.depth)}c.inspect=bt,bt.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]},bt.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function gt(Bt,Dt){var Ht=bt.styles[Dt];return Ht?"\x1B["+bt.colors[Ht][0]+"m"+Bt+"\x1B["+bt.colors[Ht][1]+"m":Bt}function wt(Bt,Dt){return Bt}function St(Bt){var Dt={};return Bt.forEach(function(Ht,tr){Dt[Ht]=!0}),Dt}function Mt(Bt,Dt,Ht){if(Bt.customInspect&&Dt&&dt(Dt.inspect)&&Dt.inspect!==c.inspect&&!(Dt.constructor&&Dt.constructor.prototype===Dt)){var tr=Dt.inspect(Ht,Bt);return Vt(tr)||(tr=Mt(Bt,tr,Ht)),tr}var Xt=_t(Bt,Dt);if(Xt)return Xt;var Ut=Object.keys(Dt),qt=St(Ut);if(Bt.showHidden&&(Ut=Object.getOwnPropertyNames(Dt)),Ct(Dt)&&(Ut.indexOf("message")>=0||Ut.indexOf("description")>=0))return Tt(Dt);if(Ut.length===0){if(dt(Dt)){var Gt=Dt.name?": "+Dt.name:"";return Bt.stylize("[Function"+Gt+"]","special")}if(rr(Dt))return Bt.stylize(RegExp.prototype.toString.call(Dt),"regexp");if(lr(Dt))return Bt.stylize(Date.prototype.toString.call(Dt),"date");if(Ct(Dt))return Tt(Dt)}var Zt="",Yt=!1,Kt=["{","}"];if(Lt(Dt)&&(Yt=!0,Kt=["[","]"]),dt(Dt)){var ar=Dt.name?": "+Dt.name:"";Zt=" [Function"+ar+"]"}if(rr(Dt)&&(Zt=" "+RegExp.prototype.toString.call(Dt)),lr(Dt)&&(Zt=" "+Date.prototype.toUTCString.call(Dt)),Ct(Dt)&&(Zt=" "+Tt(Dt)),Ut.length===0&&(!Yt||Dt.length==0))return Kt[0]+Zt+Kt[1];if(Ht<0)return rr(Dt)?Bt.stylize(RegExp.prototype.toString.call(Dt),"regexp"):Bt.stylize("[Object]","special");Bt.seen.push(Dt);var gr;return Yt?gr=Rt(Bt,Dt,Ht,qt,Ut):gr=Ut.map(function(cr){return kt(Bt,Dt,Ht,qt,cr,Yt)}),Bt.seen.pop(),It(gr,Zt,Kt)}function _t(Bt,Dt){if(ir(Dt))return Bt.stylize("undefined","undefined");if(Vt(Dt)){var Ht="'"+JSON.stringify(Dt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Bt.stylize(Ht,"string")}if(jt(Dt))return Bt.stylize(""+Dt,"number");if(Ot(Dt))return Bt.stylize(""+Dt,"boolean");if(Nt(Dt))return Bt.stylize("null","null")}function Tt(Bt){return"["+Error.prototype.toString.call(Bt)+"]"}function Rt(Bt,Dt,Ht,tr,Xt){for(var Ut=[],qt=0,Gt=Dt.length;qt-1&&(Ut?Gt=Gt.split(` `).map(function(Yt){return" "+Yt}).join(` `).slice(2):Gt=` `+Gt.split(` `).map(function(Yt){return" "+Yt}).join(` -`))):Gt=Rt.stylize("[Circular]","special")),ir(qt)){if(Ut&&Xt.match(/^\d+$/))return Gt;qt=JSON.stringify(""+Xt),qt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(qt=qt.slice(1,-1),qt=Rt.stylize(qt,"name")):(qt=qt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),qt=Rt.stylize(qt,"string"))}return qt+": "+Gt}function It(Rt,Dt,Ht){var tr=Rt.reduce(function(Xt,Ut){return Ut.indexOf(` +`))):Gt=Bt.stylize("[Circular]","special")),ir(qt)){if(Ut&&Xt.match(/^\d+$/))return Gt;qt=JSON.stringify(""+Xt),qt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(qt=qt.slice(1,-1),qt=Bt.stylize(qt,"name")):(qt=qt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),qt=Bt.stylize(qt,"string"))}return qt+": "+Gt}function It(Bt,Dt,Ht){var tr=Bt.reduce(function(Xt,Ut){return Ut.indexOf(` `)>=0,Xt+Ut.replace(/\u001b\[\d\d?m/g,"").length+1},0);return tr>60?Ht[0]+(Dt===""?"":Dt+` - `)+" "+Rt.join(`, - `)+" "+Ht[1]:Ht[0]+Dt+" "+Rt.join(", ")+" "+Ht[1]}c.types=types;function Lt(Rt){return Array.isArray(Rt)}c.isArray=Lt;function Ot(Rt){return typeof Rt=="boolean"}c.isBoolean=Ot;function Nt(Rt){return Rt===null}c.isNull=Nt;function Ft(Rt){return Rt==null}c.isNullOrUndefined=Ft;function zt(Rt){return typeof Rt=="number"}c.isNumber=zt;function Vt(Rt){return typeof Rt=="string"}c.isString=Vt;function Jt(Rt){return typeof Rt=="symbol"}c.isSymbol=Jt;function ir(Rt){return Rt===void 0}c.isUndefined=ir;function rr(Rt){return er(Rt)&&yt(Rt)==="[object RegExp]"}c.isRegExp=rr,c.types.isRegExp=rr;function er(Rt){return typeof Rt=="object"&&Rt!==null}c.isObject=er;function lr(Rt){return er(Rt)&&yt(Rt)==="[object Date]"}c.isDate=lr,c.types.isDate=lr;function Ct(Rt){return er(Rt)&&(yt(Rt)==="[object Error]"||Rt instanceof Error)}c.isError=Ct,c.types.isNativeError=Ct;function dt(Rt){return typeof Rt=="function"}c.isFunction=dt;function mt(Rt){return Rt===null||typeof Rt=="boolean"||typeof Rt=="number"||typeof Rt=="string"||typeof Rt=="symbol"||typeof Rt>"u"}c.isPrimitive=mt,c.isBuffer=isBufferBrowser;function yt(Rt){return Object.prototype.toString.call(Rt)}function vt(Rt){return Rt<10?"0"+Rt.toString(10):Rt.toString(10)}var Et=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function At(){var Rt=new Date,Dt=[vt(Rt.getHours()),vt(Rt.getMinutes()),vt(Rt.getSeconds())].join(":");return[Rt.getDate(),Et[Rt.getMonth()],Dt].join(" ")}c.log=function(){console.log("%s - %s",At(),c.format.apply(c,arguments))},c.inherits=inherits_browserExports,c._extend=function(Rt,Dt){if(!Dt||!er(Dt))return Rt;for(var Ht=Object.keys(Dt),tr=Ht.length;tr--;)Rt[Ht[tr]]=Dt[Ht[tr]];return Rt};function Pt(Rt,Dt){return Object.prototype.hasOwnProperty.call(Rt,Dt)}var xt=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;c.promisify=function(Dt){if(typeof Dt!="function")throw new TypeError('The "original" argument must be of type Function');if(xt&&Dt[xt]){var Ht=Dt[xt];if(typeof Ht!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Ht,xt,{value:Ht,enumerable:!1,writable:!1,configurable:!0}),Ht}function Ht(){for(var tr,Xt,Ut=new Promise(function(Zt,Yt){tr=Zt,Xt=Yt}),qt=[],Gt=0;Gt0?this.tail.next=Ot:this.head=Ot,this.tail=Ot,++this.length}},{key:"unshift",value:function(Lt){var Ot={data:Lt,next:this.head};this.length===0&&(this.tail=Ot),this.head=Ot,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Lt=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Lt}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Lt){if(this.length===0)return"";for(var Ot=this.head,Nt=""+Ot.data;Ot=Ot.next;)Nt+=Lt+Ot.data;return Nt}},{key:"concat",value:function(Lt){if(this.length===0)return St.alloc(0);for(var Ot=St.allocUnsafe(Lt>>>0),Nt=this.head,Ft=0;Nt;)Bt(Nt.data,Ot,Ft),Ft+=Nt.data.length,Nt=Nt.next;return Ot}},{key:"consume",value:function(Lt,Ot){var Nt;return Ltzt.length?zt.length:Lt;if(Vt===zt.length?Ft+=zt:Ft+=zt.slice(0,Lt),Lt-=Vt,Lt===0){Vt===zt.length?(++Nt,Ot.next?this.head=Ot.next:this.head=this.tail=null):(this.head=Ot,Ot.data=zt.slice(Vt));break}++Nt}return this.length-=Nt,Ft}},{key:"_getBuffer",value:function(Lt){var Ot=St.allocUnsafe(Lt),Nt=this.head,Ft=1;for(Nt.data.copy(Ot),Lt-=Nt.data.length;Nt=Nt.next;){var zt=Nt.data,Vt=Lt>zt.length?zt.length:Lt;if(zt.copy(Ot,Ot.length-Lt,0,Vt),Lt-=Vt,Lt===0){Vt===zt.length?(++Ft,Nt.next?this.head=Nt.next:this.head=this.tail=null):(this.head=Nt,Nt.data=zt.slice(Vt));break}++Ft}return this.length-=Ft,Ot}},{key:Tt,value:function(Lt,Ot){return _t(this,a(a({},Ot),{},{depth:0,customInspect:!1}))}}]),kt}(),buffer_list}function destroy$1(c,a){var d=this,et=this._readableState&&this._readableState.destroyed,nt=this._writableState&&this._writableState.destroyed;return et||nt?(a?a(c):c&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,dist$2.process.nextTick(emitErrorNT$1,this,c)):dist$2.process.nextTick(emitErrorNT$1,this,c)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(c||null,function(tt){!a&&tt?d._writableState?d._writableState.errorEmitted?dist$2.process.nextTick(emitCloseNT,d):(d._writableState.errorEmitted=!0,dist$2.process.nextTick(emitErrorAndCloseNT,d,tt)):dist$2.process.nextTick(emitErrorAndCloseNT,d,tt):a?(dist$2.process.nextTick(emitCloseNT,d),a(tt)):dist$2.process.nextTick(emitCloseNT,d)}),this)}function emitErrorAndCloseNT(c,a){emitErrorNT$1(c,a),emitCloseNT(c)}function emitCloseNT(c){c._writableState&&!c._writableState.emitClose||c._readableState&&!c._readableState.emitClose||c.emit("close")}function undestroy$1(){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)}function emitErrorNT$1(c,a){c.emit("error",a)}function errorOrDestroy(c,a){var d=c._readableState,et=c._writableState;d&&d.autoDestroy||et&&et.autoDestroy?c.destroy(a):c.emit("error",a)}var destroy_1$1={destroy:destroy$1,undestroy:undestroy$1,errorOrDestroy},errorsBrowser={};function _inheritsLoose(c,a){c.prototype=Object.create(a.prototype),c.prototype.constructor=c,c.__proto__=a}var codes={};function createErrorType(c,a,d){d||(d=Error);function et(tt,bt,gt){return typeof a=="string"?a:a(tt,bt,gt)}var nt=function(tt){_inheritsLoose(bt,tt);function bt(gt,wt,St){return tt.call(this,et(gt,wt,St))||this}return bt}(d);nt.prototype.name=d.name,nt.prototype.code=c,codes[c]=nt}function oneOf(c,a){if(Array.isArray(c)){var d=c.length;return c=c.map(function(et){return String(et)}),d>2?"one of ".concat(a," ").concat(c.slice(0,d-1).join(", "),", or ")+c[d-1]:d===2?"one of ".concat(a," ").concat(c[0]," or ").concat(c[1]):"of ".concat(a," ").concat(c[0])}else return"of ".concat(a," ").concat(String(c))}function startsWith(c,a,d){return c.substr(!d||d<0?0:+d,a.length)===a}function endsWith(c,a,d){return(d===void 0||d>c.length)&&(d=c.length),c.substring(d-a.length,d)===a}function includes(c,a,d){return typeof d!="number"&&(d=0),d+a.length>c.length?!1:c.indexOf(a,d)!==-1}createErrorType("ERR_INVALID_OPT_VALUE",function(c,a){return'The value "'+a+'" is invalid for option "'+c+'"'},TypeError);createErrorType("ERR_INVALID_ARG_TYPE",function(c,a,d){var et;typeof a=="string"&&startsWith(a,"not ")?(et="must not be",a=a.replace(/^not /,"")):et="must be";var nt;if(endsWith(c," argument"))nt="The ".concat(c," ").concat(et," ").concat(oneOf(a,"type"));else{var tt=includes(c,".")?"property":"argument";nt='The "'.concat(c,'" ').concat(tt," ").concat(et," ").concat(oneOf(a,"type"))}return nt+=". Received type ".concat(typeof d),nt},TypeError);createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");createErrorType("ERR_METHOD_NOT_IMPLEMENTED",function(c){return"The "+c+" method is not implemented"});createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close");createErrorType("ERR_STREAM_DESTROYED",function(c){return"Cannot call "+c+" after a stream was destroyed"});createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times");createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);createErrorType("ERR_UNKNOWN_ENCODING",function(c){return"Unknown encoding: "+c},TypeError);createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");errorsBrowser.codes=codes;var ERR_INVALID_OPT_VALUE=errorsBrowser.codes.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(c,a,d){return c.highWaterMark!=null?c.highWaterMark:a?c[d]:null}function getHighWaterMark(c,a,d,et){var nt=highWaterMarkFrom(a,et,d);if(nt!=null){if(!(isFinite(nt)&&Math.floor(nt)===nt)||nt<0){var tt=et?d:"highWaterMark";throw new ERR_INVALID_OPT_VALUE(tt,nt)}return Math.floor(nt)}return c.objectMode?16:16*1024}var state={getHighWaterMark},browser$a=deprecate;function deprecate(c,a){if(config$1("noDeprecation"))return c;var d=!1;function et(){if(!d){if(config$1("throwDeprecation"))throw new Error(a);config$1("traceDeprecation")?console.trace(a):console.warn(a),d=!0}return c.apply(this,arguments)}return et}function config$1(c){try{if(!commonjsGlobal.localStorage)return!1}catch{return!1}var a=commonjsGlobal.localStorage[c];return a==null?!1:String(a).toLowerCase()==="true"}var _stream_writable$1,hasRequired_stream_writable$1;function require_stream_writable$1(){if(hasRequired_stream_writable$1)return _stream_writable$1;hasRequired_stream_writable$1=1,_stream_writable$1=rr;function c(Xt){var Ut=this;this.next=null,this.entry=null,this.finish=function(){tr(Ut,Xt)}}var a;rr.WritableState=Jt;var d={deprecate:browser$a},et=streamBrowser$1,nt=bufferPolyfill.Buffer,tt=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function bt(Xt){return nt.from(Xt)}function gt(Xt){return nt.isBuffer(Xt)||Xt instanceof tt}var wt=destroy_1$1,St=state,Mt=St.getHighWaterMark,_t=errorsBrowser.codes,Tt=_t.ERR_INVALID_ARG_TYPE,Bt=_t.ERR_METHOD_NOT_IMPLEMENTED,kt=_t.ERR_MULTIPLE_CALLBACK,It=_t.ERR_STREAM_CANNOT_PIPE,Lt=_t.ERR_STREAM_DESTROYED,Ot=_t.ERR_STREAM_NULL_VALUES,Nt=_t.ERR_STREAM_WRITE_AFTER_END,Ft=_t.ERR_UNKNOWN_ENCODING,zt=wt.errorOrDestroy;inherits_browserExports(rr,et);function Vt(){}function Jt(Xt,Ut,qt){a=a||require_stream_duplex$1(),Xt=Xt||{},typeof qt!="boolean"&&(qt=Ut instanceof a),this.objectMode=!!Xt.objectMode,qt&&(this.objectMode=this.objectMode||!!Xt.writableObjectMode),this.highWaterMark=Mt(this,Xt,"writableHighWaterMark",qt),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Gt=Xt.decodeStrings===!1;this.decodeStrings=!Gt,this.defaultEncoding=Xt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Zt){Et(Ut,Zt)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Xt.emitClose!==!1,this.autoDestroy=!!Xt.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new c(this)}Jt.prototype.getBuffer=function(){for(var Ut=this.bufferedRequest,qt=[];Ut;)qt.push(Ut),Ut=Ut.next;return qt},function(){try{Object.defineProperty(Jt.prototype,"buffer",{get:d.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var ir;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ir=Function.prototype[Symbol.hasInstance],Object.defineProperty(rr,Symbol.hasInstance,{value:function(Ut){return ir.call(this,Ut)?!0:this!==rr?!1:Ut&&Ut._writableState instanceof Jt}})):ir=function(Ut){return Ut instanceof this};function rr(Xt){a=a||require_stream_duplex$1();var Ut=this instanceof a;if(!Ut&&!ir.call(rr,this))return new rr(Xt);this._writableState=new Jt(Xt,this,Ut),this.writable=!0,Xt&&(typeof Xt.write=="function"&&(this._write=Xt.write),typeof Xt.writev=="function"&&(this._writev=Xt.writev),typeof Xt.destroy=="function"&&(this._destroy=Xt.destroy),typeof Xt.final=="function"&&(this._final=Xt.final)),et.call(this)}rr.prototype.pipe=function(){zt(this,new It)};function er(Xt,Ut){var qt=new Nt;zt(Xt,qt),dist$2.process.nextTick(Ut,qt)}function lr(Xt,Ut,qt,Gt){var Zt;return qt===null?Zt=new Ot:typeof qt!="string"&&!Ut.objectMode&&(Zt=new Tt("chunk",["string","Buffer"],qt)),Zt?(zt(Xt,Zt),dist$2.process.nextTick(Gt,Zt),!1):!0}rr.prototype.write=function(Xt,Ut,qt){var Gt=this._writableState,Zt=!1,Yt=!Gt.objectMode&>(Xt);return Yt&&!nt.isBuffer(Xt)&&(Xt=bt(Xt)),typeof Ut=="function"&&(qt=Ut,Ut=null),Yt?Ut="buffer":Ut||(Ut=Gt.defaultEncoding),typeof qt!="function"&&(qt=Vt),Gt.ending?er(this,qt):(Yt||lr(this,Gt,Xt,qt))&&(Gt.pendingcb++,Zt=dt(this,Gt,Yt,Xt,Ut,qt)),Zt},rr.prototype.cork=function(){this._writableState.corked++},rr.prototype.uncork=function(){var Xt=this._writableState;Xt.corked&&(Xt.corked--,!Xt.writing&&!Xt.corked&&!Xt.bufferProcessing&&Xt.bufferedRequest&&xt(this,Xt))},rr.prototype.setDefaultEncoding=function(Ut){if(typeof Ut=="string"&&(Ut=Ut.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ut+"").toLowerCase())>-1))throw new Ft(Ut);return this._writableState.defaultEncoding=Ut,this},Object.defineProperty(rr.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Ct(Xt,Ut,qt){return!Xt.objectMode&&Xt.decodeStrings!==!1&&typeof Ut=="string"&&(Ut=nt.from(Ut,qt)),Ut}Object.defineProperty(rr.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function dt(Xt,Ut,qt,Gt,Zt,Yt){if(!qt){var Kt=Ct(Ut,Gt,Zt);Gt!==Kt&&(qt=!0,Zt="buffer",Gt=Kt)}var ar=Ut.objectMode?1:Gt.length;Ut.length+=ar;var gr=Ut.length>5===6?2:c>>4===14?3:c>>3===30?4:c>>6===2?-1:-2}function utf8CheckIncomplete(c,a,d){var et=a.length-1;if(et=0?(nt>0&&(c.lastNeed=nt-1),nt):--et=0?(nt>0&&(c.lastNeed=nt-2),nt):--et=0?(nt>0&&(nt===2?nt=0:c.lastNeed=nt-3),nt):0))}function utf8CheckExtraBytes(c,a,d){if((a[0]&192)!==128)return c.lastNeed=0,"�";if(c.lastNeed>1&&a.length>1){if((a[1]&192)!==128)return c.lastNeed=1,"�";if(c.lastNeed>2&&a.length>2&&(a[2]&192)!==128)return c.lastNeed=2,"�"}}function utf8FillLast(c){var a=this.lastTotal-this.lastNeed,d=utf8CheckExtraBytes(this,c);if(d!==void 0)return d;if(this.lastNeed<=c.length)return c.copy(this.lastChar,a,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);c.copy(this.lastChar,a,0,c.length),this.lastNeed-=c.length}function utf8Text(c,a){var d=utf8CheckIncomplete(this,c,a);if(!this.lastNeed)return c.toString("utf8",a);this.lastTotal=d;var et=c.length-(d-this.lastNeed);return c.copy(this.lastChar,0,et),c.toString("utf8",a,et)}function utf8End(c){var a=c&&c.length?this.write(c):"";return this.lastNeed?a+"�":a}function utf16Text(c,a){if((c.length-a)%2===0){var d=c.toString("utf16le",a);if(d){var et=d.charCodeAt(d.length-1);if(et>=55296&&et<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=c[c.length-2],this.lastChar[1]=c[c.length-1],d.slice(0,-1)}return d}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=c[c.length-1],c.toString("utf16le",a,c.length-1)}function utf16End(c){var a=c&&c.length?this.write(c):"";if(this.lastNeed){var d=this.lastTotal-this.lastNeed;return a+this.lastChar.toString("utf16le",0,d)}return a}function base64Text(c,a){var d=(c.length-a)%3;return d===0?c.toString("base64",a):(this.lastNeed=3-d,this.lastTotal=3,d===1?this.lastChar[0]=c[c.length-1]:(this.lastChar[0]=c[c.length-2],this.lastChar[1]=c[c.length-1]),c.toString("base64",a,c.length-d))}function base64End(c){var a=c&&c.length?this.write(c):"";return this.lastNeed?a+this.lastChar.toString("base64",0,3-this.lastNeed):a}function simpleWrite(c){return c.toString(this.encoding)}function simpleEnd(c){return c&&c.length?this.write(c):""}var ERR_STREAM_PREMATURE_CLOSE=errorsBrowser.codes.ERR_STREAM_PREMATURE_CLOSE;function once$1(c){var a=!1;return function(){if(!a){a=!0;for(var d=arguments.length,et=new Array(d),nt=0;nt0)if(typeof Kt!="string"&&!ur.objectMode&&Object.getPrototypeOf(Kt)!==et.prototype&&(Kt=tt(Kt)),gr)ur.endEmitted?Vt(Yt,new Ot):Ct(Yt,ur,Kt,!0);else if(ur.ended)Vt(Yt,new It);else{if(ur.destroyed)return!1;ur.reading=!1,ur.decoder&&!ar?(Kt=ur.decoder.write(Kt),ur.objectMode||Kt.length!==0?Ct(Yt,ur,Kt,!1):xt(Yt,ur)):Ct(Yt,ur,Kt,!1)}else gr||(ur.reading=!1,xt(Yt,ur))}return!ur.ended&&(ur.length=mt?Yt=mt:(Yt--,Yt|=Yt>>>1,Yt|=Yt>>>2,Yt|=Yt>>>4,Yt|=Yt>>>8,Yt|=Yt>>>16,Yt++),Yt}function vt(Yt,Kt){return Yt<=0||Kt.length===0&&Kt.ended?0:Kt.objectMode?1:Yt!==Yt?Kt.flowing&&Kt.length?Kt.buffer.head.data.length:Kt.length:(Yt>Kt.highWaterMark&&(Kt.highWaterMark=yt(Yt)),Yt<=Kt.length?Yt:Kt.ended?Kt.length:(Kt.needReadable=!0,0))}er.prototype.read=function(Yt){wt("read",Yt),Yt=parseInt(Yt,10);var Kt=this._readableState,ar=Yt;if(Yt!==0&&(Kt.emittedReadable=!1),Yt===0&&Kt.needReadable&&((Kt.highWaterMark!==0?Kt.length>=Kt.highWaterMark:Kt.length>0)||Kt.ended))return wt("read: emitReadable",Kt.length,Kt.ended),Kt.length===0&&Kt.ended?qt(this):At(this),null;if(Yt=vt(Yt,Kt),Yt===0&&Kt.ended)return Kt.length===0&&qt(this),null;var gr=Kt.needReadable;wt("need readable",gr),(Kt.length===0||Kt.length-Yt0?cr=Ut(Yt,Kt):cr=null,cr===null?(Kt.needReadable=Kt.length<=Kt.highWaterMark,Yt=0):(Kt.length-=Yt,Kt.awaitDrain=0),Kt.length===0&&(Kt.ended||(Kt.needReadable=!0),ar!==Yt&&Kt.ended&&qt(this)),cr!==null&&this.emit("data",cr),cr};function Et(Yt,Kt){if(wt("onEofChunk"),!Kt.ended){if(Kt.decoder){var ar=Kt.decoder.end();ar&&ar.length&&(Kt.buffer.push(ar),Kt.length+=Kt.objectMode?1:ar.length)}Kt.ended=!0,Kt.sync?At(Yt):(Kt.needReadable=!1,Kt.emittedReadable||(Kt.emittedReadable=!0,Pt(Yt)))}}function At(Yt){var Kt=Yt._readableState;wt("emitReadable",Kt.needReadable,Kt.emittedReadable),Kt.needReadable=!1,Kt.emittedReadable||(wt("emitReadable",Kt.flowing),Kt.emittedReadable=!0,dist$2.process.nextTick(Pt,Yt))}function Pt(Yt){var Kt=Yt._readableState;wt("emitReadable_",Kt.destroyed,Kt.length,Kt.ended),!Kt.destroyed&&(Kt.length||Kt.ended)&&(Yt.emit("readable"),Kt.emittedReadable=!1),Kt.needReadable=!Kt.flowing&&!Kt.ended&&Kt.length<=Kt.highWaterMark,Xt(Yt)}function xt(Yt,Kt){Kt.readingMore||(Kt.readingMore=!0,dist$2.process.nextTick(ht,Yt,Kt))}function ht(Yt,Kt){for(;!Kt.reading&&!Kt.ended&&(Kt.length1&&Zt(gr.pipes,Yt)!==-1)&&!Kr&&(wt("false write response, pause",gr.awaitDrain),gr.awaitDrain++),ar.pause())}function Zr(Qt){wt("onerror",Qt),Xr(),Yt.removeListener("error",Zr),a(Yt,"error")===0&&Vt(Yt,Qt)}ir(Yt,"error",Zr);function $r(){Yt.removeListener("finish",Mr),Xr()}Yt.once("close",$r);function Mr(){wt("onfinish"),Yt.removeListener("close",$r),Xr()}Yt.once("finish",Mr);function Xr(){wt("unpipe"),ar.unpipe(Yt)}return Yt.emit("pipe",ar),gr.flowing||(wt("pipe resume"),ar.resume()),Yt};function $t(Yt){return function(){var ar=Yt._readableState;wt("pipeOnDrain",ar.awaitDrain),ar.awaitDrain&&ar.awaitDrain--,ar.awaitDrain===0&&a(Yt,"data")&&(ar.flowing=!0,Xt(Yt))}}er.prototype.unpipe=function(Yt){var Kt=this._readableState,ar={hasUnpiped:!1};if(Kt.pipesCount===0)return this;if(Kt.pipesCount===1)return Yt&&Yt!==Kt.pipes?this:(Yt||(Yt=Kt.pipes),Kt.pipes=null,Kt.pipesCount=0,Kt.flowing=!1,Yt&&Yt.emit("unpipe",this,ar),this);if(!Yt){var gr=Kt.pipes,cr=Kt.pipesCount;Kt.pipes=null,Kt.pipesCount=0,Kt.flowing=!1;for(var ur=0;ur0,gr.flowing!==!1&&this.resume()):Yt==="readable"&&!gr.endEmitted&&!gr.readableListening&&(gr.readableListening=gr.needReadable=!0,gr.flowing=!1,gr.emittedReadable=!1,wt("on readable",gr.length,gr.reading),gr.length?At(this):gr.reading||dist$2.process.nextTick(Dt,this)),ar},er.prototype.addListener=er.prototype.on,er.prototype.removeListener=function(Yt,Kt){var ar=d.prototype.removeListener.call(this,Yt,Kt);return Yt==="readable"&&dist$2.process.nextTick(Rt,this),ar},er.prototype.removeAllListeners=function(Yt){var Kt=d.prototype.removeAllListeners.apply(this,arguments);return(Yt==="readable"||Yt===void 0)&&dist$2.process.nextTick(Rt,this),Kt};function Rt(Yt){var Kt=Yt._readableState;Kt.readableListening=Yt.listenerCount("readable")>0,Kt.resumeScheduled&&!Kt.paused?Kt.flowing=!0:Yt.listenerCount("data")>0&&Yt.resume()}function Dt(Yt){wt("readable nexttick read 0"),Yt.read(0)}er.prototype.resume=function(){var Yt=this._readableState;return Yt.flowing||(wt("resume"),Yt.flowing=!Yt.readableListening,Ht(this,Yt)),Yt.paused=!1,this};function Ht(Yt,Kt){Kt.resumeScheduled||(Kt.resumeScheduled=!0,dist$2.process.nextTick(tr,Yt,Kt))}function tr(Yt,Kt){wt("resume",Kt.reading),Kt.reading||Yt.read(0),Kt.resumeScheduled=!1,Yt.emit("resume"),Xt(Yt),Kt.flowing&&!Kt.reading&&Yt.read(0)}er.prototype.pause=function(){return wt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(wt("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Xt(Yt){var Kt=Yt._readableState;for(wt("flow",Kt.flowing);Kt.flowing&&Yt.read()!==null;);}er.prototype.wrap=function(Yt){var Kt=this,ar=this._readableState,gr=!1;Yt.on("end",function(){if(wt("wrapped end"),ar.decoder&&!ar.ended){var Pr=ar.decoder.end();Pr&&Pr.length&&Kt.push(Pr)}Kt.push(null)}),Yt.on("data",function(Pr){if(wt("wrapped data"),ar.decoder&&(Pr=ar.decoder.write(Pr)),!(ar.objectMode&&Pr==null)&&!(!ar.objectMode&&(!Pr||!Pr.length))){var br=Kt.push(Pr);br||(gr=!0,Yt.pause())}});for(var cr in Yt)this[cr]===void 0&&typeof Yt[cr]=="function"&&(this[cr]=function(br){return function(){return Yt[br].apply(Yt,arguments)}}(cr));for(var ur=0;ur=Kt.length?(Kt.decoder?ar=Kt.buffer.join(""):Kt.buffer.length===1?ar=Kt.buffer.first():ar=Kt.buffer.concat(Kt.length),Kt.buffer.clear()):ar=Kt.buffer.consume(Yt,Kt.decoder),ar}function qt(Yt){var Kt=Yt._readableState;wt("endReadable",Kt.endEmitted),Kt.endEmitted||(Kt.ended=!0,dist$2.process.nextTick(Gt,Kt,Yt))}function Gt(Yt,Kt){if(wt("endReadableNT",Yt.endEmitted,Yt.length),!Yt.endEmitted&&Yt.length===0&&(Yt.endEmitted=!0,Kt.readable=!1,Kt.emit("end"),Yt.autoDestroy)){var ar=Kt._writableState;(!ar||ar.autoDestroy&&ar.finished)&&Kt.destroy()}}typeof Symbol=="function"&&(er.from=function(Yt,Kt){return zt===void 0&&(zt=requireFromBrowser()),zt(er,Yt,Kt)});function Zt(Yt,Kt){for(var ar=0,gr=Yt.length;ar0;return destroyer(bt,wt,St,function(Mt){nt||(nt=Mt),Mt&&tt.forEach(call$1),!wt&&(tt.forEach(call$1),et(nt))})});return a.reduce(pipe)}var pipeline_1=pipeline;(function(c,a){a=c.exports=require_stream_readable$1(),a.Stream=a,a.Readable=a,a.Writable=require_stream_writable$1(),a.Duplex=require_stream_duplex$1(),a.Transform=_stream_transform$1,a.PassThrough=_stream_passthrough$1,a.finished=endOfStream,a.pipeline=pipeline_1})(readableBrowser$1,readableBrowser$1.exports);var readableBrowserExports$1=readableBrowser$1.exports,Buffer$y=safeBufferExports$1.Buffer,Transform$7=readableBrowserExports$1.Transform,inherits$t=inherits_browserExports;function throwIfNotStringOrBuffer(c,a){if(!Buffer$y.isBuffer(c)&&typeof c!="string")throw new TypeError(a+" must be a string or a buffer")}function HashBase$2(c){Transform$7.call(this),this._block=Buffer$y.allocUnsafe(c),this._blockSize=c,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}inherits$t(HashBase$2,Transform$7);HashBase$2.prototype._transform=function(c,a,d){var et=null;try{this.update(c,a)}catch(nt){et=nt}d(et)};HashBase$2.prototype._flush=function(c){var a=null;try{this.push(this.digest())}catch(d){a=d}c(a)};HashBase$2.prototype.update=function(c,a){if(throwIfNotStringOrBuffer(c,"Data"),this._finalized)throw new Error("Digest already called");Buffer$y.isBuffer(c)||(c=Buffer$y.from(c,a));for(var d=this._block,et=0;this._blockOffset+c.length-et>=this._blockSize;){for(var nt=this._blockOffset;nt0;++tt)this._length[tt]+=bt,bt=this._length[tt]/4294967296|0,bt>0&&(this._length[tt]-=4294967296*bt);return this};HashBase$2.prototype._update=function(){throw new Error("_update is not implemented")};HashBase$2.prototype.digest=function(c){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var a=this._digest();c!==void 0&&(a=a.toString(c)),this._block.fill(0),this._blockOffset=0;for(var d=0;d<4;++d)this._length[d]=0;return a};HashBase$2.prototype._digest=function(){throw new Error("_digest is not implemented")};var hashBase=HashBase$2,inherits$s=inherits_browserExports,HashBase$1=hashBase,Buffer$x=safeBufferExports$1.Buffer,ARRAY16$1=new Array(16);function MD5$3(){HashBase$1.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}inherits$s(MD5$3,HashBase$1);MD5$3.prototype._update=function(){for(var c=ARRAY16$1,a=0;a<16;++a)c[a]=this._block.readInt32LE(a*4);var d=this._a,et=this._b,nt=this._c,tt=this._d;d=fnF(d,et,nt,tt,c[0],3614090360,7),tt=fnF(tt,d,et,nt,c[1],3905402710,12),nt=fnF(nt,tt,d,et,c[2],606105819,17),et=fnF(et,nt,tt,d,c[3],3250441966,22),d=fnF(d,et,nt,tt,c[4],4118548399,7),tt=fnF(tt,d,et,nt,c[5],1200080426,12),nt=fnF(nt,tt,d,et,c[6],2821735955,17),et=fnF(et,nt,tt,d,c[7],4249261313,22),d=fnF(d,et,nt,tt,c[8],1770035416,7),tt=fnF(tt,d,et,nt,c[9],2336552879,12),nt=fnF(nt,tt,d,et,c[10],4294925233,17),et=fnF(et,nt,tt,d,c[11],2304563134,22),d=fnF(d,et,nt,tt,c[12],1804603682,7),tt=fnF(tt,d,et,nt,c[13],4254626195,12),nt=fnF(nt,tt,d,et,c[14],2792965006,17),et=fnF(et,nt,tt,d,c[15],1236535329,22),d=fnG(d,et,nt,tt,c[1],4129170786,5),tt=fnG(tt,d,et,nt,c[6],3225465664,9),nt=fnG(nt,tt,d,et,c[11],643717713,14),et=fnG(et,nt,tt,d,c[0],3921069994,20),d=fnG(d,et,nt,tt,c[5],3593408605,5),tt=fnG(tt,d,et,nt,c[10],38016083,9),nt=fnG(nt,tt,d,et,c[15],3634488961,14),et=fnG(et,nt,tt,d,c[4],3889429448,20),d=fnG(d,et,nt,tt,c[9],568446438,5),tt=fnG(tt,d,et,nt,c[14],3275163606,9),nt=fnG(nt,tt,d,et,c[3],4107603335,14),et=fnG(et,nt,tt,d,c[8],1163531501,20),d=fnG(d,et,nt,tt,c[13],2850285829,5),tt=fnG(tt,d,et,nt,c[2],4243563512,9),nt=fnG(nt,tt,d,et,c[7],1735328473,14),et=fnG(et,nt,tt,d,c[12],2368359562,20),d=fnH(d,et,nt,tt,c[5],4294588738,4),tt=fnH(tt,d,et,nt,c[8],2272392833,11),nt=fnH(nt,tt,d,et,c[11],1839030562,16),et=fnH(et,nt,tt,d,c[14],4259657740,23),d=fnH(d,et,nt,tt,c[1],2763975236,4),tt=fnH(tt,d,et,nt,c[4],1272893353,11),nt=fnH(nt,tt,d,et,c[7],4139469664,16),et=fnH(et,nt,tt,d,c[10],3200236656,23),d=fnH(d,et,nt,tt,c[13],681279174,4),tt=fnH(tt,d,et,nt,c[0],3936430074,11),nt=fnH(nt,tt,d,et,c[3],3572445317,16),et=fnH(et,nt,tt,d,c[6],76029189,23),d=fnH(d,et,nt,tt,c[9],3654602809,4),tt=fnH(tt,d,et,nt,c[12],3873151461,11),nt=fnH(nt,tt,d,et,c[15],530742520,16),et=fnH(et,nt,tt,d,c[2],3299628645,23),d=fnI(d,et,nt,tt,c[0],4096336452,6),tt=fnI(tt,d,et,nt,c[7],1126891415,10),nt=fnI(nt,tt,d,et,c[14],2878612391,15),et=fnI(et,nt,tt,d,c[5],4237533241,21),d=fnI(d,et,nt,tt,c[12],1700485571,6),tt=fnI(tt,d,et,nt,c[3],2399980690,10),nt=fnI(nt,tt,d,et,c[10],4293915773,15),et=fnI(et,nt,tt,d,c[1],2240044497,21),d=fnI(d,et,nt,tt,c[8],1873313359,6),tt=fnI(tt,d,et,nt,c[15],4264355552,10),nt=fnI(nt,tt,d,et,c[6],2734768916,15),et=fnI(et,nt,tt,d,c[13],1309151649,21),d=fnI(d,et,nt,tt,c[4],4149444226,6),tt=fnI(tt,d,et,nt,c[11],3174756917,10),nt=fnI(nt,tt,d,et,c[2],718787259,15),et=fnI(et,nt,tt,d,c[9],3951481745,21),this._a=this._a+d|0,this._b=this._b+et|0,this._c=this._c+nt|0,this._d=this._d+tt|0};MD5$3.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var c=Buffer$x.allocUnsafe(16);return c.writeInt32LE(this._a,0),c.writeInt32LE(this._b,4),c.writeInt32LE(this._c,8),c.writeInt32LE(this._d,12),c};function rotl$1(c,a){return c<>>32-a}function fnF(c,a,d,et,nt,tt,bt){return rotl$1(c+(a&d|~a&et)+nt+tt|0,bt)+a|0}function fnG(c,a,d,et,nt,tt,bt){return rotl$1(c+(a&et|d&~et)+nt+tt|0,bt)+a|0}function fnH(c,a,d,et,nt,tt,bt){return rotl$1(c+(a^d^et)+nt+tt|0,bt)+a|0}function fnI(c,a,d,et,nt,tt,bt){return rotl$1(c+(d^(a|~et))+nt+tt|0,bt)+a|0}var md5_js=MD5$3,Buffer$w=bufferPolyfill.Buffer,inherits$r=inherits_browserExports,HashBase=hashBase,ARRAY16=new Array(16),zl=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],zr=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],sl=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],sr=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],hl=[0,1518500249,1859775393,2400959708,2840853838],hr=[1352829926,1548603684,1836072691,2053994217,0];function RIPEMD160$4(){HashBase.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}inherits$r(RIPEMD160$4,HashBase);RIPEMD160$4.prototype._update=function(){for(var c=ARRAY16,a=0;a<16;++a)c[a]=this._block.readInt32LE(a*4);for(var d=this._a|0,et=this._b|0,nt=this._c|0,tt=this._d|0,bt=this._e|0,gt=this._a|0,wt=this._b|0,St=this._c|0,Mt=this._d|0,_t=this._e|0,Tt=0;Tt<80;Tt+=1){var Bt,kt;Tt<16?(Bt=fn1(d,et,nt,tt,bt,c[zl[Tt]],hl[0],sl[Tt]),kt=fn5(gt,wt,St,Mt,_t,c[zr[Tt]],hr[0],sr[Tt])):Tt<32?(Bt=fn2(d,et,nt,tt,bt,c[zl[Tt]],hl[1],sl[Tt]),kt=fn4(gt,wt,St,Mt,_t,c[zr[Tt]],hr[1],sr[Tt])):Tt<48?(Bt=fn3(d,et,nt,tt,bt,c[zl[Tt]],hl[2],sl[Tt]),kt=fn3(gt,wt,St,Mt,_t,c[zr[Tt]],hr[2],sr[Tt])):Tt<64?(Bt=fn4(d,et,nt,tt,bt,c[zl[Tt]],hl[3],sl[Tt]),kt=fn2(gt,wt,St,Mt,_t,c[zr[Tt]],hr[3],sr[Tt])):(Bt=fn5(d,et,nt,tt,bt,c[zl[Tt]],hl[4],sl[Tt]),kt=fn1(gt,wt,St,Mt,_t,c[zr[Tt]],hr[4],sr[Tt])),d=bt,bt=tt,tt=rotl(nt,10),nt=et,et=Bt,gt=_t,_t=Mt,Mt=rotl(St,10),St=wt,wt=kt}var It=this._b+nt+Mt|0;this._b=this._c+tt+_t|0,this._c=this._d+bt+gt|0,this._d=this._e+d+wt|0,this._e=this._a+et+St|0,this._a=It};RIPEMD160$4.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var c=Buffer$w.alloc?Buffer$w.alloc(20):new Buffer$w(20);return c.writeInt32LE(this._a,0),c.writeInt32LE(this._b,4),c.writeInt32LE(this._c,8),c.writeInt32LE(this._d,12),c.writeInt32LE(this._e,16),c};function rotl(c,a){return c<>>32-a}function fn1(c,a,d,et,nt,tt,bt,gt){return rotl(c+(a^d^et)+tt+bt|0,gt)+nt|0}function fn2(c,a,d,et,nt,tt,bt,gt){return rotl(c+(a&d|~a&et)+tt+bt|0,gt)+nt|0}function fn3(c,a,d,et,nt,tt,bt,gt){return rotl(c+((a|~d)^et)+tt+bt|0,gt)+nt|0}function fn4(c,a,d,et,nt,tt,bt,gt){return rotl(c+(a&et|d&~et)+tt+bt|0,gt)+nt|0}function fn5(c,a,d,et,nt,tt,bt,gt){return rotl(c+(a^(d|~et))+tt+bt|0,gt)+nt|0}var ripemd160=RIPEMD160$4,sha_js={exports:{}},Buffer$v=safeBufferExports$1.Buffer;function Hash$8(c,a){this._block=Buffer$v.alloc(c),this._finalSize=a,this._blockSize=c,this._len=0}Hash$8.prototype.update=function(c,a){typeof c=="string"&&(a=a||"utf8",c=Buffer$v.from(c,a));for(var d=this._block,et=this._blockSize,nt=c.length,tt=this._len,bt=0;bt=this._finalSize&&(this._update(this._block),this._block.fill(0));var d=this._len*8;if(d<=4294967295)this._block.writeUInt32BE(d,this._blockSize-4);else{var et=(d&4294967295)>>>0,nt=(d-et)/4294967296;this._block.writeUInt32BE(nt,this._blockSize-8),this._block.writeUInt32BE(et,this._blockSize-4)}this._update(this._block);var tt=this._hash();return c?tt.toString(c):tt};Hash$8.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var hash$8=Hash$8,inherits$q=inherits_browserExports,Hash$7=hash$8,Buffer$u=safeBufferExports$1.Buffer,K$4=[1518500249,1859775393,-1894007588,-899497514],W$5=new Array(80);function Sha(){this.init(),this._w=W$5,Hash$7.call(this,64,56)}inherits$q(Sha,Hash$7);Sha.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl5$1(c){return c<<5|c>>>27}function rotl30$1(c){return c<<30|c>>>2}function ft$1(c,a,d,et){return c===0?a&d|~a&et:c===2?a&d|a&et|d&et:a^d^et}Sha.prototype._update=function(c){for(var a=this._w,d=this._a|0,et=this._b|0,nt=this._c|0,tt=this._d|0,bt=this._e|0,gt=0;gt<16;++gt)a[gt]=c.readInt32BE(gt*4);for(;gt<80;++gt)a[gt]=a[gt-3]^a[gt-8]^a[gt-14]^a[gt-16];for(var wt=0;wt<80;++wt){var St=~~(wt/20),Mt=rotl5$1(d)+ft$1(St,et,nt,tt)+bt+a[wt]+K$4[St]|0;bt=tt,tt=nt,nt=rotl30$1(et),et=d,d=Mt}this._a=d+this._a|0,this._b=et+this._b|0,this._c=nt+this._c|0,this._d=tt+this._d|0,this._e=bt+this._e|0};Sha.prototype._hash=function(){var c=Buffer$u.allocUnsafe(20);return c.writeInt32BE(this._a|0,0),c.writeInt32BE(this._b|0,4),c.writeInt32BE(this._c|0,8),c.writeInt32BE(this._d|0,12),c.writeInt32BE(this._e|0,16),c};var sha$4=Sha,inherits$p=inherits_browserExports,Hash$6=hash$8,Buffer$t=safeBufferExports$1.Buffer,K$3=[1518500249,1859775393,-1894007588,-899497514],W$4=new Array(80);function Sha1(){this.init(),this._w=W$4,Hash$6.call(this,64,56)}inherits$p(Sha1,Hash$6);Sha1.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl1(c){return c<<1|c>>>31}function rotl5(c){return c<<5|c>>>27}function rotl30(c){return c<<30|c>>>2}function ft(c,a,d,et){return c===0?a&d|~a&et:c===2?a&d|a&et|d&et:a^d^et}Sha1.prototype._update=function(c){for(var a=this._w,d=this._a|0,et=this._b|0,nt=this._c|0,tt=this._d|0,bt=this._e|0,gt=0;gt<16;++gt)a[gt]=c.readInt32BE(gt*4);for(;gt<80;++gt)a[gt]=rotl1(a[gt-3]^a[gt-8]^a[gt-14]^a[gt-16]);for(var wt=0;wt<80;++wt){var St=~~(wt/20),Mt=rotl5(d)+ft(St,et,nt,tt)+bt+a[wt]+K$3[St]|0;bt=tt,tt=nt,nt=rotl30(et),et=d,d=Mt}this._a=d+this._a|0,this._b=et+this._b|0,this._c=nt+this._c|0,this._d=tt+this._d|0,this._e=bt+this._e|0};Sha1.prototype._hash=function(){var c=Buffer$t.allocUnsafe(20);return c.writeInt32BE(this._a|0,0),c.writeInt32BE(this._b|0,4),c.writeInt32BE(this._c|0,8),c.writeInt32BE(this._d|0,12),c.writeInt32BE(this._e|0,16),c};var sha1=Sha1,inherits$o=inherits_browserExports,Hash$5=hash$8,Buffer$s=safeBufferExports$1.Buffer,K$2=[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],W$3=new Array(64);function Sha256$1(){this.init(),this._w=W$3,Hash$5.call(this,64,56)}inherits$o(Sha256$1,Hash$5);Sha256$1.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};function ch(c,a,d){return d^c&(a^d)}function maj$1(c,a,d){return c&a|d&(c|a)}function sigma0$1(c){return(c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10)}function sigma1$1(c){return(c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7)}function gamma0(c){return(c>>>7|c<<25)^(c>>>18|c<<14)^c>>>3}function gamma1(c){return(c>>>17|c<<15)^(c>>>19|c<<13)^c>>>10}Sha256$1.prototype._update=function(c){for(var a=this._w,d=this._a|0,et=this._b|0,nt=this._c|0,tt=this._d|0,bt=this._e|0,gt=this._f|0,wt=this._g|0,St=this._h|0,Mt=0;Mt<16;++Mt)a[Mt]=c.readInt32BE(Mt*4);for(;Mt<64;++Mt)a[Mt]=gamma1(a[Mt-2])+a[Mt-7]+gamma0(a[Mt-15])+a[Mt-16]|0;for(var _t=0;_t<64;++_t){var Tt=St+sigma1$1(bt)+ch(bt,gt,wt)+K$2[_t]+a[_t]|0,Bt=sigma0$1(d)+maj$1(d,et,nt)|0;St=wt,wt=gt,gt=bt,bt=tt+Tt|0,tt=nt,nt=et,et=d,d=Tt+Bt|0}this._a=d+this._a|0,this._b=et+this._b|0,this._c=nt+this._c|0,this._d=tt+this._d|0,this._e=bt+this._e|0,this._f=gt+this._f|0,this._g=wt+this._g|0,this._h=St+this._h|0};Sha256$1.prototype._hash=function(){var c=Buffer$s.allocUnsafe(32);return c.writeInt32BE(this._a,0),c.writeInt32BE(this._b,4),c.writeInt32BE(this._c,8),c.writeInt32BE(this._d,12),c.writeInt32BE(this._e,16),c.writeInt32BE(this._f,20),c.writeInt32BE(this._g,24),c.writeInt32BE(this._h,28),c};var sha256$3=Sha256$1,inherits$n=inherits_browserExports,Sha256=sha256$3,Hash$4=hash$8,Buffer$r=safeBufferExports$1.Buffer,W$2=new Array(64);function Sha224(){this.init(),this._w=W$2,Hash$4.call(this,64,56)}inherits$n(Sha224,Sha256);Sha224.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};Sha224.prototype._hash=function(){var c=Buffer$r.allocUnsafe(28);return c.writeInt32BE(this._a,0),c.writeInt32BE(this._b,4),c.writeInt32BE(this._c,8),c.writeInt32BE(this._d,12),c.writeInt32BE(this._e,16),c.writeInt32BE(this._f,20),c.writeInt32BE(this._g,24),c};var sha224$1=Sha224,inherits$m=inherits_browserExports,Hash$3=hash$8,Buffer$q=safeBufferExports$1.Buffer,K$1=[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],W$1=new Array(160);function Sha512(){this.init(),this._w=W$1,Hash$3.call(this,128,112)}inherits$m(Sha512,Hash$3);Sha512.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};function Ch(c,a,d){return d^c&(a^d)}function maj(c,a,d){return c&a|d&(c|a)}function sigma0(c,a){return(c>>>28|a<<4)^(a>>>2|c<<30)^(a>>>7|c<<25)}function sigma1(c,a){return(c>>>14|a<<18)^(c>>>18|a<<14)^(a>>>9|c<<23)}function Gamma0(c,a){return(c>>>1|a<<31)^(c>>>8|a<<24)^c>>>7}function Gamma0l(c,a){return(c>>>1|a<<31)^(c>>>8|a<<24)^(c>>>7|a<<25)}function Gamma1(c,a){return(c>>>19|a<<13)^(a>>>29|c<<3)^c>>>6}function Gamma1l(c,a){return(c>>>19|a<<13)^(a>>>29|c<<3)^(c>>>6|a<<26)}function getCarry(c,a){return c>>>0>>0?1:0}Sha512.prototype._update=function(c){for(var a=this._w,d=this._ah|0,et=this._bh|0,nt=this._ch|0,tt=this._dh|0,bt=this._eh|0,gt=this._fh|0,wt=this._gh|0,St=this._hh|0,Mt=this._al|0,_t=this._bl|0,Tt=this._cl|0,Bt=this._dl|0,kt=this._el|0,It=this._fl|0,Lt=this._gl|0,Ot=this._hl|0,Nt=0;Nt<32;Nt+=2)a[Nt]=c.readInt32BE(Nt*4),a[Nt+1]=c.readInt32BE(Nt*4+4);for(;Nt<160;Nt+=2){var Ft=a[Nt-30],zt=a[Nt-15*2+1],Vt=Gamma0(Ft,zt),Jt=Gamma0l(zt,Ft);Ft=a[Nt-2*2],zt=a[Nt-2*2+1];var ir=Gamma1(Ft,zt),rr=Gamma1l(zt,Ft),er=a[Nt-7*2],lr=a[Nt-7*2+1],Ct=a[Nt-16*2],dt=a[Nt-16*2+1],mt=Jt+lr|0,yt=Vt+er+getCarry(mt,Jt)|0;mt=mt+rr|0,yt=yt+ir+getCarry(mt,rr)|0,mt=mt+dt|0,yt=yt+Ct+getCarry(mt,dt)|0,a[Nt]=yt,a[Nt+1]=mt}for(var vt=0;vt<160;vt+=2){yt=a[vt],mt=a[vt+1];var Et=maj(d,et,nt),At=maj(Mt,_t,Tt),Pt=sigma0(d,Mt),xt=sigma0(Mt,d),ht=sigma1(bt,kt),$t=sigma1(kt,bt),Rt=K$1[vt],Dt=K$1[vt+1],Ht=Ch(bt,gt,wt),tr=Ch(kt,It,Lt),Xt=Ot+$t|0,Ut=St+ht+getCarry(Xt,Ot)|0;Xt=Xt+tr|0,Ut=Ut+Ht+getCarry(Xt,tr)|0,Xt=Xt+Dt|0,Ut=Ut+Rt+getCarry(Xt,Dt)|0,Xt=Xt+mt|0,Ut=Ut+yt+getCarry(Xt,mt)|0;var qt=xt+At|0,Gt=Pt+Et+getCarry(qt,xt)|0;St=wt,Ot=Lt,wt=gt,Lt=It,gt=bt,It=kt,kt=Bt+Xt|0,bt=tt+Ut+getCarry(kt,Bt)|0,tt=nt,Bt=Tt,nt=et,Tt=_t,et=d,_t=Mt,Mt=Xt+qt|0,d=Ut+Gt+getCarry(Mt,Xt)|0}this._al=this._al+Mt|0,this._bl=this._bl+_t|0,this._cl=this._cl+Tt|0,this._dl=this._dl+Bt|0,this._el=this._el+kt|0,this._fl=this._fl+It|0,this._gl=this._gl+Lt|0,this._hl=this._hl+Ot|0,this._ah=this._ah+d+getCarry(this._al,Mt)|0,this._bh=this._bh+et+getCarry(this._bl,_t)|0,this._ch=this._ch+nt+getCarry(this._cl,Tt)|0,this._dh=this._dh+tt+getCarry(this._dl,Bt)|0,this._eh=this._eh+bt+getCarry(this._el,kt)|0,this._fh=this._fh+gt+getCarry(this._fl,It)|0,this._gh=this._gh+wt+getCarry(this._gl,Lt)|0,this._hh=this._hh+St+getCarry(this._hl,Ot)|0};Sha512.prototype._hash=function(){var c=Buffer$q.allocUnsafe(64);function a(d,et,nt){c.writeInt32BE(d,nt),c.writeInt32BE(et,nt+4)}return a(this._ah,this._al,0),a(this._bh,this._bl,8),a(this._ch,this._cl,16),a(this._dh,this._dl,24),a(this._eh,this._el,32),a(this._fh,this._fl,40),a(this._gh,this._gl,48),a(this._hh,this._hl,56),c};var sha512$1=Sha512,inherits$l=inherits_browserExports,SHA512$2=sha512$1,Hash$2=hash$8,Buffer$p=safeBufferExports$1.Buffer,W=new Array(160);function Sha384(){this.init(),this._w=W,Hash$2.call(this,128,112)}inherits$l(Sha384,SHA512$2);Sha384.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};Sha384.prototype._hash=function(){var c=Buffer$p.allocUnsafe(48);function a(d,et,nt){c.writeInt32BE(d,nt),c.writeInt32BE(et,nt+4)}return a(this._ah,this._al,0),a(this._bh,this._bl,8),a(this._ch,this._cl,16),a(this._dh,this._dl,24),a(this._eh,this._el,32),a(this._fh,this._fl,40),c};var sha384$1=Sha384,exports=sha_js.exports=function(a){a=a.toLowerCase();var d=exports[a];if(!d)throw new Error(a+" is not supported (we accept pull requests)");return new d};exports.sha=sha$4;exports.sha1=sha1;exports.sha224=sha224$1;exports.sha256=sha256$3;exports.sha384=sha384$1;exports.sha512=sha512$1;var sha_jsExports=sha_js.exports,streamBrowserify=Stream,EE=eventsExports.EventEmitter,inherits$k=inherits_browserExports;inherits$k(Stream,EE);Stream.Readable=require_stream_readable$1();Stream.Writable=require_stream_writable$1();Stream.Duplex=require_stream_duplex$1();Stream.Transform=_stream_transform$1;Stream.PassThrough=_stream_passthrough$1;Stream.finished=endOfStream;Stream.pipeline=pipeline_1;Stream.Stream=Stream;function Stream(){EE.call(this)}Stream.prototype.pipe=function(c,a){var d=this;function et(Mt){c.writable&&c.write(Mt)===!1&&d.pause&&d.pause()}d.on("data",et);function nt(){d.readable&&d.resume&&d.resume()}c.on("drain",nt),!c._isStdio&&(!a||a.end!==!1)&&(d.on("end",bt),d.on("close",gt));var tt=!1;function bt(){tt||(tt=!0,c.end())}function gt(){tt||(tt=!0,typeof c.destroy=="function"&&c.destroy())}function wt(Mt){if(St(),EE.listenerCount(this,"error")===0)throw Mt}d.on("error",wt),c.on("error",wt);function St(){d.removeListener("data",et),c.removeListener("drain",nt),d.removeListener("end",bt),d.removeListener("close",gt),d.removeListener("error",wt),c.removeListener("error",wt),d.removeListener("end",St),d.removeListener("close",St),c.removeListener("close",St)}return d.on("end",St),d.on("close",St),c.on("close",St),c.emit("pipe",d),c};var Buffer$o=safeBufferExports$1.Buffer,Transform$6=streamBrowserify.Transform,StringDecoder=string_decoder.StringDecoder,inherits$j=inherits_browserExports;function CipherBase$1(c){Transform$6.call(this),this.hashMode=typeof c=="string",this.hashMode?this[c]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}inherits$j(CipherBase$1,Transform$6);CipherBase$1.prototype.update=function(c,a,d){typeof c=="string"&&(c=Buffer$o.from(c,a));var et=this._update(c);return this.hashMode?this:(d&&(et=this._toString(et,d)),et)};CipherBase$1.prototype.setAutoPadding=function(){};CipherBase$1.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};CipherBase$1.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};CipherBase$1.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};CipherBase$1.prototype._transform=function(c,a,d){var et;try{this.hashMode?this._update(c):this.push(this._update(c))}catch(nt){et=nt}finally{d(et)}};CipherBase$1.prototype._flush=function(c){var a;try{this.push(this.__final())}catch(d){a=d}c(a)};CipherBase$1.prototype._finalOrDigest=function(c){var a=this.__final()||Buffer$o.alloc(0);return c&&(a=this._toString(a,c,!0)),a};CipherBase$1.prototype._toString=function(c,a,d){if(this._decoder||(this._decoder=new StringDecoder(a),this._encoding=a),this._encoding!==a)throw new Error("can't switch encodings");var et=this._decoder.write(c);return d&&(et+=this._decoder.end()),et};var cipherBase=CipherBase$1,inherits$i=inherits_browserExports,MD5$2=md5_js,RIPEMD160$3=ripemd160,sha$3=sha_jsExports,Base$8=cipherBase;function Hash$1(c){Base$8.call(this,"digest"),this._hash=c}inherits$i(Hash$1,Base$8);Hash$1.prototype._update=function(c){this._hash.update(c)};Hash$1.prototype._final=function(){return this._hash.digest()};var browser$9=function(a){return a=a.toLowerCase(),a==="md5"?new MD5$2:a==="rmd160"||a==="ripemd160"?new RIPEMD160$3:new Hash$1(sha$3(a))},inherits$h=inherits_browserExports,Buffer$n=safeBufferExports$1.Buffer,Base$7=cipherBase,ZEROS$2=Buffer$n.alloc(128),blocksize=64;function Hmac$3(c,a){Base$7.call(this,"digest"),typeof a=="string"&&(a=Buffer$n.from(a)),this._alg=c,this._key=a,a.length>blocksize?a=c(a):a.lengthd){var et=c==="rmd160"?new RIPEMD160$2:sha$2(c);a=et.update(a).digest()}else a.lengthMAX_ALLOC||a!==a)throw new TypeError("Bad key length")},defaultEncoding$2;if(commonjsGlobal.process&&commonjsGlobal.process.browser)defaultEncoding$2="utf-8";else if(commonjsGlobal.process&&commonjsGlobal.process.version){var pVersionMajor=parseInt(dist$2.process.version.split(".")[0].slice(1),10);defaultEncoding$2=pVersionMajor>=6?"utf-8":"binary"}else defaultEncoding$2="utf-8";var defaultEncoding_1=defaultEncoding$2,Buffer$l=safeBufferExports$1.Buffer,toBuffer$2=function(c,a,d){if(Buffer$l.isBuffer(c))return c;if(typeof c=="string")return Buffer$l.from(c,a);if(ArrayBuffer.isView(c))return Buffer$l.from(c.buffer);throw new TypeError(d+" must be a string, a Buffer, a typed array or a DataView")},md5=md5$2,RIPEMD160$1=ripemd160,sha$1=sha_jsExports,Buffer$k=safeBufferExports$1.Buffer,checkParameters$1=precondition,defaultEncoding$1=defaultEncoding_1,toBuffer$1=toBuffer$2,ZEROS=Buffer$k.alloc(128),sizes={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function Hmac$1(c,a,d){var et=getDigest(c),nt=c==="sha512"||c==="sha384"?128:64;a.length>nt?a=et(a):a.length>>0};utils$A.writeUInt32BE=function(a,d,et){a[0+et]=d>>>24,a[1+et]=d>>>16&255,a[2+et]=d>>>8&255,a[3+et]=d&255};utils$A.ip=function(a,d,et,nt){for(var tt=0,bt=0,gt=6;gt>=0;gt-=2){for(var wt=0;wt<=24;wt+=8)tt<<=1,tt|=d>>>wt+gt&1;for(var wt=0;wt<=24;wt+=8)tt<<=1,tt|=a>>>wt+gt&1}for(var gt=6;gt>=0;gt-=2){for(var wt=1;wt<=25;wt+=8)bt<<=1,bt|=d>>>wt+gt&1;for(var wt=1;wt<=25;wt+=8)bt<<=1,bt|=a>>>wt+gt&1}et[nt+0]=tt>>>0,et[nt+1]=bt>>>0};utils$A.rip=function(a,d,et,nt){for(var tt=0,bt=0,gt=0;gt<4;gt++)for(var wt=24;wt>=0;wt-=8)tt<<=1,tt|=d>>>wt+gt&1,tt<<=1,tt|=a>>>wt+gt&1;for(var gt=4;gt<8;gt++)for(var wt=24;wt>=0;wt-=8)bt<<=1,bt|=d>>>wt+gt&1,bt<<=1,bt|=a>>>wt+gt&1;et[nt+0]=tt>>>0,et[nt+1]=bt>>>0};utils$A.pc1=function(a,d,et,nt){for(var tt=0,bt=0,gt=7;gt>=5;gt--){for(var wt=0;wt<=24;wt+=8)tt<<=1,tt|=d>>wt+gt&1;for(var wt=0;wt<=24;wt+=8)tt<<=1,tt|=a>>wt+gt&1}for(var wt=0;wt<=24;wt+=8)tt<<=1,tt|=d>>wt+gt&1;for(var gt=1;gt<=3;gt++){for(var wt=0;wt<=24;wt+=8)bt<<=1,bt|=d>>wt+gt&1;for(var wt=0;wt<=24;wt+=8)bt<<=1,bt|=a>>wt+gt&1}for(var wt=0;wt<=24;wt+=8)bt<<=1,bt|=a>>wt+gt&1;et[nt+0]=tt>>>0,et[nt+1]=bt>>>0};utils$A.r28shl=function(a,d){return a<>>28-d};var pc2table=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];utils$A.pc2=function(a,d,et,nt){for(var tt=0,bt=0,gt=pc2table.length>>>1,wt=0;wt>>pc2table[wt]&1;for(var wt=gt;wt>>pc2table[wt]&1;et[nt+0]=tt>>>0,et[nt+1]=bt>>>0};utils$A.expand=function(a,d,et){var nt=0,tt=0;nt=(a&1)<<5|a>>>27;for(var bt=23;bt>=15;bt-=4)nt<<=6,nt|=a>>>bt&63;for(var bt=11;bt>=3;bt-=4)tt|=a>>>bt&63,tt<<=6;tt|=(a&31)<<1|a>>>31,d[et+0]=nt>>>0,d[et+1]=tt>>>0};var sTable=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];utils$A.substitute=function(a,d){for(var et=0,nt=0;nt<4;nt++){var tt=a>>>18-nt*6&63,bt=sTable[nt*64+tt];et<<=4,et|=bt}for(var nt=0;nt<4;nt++){var tt=d>>>18-nt*6&63,bt=sTable[4*64+nt*64+tt];et<<=4,et|=bt}return et>>>0};var permuteTable=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];utils$A.permute=function(a){for(var d=0,et=0;et>>permuteTable[et]&1;return d>>>0};utils$A.padSplit=function(a,d,et){for(var nt=a.toString(2);nt.length0;nt--)d+=this._buffer(a,d),et+=this._flushBuffer(tt,et);return d+=this._buffer(a,d),tt};Cipher$3.prototype.final=function(a){var d;a&&(d=this.update(a));var et;return this.type==="encrypt"?et=this._finalEncrypt():et=this._finalDecrypt(),d?d.concat(et):et};Cipher$3.prototype._pad=function(a,d){if(d===0)return!1;for(;d>>1];et=utils$z.r28shl(et,bt),nt=utils$z.r28shl(nt,bt),utils$z.pc2(et,nt,a.keys,tt)}};DES$3.prototype._update=function(a,d,et,nt){var tt=this._desState,bt=utils$z.readUInt32BE(a,d),gt=utils$z.readUInt32BE(a,d+4);utils$z.ip(bt,gt,tt.tmp,0),bt=tt.tmp[0],gt=tt.tmp[1],this.type==="encrypt"?this._encrypt(tt,bt,gt,tt.tmp,0):this._decrypt(tt,bt,gt,tt.tmp,0),bt=tt.tmp[0],gt=tt.tmp[1],utils$z.writeUInt32BE(et,bt,nt),utils$z.writeUInt32BE(et,gt,nt+4)};DES$3.prototype._pad=function(a,d){if(this.padding===!1)return!1;for(var et=a.length-d,nt=d;nt>>0,bt=Bt}utils$z.rip(gt,bt,nt,tt)};DES$3.prototype._decrypt=function(a,d,et,nt,tt){for(var bt=et,gt=d,wt=a.keys.length-2;wt>=0;wt-=2){var St=a.keys[wt],Mt=a.keys[wt+1];utils$z.expand(bt,a.tmp,0),St^=a.tmp[0],Mt^=a.tmp[1];var _t=utils$z.substitute(St,Mt),Tt=utils$z.permute(_t),Bt=bt;bt=(gt^Tt)>>>0,gt=Bt}utils$z.rip(bt,gt,nt,tt)};var cbc$1={},assert$n=minimalisticAssert,inherits$e=inherits_browserExports,proto={};function CBCState(c){assert$n.equal(c.length,8,"Invalid IV length"),this.iv=new Array(8);for(var a=0;a>nt%8,c._prev=shiftIn(c._prev,d?gt:wt);return bt}function shiftIn(c,a){var d=c.length,et=-1,nt=Buffer$f.allocUnsafe(c.length);for(c=Buffer$f.concat([c,Buffer$f.from([a])]);++et>7;return nt}cfb1.encrypt=function(c,a,d){for(var et=a.length,nt=Buffer$f.allocUnsafe(et),tt=-1;++tt>>24]^bt[Mt>>>16&255]^gt[_t>>>8&255]^wt[Tt&255]^a[Ot++],kt=tt[Mt>>>24]^bt[_t>>>16&255]^gt[Tt>>>8&255]^wt[St&255]^a[Ot++],It=tt[_t>>>24]^bt[Tt>>>16&255]^gt[St>>>8&255]^wt[Mt&255]^a[Ot++],Lt=tt[Tt>>>24]^bt[St>>>16&255]^gt[Mt>>>8&255]^wt[_t&255]^a[Ot++],St=Bt,Mt=kt,_t=It,Tt=Lt;return Bt=(et[St>>>24]<<24|et[Mt>>>16&255]<<16|et[_t>>>8&255]<<8|et[Tt&255])^a[Ot++],kt=(et[Mt>>>24]<<24|et[_t>>>16&255]<<16|et[Tt>>>8&255]<<8|et[St&255])^a[Ot++],It=(et[_t>>>24]<<24|et[Tt>>>16&255]<<16|et[St>>>8&255]<<8|et[Mt&255])^a[Ot++],Lt=(et[Tt>>>24]<<24|et[St>>>16&255]<<16|et[Mt>>>8&255]<<8|et[_t&255])^a[Ot++],Bt=Bt>>>0,kt=kt>>>0,It=It>>>0,Lt=Lt>>>0,[Bt,kt,It,Lt]}var RCON=[0,1,2,4,8,16,32,64,128,27,54],G=function(){for(var c=new Array(256),a=0;a<256;a++)a<128?c[a]=a<<1:c[a]=a<<1^283;for(var d=[],et=[],nt=[[],[],[],[]],tt=[[],[],[],[]],bt=0,gt=0,wt=0;wt<256;++wt){var St=gt^gt<<1^gt<<2^gt<<3^gt<<4;St=St>>>8^St&255^99,d[bt]=St,et[St]=bt;var Mt=c[bt],_t=c[Mt],Tt=c[_t],Bt=c[St]*257^St*16843008;nt[0][bt]=Bt<<24|Bt>>>8,nt[1][bt]=Bt<<16|Bt>>>16,nt[2][bt]=Bt<<8|Bt>>>24,nt[3][bt]=Bt,Bt=Tt*16843009^_t*65537^Mt*257^bt*16843008,tt[0][St]=Bt<<24|Bt>>>8,tt[1][St]=Bt<<16|Bt>>>16,tt[2][St]=Bt<<8|Bt>>>24,tt[3][St]=Bt,bt===0?bt=gt=1:(bt=Mt^c[c[c[Tt^Mt]]],gt^=c[c[gt]])}return{SBOX:d,INV_SBOX:et,SUB_MIX:nt,INV_SUB_MIX:tt}}();function AES(c){this._key=asUInt32Array(c),this._reset()}AES.blockSize=4*4;AES.keySize=256/8;AES.prototype.blockSize=AES.blockSize;AES.prototype.keySize=AES.keySize;AES.prototype._reset=function(){for(var c=this._key,a=c.length,d=a+6,et=(d+1)*4,nt=[],tt=0;tt>>24,bt=G.SBOX[bt>>>24]<<24|G.SBOX[bt>>>16&255]<<16|G.SBOX[bt>>>8&255]<<8|G.SBOX[bt&255],bt^=RCON[tt/a|0]<<24):a>6&&tt%a===4&&(bt=G.SBOX[bt>>>24]<<24|G.SBOX[bt>>>16&255]<<16|G.SBOX[bt>>>8&255]<<8|G.SBOX[bt&255]),nt[tt]=nt[tt-a]^bt}for(var gt=[],wt=0;wt>>24]]^G.INV_SUB_MIX[1][G.SBOX[Mt>>>16&255]]^G.INV_SUB_MIX[2][G.SBOX[Mt>>>8&255]]^G.INV_SUB_MIX[3][G.SBOX[Mt&255]]}this._nRounds=d,this._keySchedule=nt,this._invKeySchedule=gt};AES.prototype.encryptBlockRaw=function(c){return c=asUInt32Array(c),cryptBlock(c,this._keySchedule,G.SUB_MIX,G.SBOX,this._nRounds)};AES.prototype.encryptBlock=function(c){var a=this.encryptBlockRaw(c),d=Buffer$d.allocUnsafe(16);return d.writeUInt32BE(a[0],0),d.writeUInt32BE(a[1],4),d.writeUInt32BE(a[2],8),d.writeUInt32BE(a[3],12),d};AES.prototype.decryptBlock=function(c){c=asUInt32Array(c);var a=c[1];c[1]=c[3],c[3]=a;var d=cryptBlock(c,this._invKeySchedule,G.INV_SUB_MIX,G.INV_SBOX,this._nRounds),et=Buffer$d.allocUnsafe(16);return et.writeUInt32BE(d[0],0),et.writeUInt32BE(d[3],4),et.writeUInt32BE(d[2],8),et.writeUInt32BE(d[1],12),et};AES.prototype.scrub=function(){scrubVec(this._keySchedule),scrubVec(this._invKeySchedule),scrubVec(this._key)};aes$5.AES=AES;var Buffer$c=safeBufferExports$1.Buffer,ZEROES=Buffer$c.alloc(16,0);function toArray$1(c){return[c.readUInt32BE(0),c.readUInt32BE(4),c.readUInt32BE(8),c.readUInt32BE(12)]}function fromArray(c){var a=Buffer$c.allocUnsafe(16);return a.writeUInt32BE(c[0]>>>0,0),a.writeUInt32BE(c[1]>>>0,4),a.writeUInt32BE(c[2]>>>0,8),a.writeUInt32BE(c[3]>>>0,12),a}function GHASH$1(c){this.h=c,this.state=Buffer$c.alloc(16,0),this.cache=Buffer$c.allocUnsafe(0)}GHASH$1.prototype.ghash=function(c){for(var a=-1;++a0;d--)c[d]=c[d]>>>1|(c[d-1]&1)<<31;c[0]=c[0]>>>1,nt&&(c[0]=c[0]^225<<24)}this.state=fromArray(a)};GHASH$1.prototype.update=function(c){this.cache=Buffer$c.concat([this.cache,c]);for(var a;this.cache.length>=16;)a=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(a)};GHASH$1.prototype.final=function(c,a){return this.cache.length&&this.ghash(Buffer$c.concat([this.cache,ZEROES],16)),this.ghash(fromArray([0,c,0,a])),this.state};var ghash=GHASH$1,aes$4=aes$5,Buffer$b=safeBufferExports$1.Buffer,Transform$5=cipherBase,inherits$b=inherits_browserExports,GHASH=ghash,xor$3=bufferXor,incr32=incr32_1;function xorTest(c,a){var d=0;c.length!==a.length&&d++;for(var et=Math.min(c.length,a.length),nt=0;nt0||et>0;){var wt=new MD5;wt.update(gt),wt.update(c),a&&wt.update(a),gt=wt.digest();var St=0;if(nt>0){var Mt=tt.length-nt;St=Math.min(nt,gt.length),gt.copy(tt,Mt,0,St),nt-=St}if(St0){var _t=bt.length-et,Tt=Math.min(et,gt.length-St);gt.copy(bt,_t,St,St+Tt),et-=Tt}}return gt.fill(0),{key:tt,iv:bt}}var evp_bytestokey=EVP_BytesToKey,MODES$1=modes_1,AuthCipher$1=authCipher,Buffer$8=safeBufferExports$1.Buffer,StreamCipher$1=streamCipher,Transform$3=cipherBase,aes$2=aes$5,ebtk$2=evp_bytestokey,inherits$9=inherits_browserExports;function Cipher(c,a,d){Transform$3.call(this),this._cache=new Splitter$1,this._cipher=new aes$2.AES(a),this._prev=Buffer$8.from(d),this._mode=c,this._autopadding=!0}inherits$9(Cipher,Transform$3);Cipher.prototype._update=function(c){this._cache.add(c);for(var a,d,et=[];a=this._cache.get();)d=this._mode.encrypt(this,a),et.push(d);return Buffer$8.concat(et)};var PADDING=Buffer$8.alloc(16,16);Cipher.prototype._final=function(){var c=this._cache.flush();if(this._autopadding)return c=this._mode.encrypt(this,c),this._cipher.scrub(),c;if(!c.equals(PADDING))throw this._cipher.scrub(),new Error("data not multiple of block length")};Cipher.prototype.setAutoPadding=function(c){return this._autopadding=!!c,this};function Splitter$1(){this.cache=Buffer$8.allocUnsafe(0)}Splitter$1.prototype.add=function(c){this.cache=Buffer$8.concat([this.cache,c])};Splitter$1.prototype.get=function(){if(this.cache.length>15){var c=this.cache.slice(0,16);return this.cache=this.cache.slice(16),c}return null};Splitter$1.prototype.flush=function(){for(var c=16-this.cache.length,a=Buffer$8.allocUnsafe(c),d=-1;++d16)return a=this.cache.slice(0,16),this.cache=this.cache.slice(16),a}else if(this.cache.length>=16)return a=this.cache.slice(0,16),this.cache=this.cache.slice(16),a;return null};Splitter.prototype.flush=function(){if(this.cache.length)return this.cache};function unpad(c){var a=c[15];if(a<1||a>16)throw new Error("unable to decrypt data");for(var d=-1;++d0?dt:mt},tt.min=function(dt,mt){return dt.cmp(mt)<0?dt:mt},tt.prototype._init=function(dt,mt,yt){if(typeof dt=="number")return this._initNumber(dt,mt,yt);if(typeof dt=="object")return this._initArray(dt,mt,yt);mt==="hex"&&(mt=16),et(mt===(mt|0)&&mt>=2&&mt<=36),dt=dt.toString().replace(/\s+/g,"");var vt=0;dt[0]==="-"&&(vt++,this.negative=1),vt=0;vt-=3)At=dt[vt]|dt[vt-1]<<8|dt[vt-2]<<16,this.words[Et]|=At<>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,Et++);else if(yt==="le")for(vt=0,Et=0;vt>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,Et++);return this.strip()};function gt(Ct,dt){var mt=Ct.charCodeAt(dt);return mt>=65&&mt<=70?mt-55:mt>=97&&mt<=102?mt-87:mt-48&15}function wt(Ct,dt,mt){var yt=gt(Ct,mt);return mt-1>=dt&&(yt|=gt(Ct,mt-1)<<4),yt}tt.prototype._parseHex=function(dt,mt,yt){this.length=Math.ceil((dt.length-mt)/6),this.words=new Array(this.length);for(var vt=0;vt=mt;vt-=2)Pt=wt(dt,mt,vt)<=18?(Et-=18,At+=1,this.words[At]|=Pt>>>26):Et+=8;else{var xt=dt.length-mt;for(vt=xt%2===0?mt+1:mt;vt=18?(Et-=18,At+=1,this.words[At]|=Pt>>>26):Et+=8}this.strip()};function St(Ct,dt,mt,yt){for(var vt=0,Et=Math.min(Ct.length,mt),At=dt;At=49?vt+=Pt-49+10:Pt>=17?vt+=Pt-17+10:vt+=Pt}return vt}tt.prototype._parseBase=function(dt,mt,yt){this.words=[0],this.length=1;for(var vt=0,Et=1;Et<=67108863;Et*=mt)vt++;vt--,Et=Et/mt|0;for(var At=dt.length-yt,Pt=At%vt,xt=Math.min(At,At-Pt)+yt,ht=0,$t=yt;$t1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},tt.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},tt.prototype.inspect=function(){return(this.red?""};var Mt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],_t=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Tt=[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];tt.prototype.toString=function(dt,mt){dt=dt||10,mt=mt|0||1;var yt;if(dt===16||dt==="hex"){yt="";for(var vt=0,Et=0,At=0;At>>24-vt&16777215,Et!==0||At!==this.length-1?yt=Mt[6-xt.length]+xt+yt:yt=xt+yt,vt+=2,vt>=26&&(vt-=26,At--)}for(Et!==0&&(yt=Et.toString(16)+yt);yt.length%mt!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}if(dt===(dt|0)&&dt>=2&&dt<=36){var ht=_t[dt],$t=Tt[dt];yt="";var Rt=this.clone();for(Rt.negative=0;!Rt.isZero();){var Dt=Rt.modn($t).toString(dt);Rt=Rt.idivn($t),Rt.isZero()?yt=Dt+yt:yt=Mt[ht-Dt.length]+Dt+yt}for(this.isZero()&&(yt="0"+yt);yt.length%mt!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}et(!1,"Base should be between 2 and 36")},tt.prototype.toNumber=function(){var dt=this.words[0];return this.length===2?dt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?dt+=4503599627370496+this.words[1]*67108864:this.length>2&&et(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-dt:dt},tt.prototype.toJSON=function(){return this.toString(16)},tt.prototype.toBuffer=function(dt,mt){return et(typeof bt<"u"),this.toArrayLike(bt,dt,mt)},tt.prototype.toArray=function(dt,mt){return this.toArrayLike(Array,dt,mt)},tt.prototype.toArrayLike=function(dt,mt,yt){var vt=this.byteLength(),Et=yt||Math.max(1,vt);et(vt<=Et,"byte array longer than desired length"),et(Et>0,"Requested array length <= 0"),this.strip();var At=mt==="le",Pt=new dt(Et),xt,ht,$t=this.clone();if(At){for(ht=0;!$t.isZero();ht++)xt=$t.andln(255),$t.iushrn(8),Pt[ht]=xt;for(;ht=4096&&(yt+=13,mt>>>=13),mt>=64&&(yt+=7,mt>>>=7),mt>=8&&(yt+=4,mt>>>=4),mt>=2&&(yt+=2,mt>>>=2),yt+mt},tt.prototype._zeroBits=function(dt){if(dt===0)return 26;var mt=dt,yt=0;return mt&8191||(yt+=13,mt>>>=13),mt&127||(yt+=7,mt>>>=7),mt&15||(yt+=4,mt>>>=4),mt&3||(yt+=2,mt>>>=2),mt&1||yt++,yt},tt.prototype.bitLength=function(){var dt=this.words[this.length-1],mt=this._countBits(dt);return(this.length-1)*26+mt};function Bt(Ct){for(var dt=new Array(Ct.bitLength()),mt=0;mt>>vt}return dt}tt.prototype.zeroBits=function(){if(this.isZero())return 0;for(var dt=0,mt=0;mtdt.length?this.clone().ior(dt):dt.clone().ior(this)},tt.prototype.uor=function(dt){return this.length>dt.length?this.clone().iuor(dt):dt.clone().iuor(this)},tt.prototype.iuand=function(dt){var mt;this.length>dt.length?mt=dt:mt=this;for(var yt=0;ytdt.length?this.clone().iand(dt):dt.clone().iand(this)},tt.prototype.uand=function(dt){return this.length>dt.length?this.clone().iuand(dt):dt.clone().iuand(this)},tt.prototype.iuxor=function(dt){var mt,yt;this.length>dt.length?(mt=this,yt=dt):(mt=dt,yt=this);for(var vt=0;vtdt.length?this.clone().ixor(dt):dt.clone().ixor(this)},tt.prototype.uxor=function(dt){return this.length>dt.length?this.clone().iuxor(dt):dt.clone().iuxor(this)},tt.prototype.inotn=function(dt){et(typeof dt=="number"&&dt>=0);var mt=Math.ceil(dt/26)|0,yt=dt%26;this._expand(mt),yt>0&&mt--;for(var vt=0;vt0&&(this.words[vt]=~this.words[vt]&67108863>>26-yt),this.strip()},tt.prototype.notn=function(dt){return this.clone().inotn(dt)},tt.prototype.setn=function(dt,mt){et(typeof dt=="number"&&dt>=0);var yt=dt/26|0,vt=dt%26;return this._expand(yt+1),mt?this.words[yt]=this.words[yt]|1<dt.length?(yt=this,vt=dt):(yt=dt,vt=this);for(var Et=0,At=0;At>>26;for(;Et!==0&&At>>26;if(this.length=yt.length,Et!==0)this.words[this.length]=Et,this.length++;else if(yt!==this)for(;Atdt.length?this.clone().iadd(dt):dt.clone().iadd(this)},tt.prototype.isub=function(dt){if(dt.negative!==0){dt.negative=0;var mt=this.iadd(dt);return dt.negative=1,mt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(dt),this.negative=1,this._normSign();var yt=this.cmp(dt);if(yt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var vt,Et;yt>0?(vt=this,Et=dt):(vt=dt,Et=this);for(var At=0,Pt=0;Pt>26,this.words[Pt]=mt&67108863;for(;At!==0&&Pt>26,this.words[Pt]=mt&67108863;if(At===0&&Pt>>26,Rt=xt&67108863,Dt=Math.min(ht,dt.length-1),Ht=Math.max(0,ht-Ct.length+1);Ht<=Dt;Ht++){var tr=ht-Ht|0;vt=Ct.words[tr]|0,Et=dt.words[Ht]|0,At=vt*Et+Rt,$t+=At/67108864|0,Rt=At&67108863}mt.words[ht]=Rt|0,xt=$t|0}return xt!==0?mt.words[ht]=xt|0:mt.length--,mt.strip()}var It=function(dt,mt,yt){var vt=dt.words,Et=mt.words,At=yt.words,Pt=0,xt,ht,$t,Rt=vt[0]|0,Dt=Rt&8191,Ht=Rt>>>13,tr=vt[1]|0,Xt=tr&8191,Ut=tr>>>13,qt=vt[2]|0,Gt=qt&8191,Zt=qt>>>13,Yt=vt[3]|0,Kt=Yt&8191,ar=Yt>>>13,gr=vt[4]|0,cr=gr&8191,ur=gr>>>13,Pr=vt[5]|0,br=Pr&8191,dr=Pr>>>13,Kr=vt[6]|0,xr=Kr&8191,Sr=Kr>>>13,Zr=vt[7]|0,$r=Zr&8191,Mr=Zr>>>13,Xr=vt[8]|0,Qt=Xr&8191,jt=Xr>>>13,Wt=vt[9]|0,nr=Wt&8191,fr=Wt>>>13,Er=Et[0]|0,pr=Er&8191,vr=Er>>>13,Jr=Et[1]|0,wr=Jr&8191,Ar=Jr>>>13,Yr=Et[2]|0,Cr=Yr&8191,Or=Yr>>>13,Qr=Et[3]|0,_r=Qr&8191,Dr=Qr>>>13,r0=Et[4]|0,Tr=r0&8191,Lr=r0>>>13,n0=Et[5]|0,Br=n0&8191,Fr=n0>>>13,i0=Et[6]|0,Rr=i0&8191,jr=i0>>>13,a0=Et[7]|0,kr=a0&8191,Ur=a0>>>13,s0=Et[8]|0,Ir=s0&8191,Hr=s0>>>13,o0=Et[9]|0,Nr=o0&8191,qr=o0>>>13;yt.negative=dt.negative^mt.negative,yt.length=19,xt=Math.imul(Dt,pr),ht=Math.imul(Dt,vr),ht=ht+Math.imul(Ht,pr)|0,$t=Math.imul(Ht,vr);var e0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(e0>>>26)|0,e0&=67108863,xt=Math.imul(Xt,pr),ht=Math.imul(Xt,vr),ht=ht+Math.imul(Ut,pr)|0,$t=Math.imul(Ut,vr),xt=xt+Math.imul(Dt,wr)|0,ht=ht+Math.imul(Dt,Ar)|0,ht=ht+Math.imul(Ht,wr)|0,$t=$t+Math.imul(Ht,Ar)|0;var t0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(t0>>>26)|0,t0&=67108863,xt=Math.imul(Gt,pr),ht=Math.imul(Gt,vr),ht=ht+Math.imul(Zt,pr)|0,$t=Math.imul(Zt,vr),xt=xt+Math.imul(Xt,wr)|0,ht=ht+Math.imul(Xt,Ar)|0,ht=ht+Math.imul(Ut,wr)|0,$t=$t+Math.imul(Ut,Ar)|0,xt=xt+Math.imul(Dt,Cr)|0,ht=ht+Math.imul(Dt,Or)|0,ht=ht+Math.imul(Ht,Cr)|0,$t=$t+Math.imul(Ht,Or)|0;var f0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(f0>>>26)|0,f0&=67108863,xt=Math.imul(Kt,pr),ht=Math.imul(Kt,vr),ht=ht+Math.imul(ar,pr)|0,$t=Math.imul(ar,vr),xt=xt+Math.imul(Gt,wr)|0,ht=ht+Math.imul(Gt,Ar)|0,ht=ht+Math.imul(Zt,wr)|0,$t=$t+Math.imul(Zt,Ar)|0,xt=xt+Math.imul(Xt,Cr)|0,ht=ht+Math.imul(Xt,Or)|0,ht=ht+Math.imul(Ut,Cr)|0,$t=$t+Math.imul(Ut,Or)|0,xt=xt+Math.imul(Dt,_r)|0,ht=ht+Math.imul(Dt,Dr)|0,ht=ht+Math.imul(Ht,_r)|0,$t=$t+Math.imul(Ht,Dr)|0;var c0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(c0>>>26)|0,c0&=67108863,xt=Math.imul(cr,pr),ht=Math.imul(cr,vr),ht=ht+Math.imul(ur,pr)|0,$t=Math.imul(ur,vr),xt=xt+Math.imul(Kt,wr)|0,ht=ht+Math.imul(Kt,Ar)|0,ht=ht+Math.imul(ar,wr)|0,$t=$t+Math.imul(ar,Ar)|0,xt=xt+Math.imul(Gt,Cr)|0,ht=ht+Math.imul(Gt,Or)|0,ht=ht+Math.imul(Zt,Cr)|0,$t=$t+Math.imul(Zt,Or)|0,xt=xt+Math.imul(Xt,_r)|0,ht=ht+Math.imul(Xt,Dr)|0,ht=ht+Math.imul(Ut,_r)|0,$t=$t+Math.imul(Ut,Dr)|0,xt=xt+Math.imul(Dt,Tr)|0,ht=ht+Math.imul(Dt,Lr)|0,ht=ht+Math.imul(Ht,Tr)|0,$t=$t+Math.imul(Ht,Lr)|0;var l0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(l0>>>26)|0,l0&=67108863,xt=Math.imul(br,pr),ht=Math.imul(br,vr),ht=ht+Math.imul(dr,pr)|0,$t=Math.imul(dr,vr),xt=xt+Math.imul(cr,wr)|0,ht=ht+Math.imul(cr,Ar)|0,ht=ht+Math.imul(ur,wr)|0,$t=$t+Math.imul(ur,Ar)|0,xt=xt+Math.imul(Kt,Cr)|0,ht=ht+Math.imul(Kt,Or)|0,ht=ht+Math.imul(ar,Cr)|0,$t=$t+Math.imul(ar,Or)|0,xt=xt+Math.imul(Gt,_r)|0,ht=ht+Math.imul(Gt,Dr)|0,ht=ht+Math.imul(Zt,_r)|0,$t=$t+Math.imul(Zt,Dr)|0,xt=xt+Math.imul(Xt,Tr)|0,ht=ht+Math.imul(Xt,Lr)|0,ht=ht+Math.imul(Ut,Tr)|0,$t=$t+Math.imul(Ut,Lr)|0,xt=xt+Math.imul(Dt,Br)|0,ht=ht+Math.imul(Dt,Fr)|0,ht=ht+Math.imul(Ht,Br)|0,$t=$t+Math.imul(Ht,Fr)|0;var u0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(u0>>>26)|0,u0&=67108863,xt=Math.imul(xr,pr),ht=Math.imul(xr,vr),ht=ht+Math.imul(Sr,pr)|0,$t=Math.imul(Sr,vr),xt=xt+Math.imul(br,wr)|0,ht=ht+Math.imul(br,Ar)|0,ht=ht+Math.imul(dr,wr)|0,$t=$t+Math.imul(dr,Ar)|0,xt=xt+Math.imul(cr,Cr)|0,ht=ht+Math.imul(cr,Or)|0,ht=ht+Math.imul(ur,Cr)|0,$t=$t+Math.imul(ur,Or)|0,xt=xt+Math.imul(Kt,_r)|0,ht=ht+Math.imul(Kt,Dr)|0,ht=ht+Math.imul(ar,_r)|0,$t=$t+Math.imul(ar,Dr)|0,xt=xt+Math.imul(Gt,Tr)|0,ht=ht+Math.imul(Gt,Lr)|0,ht=ht+Math.imul(Zt,Tr)|0,$t=$t+Math.imul(Zt,Lr)|0,xt=xt+Math.imul(Xt,Br)|0,ht=ht+Math.imul(Xt,Fr)|0,ht=ht+Math.imul(Ut,Br)|0,$t=$t+Math.imul(Ut,Fr)|0,xt=xt+Math.imul(Dt,Rr)|0,ht=ht+Math.imul(Dt,jr)|0,ht=ht+Math.imul(Ht,Rr)|0,$t=$t+Math.imul(Ht,jr)|0;var d0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(d0>>>26)|0,d0&=67108863,xt=Math.imul($r,pr),ht=Math.imul($r,vr),ht=ht+Math.imul(Mr,pr)|0,$t=Math.imul(Mr,vr),xt=xt+Math.imul(xr,wr)|0,ht=ht+Math.imul(xr,Ar)|0,ht=ht+Math.imul(Sr,wr)|0,$t=$t+Math.imul(Sr,Ar)|0,xt=xt+Math.imul(br,Cr)|0,ht=ht+Math.imul(br,Or)|0,ht=ht+Math.imul(dr,Cr)|0,$t=$t+Math.imul(dr,Or)|0,xt=xt+Math.imul(cr,_r)|0,ht=ht+Math.imul(cr,Dr)|0,ht=ht+Math.imul(ur,_r)|0,$t=$t+Math.imul(ur,Dr)|0,xt=xt+Math.imul(Kt,Tr)|0,ht=ht+Math.imul(Kt,Lr)|0,ht=ht+Math.imul(ar,Tr)|0,$t=$t+Math.imul(ar,Lr)|0,xt=xt+Math.imul(Gt,Br)|0,ht=ht+Math.imul(Gt,Fr)|0,ht=ht+Math.imul(Zt,Br)|0,$t=$t+Math.imul(Zt,Fr)|0,xt=xt+Math.imul(Xt,Rr)|0,ht=ht+Math.imul(Xt,jr)|0,ht=ht+Math.imul(Ut,Rr)|0,$t=$t+Math.imul(Ut,jr)|0,xt=xt+Math.imul(Dt,kr)|0,ht=ht+Math.imul(Dt,Ur)|0,ht=ht+Math.imul(Ht,kr)|0,$t=$t+Math.imul(Ht,Ur)|0;var h0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(h0>>>26)|0,h0&=67108863,xt=Math.imul(Qt,pr),ht=Math.imul(Qt,vr),ht=ht+Math.imul(jt,pr)|0,$t=Math.imul(jt,vr),xt=xt+Math.imul($r,wr)|0,ht=ht+Math.imul($r,Ar)|0,ht=ht+Math.imul(Mr,wr)|0,$t=$t+Math.imul(Mr,Ar)|0,xt=xt+Math.imul(xr,Cr)|0,ht=ht+Math.imul(xr,Or)|0,ht=ht+Math.imul(Sr,Cr)|0,$t=$t+Math.imul(Sr,Or)|0,xt=xt+Math.imul(br,_r)|0,ht=ht+Math.imul(br,Dr)|0,ht=ht+Math.imul(dr,_r)|0,$t=$t+Math.imul(dr,Dr)|0,xt=xt+Math.imul(cr,Tr)|0,ht=ht+Math.imul(cr,Lr)|0,ht=ht+Math.imul(ur,Tr)|0,$t=$t+Math.imul(ur,Lr)|0,xt=xt+Math.imul(Kt,Br)|0,ht=ht+Math.imul(Kt,Fr)|0,ht=ht+Math.imul(ar,Br)|0,$t=$t+Math.imul(ar,Fr)|0,xt=xt+Math.imul(Gt,Rr)|0,ht=ht+Math.imul(Gt,jr)|0,ht=ht+Math.imul(Zt,Rr)|0,$t=$t+Math.imul(Zt,jr)|0,xt=xt+Math.imul(Xt,kr)|0,ht=ht+Math.imul(Xt,Ur)|0,ht=ht+Math.imul(Ut,kr)|0,$t=$t+Math.imul(Ut,Ur)|0,xt=xt+Math.imul(Dt,Ir)|0,ht=ht+Math.imul(Dt,Hr)|0,ht=ht+Math.imul(Ht,Ir)|0,$t=$t+Math.imul(Ht,Hr)|0;var p0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(p0>>>26)|0,p0&=67108863,xt=Math.imul(nr,pr),ht=Math.imul(nr,vr),ht=ht+Math.imul(fr,pr)|0,$t=Math.imul(fr,vr),xt=xt+Math.imul(Qt,wr)|0,ht=ht+Math.imul(Qt,Ar)|0,ht=ht+Math.imul(jt,wr)|0,$t=$t+Math.imul(jt,Ar)|0,xt=xt+Math.imul($r,Cr)|0,ht=ht+Math.imul($r,Or)|0,ht=ht+Math.imul(Mr,Cr)|0,$t=$t+Math.imul(Mr,Or)|0,xt=xt+Math.imul(xr,_r)|0,ht=ht+Math.imul(xr,Dr)|0,ht=ht+Math.imul(Sr,_r)|0,$t=$t+Math.imul(Sr,Dr)|0,xt=xt+Math.imul(br,Tr)|0,ht=ht+Math.imul(br,Lr)|0,ht=ht+Math.imul(dr,Tr)|0,$t=$t+Math.imul(dr,Lr)|0,xt=xt+Math.imul(cr,Br)|0,ht=ht+Math.imul(cr,Fr)|0,ht=ht+Math.imul(ur,Br)|0,$t=$t+Math.imul(ur,Fr)|0,xt=xt+Math.imul(Kt,Rr)|0,ht=ht+Math.imul(Kt,jr)|0,ht=ht+Math.imul(ar,Rr)|0,$t=$t+Math.imul(ar,jr)|0,xt=xt+Math.imul(Gt,kr)|0,ht=ht+Math.imul(Gt,Ur)|0,ht=ht+Math.imul(Zt,kr)|0,$t=$t+Math.imul(Zt,Ur)|0,xt=xt+Math.imul(Xt,Ir)|0,ht=ht+Math.imul(Xt,Hr)|0,ht=ht+Math.imul(Ut,Ir)|0,$t=$t+Math.imul(Ut,Hr)|0,xt=xt+Math.imul(Dt,Nr)|0,ht=ht+Math.imul(Dt,qr)|0,ht=ht+Math.imul(Ht,Nr)|0,$t=$t+Math.imul(Ht,qr)|0;var b0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(b0>>>26)|0,b0&=67108863,xt=Math.imul(nr,wr),ht=Math.imul(nr,Ar),ht=ht+Math.imul(fr,wr)|0,$t=Math.imul(fr,Ar),xt=xt+Math.imul(Qt,Cr)|0,ht=ht+Math.imul(Qt,Or)|0,ht=ht+Math.imul(jt,Cr)|0,$t=$t+Math.imul(jt,Or)|0,xt=xt+Math.imul($r,_r)|0,ht=ht+Math.imul($r,Dr)|0,ht=ht+Math.imul(Mr,_r)|0,$t=$t+Math.imul(Mr,Dr)|0,xt=xt+Math.imul(xr,Tr)|0,ht=ht+Math.imul(xr,Lr)|0,ht=ht+Math.imul(Sr,Tr)|0,$t=$t+Math.imul(Sr,Lr)|0,xt=xt+Math.imul(br,Br)|0,ht=ht+Math.imul(br,Fr)|0,ht=ht+Math.imul(dr,Br)|0,$t=$t+Math.imul(dr,Fr)|0,xt=xt+Math.imul(cr,Rr)|0,ht=ht+Math.imul(cr,jr)|0,ht=ht+Math.imul(ur,Rr)|0,$t=$t+Math.imul(ur,jr)|0,xt=xt+Math.imul(Kt,kr)|0,ht=ht+Math.imul(Kt,Ur)|0,ht=ht+Math.imul(ar,kr)|0,$t=$t+Math.imul(ar,Ur)|0,xt=xt+Math.imul(Gt,Ir)|0,ht=ht+Math.imul(Gt,Hr)|0,ht=ht+Math.imul(Zt,Ir)|0,$t=$t+Math.imul(Zt,Hr)|0,xt=xt+Math.imul(Xt,Nr)|0,ht=ht+Math.imul(Xt,qr)|0,ht=ht+Math.imul(Ut,Nr)|0,$t=$t+Math.imul(Ut,qr)|0;var m0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(m0>>>26)|0,m0&=67108863,xt=Math.imul(nr,Cr),ht=Math.imul(nr,Or),ht=ht+Math.imul(fr,Cr)|0,$t=Math.imul(fr,Or),xt=xt+Math.imul(Qt,_r)|0,ht=ht+Math.imul(Qt,Dr)|0,ht=ht+Math.imul(jt,_r)|0,$t=$t+Math.imul(jt,Dr)|0,xt=xt+Math.imul($r,Tr)|0,ht=ht+Math.imul($r,Lr)|0,ht=ht+Math.imul(Mr,Tr)|0,$t=$t+Math.imul(Mr,Lr)|0,xt=xt+Math.imul(xr,Br)|0,ht=ht+Math.imul(xr,Fr)|0,ht=ht+Math.imul(Sr,Br)|0,$t=$t+Math.imul(Sr,Fr)|0,xt=xt+Math.imul(br,Rr)|0,ht=ht+Math.imul(br,jr)|0,ht=ht+Math.imul(dr,Rr)|0,$t=$t+Math.imul(dr,jr)|0,xt=xt+Math.imul(cr,kr)|0,ht=ht+Math.imul(cr,Ur)|0,ht=ht+Math.imul(ur,kr)|0,$t=$t+Math.imul(ur,Ur)|0,xt=xt+Math.imul(Kt,Ir)|0,ht=ht+Math.imul(Kt,Hr)|0,ht=ht+Math.imul(ar,Ir)|0,$t=$t+Math.imul(ar,Hr)|0,xt=xt+Math.imul(Gt,Nr)|0,ht=ht+Math.imul(Gt,qr)|0,ht=ht+Math.imul(Zt,Nr)|0,$t=$t+Math.imul(Zt,qr)|0;var g0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(g0>>>26)|0,g0&=67108863,xt=Math.imul(nr,_r),ht=Math.imul(nr,Dr),ht=ht+Math.imul(fr,_r)|0,$t=Math.imul(fr,Dr),xt=xt+Math.imul(Qt,Tr)|0,ht=ht+Math.imul(Qt,Lr)|0,ht=ht+Math.imul(jt,Tr)|0,$t=$t+Math.imul(jt,Lr)|0,xt=xt+Math.imul($r,Br)|0,ht=ht+Math.imul($r,Fr)|0,ht=ht+Math.imul(Mr,Br)|0,$t=$t+Math.imul(Mr,Fr)|0,xt=xt+Math.imul(xr,Rr)|0,ht=ht+Math.imul(xr,jr)|0,ht=ht+Math.imul(Sr,Rr)|0,$t=$t+Math.imul(Sr,jr)|0,xt=xt+Math.imul(br,kr)|0,ht=ht+Math.imul(br,Ur)|0,ht=ht+Math.imul(dr,kr)|0,$t=$t+Math.imul(dr,Ur)|0,xt=xt+Math.imul(cr,Ir)|0,ht=ht+Math.imul(cr,Hr)|0,ht=ht+Math.imul(ur,Ir)|0,$t=$t+Math.imul(ur,Hr)|0,xt=xt+Math.imul(Kt,Nr)|0,ht=ht+Math.imul(Kt,qr)|0,ht=ht+Math.imul(ar,Nr)|0,$t=$t+Math.imul(ar,qr)|0;var y0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(y0>>>26)|0,y0&=67108863,xt=Math.imul(nr,Tr),ht=Math.imul(nr,Lr),ht=ht+Math.imul(fr,Tr)|0,$t=Math.imul(fr,Lr),xt=xt+Math.imul(Qt,Br)|0,ht=ht+Math.imul(Qt,Fr)|0,ht=ht+Math.imul(jt,Br)|0,$t=$t+Math.imul(jt,Fr)|0,xt=xt+Math.imul($r,Rr)|0,ht=ht+Math.imul($r,jr)|0,ht=ht+Math.imul(Mr,Rr)|0,$t=$t+Math.imul(Mr,jr)|0,xt=xt+Math.imul(xr,kr)|0,ht=ht+Math.imul(xr,Ur)|0,ht=ht+Math.imul(Sr,kr)|0,$t=$t+Math.imul(Sr,Ur)|0,xt=xt+Math.imul(br,Ir)|0,ht=ht+Math.imul(br,Hr)|0,ht=ht+Math.imul(dr,Ir)|0,$t=$t+Math.imul(dr,Hr)|0,xt=xt+Math.imul(cr,Nr)|0,ht=ht+Math.imul(cr,qr)|0,ht=ht+Math.imul(ur,Nr)|0,$t=$t+Math.imul(ur,qr)|0;var v0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(v0>>>26)|0,v0&=67108863,xt=Math.imul(nr,Br),ht=Math.imul(nr,Fr),ht=ht+Math.imul(fr,Br)|0,$t=Math.imul(fr,Fr),xt=xt+Math.imul(Qt,Rr)|0,ht=ht+Math.imul(Qt,jr)|0,ht=ht+Math.imul(jt,Rr)|0,$t=$t+Math.imul(jt,jr)|0,xt=xt+Math.imul($r,kr)|0,ht=ht+Math.imul($r,Ur)|0,ht=ht+Math.imul(Mr,kr)|0,$t=$t+Math.imul(Mr,Ur)|0,xt=xt+Math.imul(xr,Ir)|0,ht=ht+Math.imul(xr,Hr)|0,ht=ht+Math.imul(Sr,Ir)|0,$t=$t+Math.imul(Sr,Hr)|0,xt=xt+Math.imul(br,Nr)|0,ht=ht+Math.imul(br,qr)|0,ht=ht+Math.imul(dr,Nr)|0,$t=$t+Math.imul(dr,qr)|0;var w0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(w0>>>26)|0,w0&=67108863,xt=Math.imul(nr,Rr),ht=Math.imul(nr,jr),ht=ht+Math.imul(fr,Rr)|0,$t=Math.imul(fr,jr),xt=xt+Math.imul(Qt,kr)|0,ht=ht+Math.imul(Qt,Ur)|0,ht=ht+Math.imul(jt,kr)|0,$t=$t+Math.imul(jt,Ur)|0,xt=xt+Math.imul($r,Ir)|0,ht=ht+Math.imul($r,Hr)|0,ht=ht+Math.imul(Mr,Ir)|0,$t=$t+Math.imul(Mr,Hr)|0,xt=xt+Math.imul(xr,Nr)|0,ht=ht+Math.imul(xr,qr)|0,ht=ht+Math.imul(Sr,Nr)|0,$t=$t+Math.imul(Sr,qr)|0;var x0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(x0>>>26)|0,x0&=67108863,xt=Math.imul(nr,kr),ht=Math.imul(nr,Ur),ht=ht+Math.imul(fr,kr)|0,$t=Math.imul(fr,Ur),xt=xt+Math.imul(Qt,Ir)|0,ht=ht+Math.imul(Qt,Hr)|0,ht=ht+Math.imul(jt,Ir)|0,$t=$t+Math.imul(jt,Hr)|0,xt=xt+Math.imul($r,Nr)|0,ht=ht+Math.imul($r,qr)|0,ht=ht+Math.imul(Mr,Nr)|0,$t=$t+Math.imul(Mr,qr)|0;var E0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(E0>>>26)|0,E0&=67108863,xt=Math.imul(nr,Ir),ht=Math.imul(nr,Hr),ht=ht+Math.imul(fr,Ir)|0,$t=Math.imul(fr,Hr),xt=xt+Math.imul(Qt,Nr)|0,ht=ht+Math.imul(Qt,qr)|0,ht=ht+Math.imul(jt,Nr)|0,$t=$t+Math.imul(jt,qr)|0;var $0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+($0>>>26)|0,$0&=67108863,xt=Math.imul(nr,Nr),ht=Math.imul(nr,qr),ht=ht+Math.imul(fr,Nr)|0,$t=Math.imul(fr,qr);var M0=(Pt+xt|0)+((ht&8191)<<13)|0;return Pt=($t+(ht>>>13)|0)+(M0>>>26)|0,M0&=67108863,At[0]=e0,At[1]=t0,At[2]=f0,At[3]=c0,At[4]=l0,At[5]=u0,At[6]=d0,At[7]=h0,At[8]=p0,At[9]=b0,At[10]=m0,At[11]=g0,At[12]=y0,At[13]=v0,At[14]=w0,At[15]=x0,At[16]=E0,At[17]=$0,At[18]=M0,Pt!==0&&(At[19]=Pt,yt.length++),yt};Math.imul||(It=kt);function Lt(Ct,dt,mt){mt.negative=dt.negative^Ct.negative,mt.length=Ct.length+dt.length;for(var yt=0,vt=0,Et=0;Et>>26)|0,vt+=At>>>26,At&=67108863}mt.words[Et]=Pt,yt=At,At=vt}return yt!==0?mt.words[Et]=yt:mt.length--,mt.strip()}function Ot(Ct,dt,mt){var yt=new Nt;return yt.mulp(Ct,dt,mt)}tt.prototype.mulTo=function(dt,mt){var yt,vt=this.length+dt.length;return this.length===10&&dt.length===10?yt=It(this,dt,mt):vt<63?yt=kt(this,dt,mt):vt<1024?yt=Lt(this,dt,mt):yt=Ot(this,dt,mt),yt};function Nt(Ct,dt){this.x=Ct,this.y=dt}Nt.prototype.makeRBT=function(dt){for(var mt=new Array(dt),yt=tt.prototype._countBits(dt)-1,vt=0;vt>=1;return vt},Nt.prototype.permute=function(dt,mt,yt,vt,Et,At){for(var Pt=0;Pt>>1)Et++;return 1<>>13,yt[2*At+1]=Et&8191,Et=Et>>>13;for(At=2*mt;At>=26,mt+=vt/67108864|0,mt+=Et>>>26,this.words[yt]=Et&67108863}return mt!==0&&(this.words[yt]=mt,this.length++),this},tt.prototype.muln=function(dt){return this.clone().imuln(dt)},tt.prototype.sqr=function(){return this.mul(this)},tt.prototype.isqr=function(){return this.imul(this.clone())},tt.prototype.pow=function(dt){var mt=Bt(dt);if(mt.length===0)return new tt(1);for(var yt=this,vt=0;vt=0);var mt=dt%26,yt=(dt-mt)/26,vt=67108863>>>26-mt<<26-mt,Et;if(mt!==0){var At=0;for(Et=0;Et>>26-mt}At&&(this.words[Et]=At,this.length++)}if(yt!==0){for(Et=this.length-1;Et>=0;Et--)this.words[Et+yt]=this.words[Et];for(Et=0;Et=0);var vt;mt?vt=(mt-mt%26)/26:vt=0;var Et=dt%26,At=Math.min((dt-Et)/26,this.length),Pt=67108863^67108863>>>Et<At)for(this.length-=At,ht=0;ht=0&&($t!==0||ht>=vt);ht--){var Rt=this.words[ht]|0;this.words[ht]=$t<<26-Et|Rt>>>Et,$t=Rt&Pt}return xt&&$t!==0&&(xt.words[xt.length++]=$t),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},tt.prototype.ishrn=function(dt,mt,yt){return et(this.negative===0),this.iushrn(dt,mt,yt)},tt.prototype.shln=function(dt){return this.clone().ishln(dt)},tt.prototype.ushln=function(dt){return this.clone().iushln(dt)},tt.prototype.shrn=function(dt){return this.clone().ishrn(dt)},tt.prototype.ushrn=function(dt){return this.clone().iushrn(dt)},tt.prototype.testn=function(dt){et(typeof dt=="number"&&dt>=0);var mt=dt%26,yt=(dt-mt)/26,vt=1<=0);var mt=dt%26,yt=(dt-mt)/26;if(et(this.negative===0,"imaskn works only with positive numbers"),this.length<=yt)return this;if(mt!==0&&yt++,this.length=Math.min(yt,this.length),mt!==0){var vt=67108863^67108863>>>mt<=67108864;mt++)this.words[mt]-=67108864,mt===this.length-1?this.words[mt+1]=1:this.words[mt+1]++;return this.length=Math.max(this.length,mt+1),this},tt.prototype.isubn=function(dt){if(et(typeof dt=="number"),et(dt<67108864),dt<0)return this.iaddn(-dt);if(this.negative!==0)return this.negative=0,this.iaddn(dt),this.negative=1,this;if(this.words[0]-=dt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var mt=0;mt>26)-(xt/67108864|0),this.words[Et+yt]=At&67108863}for(;Et>26,this.words[Et+yt]=At&67108863;if(Pt===0)return this.strip();for(et(Pt===-1),Pt=0,Et=0;Et>26,this.words[Et]=At&67108863;return this.negative=1,this.strip()},tt.prototype._wordDiv=function(dt,mt){var yt=this.length-dt.length,vt=this.clone(),Et=dt,At=Et.words[Et.length-1]|0,Pt=this._countBits(At);yt=26-Pt,yt!==0&&(Et=Et.ushln(yt),vt.iushln(yt),At=Et.words[Et.length-1]|0);var xt=vt.length-Et.length,ht;if(mt!=="mod"){ht=new tt(null),ht.length=xt+1,ht.words=new Array(ht.length);for(var $t=0;$t=0;Dt--){var Ht=(vt.words[Et.length+Dt]|0)*67108864+(vt.words[Et.length+Dt-1]|0);for(Ht=Math.min(Ht/At|0,67108863),vt._ishlnsubmul(Et,Ht,Dt);vt.negative!==0;)Ht--,vt.negative=0,vt._ishlnsubmul(Et,1,Dt),vt.isZero()||(vt.negative^=1);ht&&(ht.words[Dt]=Ht)}return ht&&ht.strip(),vt.strip(),mt!=="div"&&yt!==0&&vt.iushrn(yt),{div:ht||null,mod:vt}},tt.prototype.divmod=function(dt,mt,yt){if(et(!dt.isZero()),this.isZero())return{div:new tt(0),mod:new tt(0)};var vt,Et,At;return this.negative!==0&&dt.negative===0?(At=this.neg().divmod(dt,mt),mt!=="mod"&&(vt=At.div.neg()),mt!=="div"&&(Et=At.mod.neg(),yt&&Et.negative!==0&&Et.iadd(dt)),{div:vt,mod:Et}):this.negative===0&&dt.negative!==0?(At=this.divmod(dt.neg(),mt),mt!=="mod"&&(vt=At.div.neg()),{div:vt,mod:At.mod}):this.negative&dt.negative?(At=this.neg().divmod(dt.neg(),mt),mt!=="div"&&(Et=At.mod.neg(),yt&&Et.negative!==0&&Et.isub(dt)),{div:At.div,mod:Et}):dt.length>this.length||this.cmp(dt)<0?{div:new tt(0),mod:this}:dt.length===1?mt==="div"?{div:this.divn(dt.words[0]),mod:null}:mt==="mod"?{div:null,mod:new tt(this.modn(dt.words[0]))}:{div:this.divn(dt.words[0]),mod:new tt(this.modn(dt.words[0]))}:this._wordDiv(dt,mt)},tt.prototype.div=function(dt){return this.divmod(dt,"div",!1).div},tt.prototype.mod=function(dt){return this.divmod(dt,"mod",!1).mod},tt.prototype.umod=function(dt){return this.divmod(dt,"mod",!0).mod},tt.prototype.divRound=function(dt){var mt=this.divmod(dt);if(mt.mod.isZero())return mt.div;var yt=mt.div.negative!==0?mt.mod.isub(dt):mt.mod,vt=dt.ushrn(1),Et=dt.andln(1),At=yt.cmp(vt);return At<0||Et===1&&At===0?mt.div:mt.div.negative!==0?mt.div.isubn(1):mt.div.iaddn(1)},tt.prototype.modn=function(dt){et(dt<=67108863);for(var mt=(1<<26)%dt,yt=0,vt=this.length-1;vt>=0;vt--)yt=(mt*yt+(this.words[vt]|0))%dt;return yt},tt.prototype.idivn=function(dt){et(dt<=67108863);for(var mt=0,yt=this.length-1;yt>=0;yt--){var vt=(this.words[yt]|0)+mt*67108864;this.words[yt]=vt/dt|0,mt=vt%dt}return this.strip()},tt.prototype.divn=function(dt){return this.clone().idivn(dt)},tt.prototype.egcd=function(dt){et(dt.negative===0),et(!dt.isZero());var mt=this,yt=dt.clone();mt.negative!==0?mt=mt.umod(dt):mt=mt.clone();for(var vt=new tt(1),Et=new tt(0),At=new tt(0),Pt=new tt(1),xt=0;mt.isEven()&&yt.isEven();)mt.iushrn(1),yt.iushrn(1),++xt;for(var ht=yt.clone(),$t=mt.clone();!mt.isZero();){for(var Rt=0,Dt=1;!(mt.words[0]&Dt)&&Rt<26;++Rt,Dt<<=1);if(Rt>0)for(mt.iushrn(Rt);Rt-- >0;)(vt.isOdd()||Et.isOdd())&&(vt.iadd(ht),Et.isub($t)),vt.iushrn(1),Et.iushrn(1);for(var Ht=0,tr=1;!(yt.words[0]&tr)&&Ht<26;++Ht,tr<<=1);if(Ht>0)for(yt.iushrn(Ht);Ht-- >0;)(At.isOdd()||Pt.isOdd())&&(At.iadd(ht),Pt.isub($t)),At.iushrn(1),Pt.iushrn(1);mt.cmp(yt)>=0?(mt.isub(yt),vt.isub(At),Et.isub(Pt)):(yt.isub(mt),At.isub(vt),Pt.isub(Et))}return{a:At,b:Pt,gcd:yt.iushln(xt)}},tt.prototype._invmp=function(dt){et(dt.negative===0),et(!dt.isZero());var mt=this,yt=dt.clone();mt.negative!==0?mt=mt.umod(dt):mt=mt.clone();for(var vt=new tt(1),Et=new tt(0),At=yt.clone();mt.cmpn(1)>0&&yt.cmpn(1)>0;){for(var Pt=0,xt=1;!(mt.words[0]&xt)&&Pt<26;++Pt,xt<<=1);if(Pt>0)for(mt.iushrn(Pt);Pt-- >0;)vt.isOdd()&&vt.iadd(At),vt.iushrn(1);for(var ht=0,$t=1;!(yt.words[0]&$t)&&ht<26;++ht,$t<<=1);if(ht>0)for(yt.iushrn(ht);ht-- >0;)Et.isOdd()&&Et.iadd(At),Et.iushrn(1);mt.cmp(yt)>=0?(mt.isub(yt),vt.isub(Et)):(yt.isub(mt),Et.isub(vt))}var Rt;return mt.cmpn(1)===0?Rt=vt:Rt=Et,Rt.cmpn(0)<0&&Rt.iadd(dt),Rt},tt.prototype.gcd=function(dt){if(this.isZero())return dt.abs();if(dt.isZero())return this.abs();var mt=this.clone(),yt=dt.clone();mt.negative=0,yt.negative=0;for(var vt=0;mt.isEven()&&yt.isEven();vt++)mt.iushrn(1),yt.iushrn(1);do{for(;mt.isEven();)mt.iushrn(1);for(;yt.isEven();)yt.iushrn(1);var Et=mt.cmp(yt);if(Et<0){var At=mt;mt=yt,yt=At}else if(Et===0||yt.cmpn(1)===0)break;mt.isub(yt)}while(!0);return yt.iushln(vt)},tt.prototype.invm=function(dt){return this.egcd(dt).a.umod(dt)},tt.prototype.isEven=function(){return(this.words[0]&1)===0},tt.prototype.isOdd=function(){return(this.words[0]&1)===1},tt.prototype.andln=function(dt){return this.words[0]&dt},tt.prototype.bincn=function(dt){et(typeof dt=="number");var mt=dt%26,yt=(dt-mt)/26,vt=1<>>26,Pt&=67108863,this.words[At]=Pt}return Et!==0&&(this.words[At]=Et,this.length++),this},tt.prototype.isZero=function(){return this.length===1&&this.words[0]===0},tt.prototype.cmpn=function(dt){var mt=dt<0;if(this.negative!==0&&!mt)return-1;if(this.negative===0&&mt)return 1;this.strip();var yt;if(this.length>1)yt=1;else{mt&&(dt=-dt),et(dt<=67108863,"Number is too big");var vt=this.words[0]|0;yt=vt===dt?0:vtdt.length)return 1;if(this.length=0;yt--){var vt=this.words[yt]|0,Et=dt.words[yt]|0;if(vt!==Et){vtEt&&(mt=1);break}}return mt},tt.prototype.gtn=function(dt){return this.cmpn(dt)===1},tt.prototype.gt=function(dt){return this.cmp(dt)===1},tt.prototype.gten=function(dt){return this.cmpn(dt)>=0},tt.prototype.gte=function(dt){return this.cmp(dt)>=0},tt.prototype.ltn=function(dt){return this.cmpn(dt)===-1},tt.prototype.lt=function(dt){return this.cmp(dt)===-1},tt.prototype.lten=function(dt){return this.cmpn(dt)<=0},tt.prototype.lte=function(dt){return this.cmp(dt)<=0},tt.prototype.eqn=function(dt){return this.cmpn(dt)===0},tt.prototype.eq=function(dt){return this.cmp(dt)===0},tt.red=function(dt){return new er(dt)},tt.prototype.toRed=function(dt){return et(!this.red,"Already a number in reduction context"),et(this.negative===0,"red works only with positives"),dt.convertTo(this)._forceRed(dt)},tt.prototype.fromRed=function(){return et(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},tt.prototype._forceRed=function(dt){return this.red=dt,this},tt.prototype.forceRed=function(dt){return et(!this.red,"Already a number in reduction context"),this._forceRed(dt)},tt.prototype.redAdd=function(dt){return et(this.red,"redAdd works only with red numbers"),this.red.add(this,dt)},tt.prototype.redIAdd=function(dt){return et(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,dt)},tt.prototype.redSub=function(dt){return et(this.red,"redSub works only with red numbers"),this.red.sub(this,dt)},tt.prototype.redISub=function(dt){return et(this.red,"redISub works only with red numbers"),this.red.isub(this,dt)},tt.prototype.redShl=function(dt){return et(this.red,"redShl works only with red numbers"),this.red.shl(this,dt)},tt.prototype.redMul=function(dt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,dt),this.red.mul(this,dt)},tt.prototype.redIMul=function(dt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,dt),this.red.imul(this,dt)},tt.prototype.redSqr=function(){return et(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},tt.prototype.redISqr=function(){return et(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},tt.prototype.redSqrt=function(){return et(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},tt.prototype.redInvm=function(){return et(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},tt.prototype.redNeg=function(){return et(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},tt.prototype.redPow=function(dt){return et(this.red&&!dt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,dt)};var Ft={k256:null,p224:null,p192:null,p25519:null};function zt(Ct,dt){this.name=Ct,this.p=new tt(dt,16),this.n=this.p.bitLength(),this.k=new tt(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}zt.prototype._tmp=function(){var dt=new tt(null);return dt.words=new Array(Math.ceil(this.n/13)),dt},zt.prototype.ireduce=function(dt){var mt=dt,yt;do this.split(mt,this.tmp),mt=this.imulK(mt),mt=mt.iadd(this.tmp),yt=mt.bitLength();while(yt>this.n);var vt=yt0?mt.isub(this.p):mt.strip!==void 0?mt.strip():mt._strip(),mt},zt.prototype.split=function(dt,mt){dt.iushrn(this.n,0,mt)},zt.prototype.imulK=function(dt){return dt.imul(this.k)};function Vt(){zt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}nt(Vt,zt),Vt.prototype.split=function(dt,mt){for(var yt=4194303,vt=Math.min(dt.length,9),Et=0;Et>>22,At=Pt}At>>>=22,dt.words[Et-10]=At,At===0&&dt.length>10?dt.length-=10:dt.length-=9},Vt.prototype.imulK=function(dt){dt.words[dt.length]=0,dt.words[dt.length+1]=0,dt.length+=2;for(var mt=0,yt=0;yt>>=26,dt.words[yt]=Et,mt=vt}return mt!==0&&(dt.words[dt.length++]=mt),dt},tt._prime=function(dt){if(Ft[dt])return Ft[dt];var mt;if(dt==="k256")mt=new Vt;else if(dt==="p224")mt=new Jt;else if(dt==="p192")mt=new ir;else if(dt==="p25519")mt=new rr;else throw new Error("Unknown prime "+dt);return Ft[dt]=mt,mt};function er(Ct){if(typeof Ct=="string"){var dt=tt._prime(Ct);this.m=dt.p,this.prime=dt}else et(Ct.gtn(1),"modulus must be greater than 1"),this.m=Ct,this.prime=null}er.prototype._verify1=function(dt){et(dt.negative===0,"red works only with positives"),et(dt.red,"red works only with red numbers")},er.prototype._verify2=function(dt,mt){et((dt.negative|mt.negative)===0,"red works only with positives"),et(dt.red&&dt.red===mt.red,"red works only with red numbers")},er.prototype.imod=function(dt){return this.prime?this.prime.ireduce(dt)._forceRed(this):dt.umod(this.m)._forceRed(this)},er.prototype.neg=function(dt){return dt.isZero()?dt.clone():this.m.sub(dt)._forceRed(this)},er.prototype.add=function(dt,mt){this._verify2(dt,mt);var yt=dt.add(mt);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt._forceRed(this)},er.prototype.iadd=function(dt,mt){this._verify2(dt,mt);var yt=dt.iadd(mt);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt},er.prototype.sub=function(dt,mt){this._verify2(dt,mt);var yt=dt.sub(mt);return yt.cmpn(0)<0&&yt.iadd(this.m),yt._forceRed(this)},er.prototype.isub=function(dt,mt){this._verify2(dt,mt);var yt=dt.isub(mt);return yt.cmpn(0)<0&&yt.iadd(this.m),yt},er.prototype.shl=function(dt,mt){return this._verify1(dt),this.imod(dt.ushln(mt))},er.prototype.imul=function(dt,mt){return this._verify2(dt,mt),this.imod(dt.imul(mt))},er.prototype.mul=function(dt,mt){return this._verify2(dt,mt),this.imod(dt.mul(mt))},er.prototype.isqr=function(dt){return this.imul(dt,dt.clone())},er.prototype.sqr=function(dt){return this.mul(dt,dt)},er.prototype.sqrt=function(dt){if(dt.isZero())return dt.clone();var mt=this.m.andln(3);if(et(mt%2===1),mt===3){var yt=this.m.add(new tt(1)).iushrn(2);return this.pow(dt,yt)}for(var vt=this.m.subn(1),Et=0;!vt.isZero()&&vt.andln(1)===0;)Et++,vt.iushrn(1);et(!vt.isZero());var At=new tt(1).toRed(this),Pt=At.redNeg(),xt=this.m.subn(1).iushrn(1),ht=this.m.bitLength();for(ht=new tt(2*ht*ht).toRed(this);this.pow(ht,xt).cmp(Pt)!==0;)ht.redIAdd(Pt);for(var $t=this.pow(ht,vt),Rt=this.pow(dt,vt.addn(1).iushrn(1)),Dt=this.pow(dt,vt),Ht=Et;Dt.cmp(At)!==0;){for(var tr=Dt,Xt=0;tr.cmp(At)!==0;Xt++)tr=tr.redSqr();et(Xt=0;Et--){for(var $t=mt.words[Et],Rt=ht-1;Rt>=0;Rt--){var Dt=$t>>Rt&1;if(At!==vt[0]&&(At=this.sqr(At)),Dt===0&&Pt===0){xt=0;continue}Pt<<=1,Pt|=Dt,xt++,!(xt!==yt&&(Et!==0||Rt!==0))&&(At=this.mul(At,vt[Pt]),xt=0,Pt=0)}ht=26}return At},er.prototype.convertTo=function(dt){var mt=dt.umod(this.m);return mt===dt?mt.clone():mt},er.prototype.convertFrom=function(dt){var mt=dt.clone();return mt.red=null,mt},tt.mont=function(dt){return new lr(dt)};function lr(Ct){er.call(this,Ct),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new tt(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)}nt(lr,er),lr.prototype.convertTo=function(dt){return this.imod(dt.ushln(this.shift))},lr.prototype.convertFrom=function(dt){var mt=this.imod(dt.mul(this.rinv));return mt.red=null,mt},lr.prototype.imul=function(dt,mt){if(dt.isZero()||mt.isZero())return dt.words[0]=0,dt.length=1,dt;var yt=dt.imul(mt),vt=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Et=yt.isub(vt).iushrn(this.shift),At=Et;return Et.cmp(this.m)>=0?At=Et.isub(this.m):Et.cmpn(0)<0&&(At=Et.iadd(this.m)),At._forceRed(this)},lr.prototype.mul=function(dt,mt){if(dt.isZero()||mt.isZero())return new tt(0)._forceRed(this);var yt=dt.mul(mt),vt=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Et=yt.isub(vt).iushrn(this.shift),At=Et;return Et.cmp(this.m)>=0?At=Et.isub(this.m):Et.cmpn(0)<0&&(At=Et.iadd(this.m)),At._forceRed(this)},lr.prototype.invm=function(dt){var mt=this.imod(dt._invmp(this.m).mul(this.r2));return mt._forceRed(this)}})(c,commonjsGlobal)})(bn$7);var bnExports$7=bn$7.exports,bn$6={exports:{}};bn$6.exports;(function(c){(function(a,d){function et(Ct,dt){if(!Ct)throw new Error(dt||"Assertion failed")}function nt(Ct,dt){Ct.super_=dt;var mt=function(){};mt.prototype=dt.prototype,Ct.prototype=new mt,Ct.prototype.constructor=Ct}function tt(Ct,dt,mt){if(tt.isBN(Ct))return Ct;this.negative=0,this.words=null,this.length=0,this.red=null,Ct!==null&&((dt==="le"||dt==="be")&&(mt=dt,dt=10),this._init(Ct||0,dt||10,mt||"be"))}typeof a=="object"?a.exports=tt:d.BN=tt,tt.BN=tt,tt.wordSize=26;var bt;try{typeof window<"u"&&typeof window.Buffer<"u"?bt=window.Buffer:bt=bufferPolyfill.Buffer}catch{}tt.isBN=function(dt){return dt instanceof tt?!0:dt!==null&&typeof dt=="object"&&dt.constructor.wordSize===tt.wordSize&&Array.isArray(dt.words)},tt.max=function(dt,mt){return dt.cmp(mt)>0?dt:mt},tt.min=function(dt,mt){return dt.cmp(mt)<0?dt:mt},tt.prototype._init=function(dt,mt,yt){if(typeof dt=="number")return this._initNumber(dt,mt,yt);if(typeof dt=="object")return this._initArray(dt,mt,yt);mt==="hex"&&(mt=16),et(mt===(mt|0)&&mt>=2&&mt<=36),dt=dt.toString().replace(/\s+/g,"");var vt=0;dt[0]==="-"&&(vt++,this.negative=1),vt=0;vt-=3)At=dt[vt]|dt[vt-1]<<8|dt[vt-2]<<16,this.words[Et]|=At<>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,Et++);else if(yt==="le")for(vt=0,Et=0;vt>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,Et++);return this.strip()};function gt(Ct,dt){var mt=Ct.charCodeAt(dt);return mt>=65&&mt<=70?mt-55:mt>=97&&mt<=102?mt-87:mt-48&15}function wt(Ct,dt,mt){var yt=gt(Ct,mt);return mt-1>=dt&&(yt|=gt(Ct,mt-1)<<4),yt}tt.prototype._parseHex=function(dt,mt,yt){this.length=Math.ceil((dt.length-mt)/6),this.words=new Array(this.length);for(var vt=0;vt=mt;vt-=2)Pt=wt(dt,mt,vt)<=18?(Et-=18,At+=1,this.words[At]|=Pt>>>26):Et+=8;else{var xt=dt.length-mt;for(vt=xt%2===0?mt+1:mt;vt=18?(Et-=18,At+=1,this.words[At]|=Pt>>>26):Et+=8}this.strip()};function St(Ct,dt,mt,yt){for(var vt=0,Et=Math.min(Ct.length,mt),At=dt;At=49?vt+=Pt-49+10:Pt>=17?vt+=Pt-17+10:vt+=Pt}return vt}tt.prototype._parseBase=function(dt,mt,yt){this.words=[0],this.length=1;for(var vt=0,Et=1;Et<=67108863;Et*=mt)vt++;vt--,Et=Et/mt|0;for(var At=dt.length-yt,Pt=At%vt,xt=Math.min(At,At-Pt)+yt,ht=0,$t=yt;$t1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},tt.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},tt.prototype.inspect=function(){return(this.red?""};var Mt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],_t=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Tt=[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];tt.prototype.toString=function(dt,mt){dt=dt||10,mt=mt|0||1;var yt;if(dt===16||dt==="hex"){yt="";for(var vt=0,Et=0,At=0;At>>24-vt&16777215,Et!==0||At!==this.length-1?yt=Mt[6-xt.length]+xt+yt:yt=xt+yt,vt+=2,vt>=26&&(vt-=26,At--)}for(Et!==0&&(yt=Et.toString(16)+yt);yt.length%mt!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}if(dt===(dt|0)&&dt>=2&&dt<=36){var ht=_t[dt],$t=Tt[dt];yt="";var Rt=this.clone();for(Rt.negative=0;!Rt.isZero();){var Dt=Rt.modn($t).toString(dt);Rt=Rt.idivn($t),Rt.isZero()?yt=Dt+yt:yt=Mt[ht-Dt.length]+Dt+yt}for(this.isZero()&&(yt="0"+yt);yt.length%mt!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}et(!1,"Base should be between 2 and 36")},tt.prototype.toNumber=function(){var dt=this.words[0];return this.length===2?dt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?dt+=4503599627370496+this.words[1]*67108864:this.length>2&&et(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-dt:dt},tt.prototype.toJSON=function(){return this.toString(16)},tt.prototype.toBuffer=function(dt,mt){return et(typeof bt<"u"),this.toArrayLike(bt,dt,mt)},tt.prototype.toArray=function(dt,mt){return this.toArrayLike(Array,dt,mt)},tt.prototype.toArrayLike=function(dt,mt,yt){var vt=this.byteLength(),Et=yt||Math.max(1,vt);et(vt<=Et,"byte array longer than desired length"),et(Et>0,"Requested array length <= 0"),this.strip();var At=mt==="le",Pt=new dt(Et),xt,ht,$t=this.clone();if(At){for(ht=0;!$t.isZero();ht++)xt=$t.andln(255),$t.iushrn(8),Pt[ht]=xt;for(;ht=4096&&(yt+=13,mt>>>=13),mt>=64&&(yt+=7,mt>>>=7),mt>=8&&(yt+=4,mt>>>=4),mt>=2&&(yt+=2,mt>>>=2),yt+mt},tt.prototype._zeroBits=function(dt){if(dt===0)return 26;var mt=dt,yt=0;return mt&8191||(yt+=13,mt>>>=13),mt&127||(yt+=7,mt>>>=7),mt&15||(yt+=4,mt>>>=4),mt&3||(yt+=2,mt>>>=2),mt&1||yt++,yt},tt.prototype.bitLength=function(){var dt=this.words[this.length-1],mt=this._countBits(dt);return(this.length-1)*26+mt};function Bt(Ct){for(var dt=new Array(Ct.bitLength()),mt=0;mt>>vt}return dt}tt.prototype.zeroBits=function(){if(this.isZero())return 0;for(var dt=0,mt=0;mtdt.length?this.clone().ior(dt):dt.clone().ior(this)},tt.prototype.uor=function(dt){return this.length>dt.length?this.clone().iuor(dt):dt.clone().iuor(this)},tt.prototype.iuand=function(dt){var mt;this.length>dt.length?mt=dt:mt=this;for(var yt=0;ytdt.length?this.clone().iand(dt):dt.clone().iand(this)},tt.prototype.uand=function(dt){return this.length>dt.length?this.clone().iuand(dt):dt.clone().iuand(this)},tt.prototype.iuxor=function(dt){var mt,yt;this.length>dt.length?(mt=this,yt=dt):(mt=dt,yt=this);for(var vt=0;vtdt.length?this.clone().ixor(dt):dt.clone().ixor(this)},tt.prototype.uxor=function(dt){return this.length>dt.length?this.clone().iuxor(dt):dt.clone().iuxor(this)},tt.prototype.inotn=function(dt){et(typeof dt=="number"&&dt>=0);var mt=Math.ceil(dt/26)|0,yt=dt%26;this._expand(mt),yt>0&&mt--;for(var vt=0;vt0&&(this.words[vt]=~this.words[vt]&67108863>>26-yt),this.strip()},tt.prototype.notn=function(dt){return this.clone().inotn(dt)},tt.prototype.setn=function(dt,mt){et(typeof dt=="number"&&dt>=0);var yt=dt/26|0,vt=dt%26;return this._expand(yt+1),mt?this.words[yt]=this.words[yt]|1<dt.length?(yt=this,vt=dt):(yt=dt,vt=this);for(var Et=0,At=0;At>>26;for(;Et!==0&&At>>26;if(this.length=yt.length,Et!==0)this.words[this.length]=Et,this.length++;else if(yt!==this)for(;Atdt.length?this.clone().iadd(dt):dt.clone().iadd(this)},tt.prototype.isub=function(dt){if(dt.negative!==0){dt.negative=0;var mt=this.iadd(dt);return dt.negative=1,mt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(dt),this.negative=1,this._normSign();var yt=this.cmp(dt);if(yt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var vt,Et;yt>0?(vt=this,Et=dt):(vt=dt,Et=this);for(var At=0,Pt=0;Pt>26,this.words[Pt]=mt&67108863;for(;At!==0&&Pt>26,this.words[Pt]=mt&67108863;if(At===0&&Pt>>26,Rt=xt&67108863,Dt=Math.min(ht,dt.length-1),Ht=Math.max(0,ht-Ct.length+1);Ht<=Dt;Ht++){var tr=ht-Ht|0;vt=Ct.words[tr]|0,Et=dt.words[Ht]|0,At=vt*Et+Rt,$t+=At/67108864|0,Rt=At&67108863}mt.words[ht]=Rt|0,xt=$t|0}return xt!==0?mt.words[ht]=xt|0:mt.length--,mt.strip()}var It=function(dt,mt,yt){var vt=dt.words,Et=mt.words,At=yt.words,Pt=0,xt,ht,$t,Rt=vt[0]|0,Dt=Rt&8191,Ht=Rt>>>13,tr=vt[1]|0,Xt=tr&8191,Ut=tr>>>13,qt=vt[2]|0,Gt=qt&8191,Zt=qt>>>13,Yt=vt[3]|0,Kt=Yt&8191,ar=Yt>>>13,gr=vt[4]|0,cr=gr&8191,ur=gr>>>13,Pr=vt[5]|0,br=Pr&8191,dr=Pr>>>13,Kr=vt[6]|0,xr=Kr&8191,Sr=Kr>>>13,Zr=vt[7]|0,$r=Zr&8191,Mr=Zr>>>13,Xr=vt[8]|0,Qt=Xr&8191,jt=Xr>>>13,Wt=vt[9]|0,nr=Wt&8191,fr=Wt>>>13,Er=Et[0]|0,pr=Er&8191,vr=Er>>>13,Jr=Et[1]|0,wr=Jr&8191,Ar=Jr>>>13,Yr=Et[2]|0,Cr=Yr&8191,Or=Yr>>>13,Qr=Et[3]|0,_r=Qr&8191,Dr=Qr>>>13,r0=Et[4]|0,Tr=r0&8191,Lr=r0>>>13,n0=Et[5]|0,Br=n0&8191,Fr=n0>>>13,i0=Et[6]|0,Rr=i0&8191,jr=i0>>>13,a0=Et[7]|0,kr=a0&8191,Ur=a0>>>13,s0=Et[8]|0,Ir=s0&8191,Hr=s0>>>13,o0=Et[9]|0,Nr=o0&8191,qr=o0>>>13;yt.negative=dt.negative^mt.negative,yt.length=19,xt=Math.imul(Dt,pr),ht=Math.imul(Dt,vr),ht=ht+Math.imul(Ht,pr)|0,$t=Math.imul(Ht,vr);var e0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(e0>>>26)|0,e0&=67108863,xt=Math.imul(Xt,pr),ht=Math.imul(Xt,vr),ht=ht+Math.imul(Ut,pr)|0,$t=Math.imul(Ut,vr),xt=xt+Math.imul(Dt,wr)|0,ht=ht+Math.imul(Dt,Ar)|0,ht=ht+Math.imul(Ht,wr)|0,$t=$t+Math.imul(Ht,Ar)|0;var t0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(t0>>>26)|0,t0&=67108863,xt=Math.imul(Gt,pr),ht=Math.imul(Gt,vr),ht=ht+Math.imul(Zt,pr)|0,$t=Math.imul(Zt,vr),xt=xt+Math.imul(Xt,wr)|0,ht=ht+Math.imul(Xt,Ar)|0,ht=ht+Math.imul(Ut,wr)|0,$t=$t+Math.imul(Ut,Ar)|0,xt=xt+Math.imul(Dt,Cr)|0,ht=ht+Math.imul(Dt,Or)|0,ht=ht+Math.imul(Ht,Cr)|0,$t=$t+Math.imul(Ht,Or)|0;var f0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(f0>>>26)|0,f0&=67108863,xt=Math.imul(Kt,pr),ht=Math.imul(Kt,vr),ht=ht+Math.imul(ar,pr)|0,$t=Math.imul(ar,vr),xt=xt+Math.imul(Gt,wr)|0,ht=ht+Math.imul(Gt,Ar)|0,ht=ht+Math.imul(Zt,wr)|0,$t=$t+Math.imul(Zt,Ar)|0,xt=xt+Math.imul(Xt,Cr)|0,ht=ht+Math.imul(Xt,Or)|0,ht=ht+Math.imul(Ut,Cr)|0,$t=$t+Math.imul(Ut,Or)|0,xt=xt+Math.imul(Dt,_r)|0,ht=ht+Math.imul(Dt,Dr)|0,ht=ht+Math.imul(Ht,_r)|0,$t=$t+Math.imul(Ht,Dr)|0;var c0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(c0>>>26)|0,c0&=67108863,xt=Math.imul(cr,pr),ht=Math.imul(cr,vr),ht=ht+Math.imul(ur,pr)|0,$t=Math.imul(ur,vr),xt=xt+Math.imul(Kt,wr)|0,ht=ht+Math.imul(Kt,Ar)|0,ht=ht+Math.imul(ar,wr)|0,$t=$t+Math.imul(ar,Ar)|0,xt=xt+Math.imul(Gt,Cr)|0,ht=ht+Math.imul(Gt,Or)|0,ht=ht+Math.imul(Zt,Cr)|0,$t=$t+Math.imul(Zt,Or)|0,xt=xt+Math.imul(Xt,_r)|0,ht=ht+Math.imul(Xt,Dr)|0,ht=ht+Math.imul(Ut,_r)|0,$t=$t+Math.imul(Ut,Dr)|0,xt=xt+Math.imul(Dt,Tr)|0,ht=ht+Math.imul(Dt,Lr)|0,ht=ht+Math.imul(Ht,Tr)|0,$t=$t+Math.imul(Ht,Lr)|0;var l0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(l0>>>26)|0,l0&=67108863,xt=Math.imul(br,pr),ht=Math.imul(br,vr),ht=ht+Math.imul(dr,pr)|0,$t=Math.imul(dr,vr),xt=xt+Math.imul(cr,wr)|0,ht=ht+Math.imul(cr,Ar)|0,ht=ht+Math.imul(ur,wr)|0,$t=$t+Math.imul(ur,Ar)|0,xt=xt+Math.imul(Kt,Cr)|0,ht=ht+Math.imul(Kt,Or)|0,ht=ht+Math.imul(ar,Cr)|0,$t=$t+Math.imul(ar,Or)|0,xt=xt+Math.imul(Gt,_r)|0,ht=ht+Math.imul(Gt,Dr)|0,ht=ht+Math.imul(Zt,_r)|0,$t=$t+Math.imul(Zt,Dr)|0,xt=xt+Math.imul(Xt,Tr)|0,ht=ht+Math.imul(Xt,Lr)|0,ht=ht+Math.imul(Ut,Tr)|0,$t=$t+Math.imul(Ut,Lr)|0,xt=xt+Math.imul(Dt,Br)|0,ht=ht+Math.imul(Dt,Fr)|0,ht=ht+Math.imul(Ht,Br)|0,$t=$t+Math.imul(Ht,Fr)|0;var u0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(u0>>>26)|0,u0&=67108863,xt=Math.imul(xr,pr),ht=Math.imul(xr,vr),ht=ht+Math.imul(Sr,pr)|0,$t=Math.imul(Sr,vr),xt=xt+Math.imul(br,wr)|0,ht=ht+Math.imul(br,Ar)|0,ht=ht+Math.imul(dr,wr)|0,$t=$t+Math.imul(dr,Ar)|0,xt=xt+Math.imul(cr,Cr)|0,ht=ht+Math.imul(cr,Or)|0,ht=ht+Math.imul(ur,Cr)|0,$t=$t+Math.imul(ur,Or)|0,xt=xt+Math.imul(Kt,_r)|0,ht=ht+Math.imul(Kt,Dr)|0,ht=ht+Math.imul(ar,_r)|0,$t=$t+Math.imul(ar,Dr)|0,xt=xt+Math.imul(Gt,Tr)|0,ht=ht+Math.imul(Gt,Lr)|0,ht=ht+Math.imul(Zt,Tr)|0,$t=$t+Math.imul(Zt,Lr)|0,xt=xt+Math.imul(Xt,Br)|0,ht=ht+Math.imul(Xt,Fr)|0,ht=ht+Math.imul(Ut,Br)|0,$t=$t+Math.imul(Ut,Fr)|0,xt=xt+Math.imul(Dt,Rr)|0,ht=ht+Math.imul(Dt,jr)|0,ht=ht+Math.imul(Ht,Rr)|0,$t=$t+Math.imul(Ht,jr)|0;var d0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(d0>>>26)|0,d0&=67108863,xt=Math.imul($r,pr),ht=Math.imul($r,vr),ht=ht+Math.imul(Mr,pr)|0,$t=Math.imul(Mr,vr),xt=xt+Math.imul(xr,wr)|0,ht=ht+Math.imul(xr,Ar)|0,ht=ht+Math.imul(Sr,wr)|0,$t=$t+Math.imul(Sr,Ar)|0,xt=xt+Math.imul(br,Cr)|0,ht=ht+Math.imul(br,Or)|0,ht=ht+Math.imul(dr,Cr)|0,$t=$t+Math.imul(dr,Or)|0,xt=xt+Math.imul(cr,_r)|0,ht=ht+Math.imul(cr,Dr)|0,ht=ht+Math.imul(ur,_r)|0,$t=$t+Math.imul(ur,Dr)|0,xt=xt+Math.imul(Kt,Tr)|0,ht=ht+Math.imul(Kt,Lr)|0,ht=ht+Math.imul(ar,Tr)|0,$t=$t+Math.imul(ar,Lr)|0,xt=xt+Math.imul(Gt,Br)|0,ht=ht+Math.imul(Gt,Fr)|0,ht=ht+Math.imul(Zt,Br)|0,$t=$t+Math.imul(Zt,Fr)|0,xt=xt+Math.imul(Xt,Rr)|0,ht=ht+Math.imul(Xt,jr)|0,ht=ht+Math.imul(Ut,Rr)|0,$t=$t+Math.imul(Ut,jr)|0,xt=xt+Math.imul(Dt,kr)|0,ht=ht+Math.imul(Dt,Ur)|0,ht=ht+Math.imul(Ht,kr)|0,$t=$t+Math.imul(Ht,Ur)|0;var h0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(h0>>>26)|0,h0&=67108863,xt=Math.imul(Qt,pr),ht=Math.imul(Qt,vr),ht=ht+Math.imul(jt,pr)|0,$t=Math.imul(jt,vr),xt=xt+Math.imul($r,wr)|0,ht=ht+Math.imul($r,Ar)|0,ht=ht+Math.imul(Mr,wr)|0,$t=$t+Math.imul(Mr,Ar)|0,xt=xt+Math.imul(xr,Cr)|0,ht=ht+Math.imul(xr,Or)|0,ht=ht+Math.imul(Sr,Cr)|0,$t=$t+Math.imul(Sr,Or)|0,xt=xt+Math.imul(br,_r)|0,ht=ht+Math.imul(br,Dr)|0,ht=ht+Math.imul(dr,_r)|0,$t=$t+Math.imul(dr,Dr)|0,xt=xt+Math.imul(cr,Tr)|0,ht=ht+Math.imul(cr,Lr)|0,ht=ht+Math.imul(ur,Tr)|0,$t=$t+Math.imul(ur,Lr)|0,xt=xt+Math.imul(Kt,Br)|0,ht=ht+Math.imul(Kt,Fr)|0,ht=ht+Math.imul(ar,Br)|0,$t=$t+Math.imul(ar,Fr)|0,xt=xt+Math.imul(Gt,Rr)|0,ht=ht+Math.imul(Gt,jr)|0,ht=ht+Math.imul(Zt,Rr)|0,$t=$t+Math.imul(Zt,jr)|0,xt=xt+Math.imul(Xt,kr)|0,ht=ht+Math.imul(Xt,Ur)|0,ht=ht+Math.imul(Ut,kr)|0,$t=$t+Math.imul(Ut,Ur)|0,xt=xt+Math.imul(Dt,Ir)|0,ht=ht+Math.imul(Dt,Hr)|0,ht=ht+Math.imul(Ht,Ir)|0,$t=$t+Math.imul(Ht,Hr)|0;var p0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(p0>>>26)|0,p0&=67108863,xt=Math.imul(nr,pr),ht=Math.imul(nr,vr),ht=ht+Math.imul(fr,pr)|0,$t=Math.imul(fr,vr),xt=xt+Math.imul(Qt,wr)|0,ht=ht+Math.imul(Qt,Ar)|0,ht=ht+Math.imul(jt,wr)|0,$t=$t+Math.imul(jt,Ar)|0,xt=xt+Math.imul($r,Cr)|0,ht=ht+Math.imul($r,Or)|0,ht=ht+Math.imul(Mr,Cr)|0,$t=$t+Math.imul(Mr,Or)|0,xt=xt+Math.imul(xr,_r)|0,ht=ht+Math.imul(xr,Dr)|0,ht=ht+Math.imul(Sr,_r)|0,$t=$t+Math.imul(Sr,Dr)|0,xt=xt+Math.imul(br,Tr)|0,ht=ht+Math.imul(br,Lr)|0,ht=ht+Math.imul(dr,Tr)|0,$t=$t+Math.imul(dr,Lr)|0,xt=xt+Math.imul(cr,Br)|0,ht=ht+Math.imul(cr,Fr)|0,ht=ht+Math.imul(ur,Br)|0,$t=$t+Math.imul(ur,Fr)|0,xt=xt+Math.imul(Kt,Rr)|0,ht=ht+Math.imul(Kt,jr)|0,ht=ht+Math.imul(ar,Rr)|0,$t=$t+Math.imul(ar,jr)|0,xt=xt+Math.imul(Gt,kr)|0,ht=ht+Math.imul(Gt,Ur)|0,ht=ht+Math.imul(Zt,kr)|0,$t=$t+Math.imul(Zt,Ur)|0,xt=xt+Math.imul(Xt,Ir)|0,ht=ht+Math.imul(Xt,Hr)|0,ht=ht+Math.imul(Ut,Ir)|0,$t=$t+Math.imul(Ut,Hr)|0,xt=xt+Math.imul(Dt,Nr)|0,ht=ht+Math.imul(Dt,qr)|0,ht=ht+Math.imul(Ht,Nr)|0,$t=$t+Math.imul(Ht,qr)|0;var b0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(b0>>>26)|0,b0&=67108863,xt=Math.imul(nr,wr),ht=Math.imul(nr,Ar),ht=ht+Math.imul(fr,wr)|0,$t=Math.imul(fr,Ar),xt=xt+Math.imul(Qt,Cr)|0,ht=ht+Math.imul(Qt,Or)|0,ht=ht+Math.imul(jt,Cr)|0,$t=$t+Math.imul(jt,Or)|0,xt=xt+Math.imul($r,_r)|0,ht=ht+Math.imul($r,Dr)|0,ht=ht+Math.imul(Mr,_r)|0,$t=$t+Math.imul(Mr,Dr)|0,xt=xt+Math.imul(xr,Tr)|0,ht=ht+Math.imul(xr,Lr)|0,ht=ht+Math.imul(Sr,Tr)|0,$t=$t+Math.imul(Sr,Lr)|0,xt=xt+Math.imul(br,Br)|0,ht=ht+Math.imul(br,Fr)|0,ht=ht+Math.imul(dr,Br)|0,$t=$t+Math.imul(dr,Fr)|0,xt=xt+Math.imul(cr,Rr)|0,ht=ht+Math.imul(cr,jr)|0,ht=ht+Math.imul(ur,Rr)|0,$t=$t+Math.imul(ur,jr)|0,xt=xt+Math.imul(Kt,kr)|0,ht=ht+Math.imul(Kt,Ur)|0,ht=ht+Math.imul(ar,kr)|0,$t=$t+Math.imul(ar,Ur)|0,xt=xt+Math.imul(Gt,Ir)|0,ht=ht+Math.imul(Gt,Hr)|0,ht=ht+Math.imul(Zt,Ir)|0,$t=$t+Math.imul(Zt,Hr)|0,xt=xt+Math.imul(Xt,Nr)|0,ht=ht+Math.imul(Xt,qr)|0,ht=ht+Math.imul(Ut,Nr)|0,$t=$t+Math.imul(Ut,qr)|0;var m0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(m0>>>26)|0,m0&=67108863,xt=Math.imul(nr,Cr),ht=Math.imul(nr,Or),ht=ht+Math.imul(fr,Cr)|0,$t=Math.imul(fr,Or),xt=xt+Math.imul(Qt,_r)|0,ht=ht+Math.imul(Qt,Dr)|0,ht=ht+Math.imul(jt,_r)|0,$t=$t+Math.imul(jt,Dr)|0,xt=xt+Math.imul($r,Tr)|0,ht=ht+Math.imul($r,Lr)|0,ht=ht+Math.imul(Mr,Tr)|0,$t=$t+Math.imul(Mr,Lr)|0,xt=xt+Math.imul(xr,Br)|0,ht=ht+Math.imul(xr,Fr)|0,ht=ht+Math.imul(Sr,Br)|0,$t=$t+Math.imul(Sr,Fr)|0,xt=xt+Math.imul(br,Rr)|0,ht=ht+Math.imul(br,jr)|0,ht=ht+Math.imul(dr,Rr)|0,$t=$t+Math.imul(dr,jr)|0,xt=xt+Math.imul(cr,kr)|0,ht=ht+Math.imul(cr,Ur)|0,ht=ht+Math.imul(ur,kr)|0,$t=$t+Math.imul(ur,Ur)|0,xt=xt+Math.imul(Kt,Ir)|0,ht=ht+Math.imul(Kt,Hr)|0,ht=ht+Math.imul(ar,Ir)|0,$t=$t+Math.imul(ar,Hr)|0,xt=xt+Math.imul(Gt,Nr)|0,ht=ht+Math.imul(Gt,qr)|0,ht=ht+Math.imul(Zt,Nr)|0,$t=$t+Math.imul(Zt,qr)|0;var g0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(g0>>>26)|0,g0&=67108863,xt=Math.imul(nr,_r),ht=Math.imul(nr,Dr),ht=ht+Math.imul(fr,_r)|0,$t=Math.imul(fr,Dr),xt=xt+Math.imul(Qt,Tr)|0,ht=ht+Math.imul(Qt,Lr)|0,ht=ht+Math.imul(jt,Tr)|0,$t=$t+Math.imul(jt,Lr)|0,xt=xt+Math.imul($r,Br)|0,ht=ht+Math.imul($r,Fr)|0,ht=ht+Math.imul(Mr,Br)|0,$t=$t+Math.imul(Mr,Fr)|0,xt=xt+Math.imul(xr,Rr)|0,ht=ht+Math.imul(xr,jr)|0,ht=ht+Math.imul(Sr,Rr)|0,$t=$t+Math.imul(Sr,jr)|0,xt=xt+Math.imul(br,kr)|0,ht=ht+Math.imul(br,Ur)|0,ht=ht+Math.imul(dr,kr)|0,$t=$t+Math.imul(dr,Ur)|0,xt=xt+Math.imul(cr,Ir)|0,ht=ht+Math.imul(cr,Hr)|0,ht=ht+Math.imul(ur,Ir)|0,$t=$t+Math.imul(ur,Hr)|0,xt=xt+Math.imul(Kt,Nr)|0,ht=ht+Math.imul(Kt,qr)|0,ht=ht+Math.imul(ar,Nr)|0,$t=$t+Math.imul(ar,qr)|0;var y0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(y0>>>26)|0,y0&=67108863,xt=Math.imul(nr,Tr),ht=Math.imul(nr,Lr),ht=ht+Math.imul(fr,Tr)|0,$t=Math.imul(fr,Lr),xt=xt+Math.imul(Qt,Br)|0,ht=ht+Math.imul(Qt,Fr)|0,ht=ht+Math.imul(jt,Br)|0,$t=$t+Math.imul(jt,Fr)|0,xt=xt+Math.imul($r,Rr)|0,ht=ht+Math.imul($r,jr)|0,ht=ht+Math.imul(Mr,Rr)|0,$t=$t+Math.imul(Mr,jr)|0,xt=xt+Math.imul(xr,kr)|0,ht=ht+Math.imul(xr,Ur)|0,ht=ht+Math.imul(Sr,kr)|0,$t=$t+Math.imul(Sr,Ur)|0,xt=xt+Math.imul(br,Ir)|0,ht=ht+Math.imul(br,Hr)|0,ht=ht+Math.imul(dr,Ir)|0,$t=$t+Math.imul(dr,Hr)|0,xt=xt+Math.imul(cr,Nr)|0,ht=ht+Math.imul(cr,qr)|0,ht=ht+Math.imul(ur,Nr)|0,$t=$t+Math.imul(ur,qr)|0;var v0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(v0>>>26)|0,v0&=67108863,xt=Math.imul(nr,Br),ht=Math.imul(nr,Fr),ht=ht+Math.imul(fr,Br)|0,$t=Math.imul(fr,Fr),xt=xt+Math.imul(Qt,Rr)|0,ht=ht+Math.imul(Qt,jr)|0,ht=ht+Math.imul(jt,Rr)|0,$t=$t+Math.imul(jt,jr)|0,xt=xt+Math.imul($r,kr)|0,ht=ht+Math.imul($r,Ur)|0,ht=ht+Math.imul(Mr,kr)|0,$t=$t+Math.imul(Mr,Ur)|0,xt=xt+Math.imul(xr,Ir)|0,ht=ht+Math.imul(xr,Hr)|0,ht=ht+Math.imul(Sr,Ir)|0,$t=$t+Math.imul(Sr,Hr)|0,xt=xt+Math.imul(br,Nr)|0,ht=ht+Math.imul(br,qr)|0,ht=ht+Math.imul(dr,Nr)|0,$t=$t+Math.imul(dr,qr)|0;var w0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(w0>>>26)|0,w0&=67108863,xt=Math.imul(nr,Rr),ht=Math.imul(nr,jr),ht=ht+Math.imul(fr,Rr)|0,$t=Math.imul(fr,jr),xt=xt+Math.imul(Qt,kr)|0,ht=ht+Math.imul(Qt,Ur)|0,ht=ht+Math.imul(jt,kr)|0,$t=$t+Math.imul(jt,Ur)|0,xt=xt+Math.imul($r,Ir)|0,ht=ht+Math.imul($r,Hr)|0,ht=ht+Math.imul(Mr,Ir)|0,$t=$t+Math.imul(Mr,Hr)|0,xt=xt+Math.imul(xr,Nr)|0,ht=ht+Math.imul(xr,qr)|0,ht=ht+Math.imul(Sr,Nr)|0,$t=$t+Math.imul(Sr,qr)|0;var x0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(x0>>>26)|0,x0&=67108863,xt=Math.imul(nr,kr),ht=Math.imul(nr,Ur),ht=ht+Math.imul(fr,kr)|0,$t=Math.imul(fr,Ur),xt=xt+Math.imul(Qt,Ir)|0,ht=ht+Math.imul(Qt,Hr)|0,ht=ht+Math.imul(jt,Ir)|0,$t=$t+Math.imul(jt,Hr)|0,xt=xt+Math.imul($r,Nr)|0,ht=ht+Math.imul($r,qr)|0,ht=ht+Math.imul(Mr,Nr)|0,$t=$t+Math.imul(Mr,qr)|0;var E0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(E0>>>26)|0,E0&=67108863,xt=Math.imul(nr,Ir),ht=Math.imul(nr,Hr),ht=ht+Math.imul(fr,Ir)|0,$t=Math.imul(fr,Hr),xt=xt+Math.imul(Qt,Nr)|0,ht=ht+Math.imul(Qt,qr)|0,ht=ht+Math.imul(jt,Nr)|0,$t=$t+Math.imul(jt,qr)|0;var $0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+($0>>>26)|0,$0&=67108863,xt=Math.imul(nr,Nr),ht=Math.imul(nr,qr),ht=ht+Math.imul(fr,Nr)|0,$t=Math.imul(fr,qr);var M0=(Pt+xt|0)+((ht&8191)<<13)|0;return Pt=($t+(ht>>>13)|0)+(M0>>>26)|0,M0&=67108863,At[0]=e0,At[1]=t0,At[2]=f0,At[3]=c0,At[4]=l0,At[5]=u0,At[6]=d0,At[7]=h0,At[8]=p0,At[9]=b0,At[10]=m0,At[11]=g0,At[12]=y0,At[13]=v0,At[14]=w0,At[15]=x0,At[16]=E0,At[17]=$0,At[18]=M0,Pt!==0&&(At[19]=Pt,yt.length++),yt};Math.imul||(It=kt);function Lt(Ct,dt,mt){mt.negative=dt.negative^Ct.negative,mt.length=Ct.length+dt.length;for(var yt=0,vt=0,Et=0;Et>>26)|0,vt+=At>>>26,At&=67108863}mt.words[Et]=Pt,yt=At,At=vt}return yt!==0?mt.words[Et]=yt:mt.length--,mt.strip()}function Ot(Ct,dt,mt){var yt=new Nt;return yt.mulp(Ct,dt,mt)}tt.prototype.mulTo=function(dt,mt){var yt,vt=this.length+dt.length;return this.length===10&&dt.length===10?yt=It(this,dt,mt):vt<63?yt=kt(this,dt,mt):vt<1024?yt=Lt(this,dt,mt):yt=Ot(this,dt,mt),yt};function Nt(Ct,dt){this.x=Ct,this.y=dt}Nt.prototype.makeRBT=function(dt){for(var mt=new Array(dt),yt=tt.prototype._countBits(dt)-1,vt=0;vt>=1;return vt},Nt.prototype.permute=function(dt,mt,yt,vt,Et,At){for(var Pt=0;Pt>>1)Et++;return 1<>>13,yt[2*At+1]=Et&8191,Et=Et>>>13;for(At=2*mt;At>=26,mt+=vt/67108864|0,mt+=Et>>>26,this.words[yt]=Et&67108863}return mt!==0&&(this.words[yt]=mt,this.length++),this},tt.prototype.muln=function(dt){return this.clone().imuln(dt)},tt.prototype.sqr=function(){return this.mul(this)},tt.prototype.isqr=function(){return this.imul(this.clone())},tt.prototype.pow=function(dt){var mt=Bt(dt);if(mt.length===0)return new tt(1);for(var yt=this,vt=0;vt=0);var mt=dt%26,yt=(dt-mt)/26,vt=67108863>>>26-mt<<26-mt,Et;if(mt!==0){var At=0;for(Et=0;Et>>26-mt}At&&(this.words[Et]=At,this.length++)}if(yt!==0){for(Et=this.length-1;Et>=0;Et--)this.words[Et+yt]=this.words[Et];for(Et=0;Et=0);var vt;mt?vt=(mt-mt%26)/26:vt=0;var Et=dt%26,At=Math.min((dt-Et)/26,this.length),Pt=67108863^67108863>>>Et<At)for(this.length-=At,ht=0;ht=0&&($t!==0||ht>=vt);ht--){var Rt=this.words[ht]|0;this.words[ht]=$t<<26-Et|Rt>>>Et,$t=Rt&Pt}return xt&&$t!==0&&(xt.words[xt.length++]=$t),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},tt.prototype.ishrn=function(dt,mt,yt){return et(this.negative===0),this.iushrn(dt,mt,yt)},tt.prototype.shln=function(dt){return this.clone().ishln(dt)},tt.prototype.ushln=function(dt){return this.clone().iushln(dt)},tt.prototype.shrn=function(dt){return this.clone().ishrn(dt)},tt.prototype.ushrn=function(dt){return this.clone().iushrn(dt)},tt.prototype.testn=function(dt){et(typeof dt=="number"&&dt>=0);var mt=dt%26,yt=(dt-mt)/26,vt=1<=0);var mt=dt%26,yt=(dt-mt)/26;if(et(this.negative===0,"imaskn works only with positive numbers"),this.length<=yt)return this;if(mt!==0&&yt++,this.length=Math.min(yt,this.length),mt!==0){var vt=67108863^67108863>>>mt<=67108864;mt++)this.words[mt]-=67108864,mt===this.length-1?this.words[mt+1]=1:this.words[mt+1]++;return this.length=Math.max(this.length,mt+1),this},tt.prototype.isubn=function(dt){if(et(typeof dt=="number"),et(dt<67108864),dt<0)return this.iaddn(-dt);if(this.negative!==0)return this.negative=0,this.iaddn(dt),this.negative=1,this;if(this.words[0]-=dt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var mt=0;mt>26)-(xt/67108864|0),this.words[Et+yt]=At&67108863}for(;Et>26,this.words[Et+yt]=At&67108863;if(Pt===0)return this.strip();for(et(Pt===-1),Pt=0,Et=0;Et>26,this.words[Et]=At&67108863;return this.negative=1,this.strip()},tt.prototype._wordDiv=function(dt,mt){var yt=this.length-dt.length,vt=this.clone(),Et=dt,At=Et.words[Et.length-1]|0,Pt=this._countBits(At);yt=26-Pt,yt!==0&&(Et=Et.ushln(yt),vt.iushln(yt),At=Et.words[Et.length-1]|0);var xt=vt.length-Et.length,ht;if(mt!=="mod"){ht=new tt(null),ht.length=xt+1,ht.words=new Array(ht.length);for(var $t=0;$t=0;Dt--){var Ht=(vt.words[Et.length+Dt]|0)*67108864+(vt.words[Et.length+Dt-1]|0);for(Ht=Math.min(Ht/At|0,67108863),vt._ishlnsubmul(Et,Ht,Dt);vt.negative!==0;)Ht--,vt.negative=0,vt._ishlnsubmul(Et,1,Dt),vt.isZero()||(vt.negative^=1);ht&&(ht.words[Dt]=Ht)}return ht&&ht.strip(),vt.strip(),mt!=="div"&&yt!==0&&vt.iushrn(yt),{div:ht||null,mod:vt}},tt.prototype.divmod=function(dt,mt,yt){if(et(!dt.isZero()),this.isZero())return{div:new tt(0),mod:new tt(0)};var vt,Et,At;return this.negative!==0&&dt.negative===0?(At=this.neg().divmod(dt,mt),mt!=="mod"&&(vt=At.div.neg()),mt!=="div"&&(Et=At.mod.neg(),yt&&Et.negative!==0&&Et.iadd(dt)),{div:vt,mod:Et}):this.negative===0&&dt.negative!==0?(At=this.divmod(dt.neg(),mt),mt!=="mod"&&(vt=At.div.neg()),{div:vt,mod:At.mod}):this.negative&dt.negative?(At=this.neg().divmod(dt.neg(),mt),mt!=="div"&&(Et=At.mod.neg(),yt&&Et.negative!==0&&Et.isub(dt)),{div:At.div,mod:Et}):dt.length>this.length||this.cmp(dt)<0?{div:new tt(0),mod:this}:dt.length===1?mt==="div"?{div:this.divn(dt.words[0]),mod:null}:mt==="mod"?{div:null,mod:new tt(this.modn(dt.words[0]))}:{div:this.divn(dt.words[0]),mod:new tt(this.modn(dt.words[0]))}:this._wordDiv(dt,mt)},tt.prototype.div=function(dt){return this.divmod(dt,"div",!1).div},tt.prototype.mod=function(dt){return this.divmod(dt,"mod",!1).mod},tt.prototype.umod=function(dt){return this.divmod(dt,"mod",!0).mod},tt.prototype.divRound=function(dt){var mt=this.divmod(dt);if(mt.mod.isZero())return mt.div;var yt=mt.div.negative!==0?mt.mod.isub(dt):mt.mod,vt=dt.ushrn(1),Et=dt.andln(1),At=yt.cmp(vt);return At<0||Et===1&&At===0?mt.div:mt.div.negative!==0?mt.div.isubn(1):mt.div.iaddn(1)},tt.prototype.modn=function(dt){et(dt<=67108863);for(var mt=(1<<26)%dt,yt=0,vt=this.length-1;vt>=0;vt--)yt=(mt*yt+(this.words[vt]|0))%dt;return yt},tt.prototype.idivn=function(dt){et(dt<=67108863);for(var mt=0,yt=this.length-1;yt>=0;yt--){var vt=(this.words[yt]|0)+mt*67108864;this.words[yt]=vt/dt|0,mt=vt%dt}return this.strip()},tt.prototype.divn=function(dt){return this.clone().idivn(dt)},tt.prototype.egcd=function(dt){et(dt.negative===0),et(!dt.isZero());var mt=this,yt=dt.clone();mt.negative!==0?mt=mt.umod(dt):mt=mt.clone();for(var vt=new tt(1),Et=new tt(0),At=new tt(0),Pt=new tt(1),xt=0;mt.isEven()&&yt.isEven();)mt.iushrn(1),yt.iushrn(1),++xt;for(var ht=yt.clone(),$t=mt.clone();!mt.isZero();){for(var Rt=0,Dt=1;!(mt.words[0]&Dt)&&Rt<26;++Rt,Dt<<=1);if(Rt>0)for(mt.iushrn(Rt);Rt-- >0;)(vt.isOdd()||Et.isOdd())&&(vt.iadd(ht),Et.isub($t)),vt.iushrn(1),Et.iushrn(1);for(var Ht=0,tr=1;!(yt.words[0]&tr)&&Ht<26;++Ht,tr<<=1);if(Ht>0)for(yt.iushrn(Ht);Ht-- >0;)(At.isOdd()||Pt.isOdd())&&(At.iadd(ht),Pt.isub($t)),At.iushrn(1),Pt.iushrn(1);mt.cmp(yt)>=0?(mt.isub(yt),vt.isub(At),Et.isub(Pt)):(yt.isub(mt),At.isub(vt),Pt.isub(Et))}return{a:At,b:Pt,gcd:yt.iushln(xt)}},tt.prototype._invmp=function(dt){et(dt.negative===0),et(!dt.isZero());var mt=this,yt=dt.clone();mt.negative!==0?mt=mt.umod(dt):mt=mt.clone();for(var vt=new tt(1),Et=new tt(0),At=yt.clone();mt.cmpn(1)>0&&yt.cmpn(1)>0;){for(var Pt=0,xt=1;!(mt.words[0]&xt)&&Pt<26;++Pt,xt<<=1);if(Pt>0)for(mt.iushrn(Pt);Pt-- >0;)vt.isOdd()&&vt.iadd(At),vt.iushrn(1);for(var ht=0,$t=1;!(yt.words[0]&$t)&&ht<26;++ht,$t<<=1);if(ht>0)for(yt.iushrn(ht);ht-- >0;)Et.isOdd()&&Et.iadd(At),Et.iushrn(1);mt.cmp(yt)>=0?(mt.isub(yt),vt.isub(Et)):(yt.isub(mt),Et.isub(vt))}var Rt;return mt.cmpn(1)===0?Rt=vt:Rt=Et,Rt.cmpn(0)<0&&Rt.iadd(dt),Rt},tt.prototype.gcd=function(dt){if(this.isZero())return dt.abs();if(dt.isZero())return this.abs();var mt=this.clone(),yt=dt.clone();mt.negative=0,yt.negative=0;for(var vt=0;mt.isEven()&&yt.isEven();vt++)mt.iushrn(1),yt.iushrn(1);do{for(;mt.isEven();)mt.iushrn(1);for(;yt.isEven();)yt.iushrn(1);var Et=mt.cmp(yt);if(Et<0){var At=mt;mt=yt,yt=At}else if(Et===0||yt.cmpn(1)===0)break;mt.isub(yt)}while(!0);return yt.iushln(vt)},tt.prototype.invm=function(dt){return this.egcd(dt).a.umod(dt)},tt.prototype.isEven=function(){return(this.words[0]&1)===0},tt.prototype.isOdd=function(){return(this.words[0]&1)===1},tt.prototype.andln=function(dt){return this.words[0]&dt},tt.prototype.bincn=function(dt){et(typeof dt=="number");var mt=dt%26,yt=(dt-mt)/26,vt=1<>>26,Pt&=67108863,this.words[At]=Pt}return Et!==0&&(this.words[At]=Et,this.length++),this},tt.prototype.isZero=function(){return this.length===1&&this.words[0]===0},tt.prototype.cmpn=function(dt){var mt=dt<0;if(this.negative!==0&&!mt)return-1;if(this.negative===0&&mt)return 1;this.strip();var yt;if(this.length>1)yt=1;else{mt&&(dt=-dt),et(dt<=67108863,"Number is too big");var vt=this.words[0]|0;yt=vt===dt?0:vtdt.length)return 1;if(this.length=0;yt--){var vt=this.words[yt]|0,Et=dt.words[yt]|0;if(vt!==Et){vtEt&&(mt=1);break}}return mt},tt.prototype.gtn=function(dt){return this.cmpn(dt)===1},tt.prototype.gt=function(dt){return this.cmp(dt)===1},tt.prototype.gten=function(dt){return this.cmpn(dt)>=0},tt.prototype.gte=function(dt){return this.cmp(dt)>=0},tt.prototype.ltn=function(dt){return this.cmpn(dt)===-1},tt.prototype.lt=function(dt){return this.cmp(dt)===-1},tt.prototype.lten=function(dt){return this.cmpn(dt)<=0},tt.prototype.lte=function(dt){return this.cmp(dt)<=0},tt.prototype.eqn=function(dt){return this.cmpn(dt)===0},tt.prototype.eq=function(dt){return this.cmp(dt)===0},tt.red=function(dt){return new er(dt)},tt.prototype.toRed=function(dt){return et(!this.red,"Already a number in reduction context"),et(this.negative===0,"red works only with positives"),dt.convertTo(this)._forceRed(dt)},tt.prototype.fromRed=function(){return et(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},tt.prototype._forceRed=function(dt){return this.red=dt,this},tt.prototype.forceRed=function(dt){return et(!this.red,"Already a number in reduction context"),this._forceRed(dt)},tt.prototype.redAdd=function(dt){return et(this.red,"redAdd works only with red numbers"),this.red.add(this,dt)},tt.prototype.redIAdd=function(dt){return et(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,dt)},tt.prototype.redSub=function(dt){return et(this.red,"redSub works only with red numbers"),this.red.sub(this,dt)},tt.prototype.redISub=function(dt){return et(this.red,"redISub works only with red numbers"),this.red.isub(this,dt)},tt.prototype.redShl=function(dt){return et(this.red,"redShl works only with red numbers"),this.red.shl(this,dt)},tt.prototype.redMul=function(dt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,dt),this.red.mul(this,dt)},tt.prototype.redIMul=function(dt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,dt),this.red.imul(this,dt)},tt.prototype.redSqr=function(){return et(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},tt.prototype.redISqr=function(){return et(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},tt.prototype.redSqrt=function(){return et(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},tt.prototype.redInvm=function(){return et(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},tt.prototype.redNeg=function(){return et(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},tt.prototype.redPow=function(dt){return et(this.red&&!dt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,dt)};var Ft={k256:null,p224:null,p192:null,p25519:null};function zt(Ct,dt){this.name=Ct,this.p=new tt(dt,16),this.n=this.p.bitLength(),this.k=new tt(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}zt.prototype._tmp=function(){var dt=new tt(null);return dt.words=new Array(Math.ceil(this.n/13)),dt},zt.prototype.ireduce=function(dt){var mt=dt,yt;do this.split(mt,this.tmp),mt=this.imulK(mt),mt=mt.iadd(this.tmp),yt=mt.bitLength();while(yt>this.n);var vt=yt0?mt.isub(this.p):mt.strip!==void 0?mt.strip():mt._strip(),mt},zt.prototype.split=function(dt,mt){dt.iushrn(this.n,0,mt)},zt.prototype.imulK=function(dt){return dt.imul(this.k)};function Vt(){zt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}nt(Vt,zt),Vt.prototype.split=function(dt,mt){for(var yt=4194303,vt=Math.min(dt.length,9),Et=0;Et>>22,At=Pt}At>>>=22,dt.words[Et-10]=At,At===0&&dt.length>10?dt.length-=10:dt.length-=9},Vt.prototype.imulK=function(dt){dt.words[dt.length]=0,dt.words[dt.length+1]=0,dt.length+=2;for(var mt=0,yt=0;yt>>=26,dt.words[yt]=Et,mt=vt}return mt!==0&&(dt.words[dt.length++]=mt),dt},tt._prime=function(dt){if(Ft[dt])return Ft[dt];var mt;if(dt==="k256")mt=new Vt;else if(dt==="p224")mt=new Jt;else if(dt==="p192")mt=new ir;else if(dt==="p25519")mt=new rr;else throw new Error("Unknown prime "+dt);return Ft[dt]=mt,mt};function er(Ct){if(typeof Ct=="string"){var dt=tt._prime(Ct);this.m=dt.p,this.prime=dt}else et(Ct.gtn(1),"modulus must be greater than 1"),this.m=Ct,this.prime=null}er.prototype._verify1=function(dt){et(dt.negative===0,"red works only with positives"),et(dt.red,"red works only with red numbers")},er.prototype._verify2=function(dt,mt){et((dt.negative|mt.negative)===0,"red works only with positives"),et(dt.red&&dt.red===mt.red,"red works only with red numbers")},er.prototype.imod=function(dt){return this.prime?this.prime.ireduce(dt)._forceRed(this):dt.umod(this.m)._forceRed(this)},er.prototype.neg=function(dt){return dt.isZero()?dt.clone():this.m.sub(dt)._forceRed(this)},er.prototype.add=function(dt,mt){this._verify2(dt,mt);var yt=dt.add(mt);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt._forceRed(this)},er.prototype.iadd=function(dt,mt){this._verify2(dt,mt);var yt=dt.iadd(mt);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt},er.prototype.sub=function(dt,mt){this._verify2(dt,mt);var yt=dt.sub(mt);return yt.cmpn(0)<0&&yt.iadd(this.m),yt._forceRed(this)},er.prototype.isub=function(dt,mt){this._verify2(dt,mt);var yt=dt.isub(mt);return yt.cmpn(0)<0&&yt.iadd(this.m),yt},er.prototype.shl=function(dt,mt){return this._verify1(dt),this.imod(dt.ushln(mt))},er.prototype.imul=function(dt,mt){return this._verify2(dt,mt),this.imod(dt.imul(mt))},er.prototype.mul=function(dt,mt){return this._verify2(dt,mt),this.imod(dt.mul(mt))},er.prototype.isqr=function(dt){return this.imul(dt,dt.clone())},er.prototype.sqr=function(dt){return this.mul(dt,dt)},er.prototype.sqrt=function(dt){if(dt.isZero())return dt.clone();var mt=this.m.andln(3);if(et(mt%2===1),mt===3){var yt=this.m.add(new tt(1)).iushrn(2);return this.pow(dt,yt)}for(var vt=this.m.subn(1),Et=0;!vt.isZero()&&vt.andln(1)===0;)Et++,vt.iushrn(1);et(!vt.isZero());var At=new tt(1).toRed(this),Pt=At.redNeg(),xt=this.m.subn(1).iushrn(1),ht=this.m.bitLength();for(ht=new tt(2*ht*ht).toRed(this);this.pow(ht,xt).cmp(Pt)!==0;)ht.redIAdd(Pt);for(var $t=this.pow(ht,vt),Rt=this.pow(dt,vt.addn(1).iushrn(1)),Dt=this.pow(dt,vt),Ht=Et;Dt.cmp(At)!==0;){for(var tr=Dt,Xt=0;tr.cmp(At)!==0;Xt++)tr=tr.redSqr();et(Xt=0;Et--){for(var $t=mt.words[Et],Rt=ht-1;Rt>=0;Rt--){var Dt=$t>>Rt&1;if(At!==vt[0]&&(At=this.sqr(At)),Dt===0&&Pt===0){xt=0;continue}Pt<<=1,Pt|=Dt,xt++,!(xt!==yt&&(Et!==0||Rt!==0))&&(At=this.mul(At,vt[Pt]),xt=0,Pt=0)}ht=26}return At},er.prototype.convertTo=function(dt){var mt=dt.umod(this.m);return mt===dt?mt.clone():mt},er.prototype.convertFrom=function(dt){var mt=dt.clone();return mt.red=null,mt},tt.mont=function(dt){return new lr(dt)};function lr(Ct){er.call(this,Ct),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new tt(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)}nt(lr,er),lr.prototype.convertTo=function(dt){return this.imod(dt.ushln(this.shift))},lr.prototype.convertFrom=function(dt){var mt=this.imod(dt.mul(this.rinv));return mt.red=null,mt},lr.prototype.imul=function(dt,mt){if(dt.isZero()||mt.isZero())return dt.words[0]=0,dt.length=1,dt;var yt=dt.imul(mt),vt=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Et=yt.isub(vt).iushrn(this.shift),At=Et;return Et.cmp(this.m)>=0?At=Et.isub(this.m):Et.cmpn(0)<0&&(At=Et.iadd(this.m)),At._forceRed(this)},lr.prototype.mul=function(dt,mt){if(dt.isZero()||mt.isZero())return new tt(0)._forceRed(this);var yt=dt.mul(mt),vt=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Et=yt.isub(vt).iushrn(this.shift),At=Et;return Et.cmp(this.m)>=0?At=Et.isub(this.m):Et.cmpn(0)<0&&(At=Et.iadd(this.m)),At._forceRed(this)},lr.prototype.invm=function(dt){var mt=this.imod(dt._invmp(this.m).mul(this.r2));return mt._forceRed(this)}})(c,commonjsGlobal)})(bn$6);var bnExports$6=bn$6.exports,brorand={exports:{}},hasRequiredBrorand;function requireBrorand(){if(hasRequiredBrorand)return brorand.exports;hasRequiredBrorand=1;var c;brorand.exports=function(nt){return c||(c=new a(null)),c.generate(nt)};function a(et){this.rand=et}if(brorand.exports.Rand=a,a.prototype.generate=function(nt){return this._rand(nt)},a.prototype._rand=function(nt){if(this.rand.getBytes)return this.rand.getBytes(nt);for(var tt=new Uint8Array(nt),bt=0;bt=0);return gt},d.prototype._randrange=function(nt,tt){var bt=tt.sub(nt);return nt.add(this._randbelow(bt))},d.prototype.test=function(nt,tt,bt){var gt=nt.bitLength(),wt=c.mont(nt),St=new c(1).toRed(wt);tt||(tt=Math.max(1,gt/48|0));for(var Mt=nt.subn(1),_t=0;!Mt.testn(_t);_t++);for(var Tt=nt.shrn(_t),Bt=Mt.toRed(wt),kt=!0;tt>0;tt--){var It=this._randrange(new c(2),Mt);bt&&bt(It);var Lt=It.toRed(wt).redPow(Tt);if(!(Lt.cmp(St)===0||Lt.cmp(Bt)===0)){for(var Ot=1;Ot<_t;Ot++){if(Lt=Lt.redSqr(),Lt.cmp(St)===0)return!1;if(Lt.cmp(Bt)===0)break}if(Ot===_t)return!1}}return kt},d.prototype.getDivisor=function(nt,tt){var bt=nt.bitLength(),gt=c.mont(nt),wt=new c(1).toRed(gt);tt||(tt=Math.max(1,bt/48|0));for(var St=nt.subn(1),Mt=0;!St.testn(Mt);Mt++);for(var _t=nt.shrn(Mt),Tt=St.toRed(gt);tt>0;tt--){var Bt=this._randrange(new c(2),St),kt=nt.gcd(Bt);if(kt.cmpn(1)!==0)return kt;var It=Bt.toRed(gt).redPow(_t);if(!(It.cmp(wt)===0||It.cmp(Tt)===0)){for(var Lt=1;LtOt;)Ft.ishrn(1);if(Ft.isEven()&&Ft.iadd(tt),Ft.testn(1)||Ft.iadd(bt),Nt.cmp(bt)){if(!Nt.cmp(gt))for(;Ft.mod(wt).cmp(St);)Ft.iadd(_t)}else for(;Ft.mod(d).cmp(Mt);)Ft.iadd(_t);if(zt=Ft.shrn(1),kt(zt)&&kt(Ft)&&It(zt)&&It(Ft)&&nt.test(zt)&&nt.test(Ft))return Ft}}return generatePrime}const modp1={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},require$$1$1={modp1,modp2,modp5,modp14,modp15,modp16,modp17,modp18};var dh,hasRequiredDh;function requireDh(){if(hasRequiredDh)return dh;hasRequiredDh=1;var c=bnExports$7,a=requireMr(),d=new a,et=new c(24),nt=new c(11),tt=new c(10),bt=new c(3),gt=new c(7),wt=requireGeneratePrime(),St=browserExports;dh=kt;function Mt(Lt,Ot){return Ot=Ot||"utf8",dist$2.Buffer.isBuffer(Lt)||(Lt=new dist$2.Buffer(Lt,Ot)),this._pub=new c(Lt),this}function _t(Lt,Ot){return Ot=Ot||"utf8",dist$2.Buffer.isBuffer(Lt)||(Lt=new dist$2.Buffer(Lt,Ot)),this._priv=new c(Lt),this}var Tt={};function Bt(Lt,Ot){var Nt=Ot.toString("hex"),Ft=[Nt,Lt.toString(16)].join("_");if(Ft in Tt)return Tt[Ft];var zt=0;if(Lt.isEven()||!wt.simpleSieve||!wt.fermatTest(Lt)||!d.test(Lt))return zt+=1,Nt==="02"||Nt==="05"?zt+=8:zt+=4,Tt[Ft]=zt,zt;d.test(Lt.shrn(1))||(zt+=2);var Vt;switch(Nt){case"02":Lt.mod(et).cmp(nt)&&(zt+=8);break;case"05":Vt=Lt.mod(tt),Vt.cmp(bt)&&Vt.cmp(gt)&&(zt+=8);break;default:zt+=4}return Tt[Ft]=zt,zt}function kt(Lt,Ot,Nt){this.setGenerator(Ot),this.__prime=new c(Lt),this._prime=c.mont(this.__prime),this._primeLen=Lt.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,Nt?(this.setPublicKey=Mt,this.setPrivateKey=_t):this._primeCode=8}Object.defineProperty(kt.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=Bt(this.__prime,this.__gen)),this._primeCode}}),kt.prototype.generateKeys=function(){return this._priv||(this._priv=new c(St(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},kt.prototype.computeSecret=function(Lt){Lt=new c(Lt),Lt=Lt.toRed(this._prime);var Ot=Lt.redPow(this._priv).fromRed(),Nt=new dist$2.Buffer(Ot.toArray()),Ft=this.getPrime();if(Nt.length"u"||!dist$2.process.version||dist$2.process.version.indexOf("v0.")===0||dist$2.process.version.indexOf("v1.")===0&&dist$2.process.version.indexOf("v1.8.")!==0?processNextickArgs.exports={nextTick}:processNextickArgs.exports=dist$2.process;function nextTick(c,a,d,et){if(typeof c!="function")throw new TypeError('"callback" argument must be a function');var nt=arguments.length,tt,bt;switch(nt){case 0:case 1:return dist$2.process.nextTick(c);case 2:return dist$2.process.nextTick(function(){c.call(null,a)});case 3:return dist$2.process.nextTick(function(){c.call(null,a,d)});case 4:return dist$2.process.nextTick(function(){c.call(null,a,d,et)});default:for(tt=new Array(nt-1),bt=0;bt"u"}util$2.isPrimitive=isPrimitive;util$2.isBuffer=bufferPolyfill.Buffer.isBuffer;function objectToString(c){return Object.prototype.toString.call(c)}var BufferList={exports:{}},hasRequiredBufferList;function requireBufferList(){return hasRequiredBufferList||(hasRequiredBufferList=1,function(c){function a(tt,bt){if(!(tt instanceof bt))throw new TypeError("Cannot call a class as a function")}var d=safeBufferExports.Buffer,et=util$3;function nt(tt,bt,gt){tt.copy(bt,gt)}c.exports=function(){function tt(){a(this,tt),this.head=null,this.tail=null,this.length=0}return tt.prototype.push=function(gt){var wt={data:gt,next:null};this.length>0?this.tail.next=wt:this.head=wt,this.tail=wt,++this.length},tt.prototype.unshift=function(gt){var wt={data:gt,next:this.head};this.length===0&&(this.tail=wt),this.head=wt,++this.length},tt.prototype.shift=function(){if(this.length!==0){var gt=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,gt}},tt.prototype.clear=function(){this.head=this.tail=null,this.length=0},tt.prototype.join=function(gt){if(this.length===0)return"";for(var wt=this.head,St=""+wt.data;wt=wt.next;)St+=gt+wt.data;return St},tt.prototype.concat=function(gt){if(this.length===0)return d.alloc(0);for(var wt=d.allocUnsafe(gt>>>0),St=this.head,Mt=0;St;)nt(St.data,wt,Mt),Mt+=St.data.length,St=St.next;return wt},tt}(),et&&et.inspect&&et.inspect.custom&&(c.exports.prototype[et.inspect.custom]=function(){var tt=et.inspect({length:this.length});return this.constructor.name+" "+tt})}(BufferList)),BufferList.exports}var pna=processNextickArgsExports;function destroy(c,a){var d=this,et=this._readableState&&this._readableState.destroyed,nt=this._writableState&&this._writableState.destroyed;return et||nt?(a?a(c):c&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,pna.nextTick(emitErrorNT,this,c)):pna.nextTick(emitErrorNT,this,c)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(c||null,function(tt){!a&&tt?d._writableState?d._writableState.errorEmitted||(d._writableState.errorEmitted=!0,pna.nextTick(emitErrorNT,d,tt)):pna.nextTick(emitErrorNT,d,tt):a&&a(tt)}),this)}function undestroy(){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)}function emitErrorNT(c,a){c.emit("error",a)}var destroy_1={destroy,undestroy},_stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1;var c=processNextickArgsExports;_stream_writable=It;function a(At){var Pt=this;this.next=null,this.entry=null,this.finish=function(){Et(Pt,At)}}var d=!dist$2.process.browser&&["v0.10","v0.9."].indexOf(dist$2.process.version.slice(0,5))>-1?setImmediate:c.nextTick,et;It.WritableState=Bt;var nt=Object.create(util$2);nt.inherits=inherits_browserExports;var tt={deprecate:browser$a},bt=streamBrowser,gt=safeBufferExports.Buffer,wt=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function St(At){return gt.from(At)}function Mt(At){return gt.isBuffer(At)||At instanceof wt}var _t=destroy_1;nt.inherits(It,bt);function Tt(){}function Bt(At,Pt){et=et||require_stream_duplex(),At=At||{};var xt=Pt instanceof et;this.objectMode=!!At.objectMode,xt&&(this.objectMode=this.objectMode||!!At.writableObjectMode);var ht=At.highWaterMark,$t=At.writableHighWaterMark,Rt=this.objectMode?16:16*1024;ht||ht===0?this.highWaterMark=ht:xt&&($t||$t===0)?this.highWaterMark=$t:this.highWaterMark=Rt,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Dt=At.decodeStrings===!1;this.decodeStrings=!Dt,this.defaultEncoding=At.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ht){ir(Pt,Ht)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}Bt.prototype.getBuffer=function(){for(var Pt=this.bufferedRequest,xt=[];Pt;)xt.push(Pt),Pt=Pt.next;return xt},function(){try{Object.defineProperty(Bt.prototype,"buffer",{get:tt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var kt;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(kt=Function.prototype[Symbol.hasInstance],Object.defineProperty(It,Symbol.hasInstance,{value:function(At){return kt.call(this,At)?!0:this!==It?!1:At&&At._writableState instanceof Bt}})):kt=function(At){return At instanceof this};function It(At){if(et=et||require_stream_duplex(),!kt.call(It,this)&&!(this instanceof et))return new It(At);this._writableState=new Bt(At,this),this.writable=!0,At&&(typeof At.write=="function"&&(this._write=At.write),typeof At.writev=="function"&&(this._writev=At.writev),typeof At.destroy=="function"&&(this._destroy=At.destroy),typeof At.final=="function"&&(this._final=At.final)),bt.call(this)}It.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Lt(At,Pt){var xt=new Error("write after end");At.emit("error",xt),c.nextTick(Pt,xt)}function Ot(At,Pt,xt,ht){var $t=!0,Rt=!1;return xt===null?Rt=new TypeError("May not write null values to stream"):typeof xt!="string"&&xt!==void 0&&!Pt.objectMode&&(Rt=new TypeError("Invalid non-string/buffer chunk")),Rt&&(At.emit("error",Rt),c.nextTick(ht,Rt),$t=!1),$t}It.prototype.write=function(At,Pt,xt){var ht=this._writableState,$t=!1,Rt=!ht.objectMode&&Mt(At);return Rt&&!gt.isBuffer(At)&&(At=St(At)),typeof Pt=="function"&&(xt=Pt,Pt=null),Rt?Pt="buffer":Pt||(Pt=ht.defaultEncoding),typeof xt!="function"&&(xt=Tt),ht.ended?Lt(this,xt):(Rt||Ot(this,ht,At,xt))&&(ht.pendingcb++,$t=Ft(this,ht,Rt,At,Pt,xt)),$t},It.prototype.cork=function(){var At=this._writableState;At.corked++},It.prototype.uncork=function(){var At=this._writableState;At.corked&&(At.corked--,!At.writing&&!At.corked&&!At.bufferProcessing&&At.bufferedRequest&&lr(this,At))},It.prototype.setDefaultEncoding=function(Pt){if(typeof Pt=="string"&&(Pt=Pt.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Pt+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Pt);return this._writableState.defaultEncoding=Pt,this};function Nt(At,Pt,xt){return!At.objectMode&&At.decodeStrings!==!1&&typeof Pt=="string"&&(Pt=gt.from(Pt,xt)),Pt}Object.defineProperty(It.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ft(At,Pt,xt,ht,$t,Rt){if(!xt){var Dt=Nt(Pt,ht,$t);ht!==Dt&&(xt=!0,$t="buffer",ht=Dt)}var Ht=Pt.objectMode?1:ht.length;Pt.length+=Ht;var tr=Pt.length0?(typeof qt!="string"&&!Kt.objectMode&&Object.getPrototypeOf(qt)!==tt.prototype&&(qt=gt(qt)),Zt?Kt.endEmitted?Ut.emit("error",new Error("stream.unshift() after end event")):zt(Ut,Kt,qt,!0):Kt.ended?Ut.emit("error",new Error("stream.push() after EOF")):(Kt.reading=!1,Kt.decoder&&!Gt?(qt=Kt.decoder.write(qt),Kt.objectMode||qt.length!==0?zt(Ut,Kt,qt,!1):mt(Ut,Kt)):zt(Ut,Kt,qt,!1))):Zt||(Kt.reading=!1)}return Jt(Kt)}function zt(Ut,qt,Gt,Zt){qt.flowing&&qt.length===0&&!qt.sync?(Ut.emit("data",Gt),Ut.read(0)):(qt.length+=qt.objectMode?1:Gt.length,Zt?qt.buffer.unshift(Gt):qt.buffer.push(Gt),qt.needReadable&&Ct(Ut)),mt(Ut,qt)}function Vt(Ut,qt){var Gt;return!wt(qt)&&typeof qt!="string"&&qt!==void 0&&!Ut.objectMode&&(Gt=new TypeError("Invalid non-string/buffer chunk")),Gt}function Jt(Ut){return!Ut.ended&&(Ut.needReadable||Ut.length=ir?Ut=ir:(Ut--,Ut|=Ut>>>1,Ut|=Ut>>>2,Ut|=Ut>>>4,Ut|=Ut>>>8,Ut|=Ut>>>16,Ut++),Ut}function er(Ut,qt){return Ut<=0||qt.length===0&&qt.ended?0:qt.objectMode?1:Ut!==Ut?qt.flowing&&qt.length?qt.buffer.head.data.length:qt.length:(Ut>qt.highWaterMark&&(qt.highWaterMark=rr(Ut)),Ut<=qt.length?Ut:qt.ended?qt.length:(qt.needReadable=!0,0))}Nt.prototype.read=function(Ut){_t("read",Ut),Ut=parseInt(Ut,10);var qt=this._readableState,Gt=Ut;if(Ut!==0&&(qt.emittedReadable=!1),Ut===0&&qt.needReadable&&(qt.length>=qt.highWaterMark||qt.ended))return _t("read: emitReadable",qt.length,qt.ended),qt.length===0&&qt.ended?Ht(this):Ct(this),null;if(Ut=er(Ut,qt),Ut===0&&qt.ended)return qt.length===0&&Ht(this),null;var Zt=qt.needReadable;_t("need readable",Zt),(qt.length===0||qt.length-Ut0?Yt=ht(Ut,qt):Yt=null,Yt===null?(qt.needReadable=!0,Ut=0):qt.length-=Ut,qt.length===0&&(qt.ended||(qt.needReadable=!0),Gt!==Ut&&qt.ended&&Ht(this)),Yt!==null&&this.emit("data",Yt),Yt};function lr(Ut,qt){if(!qt.ended){if(qt.decoder){var Gt=qt.decoder.end();Gt&&Gt.length&&(qt.buffer.push(Gt),qt.length+=qt.objectMode?1:Gt.length)}qt.ended=!0,Ct(Ut)}}function Ct(Ut){var qt=Ut._readableState;qt.needReadable=!1,qt.emittedReadable||(_t("emitReadable",qt.flowing),qt.emittedReadable=!0,qt.sync?c.nextTick(dt,Ut):dt(Ut))}function dt(Ut){_t("emit readable"),Ut.emit("readable"),xt(Ut)}function mt(Ut,qt){qt.readingMore||(qt.readingMore=!0,c.nextTick(yt,Ut,qt))}function yt(Ut,qt){for(var Gt=qt.length;!qt.reading&&!qt.flowing&&!qt.ended&&qt.length1&&Xt(Zt.pipes,Ut)!==-1)&&!ur&&(_t("false write response, pause",Zt.awaitDrain),Zt.awaitDrain++,br=!0),Gt.pause())}function Kr($r){_t("onerror",$r),Zr(),Ut.removeListener("error",Kr),et(Ut,"error")===0&&Ut.emit("error",$r)}Lt(Ut,"error",Kr);function xr(){Ut.removeListener("finish",Sr),Zr()}Ut.once("close",xr);function Sr(){_t("onfinish"),Ut.removeListener("close",xr),Zr()}Ut.once("finish",Sr);function Zr(){_t("unpipe"),Gt.unpipe(Ut)}return Ut.emit("pipe",Gt),Zt.flowing||(_t("pipe resume"),Gt.resume()),Ut};function vt(Ut){return function(){var qt=Ut._readableState;_t("pipeOnDrain",qt.awaitDrain),qt.awaitDrain&&qt.awaitDrain--,qt.awaitDrain===0&&et(Ut,"data")&&(qt.flowing=!0,xt(Ut))}}Nt.prototype.unpipe=function(Ut){var qt=this._readableState,Gt={hasUnpiped:!1};if(qt.pipesCount===0)return this;if(qt.pipesCount===1)return Ut&&Ut!==qt.pipes?this:(Ut||(Ut=qt.pipes),qt.pipes=null,qt.pipesCount=0,qt.flowing=!1,Ut&&Ut.emit("unpipe",this,Gt),this);if(!Ut){var Zt=qt.pipes,Yt=qt.pipesCount;qt.pipes=null,qt.pipesCount=0,qt.flowing=!1;for(var Kt=0;Kt=qt.length?(qt.decoder?Gt=qt.buffer.join(""):qt.buffer.length===1?Gt=qt.buffer.head.data:Gt=qt.buffer.concat(qt.length),qt.buffer.clear()):Gt=$t(Ut,qt.buffer,qt.decoder),Gt}function $t(Ut,qt,Gt){var Zt;return UtKt.length?Kt.length:Ut;if(ar===Kt.length?Yt+=Kt:Yt+=Kt.slice(0,Ut),Ut-=ar,Ut===0){ar===Kt.length?(++Zt,Gt.next?qt.head=Gt.next:qt.head=qt.tail=null):(qt.head=Gt,Gt.data=Kt.slice(ar));break}++Zt}return qt.length-=Zt,Yt}function Dt(Ut,qt){var Gt=tt.allocUnsafe(Ut),Zt=qt.head,Yt=1;for(Zt.data.copy(Gt),Ut-=Zt.data.length;Zt=Zt.next;){var Kt=Zt.data,ar=Ut>Kt.length?Kt.length:Ut;if(Kt.copy(Gt,Gt.length-Ut,0,ar),Ut-=ar,Ut===0){ar===Kt.length?(++Yt,Zt.next?qt.head=Zt.next:qt.head=qt.tail=null):(qt.head=Zt,Zt.data=Kt.slice(ar));break}++Yt}return qt.length-=Yt,Gt}function Ht(Ut){var qt=Ut._readableState;if(qt.length>0)throw new Error('"endReadable()" called on non-empty stream');qt.endEmitted||(qt.ended=!0,c.nextTick(tr,qt,Ut))}function tr(Ut,qt){!Ut.endEmitted&&Ut.length===0&&(Ut.endEmitted=!0,qt.readable=!1,qt.emit("end"))}function Xt(Ut,qt){for(var Gt=0,Zt=Ut.length;Gt0?yt:vt},tt.min=function(yt,vt){return yt.cmp(vt)<0?yt:vt},tt.prototype._init=function(yt,vt,Et){if(typeof yt=="number")return this._initNumber(yt,vt,Et);if(typeof yt=="object")return this._initArray(yt,vt,Et);vt==="hex"&&(vt=16),et(vt===(vt|0)&&vt>=2&&vt<=36),yt=yt.toString().replace(/\s+/g,"");var At=0;yt[0]==="-"&&(At++,this.negative=1),At=0;At-=3)xt=yt[At]|yt[At-1]<<8|yt[At-2]<<16,this.words[Pt]|=xt<>>26-ht&67108863,ht+=24,ht>=26&&(ht-=26,Pt++);else if(Et==="le")for(At=0,Pt=0;At>>26-ht&67108863,ht+=24,ht>=26&&(ht-=26,Pt++);return this._strip()};function gt(mt,yt){var vt=mt.charCodeAt(yt);if(vt>=48&&vt<=57)return vt-48;if(vt>=65&&vt<=70)return vt-55;if(vt>=97&&vt<=102)return vt-87;et(!1,"Invalid character in "+mt)}function wt(mt,yt,vt){var Et=gt(mt,vt);return vt-1>=yt&&(Et|=gt(mt,vt-1)<<4),Et}tt.prototype._parseHex=function(yt,vt,Et){this.length=Math.ceil((yt.length-vt)/6),this.words=new Array(this.length);for(var At=0;At=vt;At-=2)ht=wt(yt,vt,At)<=18?(Pt-=18,xt+=1,this.words[xt]|=ht>>>26):Pt+=8;else{var $t=yt.length-vt;for(At=$t%2===0?vt+1:vt;At=18?(Pt-=18,xt+=1,this.words[xt]|=ht>>>26):Pt+=8}this._strip()};function St(mt,yt,vt,Et){for(var At=0,Pt=0,xt=Math.min(mt.length,vt),ht=yt;ht=49?Pt=$t-49+10:$t>=17?Pt=$t-17+10:Pt=$t,et($t>=0&&Pt1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},tt.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{tt.prototype[Symbol.for("nodejs.util.inspect.custom")]=_t}catch{tt.prototype.inspect=_t}else tt.prototype.inspect=_t;function _t(){return(this.red?""}var Tt=["","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"],Bt=[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],kt=[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];tt.prototype.toString=function(yt,vt){yt=yt||10,vt=vt|0||1;var Et;if(yt===16||yt==="hex"){Et="";for(var At=0,Pt=0,xt=0;xt>>24-At&16777215,At+=2,At>=26&&(At-=26,xt--),Pt!==0||xt!==this.length-1?Et=Tt[6-$t.length]+$t+Et:Et=$t+Et}for(Pt!==0&&(Et=Pt.toString(16)+Et);Et.length%vt!==0;)Et="0"+Et;return this.negative!==0&&(Et="-"+Et),Et}if(yt===(yt|0)&&yt>=2&&yt<=36){var Rt=Bt[yt],Dt=kt[yt];Et="";var Ht=this.clone();for(Ht.negative=0;!Ht.isZero();){var tr=Ht.modrn(Dt).toString(yt);Ht=Ht.idivn(Dt),Ht.isZero()?Et=tr+Et:Et=Tt[Rt-tr.length]+tr+Et}for(this.isZero()&&(Et="0"+Et);Et.length%vt!==0;)Et="0"+Et;return this.negative!==0&&(Et="-"+Et),Et}et(!1,"Base should be between 2 and 36")},tt.prototype.toNumber=function(){var yt=this.words[0];return this.length===2?yt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?yt+=4503599627370496+this.words[1]*67108864:this.length>2&&et(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-yt:yt},tt.prototype.toJSON=function(){return this.toString(16,2)},bt&&(tt.prototype.toBuffer=function(yt,vt){return this.toArrayLike(bt,yt,vt)}),tt.prototype.toArray=function(yt,vt){return this.toArrayLike(Array,yt,vt)};var It=function(yt,vt){return yt.allocUnsafe?yt.allocUnsafe(vt):new yt(vt)};tt.prototype.toArrayLike=function(yt,vt,Et){this._strip();var At=this.byteLength(),Pt=Et||Math.max(1,At);et(At<=Pt,"byte array longer than desired length"),et(Pt>0,"Requested array length <= 0");var xt=It(yt,Pt),ht=vt==="le"?"LE":"BE";return this["_toArrayLike"+ht](xt,At),xt},tt.prototype._toArrayLikeLE=function(yt,vt){for(var Et=0,At=0,Pt=0,xt=0;Pt>8&255),Et>16&255),xt===6?(Et>24&255),At=0,xt=0):(At=ht>>>24,xt+=2)}if(Et=0&&(yt[Et--]=ht>>8&255),Et>=0&&(yt[Et--]=ht>>16&255),xt===6?(Et>=0&&(yt[Et--]=ht>>24&255),At=0,xt=0):(At=ht>>>24,xt+=2)}if(Et>=0)for(yt[Et--]=At;Et>=0;)yt[Et--]=0},Math.clz32?tt.prototype._countBits=function(yt){return 32-Math.clz32(yt)}:tt.prototype._countBits=function(yt){var vt=yt,Et=0;return vt>=4096&&(Et+=13,vt>>>=13),vt>=64&&(Et+=7,vt>>>=7),vt>=8&&(Et+=4,vt>>>=4),vt>=2&&(Et+=2,vt>>>=2),Et+vt},tt.prototype._zeroBits=function(yt){if(yt===0)return 26;var vt=yt,Et=0;return vt&8191||(Et+=13,vt>>>=13),vt&127||(Et+=7,vt>>>=7),vt&15||(Et+=4,vt>>>=4),vt&3||(Et+=2,vt>>>=2),vt&1||Et++,Et},tt.prototype.bitLength=function(){var yt=this.words[this.length-1],vt=this._countBits(yt);return(this.length-1)*26+vt};function Lt(mt){for(var yt=new Array(mt.bitLength()),vt=0;vt>>At&1}return yt}tt.prototype.zeroBits=function(){if(this.isZero())return 0;for(var yt=0,vt=0;vtyt.length?this.clone().ior(yt):yt.clone().ior(this)},tt.prototype.uor=function(yt){return this.length>yt.length?this.clone().iuor(yt):yt.clone().iuor(this)},tt.prototype.iuand=function(yt){var vt;this.length>yt.length?vt=yt:vt=this;for(var Et=0;Etyt.length?this.clone().iand(yt):yt.clone().iand(this)},tt.prototype.uand=function(yt){return this.length>yt.length?this.clone().iuand(yt):yt.clone().iuand(this)},tt.prototype.iuxor=function(yt){var vt,Et;this.length>yt.length?(vt=this,Et=yt):(vt=yt,Et=this);for(var At=0;Atyt.length?this.clone().ixor(yt):yt.clone().ixor(this)},tt.prototype.uxor=function(yt){return this.length>yt.length?this.clone().iuxor(yt):yt.clone().iuxor(this)},tt.prototype.inotn=function(yt){et(typeof yt=="number"&&yt>=0);var vt=Math.ceil(yt/26)|0,Et=yt%26;this._expand(vt),Et>0&&vt--;for(var At=0;At0&&(this.words[At]=~this.words[At]&67108863>>26-Et),this._strip()},tt.prototype.notn=function(yt){return this.clone().inotn(yt)},tt.prototype.setn=function(yt,vt){et(typeof yt=="number"&&yt>=0);var Et=yt/26|0,At=yt%26;return this._expand(Et+1),vt?this.words[Et]=this.words[Et]|1<yt.length?(Et=this,At=yt):(Et=yt,At=this);for(var Pt=0,xt=0;xt>>26;for(;Pt!==0&&xt>>26;if(this.length=Et.length,Pt!==0)this.words[this.length]=Pt,this.length++;else if(Et!==this)for(;xtyt.length?this.clone().iadd(yt):yt.clone().iadd(this)},tt.prototype.isub=function(yt){if(yt.negative!==0){yt.negative=0;var vt=this.iadd(yt);return yt.negative=1,vt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(yt),this.negative=1,this._normSign();var Et=this.cmp(yt);if(Et===0)return this.negative=0,this.length=1,this.words[0]=0,this;var At,Pt;Et>0?(At=this,Pt=yt):(At=yt,Pt=this);for(var xt=0,ht=0;ht>26,this.words[ht]=vt&67108863;for(;xt!==0&&ht>26,this.words[ht]=vt&67108863;if(xt===0&&ht>>26,Ht=$t&67108863,tr=Math.min(Rt,yt.length-1),Xt=Math.max(0,Rt-mt.length+1);Xt<=tr;Xt++){var Ut=Rt-Xt|0;At=mt.words[Ut]|0,Pt=yt.words[Xt]|0,xt=At*Pt+Ht,Dt+=xt/67108864|0,Ht=xt&67108863}vt.words[Rt]=Ht|0,$t=Dt|0}return $t!==0?vt.words[Rt]=$t|0:vt.length--,vt._strip()}var Nt=function(yt,vt,Et){var At=yt.words,Pt=vt.words,xt=Et.words,ht=0,$t,Rt,Dt,Ht=At[0]|0,tr=Ht&8191,Xt=Ht>>>13,Ut=At[1]|0,qt=Ut&8191,Gt=Ut>>>13,Zt=At[2]|0,Yt=Zt&8191,Kt=Zt>>>13,ar=At[3]|0,gr=ar&8191,cr=ar>>>13,ur=At[4]|0,Pr=ur&8191,br=ur>>>13,dr=At[5]|0,Kr=dr&8191,xr=dr>>>13,Sr=At[6]|0,Zr=Sr&8191,$r=Sr>>>13,Mr=At[7]|0,Xr=Mr&8191,Qt=Mr>>>13,jt=At[8]|0,Wt=jt&8191,nr=jt>>>13,fr=At[9]|0,Er=fr&8191,pr=fr>>>13,vr=Pt[0]|0,Jr=vr&8191,wr=vr>>>13,Ar=Pt[1]|0,Yr=Ar&8191,Cr=Ar>>>13,Or=Pt[2]|0,Qr=Or&8191,_r=Or>>>13,Dr=Pt[3]|0,r0=Dr&8191,Tr=Dr>>>13,Lr=Pt[4]|0,n0=Lr&8191,Br=Lr>>>13,Fr=Pt[5]|0,i0=Fr&8191,Rr=Fr>>>13,jr=Pt[6]|0,a0=jr&8191,kr=jr>>>13,Ur=Pt[7]|0,s0=Ur&8191,Ir=Ur>>>13,Hr=Pt[8]|0,o0=Hr&8191,Nr=Hr>>>13,qr=Pt[9]|0,e0=qr&8191,t0=qr>>>13;Et.negative=yt.negative^vt.negative,Et.length=19,$t=Math.imul(tr,Jr),Rt=Math.imul(tr,wr),Rt=Rt+Math.imul(Xt,Jr)|0,Dt=Math.imul(Xt,wr);var f0=(ht+$t|0)+((Rt&8191)<<13)|0;ht=(Dt+(Rt>>>13)|0)+(f0>>>26)|0,f0&=67108863,$t=Math.imul(qt,Jr),Rt=Math.imul(qt,wr),Rt=Rt+Math.imul(Gt,Jr)|0,Dt=Math.imul(Gt,wr),$t=$t+Math.imul(tr,Yr)|0,Rt=Rt+Math.imul(tr,Cr)|0,Rt=Rt+Math.imul(Xt,Yr)|0,Dt=Dt+Math.imul(Xt,Cr)|0;var c0=(ht+$t|0)+((Rt&8191)<<13)|0;ht=(Dt+(Rt>>>13)|0)+(c0>>>26)|0,c0&=67108863,$t=Math.imul(Yt,Jr),Rt=Math.imul(Yt,wr),Rt=Rt+Math.imul(Kt,Jr)|0,Dt=Math.imul(Kt,wr),$t=$t+Math.imul(qt,Yr)|0,Rt=Rt+Math.imul(qt,Cr)|0,Rt=Rt+Math.imul(Gt,Yr)|0,Dt=Dt+Math.imul(Gt,Cr)|0,$t=$t+Math.imul(tr,Qr)|0,Rt=Rt+Math.imul(tr,_r)|0,Rt=Rt+Math.imul(Xt,Qr)|0,Dt=Dt+Math.imul(Xt,_r)|0;var l0=(ht+$t|0)+((Rt&8191)<<13)|0;ht=(Dt+(Rt>>>13)|0)+(l0>>>26)|0,l0&=67108863,$t=Math.imul(gr,Jr),Rt=Math.imul(gr,wr),Rt=Rt+Math.imul(cr,Jr)|0,Dt=Math.imul(cr,wr),$t=$t+Math.imul(Yt,Yr)|0,Rt=Rt+Math.imul(Yt,Cr)|0,Rt=Rt+Math.imul(Kt,Yr)|0,Dt=Dt+Math.imul(Kt,Cr)|0,$t=$t+Math.imul(qt,Qr)|0,Rt=Rt+Math.imul(qt,_r)|0,Rt=Rt+Math.imul(Gt,Qr)|0,Dt=Dt+Math.imul(Gt,_r)|0,$t=$t+Math.imul(tr,r0)|0,Rt=Rt+Math.imul(tr,Tr)|0,Rt=Rt+Math.imul(Xt,r0)|0,Dt=Dt+Math.imul(Xt,Tr)|0;var u0=(ht+$t|0)+((Rt&8191)<<13)|0;ht=(Dt+(Rt>>>13)|0)+(u0>>>26)|0,u0&=67108863,$t=Math.imul(Pr,Jr),Rt=Math.imul(Pr,wr),Rt=Rt+Math.imul(br,Jr)|0,Dt=Math.imul(br,wr),$t=$t+Math.imul(gr,Yr)|0,Rt=Rt+Math.imul(gr,Cr)|0,Rt=Rt+Math.imul(cr,Yr)|0,Dt=Dt+Math.imul(cr,Cr)|0,$t=$t+Math.imul(Yt,Qr)|0,Rt=Rt+Math.imul(Yt,_r)|0,Rt=Rt+Math.imul(Kt,Qr)|0,Dt=Dt+Math.imul(Kt,_r)|0,$t=$t+Math.imul(qt,r0)|0,Rt=Rt+Math.imul(qt,Tr)|0,Rt=Rt+Math.imul(Gt,r0)|0,Dt=Dt+Math.imul(Gt,Tr)|0,$t=$t+Math.imul(tr,n0)|0,Rt=Rt+Math.imul(tr,Br)|0,Rt=Rt+Math.imul(Xt,n0)|0,Dt=Dt+Math.imul(Xt,Br)|0;var d0=(ht+$t|0)+((Rt&8191)<<13)|0;ht=(Dt+(Rt>>>13)|0)+(d0>>>26)|0,d0&=67108863,$t=Math.imul(Kr,Jr),Rt=Math.imul(Kr,wr),Rt=Rt+Math.imul(xr,Jr)|0,Dt=Math.imul(xr,wr),$t=$t+Math.imul(Pr,Yr)|0,Rt=Rt+Math.imul(Pr,Cr)|0,Rt=Rt+Math.imul(br,Yr)|0,Dt=Dt+Math.imul(br,Cr)|0,$t=$t+Math.imul(gr,Qr)|0,Rt=Rt+Math.imul(gr,_r)|0,Rt=Rt+Math.imul(cr,Qr)|0,Dt=Dt+Math.imul(cr,_r)|0,$t=$t+Math.imul(Yt,r0)|0,Rt=Rt+Math.imul(Yt,Tr)|0,Rt=Rt+Math.imul(Kt,r0)|0,Dt=Dt+Math.imul(Kt,Tr)|0,$t=$t+Math.imul(qt,n0)|0,Rt=Rt+Math.imul(qt,Br)|0,Rt=Rt+Math.imul(Gt,n0)|0,Dt=Dt+Math.imul(Gt,Br)|0,$t=$t+Math.imul(tr,i0)|0,Rt=Rt+Math.imul(tr,Rr)|0,Rt=Rt+Math.imul(Xt,i0)|0,Dt=Dt+Math.imul(Xt,Rr)|0;var h0=(ht+$t|0)+((Rt&8191)<<13)|0;ht=(Dt+(Rt>>>13)|0)+(h0>>>26)|0,h0&=67108863,$t=Math.imul(Zr,Jr),Rt=Math.imul(Zr,wr),Rt=Rt+Math.imul($r,Jr)|0,Dt=Math.imul($r,wr),$t=$t+Math.imul(Kr,Yr)|0,Rt=Rt+Math.imul(Kr,Cr)|0,Rt=Rt+Math.imul(xr,Yr)|0,Dt=Dt+Math.imul(xr,Cr)|0,$t=$t+Math.imul(Pr,Qr)|0,Rt=Rt+Math.imul(Pr,_r)|0,Rt=Rt+Math.imul(br,Qr)|0,Dt=Dt+Math.imul(br,_r)|0,$t=$t+Math.imul(gr,r0)|0,Rt=Rt+Math.imul(gr,Tr)|0,Rt=Rt+Math.imul(cr,r0)|0,Dt=Dt+Math.imul(cr,Tr)|0,$t=$t+Math.imul(Yt,n0)|0,Rt=Rt+Math.imul(Yt,Br)|0,Rt=Rt+Math.imul(Kt,n0)|0,Dt=Dt+Math.imul(Kt,Br)|0,$t=$t+Math.imul(qt,i0)|0,Rt=Rt+Math.imul(qt,Rr)|0,Rt=Rt+Math.imul(Gt,i0)|0,Dt=Dt+Math.imul(Gt,Rr)|0,$t=$t+Math.imul(tr,a0)|0,Rt=Rt+Math.imul(tr,kr)|0,Rt=Rt+Math.imul(Xt,a0)|0,Dt=Dt+Math.imul(Xt,kr)|0;var p0=(ht+$t|0)+((Rt&8191)<<13)|0;ht=(Dt+(Rt>>>13)|0)+(p0>>>26)|0,p0&=67108863,$t=Math.imul(Xr,Jr),Rt=Math.imul(Xr,wr),Rt=Rt+Math.imul(Qt,Jr)|0,Dt=Math.imul(Qt,wr),$t=$t+Math.imul(Zr,Yr)|0,Rt=Rt+Math.imul(Zr,Cr)|0,Rt=Rt+Math.imul($r,Yr)|0,Dt=Dt+Math.imul($r,Cr)|0,$t=$t+Math.imul(Kr,Qr)|0,Rt=Rt+Math.imul(Kr,_r)|0,Rt=Rt+Math.imul(xr,Qr)|0,Dt=Dt+Math.imul(xr,_r)|0,$t=$t+Math.imul(Pr,r0)|0,Rt=Rt+Math.imul(Pr,Tr)|0,Rt=Rt+Math.imul(br,r0)|0,Dt=Dt+Math.imul(br,Tr)|0,$t=$t+Math.imul(gr,n0)|0,Rt=Rt+Math.imul(gr,Br)|0,Rt=Rt+Math.imul(cr,n0)|0,Dt=Dt+Math.imul(cr,Br)|0,$t=$t+Math.imul(Yt,i0)|0,Rt=Rt+Math.imul(Yt,Rr)|0,Rt=Rt+Math.imul(Kt,i0)|0,Dt=Dt+Math.imul(Kt,Rr)|0,$t=$t+Math.imul(qt,a0)|0,Rt=Rt+Math.imul(qt,kr)|0,Rt=Rt+Math.imul(Gt,a0)|0,Dt=Dt+Math.imul(Gt,kr)|0,$t=$t+Math.imul(tr,s0)|0,Rt=Rt+Math.imul(tr,Ir)|0,Rt=Rt+Math.imul(Xt,s0)|0,Dt=Dt+Math.imul(Xt,Ir)|0;var b0=(ht+$t|0)+((Rt&8191)<<13)|0;ht=(Dt+(Rt>>>13)|0)+(b0>>>26)|0,b0&=67108863,$t=Math.imul(Wt,Jr),Rt=Math.imul(Wt,wr),Rt=Rt+Math.imul(nr,Jr)|0,Dt=Math.imul(nr,wr),$t=$t+Math.imul(Xr,Yr)|0,Rt=Rt+Math.imul(Xr,Cr)|0,Rt=Rt+Math.imul(Qt,Yr)|0,Dt=Dt+Math.imul(Qt,Cr)|0,$t=$t+Math.imul(Zr,Qr)|0,Rt=Rt+Math.imul(Zr,_r)|0,Rt=Rt+Math.imul($r,Qr)|0,Dt=Dt+Math.imul($r,_r)|0,$t=$t+Math.imul(Kr,r0)|0,Rt=Rt+Math.imul(Kr,Tr)|0,Rt=Rt+Math.imul(xr,r0)|0,Dt=Dt+Math.imul(xr,Tr)|0,$t=$t+Math.imul(Pr,n0)|0,Rt=Rt+Math.imul(Pr,Br)|0,Rt=Rt+Math.imul(br,n0)|0,Dt=Dt+Math.imul(br,Br)|0,$t=$t+Math.imul(gr,i0)|0,Rt=Rt+Math.imul(gr,Rr)|0,Rt=Rt+Math.imul(cr,i0)|0,Dt=Dt+Math.imul(cr,Rr)|0,$t=$t+Math.imul(Yt,a0)|0,Rt=Rt+Math.imul(Yt,kr)|0,Rt=Rt+Math.imul(Kt,a0)|0,Dt=Dt+Math.imul(Kt,kr)|0,$t=$t+Math.imul(qt,s0)|0,Rt=Rt+Math.imul(qt,Ir)|0,Rt=Rt+Math.imul(Gt,s0)|0,Dt=Dt+Math.imul(Gt,Ir)|0,$t=$t+Math.imul(tr,o0)|0,Rt=Rt+Math.imul(tr,Nr)|0,Rt=Rt+Math.imul(Xt,o0)|0,Dt=Dt+Math.imul(Xt,Nr)|0;var m0=(ht+$t|0)+((Rt&8191)<<13)|0;ht=(Dt+(Rt>>>13)|0)+(m0>>>26)|0,m0&=67108863,$t=Math.imul(Er,Jr),Rt=Math.imul(Er,wr),Rt=Rt+Math.imul(pr,Jr)|0,Dt=Math.imul(pr,wr),$t=$t+Math.imul(Wt,Yr)|0,Rt=Rt+Math.imul(Wt,Cr)|0,Rt=Rt+Math.imul(nr,Yr)|0,Dt=Dt+Math.imul(nr,Cr)|0,$t=$t+Math.imul(Xr,Qr)|0,Rt=Rt+Math.imul(Xr,_r)|0,Rt=Rt+Math.imul(Qt,Qr)|0,Dt=Dt+Math.imul(Qt,_r)|0,$t=$t+Math.imul(Zr,r0)|0,Rt=Rt+Math.imul(Zr,Tr)|0,Rt=Rt+Math.imul($r,r0)|0,Dt=Dt+Math.imul($r,Tr)|0,$t=$t+Math.imul(Kr,n0)|0,Rt=Rt+Math.imul(Kr,Br)|0,Rt=Rt+Math.imul(xr,n0)|0,Dt=Dt+Math.imul(xr,Br)|0,$t=$t+Math.imul(Pr,i0)|0,Rt=Rt+Math.imul(Pr,Rr)|0,Rt=Rt+Math.imul(br,i0)|0,Dt=Dt+Math.imul(br,Rr)|0,$t=$t+Math.imul(gr,a0)|0,Rt=Rt+Math.imul(gr,kr)|0,Rt=Rt+Math.imul(cr,a0)|0,Dt=Dt+Math.imul(cr,kr)|0,$t=$t+Math.imul(Yt,s0)|0,Rt=Rt+Math.imul(Yt,Ir)|0,Rt=Rt+Math.imul(Kt,s0)|0,Dt=Dt+Math.imul(Kt,Ir)|0,$t=$t+Math.imul(qt,o0)|0,Rt=Rt+Math.imul(qt,Nr)|0,Rt=Rt+Math.imul(Gt,o0)|0,Dt=Dt+Math.imul(Gt,Nr)|0,$t=$t+Math.imul(tr,e0)|0,Rt=Rt+Math.imul(tr,t0)|0,Rt=Rt+Math.imul(Xt,e0)|0,Dt=Dt+Math.imul(Xt,t0)|0;var g0=(ht+$t|0)+((Rt&8191)<<13)|0;ht=(Dt+(Rt>>>13)|0)+(g0>>>26)|0,g0&=67108863,$t=Math.imul(Er,Yr),Rt=Math.imul(Er,Cr),Rt=Rt+Math.imul(pr,Yr)|0,Dt=Math.imul(pr,Cr),$t=$t+Math.imul(Wt,Qr)|0,Rt=Rt+Math.imul(Wt,_r)|0,Rt=Rt+Math.imul(nr,Qr)|0,Dt=Dt+Math.imul(nr,_r)|0,$t=$t+Math.imul(Xr,r0)|0,Rt=Rt+Math.imul(Xr,Tr)|0,Rt=Rt+Math.imul(Qt,r0)|0,Dt=Dt+Math.imul(Qt,Tr)|0,$t=$t+Math.imul(Zr,n0)|0,Rt=Rt+Math.imul(Zr,Br)|0,Rt=Rt+Math.imul($r,n0)|0,Dt=Dt+Math.imul($r,Br)|0,$t=$t+Math.imul(Kr,i0)|0,Rt=Rt+Math.imul(Kr,Rr)|0,Rt=Rt+Math.imul(xr,i0)|0,Dt=Dt+Math.imul(xr,Rr)|0,$t=$t+Math.imul(Pr,a0)|0,Rt=Rt+Math.imul(Pr,kr)|0,Rt=Rt+Math.imul(br,a0)|0,Dt=Dt+Math.imul(br,kr)|0,$t=$t+Math.imul(gr,s0)|0,Rt=Rt+Math.imul(gr,Ir)|0,Rt=Rt+Math.imul(cr,s0)|0,Dt=Dt+Math.imul(cr,Ir)|0,$t=$t+Math.imul(Yt,o0)|0,Rt=Rt+Math.imul(Yt,Nr)|0,Rt=Rt+Math.imul(Kt,o0)|0,Dt=Dt+Math.imul(Kt,Nr)|0,$t=$t+Math.imul(qt,e0)|0,Rt=Rt+Math.imul(qt,t0)|0,Rt=Rt+Math.imul(Gt,e0)|0,Dt=Dt+Math.imul(Gt,t0)|0;var y0=(ht+$t|0)+((Rt&8191)<<13)|0;ht=(Dt+(Rt>>>13)|0)+(y0>>>26)|0,y0&=67108863,$t=Math.imul(Er,Qr),Rt=Math.imul(Er,_r),Rt=Rt+Math.imul(pr,Qr)|0,Dt=Math.imul(pr,_r),$t=$t+Math.imul(Wt,r0)|0,Rt=Rt+Math.imul(Wt,Tr)|0,Rt=Rt+Math.imul(nr,r0)|0,Dt=Dt+Math.imul(nr,Tr)|0,$t=$t+Math.imul(Xr,n0)|0,Rt=Rt+Math.imul(Xr,Br)|0,Rt=Rt+Math.imul(Qt,n0)|0,Dt=Dt+Math.imul(Qt,Br)|0,$t=$t+Math.imul(Zr,i0)|0,Rt=Rt+Math.imul(Zr,Rr)|0,Rt=Rt+Math.imul($r,i0)|0,Dt=Dt+Math.imul($r,Rr)|0,$t=$t+Math.imul(Kr,a0)|0,Rt=Rt+Math.imul(Kr,kr)|0,Rt=Rt+Math.imul(xr,a0)|0,Dt=Dt+Math.imul(xr,kr)|0,$t=$t+Math.imul(Pr,s0)|0,Rt=Rt+Math.imul(Pr,Ir)|0,Rt=Rt+Math.imul(br,s0)|0,Dt=Dt+Math.imul(br,Ir)|0,$t=$t+Math.imul(gr,o0)|0,Rt=Rt+Math.imul(gr,Nr)|0,Rt=Rt+Math.imul(cr,o0)|0,Dt=Dt+Math.imul(cr,Nr)|0,$t=$t+Math.imul(Yt,e0)|0,Rt=Rt+Math.imul(Yt,t0)|0,Rt=Rt+Math.imul(Kt,e0)|0,Dt=Dt+Math.imul(Kt,t0)|0;var v0=(ht+$t|0)+((Rt&8191)<<13)|0;ht=(Dt+(Rt>>>13)|0)+(v0>>>26)|0,v0&=67108863,$t=Math.imul(Er,r0),Rt=Math.imul(Er,Tr),Rt=Rt+Math.imul(pr,r0)|0,Dt=Math.imul(pr,Tr),$t=$t+Math.imul(Wt,n0)|0,Rt=Rt+Math.imul(Wt,Br)|0,Rt=Rt+Math.imul(nr,n0)|0,Dt=Dt+Math.imul(nr,Br)|0,$t=$t+Math.imul(Xr,i0)|0,Rt=Rt+Math.imul(Xr,Rr)|0,Rt=Rt+Math.imul(Qt,i0)|0,Dt=Dt+Math.imul(Qt,Rr)|0,$t=$t+Math.imul(Zr,a0)|0,Rt=Rt+Math.imul(Zr,kr)|0,Rt=Rt+Math.imul($r,a0)|0,Dt=Dt+Math.imul($r,kr)|0,$t=$t+Math.imul(Kr,s0)|0,Rt=Rt+Math.imul(Kr,Ir)|0,Rt=Rt+Math.imul(xr,s0)|0,Dt=Dt+Math.imul(xr,Ir)|0,$t=$t+Math.imul(Pr,o0)|0,Rt=Rt+Math.imul(Pr,Nr)|0,Rt=Rt+Math.imul(br,o0)|0,Dt=Dt+Math.imul(br,Nr)|0,$t=$t+Math.imul(gr,e0)|0,Rt=Rt+Math.imul(gr,t0)|0,Rt=Rt+Math.imul(cr,e0)|0,Dt=Dt+Math.imul(cr,t0)|0;var w0=(ht+$t|0)+((Rt&8191)<<13)|0;ht=(Dt+(Rt>>>13)|0)+(w0>>>26)|0,w0&=67108863,$t=Math.imul(Er,n0),Rt=Math.imul(Er,Br),Rt=Rt+Math.imul(pr,n0)|0,Dt=Math.imul(pr,Br),$t=$t+Math.imul(Wt,i0)|0,Rt=Rt+Math.imul(Wt,Rr)|0,Rt=Rt+Math.imul(nr,i0)|0,Dt=Dt+Math.imul(nr,Rr)|0,$t=$t+Math.imul(Xr,a0)|0,Rt=Rt+Math.imul(Xr,kr)|0,Rt=Rt+Math.imul(Qt,a0)|0,Dt=Dt+Math.imul(Qt,kr)|0,$t=$t+Math.imul(Zr,s0)|0,Rt=Rt+Math.imul(Zr,Ir)|0,Rt=Rt+Math.imul($r,s0)|0,Dt=Dt+Math.imul($r,Ir)|0,$t=$t+Math.imul(Kr,o0)|0,Rt=Rt+Math.imul(Kr,Nr)|0,Rt=Rt+Math.imul(xr,o0)|0,Dt=Dt+Math.imul(xr,Nr)|0,$t=$t+Math.imul(Pr,e0)|0,Rt=Rt+Math.imul(Pr,t0)|0,Rt=Rt+Math.imul(br,e0)|0,Dt=Dt+Math.imul(br,t0)|0;var x0=(ht+$t|0)+((Rt&8191)<<13)|0;ht=(Dt+(Rt>>>13)|0)+(x0>>>26)|0,x0&=67108863,$t=Math.imul(Er,i0),Rt=Math.imul(Er,Rr),Rt=Rt+Math.imul(pr,i0)|0,Dt=Math.imul(pr,Rr),$t=$t+Math.imul(Wt,a0)|0,Rt=Rt+Math.imul(Wt,kr)|0,Rt=Rt+Math.imul(nr,a0)|0,Dt=Dt+Math.imul(nr,kr)|0,$t=$t+Math.imul(Xr,s0)|0,Rt=Rt+Math.imul(Xr,Ir)|0,Rt=Rt+Math.imul(Qt,s0)|0,Dt=Dt+Math.imul(Qt,Ir)|0,$t=$t+Math.imul(Zr,o0)|0,Rt=Rt+Math.imul(Zr,Nr)|0,Rt=Rt+Math.imul($r,o0)|0,Dt=Dt+Math.imul($r,Nr)|0,$t=$t+Math.imul(Kr,e0)|0,Rt=Rt+Math.imul(Kr,t0)|0,Rt=Rt+Math.imul(xr,e0)|0,Dt=Dt+Math.imul(xr,t0)|0;var E0=(ht+$t|0)+((Rt&8191)<<13)|0;ht=(Dt+(Rt>>>13)|0)+(E0>>>26)|0,E0&=67108863,$t=Math.imul(Er,a0),Rt=Math.imul(Er,kr),Rt=Rt+Math.imul(pr,a0)|0,Dt=Math.imul(pr,kr),$t=$t+Math.imul(Wt,s0)|0,Rt=Rt+Math.imul(Wt,Ir)|0,Rt=Rt+Math.imul(nr,s0)|0,Dt=Dt+Math.imul(nr,Ir)|0,$t=$t+Math.imul(Xr,o0)|0,Rt=Rt+Math.imul(Xr,Nr)|0,Rt=Rt+Math.imul(Qt,o0)|0,Dt=Dt+Math.imul(Qt,Nr)|0,$t=$t+Math.imul(Zr,e0)|0,Rt=Rt+Math.imul(Zr,t0)|0,Rt=Rt+Math.imul($r,e0)|0,Dt=Dt+Math.imul($r,t0)|0;var $0=(ht+$t|0)+((Rt&8191)<<13)|0;ht=(Dt+(Rt>>>13)|0)+($0>>>26)|0,$0&=67108863,$t=Math.imul(Er,s0),Rt=Math.imul(Er,Ir),Rt=Rt+Math.imul(pr,s0)|0,Dt=Math.imul(pr,Ir),$t=$t+Math.imul(Wt,o0)|0,Rt=Rt+Math.imul(Wt,Nr)|0,Rt=Rt+Math.imul(nr,o0)|0,Dt=Dt+Math.imul(nr,Nr)|0,$t=$t+Math.imul(Xr,e0)|0,Rt=Rt+Math.imul(Xr,t0)|0,Rt=Rt+Math.imul(Qt,e0)|0,Dt=Dt+Math.imul(Qt,t0)|0;var M0=(ht+$t|0)+((Rt&8191)<<13)|0;ht=(Dt+(Rt>>>13)|0)+(M0>>>26)|0,M0&=67108863,$t=Math.imul(Er,o0),Rt=Math.imul(Er,Nr),Rt=Rt+Math.imul(pr,o0)|0,Dt=Math.imul(pr,Nr),$t=$t+Math.imul(Wt,e0)|0,Rt=Rt+Math.imul(Wt,t0)|0,Rt=Rt+Math.imul(nr,e0)|0,Dt=Dt+Math.imul(nr,t0)|0;var Oo=(ht+$t|0)+((Rt&8191)<<13)|0;ht=(Dt+(Rt>>>13)|0)+(Oo>>>26)|0,Oo&=67108863,$t=Math.imul(Er,e0),Rt=Math.imul(Er,t0),Rt=Rt+Math.imul(pr,e0)|0,Dt=Math.imul(pr,t0);var Do=(ht+$t|0)+((Rt&8191)<<13)|0;return ht=(Dt+(Rt>>>13)|0)+(Do>>>26)|0,Do&=67108863,xt[0]=f0,xt[1]=c0,xt[2]=l0,xt[3]=u0,xt[4]=d0,xt[5]=h0,xt[6]=p0,xt[7]=b0,xt[8]=m0,xt[9]=g0,xt[10]=y0,xt[11]=v0,xt[12]=w0,xt[13]=x0,xt[14]=E0,xt[15]=$0,xt[16]=M0,xt[17]=Oo,xt[18]=Do,ht!==0&&(xt[19]=ht,Et.length++),Et};Math.imul||(Nt=Ot);function Ft(mt,yt,vt){vt.negative=yt.negative^mt.negative,vt.length=mt.length+yt.length;for(var Et=0,At=0,Pt=0;Pt>>26)|0,At+=xt>>>26,xt&=67108863}vt.words[Pt]=ht,Et=xt,xt=At}return Et!==0?vt.words[Pt]=Et:vt.length--,vt._strip()}function zt(mt,yt,vt){return Ft(mt,yt,vt)}tt.prototype.mulTo=function(yt,vt){var Et,At=this.length+yt.length;return this.length===10&&yt.length===10?Et=Nt(this,yt,vt):At<63?Et=Ot(this,yt,vt):At<1024?Et=Ft(this,yt,vt):Et=zt(this,yt,vt),Et},tt.prototype.mul=function(yt){var vt=new tt(null);return vt.words=new Array(this.length+yt.length),this.mulTo(yt,vt)},tt.prototype.mulf=function(yt){var vt=new tt(null);return vt.words=new Array(this.length+yt.length),zt(this,yt,vt)},tt.prototype.imul=function(yt){return this.clone().mulTo(yt,this)},tt.prototype.imuln=function(yt){var vt=yt<0;vt&&(yt=-yt),et(typeof yt=="number"),et(yt<67108864);for(var Et=0,At=0;At>=26,Et+=Pt/67108864|0,Et+=xt>>>26,this.words[At]=xt&67108863}return Et!==0&&(this.words[At]=Et,this.length++),vt?this.ineg():this},tt.prototype.muln=function(yt){return this.clone().imuln(yt)},tt.prototype.sqr=function(){return this.mul(this)},tt.prototype.isqr=function(){return this.imul(this.clone())},tt.prototype.pow=function(yt){var vt=Lt(yt);if(vt.length===0)return new tt(1);for(var Et=this,At=0;At=0);var vt=yt%26,Et=(yt-vt)/26,At=67108863>>>26-vt<<26-vt,Pt;if(vt!==0){var xt=0;for(Pt=0;Pt>>26-vt}xt&&(this.words[Pt]=xt,this.length++)}if(Et!==0){for(Pt=this.length-1;Pt>=0;Pt--)this.words[Pt+Et]=this.words[Pt];for(Pt=0;Pt=0);var At;vt?At=(vt-vt%26)/26:At=0;var Pt=yt%26,xt=Math.min((yt-Pt)/26,this.length),ht=67108863^67108863>>>Pt<xt)for(this.length-=xt,Rt=0;Rt=0&&(Dt!==0||Rt>=At);Rt--){var Ht=this.words[Rt]|0;this.words[Rt]=Dt<<26-Pt|Ht>>>Pt,Dt=Ht&ht}return $t&&Dt!==0&&($t.words[$t.length++]=Dt),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},tt.prototype.ishrn=function(yt,vt,Et){return et(this.negative===0),this.iushrn(yt,vt,Et)},tt.prototype.shln=function(yt){return this.clone().ishln(yt)},tt.prototype.ushln=function(yt){return this.clone().iushln(yt)},tt.prototype.shrn=function(yt){return this.clone().ishrn(yt)},tt.prototype.ushrn=function(yt){return this.clone().iushrn(yt)},tt.prototype.testn=function(yt){et(typeof yt=="number"&&yt>=0);var vt=yt%26,Et=(yt-vt)/26,At=1<=0);var vt=yt%26,Et=(yt-vt)/26;if(et(this.negative===0,"imaskn works only with positive numbers"),this.length<=Et)return this;if(vt!==0&&Et++,this.length=Math.min(Et,this.length),vt!==0){var At=67108863^67108863>>>vt<=67108864;vt++)this.words[vt]-=67108864,vt===this.length-1?this.words[vt+1]=1:this.words[vt+1]++;return this.length=Math.max(this.length,vt+1),this},tt.prototype.isubn=function(yt){if(et(typeof yt=="number"),et(yt<67108864),yt<0)return this.iaddn(-yt);if(this.negative!==0)return this.negative=0,this.iaddn(yt),this.negative=1,this;if(this.words[0]-=yt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var vt=0;vt>26)-($t/67108864|0),this.words[Pt+Et]=xt&67108863}for(;Pt>26,this.words[Pt+Et]=xt&67108863;if(ht===0)return this._strip();for(et(ht===-1),ht=0,Pt=0;Pt>26,this.words[Pt]=xt&67108863;return this.negative=1,this._strip()},tt.prototype._wordDiv=function(yt,vt){var Et=this.length-yt.length,At=this.clone(),Pt=yt,xt=Pt.words[Pt.length-1]|0,ht=this._countBits(xt);Et=26-ht,Et!==0&&(Pt=Pt.ushln(Et),At.iushln(Et),xt=Pt.words[Pt.length-1]|0);var $t=At.length-Pt.length,Rt;if(vt!=="mod"){Rt=new tt(null),Rt.length=$t+1,Rt.words=new Array(Rt.length);for(var Dt=0;Dt=0;tr--){var Xt=(At.words[Pt.length+tr]|0)*67108864+(At.words[Pt.length+tr-1]|0);for(Xt=Math.min(Xt/xt|0,67108863),At._ishlnsubmul(Pt,Xt,tr);At.negative!==0;)Xt--,At.negative=0,At._ishlnsubmul(Pt,1,tr),At.isZero()||(At.negative^=1);Rt&&(Rt.words[tr]=Xt)}return Rt&&Rt._strip(),At._strip(),vt!=="div"&&Et!==0&&At.iushrn(Et),{div:Rt||null,mod:At}},tt.prototype.divmod=function(yt,vt,Et){if(et(!yt.isZero()),this.isZero())return{div:new tt(0),mod:new tt(0)};var At,Pt,xt;return this.negative!==0&&yt.negative===0?(xt=this.neg().divmod(yt,vt),vt!=="mod"&&(At=xt.div.neg()),vt!=="div"&&(Pt=xt.mod.neg(),Et&&Pt.negative!==0&&Pt.iadd(yt)),{div:At,mod:Pt}):this.negative===0&&yt.negative!==0?(xt=this.divmod(yt.neg(),vt),vt!=="mod"&&(At=xt.div.neg()),{div:At,mod:xt.mod}):this.negative&yt.negative?(xt=this.neg().divmod(yt.neg(),vt),vt!=="div"&&(Pt=xt.mod.neg(),Et&&Pt.negative!==0&&Pt.isub(yt)),{div:xt.div,mod:Pt}):yt.length>this.length||this.cmp(yt)<0?{div:new tt(0),mod:this}:yt.length===1?vt==="div"?{div:this.divn(yt.words[0]),mod:null}:vt==="mod"?{div:null,mod:new tt(this.modrn(yt.words[0]))}:{div:this.divn(yt.words[0]),mod:new tt(this.modrn(yt.words[0]))}:this._wordDiv(yt,vt)},tt.prototype.div=function(yt){return this.divmod(yt,"div",!1).div},tt.prototype.mod=function(yt){return this.divmod(yt,"mod",!1).mod},tt.prototype.umod=function(yt){return this.divmod(yt,"mod",!0).mod},tt.prototype.divRound=function(yt){var vt=this.divmod(yt);if(vt.mod.isZero())return vt.div;var Et=vt.div.negative!==0?vt.mod.isub(yt):vt.mod,At=yt.ushrn(1),Pt=yt.andln(1),xt=Et.cmp(At);return xt<0||Pt===1&&xt===0?vt.div:vt.div.negative!==0?vt.div.isubn(1):vt.div.iaddn(1)},tt.prototype.modrn=function(yt){var vt=yt<0;vt&&(yt=-yt),et(yt<=67108863);for(var Et=(1<<26)%yt,At=0,Pt=this.length-1;Pt>=0;Pt--)At=(Et*At+(this.words[Pt]|0))%yt;return vt?-At:At},tt.prototype.modn=function(yt){return this.modrn(yt)},tt.prototype.idivn=function(yt){var vt=yt<0;vt&&(yt=-yt),et(yt<=67108863);for(var Et=0,At=this.length-1;At>=0;At--){var Pt=(this.words[At]|0)+Et*67108864;this.words[At]=Pt/yt|0,Et=Pt%yt}return this._strip(),vt?this.ineg():this},tt.prototype.divn=function(yt){return this.clone().idivn(yt)},tt.prototype.egcd=function(yt){et(yt.negative===0),et(!yt.isZero());var vt=this,Et=yt.clone();vt.negative!==0?vt=vt.umod(yt):vt=vt.clone();for(var At=new tt(1),Pt=new tt(0),xt=new tt(0),ht=new tt(1),$t=0;vt.isEven()&&Et.isEven();)vt.iushrn(1),Et.iushrn(1),++$t;for(var Rt=Et.clone(),Dt=vt.clone();!vt.isZero();){for(var Ht=0,tr=1;!(vt.words[0]&tr)&&Ht<26;++Ht,tr<<=1);if(Ht>0)for(vt.iushrn(Ht);Ht-- >0;)(At.isOdd()||Pt.isOdd())&&(At.iadd(Rt),Pt.isub(Dt)),At.iushrn(1),Pt.iushrn(1);for(var Xt=0,Ut=1;!(Et.words[0]&Ut)&&Xt<26;++Xt,Ut<<=1);if(Xt>0)for(Et.iushrn(Xt);Xt-- >0;)(xt.isOdd()||ht.isOdd())&&(xt.iadd(Rt),ht.isub(Dt)),xt.iushrn(1),ht.iushrn(1);vt.cmp(Et)>=0?(vt.isub(Et),At.isub(xt),Pt.isub(ht)):(Et.isub(vt),xt.isub(At),ht.isub(Pt))}return{a:xt,b:ht,gcd:Et.iushln($t)}},tt.prototype._invmp=function(yt){et(yt.negative===0),et(!yt.isZero());var vt=this,Et=yt.clone();vt.negative!==0?vt=vt.umod(yt):vt=vt.clone();for(var At=new tt(1),Pt=new tt(0),xt=Et.clone();vt.cmpn(1)>0&&Et.cmpn(1)>0;){for(var ht=0,$t=1;!(vt.words[0]&$t)&&ht<26;++ht,$t<<=1);if(ht>0)for(vt.iushrn(ht);ht-- >0;)At.isOdd()&&At.iadd(xt),At.iushrn(1);for(var Rt=0,Dt=1;!(Et.words[0]&Dt)&&Rt<26;++Rt,Dt<<=1);if(Rt>0)for(Et.iushrn(Rt);Rt-- >0;)Pt.isOdd()&&Pt.iadd(xt),Pt.iushrn(1);vt.cmp(Et)>=0?(vt.isub(Et),At.isub(Pt)):(Et.isub(vt),Pt.isub(At))}var Ht;return vt.cmpn(1)===0?Ht=At:Ht=Pt,Ht.cmpn(0)<0&&Ht.iadd(yt),Ht},tt.prototype.gcd=function(yt){if(this.isZero())return yt.abs();if(yt.isZero())return this.abs();var vt=this.clone(),Et=yt.clone();vt.negative=0,Et.negative=0;for(var At=0;vt.isEven()&&Et.isEven();At++)vt.iushrn(1),Et.iushrn(1);do{for(;vt.isEven();)vt.iushrn(1);for(;Et.isEven();)Et.iushrn(1);var Pt=vt.cmp(Et);if(Pt<0){var xt=vt;vt=Et,Et=xt}else if(Pt===0||Et.cmpn(1)===0)break;vt.isub(Et)}while(!0);return Et.iushln(At)},tt.prototype.invm=function(yt){return this.egcd(yt).a.umod(yt)},tt.prototype.isEven=function(){return(this.words[0]&1)===0},tt.prototype.isOdd=function(){return(this.words[0]&1)===1},tt.prototype.andln=function(yt){return this.words[0]&yt},tt.prototype.bincn=function(yt){et(typeof yt=="number");var vt=yt%26,Et=(yt-vt)/26,At=1<>>26,ht&=67108863,this.words[xt]=ht}return Pt!==0&&(this.words[xt]=Pt,this.length++),this},tt.prototype.isZero=function(){return this.length===1&&this.words[0]===0},tt.prototype.cmpn=function(yt){var vt=yt<0;if(this.negative!==0&&!vt)return-1;if(this.negative===0&&vt)return 1;this._strip();var Et;if(this.length>1)Et=1;else{vt&&(yt=-yt),et(yt<=67108863,"Number is too big");var At=this.words[0]|0;Et=At===yt?0:Atyt.length)return 1;if(this.length=0;Et--){var At=this.words[Et]|0,Pt=yt.words[Et]|0;if(At!==Pt){AtPt&&(vt=1);break}}return vt},tt.prototype.gtn=function(yt){return this.cmpn(yt)===1},tt.prototype.gt=function(yt){return this.cmp(yt)===1},tt.prototype.gten=function(yt){return this.cmpn(yt)>=0},tt.prototype.gte=function(yt){return this.cmp(yt)>=0},tt.prototype.ltn=function(yt){return this.cmpn(yt)===-1},tt.prototype.lt=function(yt){return this.cmp(yt)===-1},tt.prototype.lten=function(yt){return this.cmpn(yt)<=0},tt.prototype.lte=function(yt){return this.cmp(yt)<=0},tt.prototype.eqn=function(yt){return this.cmpn(yt)===0},tt.prototype.eq=function(yt){return this.cmp(yt)===0},tt.red=function(yt){return new Ct(yt)},tt.prototype.toRed=function(yt){return et(!this.red,"Already a number in reduction context"),et(this.negative===0,"red works only with positives"),yt.convertTo(this)._forceRed(yt)},tt.prototype.fromRed=function(){return et(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},tt.prototype._forceRed=function(yt){return this.red=yt,this},tt.prototype.forceRed=function(yt){return et(!this.red,"Already a number in reduction context"),this._forceRed(yt)},tt.prototype.redAdd=function(yt){return et(this.red,"redAdd works only with red numbers"),this.red.add(this,yt)},tt.prototype.redIAdd=function(yt){return et(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,yt)},tt.prototype.redSub=function(yt){return et(this.red,"redSub works only with red numbers"),this.red.sub(this,yt)},tt.prototype.redISub=function(yt){return et(this.red,"redISub works only with red numbers"),this.red.isub(this,yt)},tt.prototype.redShl=function(yt){return et(this.red,"redShl works only with red numbers"),this.red.shl(this,yt)},tt.prototype.redMul=function(yt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,yt),this.red.mul(this,yt)},tt.prototype.redIMul=function(yt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,yt),this.red.imul(this,yt)},tt.prototype.redSqr=function(){return et(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},tt.prototype.redISqr=function(){return et(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},tt.prototype.redSqrt=function(){return et(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},tt.prototype.redInvm=function(){return et(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},tt.prototype.redNeg=function(){return et(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},tt.prototype.redPow=function(yt){return et(this.red&&!yt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,yt)};var Vt={k256:null,p224:null,p192:null,p25519:null};function Jt(mt,yt){this.name=mt,this.p=new tt(yt,16),this.n=this.p.bitLength(),this.k=new tt(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Jt.prototype._tmp=function(){var yt=new tt(null);return yt.words=new Array(Math.ceil(this.n/13)),yt},Jt.prototype.ireduce=function(yt){var vt=yt,Et;do this.split(vt,this.tmp),vt=this.imulK(vt),vt=vt.iadd(this.tmp),Et=vt.bitLength();while(Et>this.n);var At=Et0?vt.isub(this.p):vt.strip!==void 0?vt.strip():vt._strip(),vt},Jt.prototype.split=function(yt,vt){yt.iushrn(this.n,0,vt)},Jt.prototype.imulK=function(yt){return yt.imul(this.k)};function ir(){Jt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}nt(ir,Jt),ir.prototype.split=function(yt,vt){for(var Et=4194303,At=Math.min(yt.length,9),Pt=0;Pt>>22,xt=ht}xt>>>=22,yt.words[Pt-10]=xt,xt===0&&yt.length>10?yt.length-=10:yt.length-=9},ir.prototype.imulK=function(yt){yt.words[yt.length]=0,yt.words[yt.length+1]=0,yt.length+=2;for(var vt=0,Et=0;Et>>=26,yt.words[Et]=Pt,vt=At}return vt!==0&&(yt.words[yt.length++]=vt),yt},tt._prime=function(yt){if(Vt[yt])return Vt[yt];var vt;if(yt==="k256")vt=new ir;else if(yt==="p224")vt=new rr;else if(yt==="p192")vt=new er;else if(yt==="p25519")vt=new lr;else throw new Error("Unknown prime "+yt);return Vt[yt]=vt,vt};function Ct(mt){if(typeof mt=="string"){var yt=tt._prime(mt);this.m=yt.p,this.prime=yt}else et(mt.gtn(1),"modulus must be greater than 1"),this.m=mt,this.prime=null}Ct.prototype._verify1=function(yt){et(yt.negative===0,"red works only with positives"),et(yt.red,"red works only with red numbers")},Ct.prototype._verify2=function(yt,vt){et((yt.negative|vt.negative)===0,"red works only with positives"),et(yt.red&&yt.red===vt.red,"red works only with red numbers")},Ct.prototype.imod=function(yt){return this.prime?this.prime.ireduce(yt)._forceRed(this):(Mt(yt,yt.umod(this.m)._forceRed(this)),yt)},Ct.prototype.neg=function(yt){return yt.isZero()?yt.clone():this.m.sub(yt)._forceRed(this)},Ct.prototype.add=function(yt,vt){this._verify2(yt,vt);var Et=yt.add(vt);return Et.cmp(this.m)>=0&&Et.isub(this.m),Et._forceRed(this)},Ct.prototype.iadd=function(yt,vt){this._verify2(yt,vt);var Et=yt.iadd(vt);return Et.cmp(this.m)>=0&&Et.isub(this.m),Et},Ct.prototype.sub=function(yt,vt){this._verify2(yt,vt);var Et=yt.sub(vt);return Et.cmpn(0)<0&&Et.iadd(this.m),Et._forceRed(this)},Ct.prototype.isub=function(yt,vt){this._verify2(yt,vt);var Et=yt.isub(vt);return Et.cmpn(0)<0&&Et.iadd(this.m),Et},Ct.prototype.shl=function(yt,vt){return this._verify1(yt),this.imod(yt.ushln(vt))},Ct.prototype.imul=function(yt,vt){return this._verify2(yt,vt),this.imod(yt.imul(vt))},Ct.prototype.mul=function(yt,vt){return this._verify2(yt,vt),this.imod(yt.mul(vt))},Ct.prototype.isqr=function(yt){return this.imul(yt,yt.clone())},Ct.prototype.sqr=function(yt){return this.mul(yt,yt)},Ct.prototype.sqrt=function(yt){if(yt.isZero())return yt.clone();var vt=this.m.andln(3);if(et(vt%2===1),vt===3){var Et=this.m.add(new tt(1)).iushrn(2);return this.pow(yt,Et)}for(var At=this.m.subn(1),Pt=0;!At.isZero()&&At.andln(1)===0;)Pt++,At.iushrn(1);et(!At.isZero());var xt=new tt(1).toRed(this),ht=xt.redNeg(),$t=this.m.subn(1).iushrn(1),Rt=this.m.bitLength();for(Rt=new tt(2*Rt*Rt).toRed(this);this.pow(Rt,$t).cmp(ht)!==0;)Rt.redIAdd(ht);for(var Dt=this.pow(Rt,At),Ht=this.pow(yt,At.addn(1).iushrn(1)),tr=this.pow(yt,At),Xt=Pt;tr.cmp(xt)!==0;){for(var Ut=tr,qt=0;Ut.cmp(xt)!==0;qt++)Ut=Ut.redSqr();et(qt=0;Pt--){for(var Dt=vt.words[Pt],Ht=Rt-1;Ht>=0;Ht--){var tr=Dt>>Ht&1;if(xt!==At[0]&&(xt=this.sqr(xt)),tr===0&&ht===0){$t=0;continue}ht<<=1,ht|=tr,$t++,!($t!==Et&&(Pt!==0||Ht!==0))&&(xt=this.mul(xt,At[ht]),$t=0,ht=0)}Rt=26}return xt},Ct.prototype.convertTo=function(yt){var vt=yt.umod(this.m);return vt===yt?vt.clone():vt},Ct.prototype.convertFrom=function(yt){var vt=yt.clone();return vt.red=null,vt},tt.mont=function(yt){return new dt(yt)};function dt(mt){Ct.call(this,mt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new tt(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)}nt(dt,Ct),dt.prototype.convertTo=function(yt){return this.imod(yt.ushln(this.shift))},dt.prototype.convertFrom=function(yt){var vt=this.imod(yt.mul(this.rinv));return vt.red=null,vt},dt.prototype.imul=function(yt,vt){if(yt.isZero()||vt.isZero())return yt.words[0]=0,yt.length=1,yt;var Et=yt.imul(vt),At=Et.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Pt=Et.isub(At).iushrn(this.shift),xt=Pt;return Pt.cmp(this.m)>=0?xt=Pt.isub(this.m):Pt.cmpn(0)<0&&(xt=Pt.iadd(this.m)),xt._forceRed(this)},dt.prototype.mul=function(yt,vt){if(yt.isZero()||vt.isZero())return new tt(0)._forceRed(this);var Et=yt.mul(vt),At=Et.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Pt=Et.isub(At).iushrn(this.shift),xt=Pt;return Pt.cmp(this.m)>=0?xt=Pt.isub(this.m):Pt.cmpn(0)<0&&(xt=Pt.iadd(this.m)),xt._forceRed(this)},dt.prototype.invm=function(yt){var vt=this.imod(yt._invmp(this.m).mul(this.r2));return vt._forceRed(this)}})(c,commonjsGlobal)})(bn$5);var bnExports$5=bn$5.exports,BN$h=bnExports$5,randomBytes$2=browserExports;function blind(c){var a=getr(c),d=a.toRed(BN$h.mont(c.modulus)).redPow(new BN$h(c.publicExponent)).fromRed();return{blinder:d,unblinder:a.invm(c.modulus)}}function getr(c){var a=c.modulus.byteLength(),d;do d=new BN$h(randomBytes$2(a));while(d.cmp(c.modulus)>=0||!d.umod(c.prime1)||!d.umod(c.prime2));return d}function crt$2(c,a){var d=blind(a),et=a.modulus.byteLength(),nt=new BN$h(c).mul(d.blinder).umod(a.modulus),tt=nt.toRed(BN$h.mont(a.prime1)),bt=nt.toRed(BN$h.mont(a.prime2)),gt=a.coefficient,wt=a.prime1,St=a.prime2,Mt=tt.redPow(a.exponent1).fromRed(),_t=bt.redPow(a.exponent2).fromRed(),Tt=Mt.isub(_t).imul(gt).umod(wt).imul(St);return _t.iadd(Tt).imul(d.unblinder).umod(a.modulus).toArrayLike(dist$2.Buffer,"be",et)}crt$2.getr=getr;var browserifyRsa=crt$2,elliptic$1={};const name$1="elliptic",version$3="6.5.5",description$1="EC cryptography",main$1="lib/elliptic.js",files$1=["lib"],scripts$1={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository$1={type:"git",url:"git@github.com:indutny/elliptic"},keywords$1=["EC","Elliptic","curve","Cryptography"],author$1="Fedor Indutny ",license$1="MIT",bugs$1={url:"https://github.com/indutny/elliptic/issues"},homepage$1="https://github.com/indutny/elliptic",devDependencies$1={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies$1={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},require$$0$1={name:name$1,version:version$3,description:description$1,main:main$1,files:files$1,scripts:scripts$1,repository:repository$1,keywords:keywords$1,author:author$1,license:license$1,bugs:bugs$1,homepage:homepage$1,devDependencies:devDependencies$1,dependencies:dependencies$1};var utils$y={},bn$4={exports:{}};bn$4.exports;(function(c){(function(a,d){function et(Ct,dt){if(!Ct)throw new Error(dt||"Assertion failed")}function nt(Ct,dt){Ct.super_=dt;var mt=function(){};mt.prototype=dt.prototype,Ct.prototype=new mt,Ct.prototype.constructor=Ct}function tt(Ct,dt,mt){if(tt.isBN(Ct))return Ct;this.negative=0,this.words=null,this.length=0,this.red=null,Ct!==null&&((dt==="le"||dt==="be")&&(mt=dt,dt=10),this._init(Ct||0,dt||10,mt||"be"))}typeof a=="object"?a.exports=tt:d.BN=tt,tt.BN=tt,tt.wordSize=26;var bt;try{typeof window<"u"&&typeof window.Buffer<"u"?bt=window.Buffer:bt=bufferPolyfill.Buffer}catch{}tt.isBN=function(dt){return dt instanceof tt?!0:dt!==null&&typeof dt=="object"&&dt.constructor.wordSize===tt.wordSize&&Array.isArray(dt.words)},tt.max=function(dt,mt){return dt.cmp(mt)>0?dt:mt},tt.min=function(dt,mt){return dt.cmp(mt)<0?dt:mt},tt.prototype._init=function(dt,mt,yt){if(typeof dt=="number")return this._initNumber(dt,mt,yt);if(typeof dt=="object")return this._initArray(dt,mt,yt);mt==="hex"&&(mt=16),et(mt===(mt|0)&&mt>=2&&mt<=36),dt=dt.toString().replace(/\s+/g,"");var vt=0;dt[0]==="-"&&(vt++,this.negative=1),vt=0;vt-=3)At=dt[vt]|dt[vt-1]<<8|dt[vt-2]<<16,this.words[Et]|=At<>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,Et++);else if(yt==="le")for(vt=0,Et=0;vt>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,Et++);return this.strip()};function gt(Ct,dt){var mt=Ct.charCodeAt(dt);return mt>=65&&mt<=70?mt-55:mt>=97&&mt<=102?mt-87:mt-48&15}function wt(Ct,dt,mt){var yt=gt(Ct,mt);return mt-1>=dt&&(yt|=gt(Ct,mt-1)<<4),yt}tt.prototype._parseHex=function(dt,mt,yt){this.length=Math.ceil((dt.length-mt)/6),this.words=new Array(this.length);for(var vt=0;vt=mt;vt-=2)Pt=wt(dt,mt,vt)<=18?(Et-=18,At+=1,this.words[At]|=Pt>>>26):Et+=8;else{var xt=dt.length-mt;for(vt=xt%2===0?mt+1:mt;vt=18?(Et-=18,At+=1,this.words[At]|=Pt>>>26):Et+=8}this.strip()};function St(Ct,dt,mt,yt){for(var vt=0,Et=Math.min(Ct.length,mt),At=dt;At=49?vt+=Pt-49+10:Pt>=17?vt+=Pt-17+10:vt+=Pt}return vt}tt.prototype._parseBase=function(dt,mt,yt){this.words=[0],this.length=1;for(var vt=0,Et=1;Et<=67108863;Et*=mt)vt++;vt--,Et=Et/mt|0;for(var At=dt.length-yt,Pt=At%vt,xt=Math.min(At,At-Pt)+yt,ht=0,$t=yt;$t1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},tt.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},tt.prototype.inspect=function(){return(this.red?""};var Mt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],_t=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Tt=[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];tt.prototype.toString=function(dt,mt){dt=dt||10,mt=mt|0||1;var yt;if(dt===16||dt==="hex"){yt="";for(var vt=0,Et=0,At=0;At>>24-vt&16777215,Et!==0||At!==this.length-1?yt=Mt[6-xt.length]+xt+yt:yt=xt+yt,vt+=2,vt>=26&&(vt-=26,At--)}for(Et!==0&&(yt=Et.toString(16)+yt);yt.length%mt!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}if(dt===(dt|0)&&dt>=2&&dt<=36){var ht=_t[dt],$t=Tt[dt];yt="";var Rt=this.clone();for(Rt.negative=0;!Rt.isZero();){var Dt=Rt.modn($t).toString(dt);Rt=Rt.idivn($t),Rt.isZero()?yt=Dt+yt:yt=Mt[ht-Dt.length]+Dt+yt}for(this.isZero()&&(yt="0"+yt);yt.length%mt!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}et(!1,"Base should be between 2 and 36")},tt.prototype.toNumber=function(){var dt=this.words[0];return this.length===2?dt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?dt+=4503599627370496+this.words[1]*67108864:this.length>2&&et(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-dt:dt},tt.prototype.toJSON=function(){return this.toString(16)},tt.prototype.toBuffer=function(dt,mt){return et(typeof bt<"u"),this.toArrayLike(bt,dt,mt)},tt.prototype.toArray=function(dt,mt){return this.toArrayLike(Array,dt,mt)},tt.prototype.toArrayLike=function(dt,mt,yt){var vt=this.byteLength(),Et=yt||Math.max(1,vt);et(vt<=Et,"byte array longer than desired length"),et(Et>0,"Requested array length <= 0"),this.strip();var At=mt==="le",Pt=new dt(Et),xt,ht,$t=this.clone();if(At){for(ht=0;!$t.isZero();ht++)xt=$t.andln(255),$t.iushrn(8),Pt[ht]=xt;for(;ht=4096&&(yt+=13,mt>>>=13),mt>=64&&(yt+=7,mt>>>=7),mt>=8&&(yt+=4,mt>>>=4),mt>=2&&(yt+=2,mt>>>=2),yt+mt},tt.prototype._zeroBits=function(dt){if(dt===0)return 26;var mt=dt,yt=0;return mt&8191||(yt+=13,mt>>>=13),mt&127||(yt+=7,mt>>>=7),mt&15||(yt+=4,mt>>>=4),mt&3||(yt+=2,mt>>>=2),mt&1||yt++,yt},tt.prototype.bitLength=function(){var dt=this.words[this.length-1],mt=this._countBits(dt);return(this.length-1)*26+mt};function Bt(Ct){for(var dt=new Array(Ct.bitLength()),mt=0;mt>>vt}return dt}tt.prototype.zeroBits=function(){if(this.isZero())return 0;for(var dt=0,mt=0;mtdt.length?this.clone().ior(dt):dt.clone().ior(this)},tt.prototype.uor=function(dt){return this.length>dt.length?this.clone().iuor(dt):dt.clone().iuor(this)},tt.prototype.iuand=function(dt){var mt;this.length>dt.length?mt=dt:mt=this;for(var yt=0;ytdt.length?this.clone().iand(dt):dt.clone().iand(this)},tt.prototype.uand=function(dt){return this.length>dt.length?this.clone().iuand(dt):dt.clone().iuand(this)},tt.prototype.iuxor=function(dt){var mt,yt;this.length>dt.length?(mt=this,yt=dt):(mt=dt,yt=this);for(var vt=0;vtdt.length?this.clone().ixor(dt):dt.clone().ixor(this)},tt.prototype.uxor=function(dt){return this.length>dt.length?this.clone().iuxor(dt):dt.clone().iuxor(this)},tt.prototype.inotn=function(dt){et(typeof dt=="number"&&dt>=0);var mt=Math.ceil(dt/26)|0,yt=dt%26;this._expand(mt),yt>0&&mt--;for(var vt=0;vt0&&(this.words[vt]=~this.words[vt]&67108863>>26-yt),this.strip()},tt.prototype.notn=function(dt){return this.clone().inotn(dt)},tt.prototype.setn=function(dt,mt){et(typeof dt=="number"&&dt>=0);var yt=dt/26|0,vt=dt%26;return this._expand(yt+1),mt?this.words[yt]=this.words[yt]|1<dt.length?(yt=this,vt=dt):(yt=dt,vt=this);for(var Et=0,At=0;At>>26;for(;Et!==0&&At>>26;if(this.length=yt.length,Et!==0)this.words[this.length]=Et,this.length++;else if(yt!==this)for(;Atdt.length?this.clone().iadd(dt):dt.clone().iadd(this)},tt.prototype.isub=function(dt){if(dt.negative!==0){dt.negative=0;var mt=this.iadd(dt);return dt.negative=1,mt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(dt),this.negative=1,this._normSign();var yt=this.cmp(dt);if(yt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var vt,Et;yt>0?(vt=this,Et=dt):(vt=dt,Et=this);for(var At=0,Pt=0;Pt>26,this.words[Pt]=mt&67108863;for(;At!==0&&Pt>26,this.words[Pt]=mt&67108863;if(At===0&&Pt>>26,Rt=xt&67108863,Dt=Math.min(ht,dt.length-1),Ht=Math.max(0,ht-Ct.length+1);Ht<=Dt;Ht++){var tr=ht-Ht|0;vt=Ct.words[tr]|0,Et=dt.words[Ht]|0,At=vt*Et+Rt,$t+=At/67108864|0,Rt=At&67108863}mt.words[ht]=Rt|0,xt=$t|0}return xt!==0?mt.words[ht]=xt|0:mt.length--,mt.strip()}var It=function(dt,mt,yt){var vt=dt.words,Et=mt.words,At=yt.words,Pt=0,xt,ht,$t,Rt=vt[0]|0,Dt=Rt&8191,Ht=Rt>>>13,tr=vt[1]|0,Xt=tr&8191,Ut=tr>>>13,qt=vt[2]|0,Gt=qt&8191,Zt=qt>>>13,Yt=vt[3]|0,Kt=Yt&8191,ar=Yt>>>13,gr=vt[4]|0,cr=gr&8191,ur=gr>>>13,Pr=vt[5]|0,br=Pr&8191,dr=Pr>>>13,Kr=vt[6]|0,xr=Kr&8191,Sr=Kr>>>13,Zr=vt[7]|0,$r=Zr&8191,Mr=Zr>>>13,Xr=vt[8]|0,Qt=Xr&8191,jt=Xr>>>13,Wt=vt[9]|0,nr=Wt&8191,fr=Wt>>>13,Er=Et[0]|0,pr=Er&8191,vr=Er>>>13,Jr=Et[1]|0,wr=Jr&8191,Ar=Jr>>>13,Yr=Et[2]|0,Cr=Yr&8191,Or=Yr>>>13,Qr=Et[3]|0,_r=Qr&8191,Dr=Qr>>>13,r0=Et[4]|0,Tr=r0&8191,Lr=r0>>>13,n0=Et[5]|0,Br=n0&8191,Fr=n0>>>13,i0=Et[6]|0,Rr=i0&8191,jr=i0>>>13,a0=Et[7]|0,kr=a0&8191,Ur=a0>>>13,s0=Et[8]|0,Ir=s0&8191,Hr=s0>>>13,o0=Et[9]|0,Nr=o0&8191,qr=o0>>>13;yt.negative=dt.negative^mt.negative,yt.length=19,xt=Math.imul(Dt,pr),ht=Math.imul(Dt,vr),ht=ht+Math.imul(Ht,pr)|0,$t=Math.imul(Ht,vr);var e0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(e0>>>26)|0,e0&=67108863,xt=Math.imul(Xt,pr),ht=Math.imul(Xt,vr),ht=ht+Math.imul(Ut,pr)|0,$t=Math.imul(Ut,vr),xt=xt+Math.imul(Dt,wr)|0,ht=ht+Math.imul(Dt,Ar)|0,ht=ht+Math.imul(Ht,wr)|0,$t=$t+Math.imul(Ht,Ar)|0;var t0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(t0>>>26)|0,t0&=67108863,xt=Math.imul(Gt,pr),ht=Math.imul(Gt,vr),ht=ht+Math.imul(Zt,pr)|0,$t=Math.imul(Zt,vr),xt=xt+Math.imul(Xt,wr)|0,ht=ht+Math.imul(Xt,Ar)|0,ht=ht+Math.imul(Ut,wr)|0,$t=$t+Math.imul(Ut,Ar)|0,xt=xt+Math.imul(Dt,Cr)|0,ht=ht+Math.imul(Dt,Or)|0,ht=ht+Math.imul(Ht,Cr)|0,$t=$t+Math.imul(Ht,Or)|0;var f0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(f0>>>26)|0,f0&=67108863,xt=Math.imul(Kt,pr),ht=Math.imul(Kt,vr),ht=ht+Math.imul(ar,pr)|0,$t=Math.imul(ar,vr),xt=xt+Math.imul(Gt,wr)|0,ht=ht+Math.imul(Gt,Ar)|0,ht=ht+Math.imul(Zt,wr)|0,$t=$t+Math.imul(Zt,Ar)|0,xt=xt+Math.imul(Xt,Cr)|0,ht=ht+Math.imul(Xt,Or)|0,ht=ht+Math.imul(Ut,Cr)|0,$t=$t+Math.imul(Ut,Or)|0,xt=xt+Math.imul(Dt,_r)|0,ht=ht+Math.imul(Dt,Dr)|0,ht=ht+Math.imul(Ht,_r)|0,$t=$t+Math.imul(Ht,Dr)|0;var c0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(c0>>>26)|0,c0&=67108863,xt=Math.imul(cr,pr),ht=Math.imul(cr,vr),ht=ht+Math.imul(ur,pr)|0,$t=Math.imul(ur,vr),xt=xt+Math.imul(Kt,wr)|0,ht=ht+Math.imul(Kt,Ar)|0,ht=ht+Math.imul(ar,wr)|0,$t=$t+Math.imul(ar,Ar)|0,xt=xt+Math.imul(Gt,Cr)|0,ht=ht+Math.imul(Gt,Or)|0,ht=ht+Math.imul(Zt,Cr)|0,$t=$t+Math.imul(Zt,Or)|0,xt=xt+Math.imul(Xt,_r)|0,ht=ht+Math.imul(Xt,Dr)|0,ht=ht+Math.imul(Ut,_r)|0,$t=$t+Math.imul(Ut,Dr)|0,xt=xt+Math.imul(Dt,Tr)|0,ht=ht+Math.imul(Dt,Lr)|0,ht=ht+Math.imul(Ht,Tr)|0,$t=$t+Math.imul(Ht,Lr)|0;var l0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(l0>>>26)|0,l0&=67108863,xt=Math.imul(br,pr),ht=Math.imul(br,vr),ht=ht+Math.imul(dr,pr)|0,$t=Math.imul(dr,vr),xt=xt+Math.imul(cr,wr)|0,ht=ht+Math.imul(cr,Ar)|0,ht=ht+Math.imul(ur,wr)|0,$t=$t+Math.imul(ur,Ar)|0,xt=xt+Math.imul(Kt,Cr)|0,ht=ht+Math.imul(Kt,Or)|0,ht=ht+Math.imul(ar,Cr)|0,$t=$t+Math.imul(ar,Or)|0,xt=xt+Math.imul(Gt,_r)|0,ht=ht+Math.imul(Gt,Dr)|0,ht=ht+Math.imul(Zt,_r)|0,$t=$t+Math.imul(Zt,Dr)|0,xt=xt+Math.imul(Xt,Tr)|0,ht=ht+Math.imul(Xt,Lr)|0,ht=ht+Math.imul(Ut,Tr)|0,$t=$t+Math.imul(Ut,Lr)|0,xt=xt+Math.imul(Dt,Br)|0,ht=ht+Math.imul(Dt,Fr)|0,ht=ht+Math.imul(Ht,Br)|0,$t=$t+Math.imul(Ht,Fr)|0;var u0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(u0>>>26)|0,u0&=67108863,xt=Math.imul(xr,pr),ht=Math.imul(xr,vr),ht=ht+Math.imul(Sr,pr)|0,$t=Math.imul(Sr,vr),xt=xt+Math.imul(br,wr)|0,ht=ht+Math.imul(br,Ar)|0,ht=ht+Math.imul(dr,wr)|0,$t=$t+Math.imul(dr,Ar)|0,xt=xt+Math.imul(cr,Cr)|0,ht=ht+Math.imul(cr,Or)|0,ht=ht+Math.imul(ur,Cr)|0,$t=$t+Math.imul(ur,Or)|0,xt=xt+Math.imul(Kt,_r)|0,ht=ht+Math.imul(Kt,Dr)|0,ht=ht+Math.imul(ar,_r)|0,$t=$t+Math.imul(ar,Dr)|0,xt=xt+Math.imul(Gt,Tr)|0,ht=ht+Math.imul(Gt,Lr)|0,ht=ht+Math.imul(Zt,Tr)|0,$t=$t+Math.imul(Zt,Lr)|0,xt=xt+Math.imul(Xt,Br)|0,ht=ht+Math.imul(Xt,Fr)|0,ht=ht+Math.imul(Ut,Br)|0,$t=$t+Math.imul(Ut,Fr)|0,xt=xt+Math.imul(Dt,Rr)|0,ht=ht+Math.imul(Dt,jr)|0,ht=ht+Math.imul(Ht,Rr)|0,$t=$t+Math.imul(Ht,jr)|0;var d0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(d0>>>26)|0,d0&=67108863,xt=Math.imul($r,pr),ht=Math.imul($r,vr),ht=ht+Math.imul(Mr,pr)|0,$t=Math.imul(Mr,vr),xt=xt+Math.imul(xr,wr)|0,ht=ht+Math.imul(xr,Ar)|0,ht=ht+Math.imul(Sr,wr)|0,$t=$t+Math.imul(Sr,Ar)|0,xt=xt+Math.imul(br,Cr)|0,ht=ht+Math.imul(br,Or)|0,ht=ht+Math.imul(dr,Cr)|0,$t=$t+Math.imul(dr,Or)|0,xt=xt+Math.imul(cr,_r)|0,ht=ht+Math.imul(cr,Dr)|0,ht=ht+Math.imul(ur,_r)|0,$t=$t+Math.imul(ur,Dr)|0,xt=xt+Math.imul(Kt,Tr)|0,ht=ht+Math.imul(Kt,Lr)|0,ht=ht+Math.imul(ar,Tr)|0,$t=$t+Math.imul(ar,Lr)|0,xt=xt+Math.imul(Gt,Br)|0,ht=ht+Math.imul(Gt,Fr)|0,ht=ht+Math.imul(Zt,Br)|0,$t=$t+Math.imul(Zt,Fr)|0,xt=xt+Math.imul(Xt,Rr)|0,ht=ht+Math.imul(Xt,jr)|0,ht=ht+Math.imul(Ut,Rr)|0,$t=$t+Math.imul(Ut,jr)|0,xt=xt+Math.imul(Dt,kr)|0,ht=ht+Math.imul(Dt,Ur)|0,ht=ht+Math.imul(Ht,kr)|0,$t=$t+Math.imul(Ht,Ur)|0;var h0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(h0>>>26)|0,h0&=67108863,xt=Math.imul(Qt,pr),ht=Math.imul(Qt,vr),ht=ht+Math.imul(jt,pr)|0,$t=Math.imul(jt,vr),xt=xt+Math.imul($r,wr)|0,ht=ht+Math.imul($r,Ar)|0,ht=ht+Math.imul(Mr,wr)|0,$t=$t+Math.imul(Mr,Ar)|0,xt=xt+Math.imul(xr,Cr)|0,ht=ht+Math.imul(xr,Or)|0,ht=ht+Math.imul(Sr,Cr)|0,$t=$t+Math.imul(Sr,Or)|0,xt=xt+Math.imul(br,_r)|0,ht=ht+Math.imul(br,Dr)|0,ht=ht+Math.imul(dr,_r)|0,$t=$t+Math.imul(dr,Dr)|0,xt=xt+Math.imul(cr,Tr)|0,ht=ht+Math.imul(cr,Lr)|0,ht=ht+Math.imul(ur,Tr)|0,$t=$t+Math.imul(ur,Lr)|0,xt=xt+Math.imul(Kt,Br)|0,ht=ht+Math.imul(Kt,Fr)|0,ht=ht+Math.imul(ar,Br)|0,$t=$t+Math.imul(ar,Fr)|0,xt=xt+Math.imul(Gt,Rr)|0,ht=ht+Math.imul(Gt,jr)|0,ht=ht+Math.imul(Zt,Rr)|0,$t=$t+Math.imul(Zt,jr)|0,xt=xt+Math.imul(Xt,kr)|0,ht=ht+Math.imul(Xt,Ur)|0,ht=ht+Math.imul(Ut,kr)|0,$t=$t+Math.imul(Ut,Ur)|0,xt=xt+Math.imul(Dt,Ir)|0,ht=ht+Math.imul(Dt,Hr)|0,ht=ht+Math.imul(Ht,Ir)|0,$t=$t+Math.imul(Ht,Hr)|0;var p0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(p0>>>26)|0,p0&=67108863,xt=Math.imul(nr,pr),ht=Math.imul(nr,vr),ht=ht+Math.imul(fr,pr)|0,$t=Math.imul(fr,vr),xt=xt+Math.imul(Qt,wr)|0,ht=ht+Math.imul(Qt,Ar)|0,ht=ht+Math.imul(jt,wr)|0,$t=$t+Math.imul(jt,Ar)|0,xt=xt+Math.imul($r,Cr)|0,ht=ht+Math.imul($r,Or)|0,ht=ht+Math.imul(Mr,Cr)|0,$t=$t+Math.imul(Mr,Or)|0,xt=xt+Math.imul(xr,_r)|0,ht=ht+Math.imul(xr,Dr)|0,ht=ht+Math.imul(Sr,_r)|0,$t=$t+Math.imul(Sr,Dr)|0,xt=xt+Math.imul(br,Tr)|0,ht=ht+Math.imul(br,Lr)|0,ht=ht+Math.imul(dr,Tr)|0,$t=$t+Math.imul(dr,Lr)|0,xt=xt+Math.imul(cr,Br)|0,ht=ht+Math.imul(cr,Fr)|0,ht=ht+Math.imul(ur,Br)|0,$t=$t+Math.imul(ur,Fr)|0,xt=xt+Math.imul(Kt,Rr)|0,ht=ht+Math.imul(Kt,jr)|0,ht=ht+Math.imul(ar,Rr)|0,$t=$t+Math.imul(ar,jr)|0,xt=xt+Math.imul(Gt,kr)|0,ht=ht+Math.imul(Gt,Ur)|0,ht=ht+Math.imul(Zt,kr)|0,$t=$t+Math.imul(Zt,Ur)|0,xt=xt+Math.imul(Xt,Ir)|0,ht=ht+Math.imul(Xt,Hr)|0,ht=ht+Math.imul(Ut,Ir)|0,$t=$t+Math.imul(Ut,Hr)|0,xt=xt+Math.imul(Dt,Nr)|0,ht=ht+Math.imul(Dt,qr)|0,ht=ht+Math.imul(Ht,Nr)|0,$t=$t+Math.imul(Ht,qr)|0;var b0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(b0>>>26)|0,b0&=67108863,xt=Math.imul(nr,wr),ht=Math.imul(nr,Ar),ht=ht+Math.imul(fr,wr)|0,$t=Math.imul(fr,Ar),xt=xt+Math.imul(Qt,Cr)|0,ht=ht+Math.imul(Qt,Or)|0,ht=ht+Math.imul(jt,Cr)|0,$t=$t+Math.imul(jt,Or)|0,xt=xt+Math.imul($r,_r)|0,ht=ht+Math.imul($r,Dr)|0,ht=ht+Math.imul(Mr,_r)|0,$t=$t+Math.imul(Mr,Dr)|0,xt=xt+Math.imul(xr,Tr)|0,ht=ht+Math.imul(xr,Lr)|0,ht=ht+Math.imul(Sr,Tr)|0,$t=$t+Math.imul(Sr,Lr)|0,xt=xt+Math.imul(br,Br)|0,ht=ht+Math.imul(br,Fr)|0,ht=ht+Math.imul(dr,Br)|0,$t=$t+Math.imul(dr,Fr)|0,xt=xt+Math.imul(cr,Rr)|0,ht=ht+Math.imul(cr,jr)|0,ht=ht+Math.imul(ur,Rr)|0,$t=$t+Math.imul(ur,jr)|0,xt=xt+Math.imul(Kt,kr)|0,ht=ht+Math.imul(Kt,Ur)|0,ht=ht+Math.imul(ar,kr)|0,$t=$t+Math.imul(ar,Ur)|0,xt=xt+Math.imul(Gt,Ir)|0,ht=ht+Math.imul(Gt,Hr)|0,ht=ht+Math.imul(Zt,Ir)|0,$t=$t+Math.imul(Zt,Hr)|0,xt=xt+Math.imul(Xt,Nr)|0,ht=ht+Math.imul(Xt,qr)|0,ht=ht+Math.imul(Ut,Nr)|0,$t=$t+Math.imul(Ut,qr)|0;var m0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(m0>>>26)|0,m0&=67108863,xt=Math.imul(nr,Cr),ht=Math.imul(nr,Or),ht=ht+Math.imul(fr,Cr)|0,$t=Math.imul(fr,Or),xt=xt+Math.imul(Qt,_r)|0,ht=ht+Math.imul(Qt,Dr)|0,ht=ht+Math.imul(jt,_r)|0,$t=$t+Math.imul(jt,Dr)|0,xt=xt+Math.imul($r,Tr)|0,ht=ht+Math.imul($r,Lr)|0,ht=ht+Math.imul(Mr,Tr)|0,$t=$t+Math.imul(Mr,Lr)|0,xt=xt+Math.imul(xr,Br)|0,ht=ht+Math.imul(xr,Fr)|0,ht=ht+Math.imul(Sr,Br)|0,$t=$t+Math.imul(Sr,Fr)|0,xt=xt+Math.imul(br,Rr)|0,ht=ht+Math.imul(br,jr)|0,ht=ht+Math.imul(dr,Rr)|0,$t=$t+Math.imul(dr,jr)|0,xt=xt+Math.imul(cr,kr)|0,ht=ht+Math.imul(cr,Ur)|0,ht=ht+Math.imul(ur,kr)|0,$t=$t+Math.imul(ur,Ur)|0,xt=xt+Math.imul(Kt,Ir)|0,ht=ht+Math.imul(Kt,Hr)|0,ht=ht+Math.imul(ar,Ir)|0,$t=$t+Math.imul(ar,Hr)|0,xt=xt+Math.imul(Gt,Nr)|0,ht=ht+Math.imul(Gt,qr)|0,ht=ht+Math.imul(Zt,Nr)|0,$t=$t+Math.imul(Zt,qr)|0;var g0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(g0>>>26)|0,g0&=67108863,xt=Math.imul(nr,_r),ht=Math.imul(nr,Dr),ht=ht+Math.imul(fr,_r)|0,$t=Math.imul(fr,Dr),xt=xt+Math.imul(Qt,Tr)|0,ht=ht+Math.imul(Qt,Lr)|0,ht=ht+Math.imul(jt,Tr)|0,$t=$t+Math.imul(jt,Lr)|0,xt=xt+Math.imul($r,Br)|0,ht=ht+Math.imul($r,Fr)|0,ht=ht+Math.imul(Mr,Br)|0,$t=$t+Math.imul(Mr,Fr)|0,xt=xt+Math.imul(xr,Rr)|0,ht=ht+Math.imul(xr,jr)|0,ht=ht+Math.imul(Sr,Rr)|0,$t=$t+Math.imul(Sr,jr)|0,xt=xt+Math.imul(br,kr)|0,ht=ht+Math.imul(br,Ur)|0,ht=ht+Math.imul(dr,kr)|0,$t=$t+Math.imul(dr,Ur)|0,xt=xt+Math.imul(cr,Ir)|0,ht=ht+Math.imul(cr,Hr)|0,ht=ht+Math.imul(ur,Ir)|0,$t=$t+Math.imul(ur,Hr)|0,xt=xt+Math.imul(Kt,Nr)|0,ht=ht+Math.imul(Kt,qr)|0,ht=ht+Math.imul(ar,Nr)|0,$t=$t+Math.imul(ar,qr)|0;var y0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(y0>>>26)|0,y0&=67108863,xt=Math.imul(nr,Tr),ht=Math.imul(nr,Lr),ht=ht+Math.imul(fr,Tr)|0,$t=Math.imul(fr,Lr),xt=xt+Math.imul(Qt,Br)|0,ht=ht+Math.imul(Qt,Fr)|0,ht=ht+Math.imul(jt,Br)|0,$t=$t+Math.imul(jt,Fr)|0,xt=xt+Math.imul($r,Rr)|0,ht=ht+Math.imul($r,jr)|0,ht=ht+Math.imul(Mr,Rr)|0,$t=$t+Math.imul(Mr,jr)|0,xt=xt+Math.imul(xr,kr)|0,ht=ht+Math.imul(xr,Ur)|0,ht=ht+Math.imul(Sr,kr)|0,$t=$t+Math.imul(Sr,Ur)|0,xt=xt+Math.imul(br,Ir)|0,ht=ht+Math.imul(br,Hr)|0,ht=ht+Math.imul(dr,Ir)|0,$t=$t+Math.imul(dr,Hr)|0,xt=xt+Math.imul(cr,Nr)|0,ht=ht+Math.imul(cr,qr)|0,ht=ht+Math.imul(ur,Nr)|0,$t=$t+Math.imul(ur,qr)|0;var v0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(v0>>>26)|0,v0&=67108863,xt=Math.imul(nr,Br),ht=Math.imul(nr,Fr),ht=ht+Math.imul(fr,Br)|0,$t=Math.imul(fr,Fr),xt=xt+Math.imul(Qt,Rr)|0,ht=ht+Math.imul(Qt,jr)|0,ht=ht+Math.imul(jt,Rr)|0,$t=$t+Math.imul(jt,jr)|0,xt=xt+Math.imul($r,kr)|0,ht=ht+Math.imul($r,Ur)|0,ht=ht+Math.imul(Mr,kr)|0,$t=$t+Math.imul(Mr,Ur)|0,xt=xt+Math.imul(xr,Ir)|0,ht=ht+Math.imul(xr,Hr)|0,ht=ht+Math.imul(Sr,Ir)|0,$t=$t+Math.imul(Sr,Hr)|0,xt=xt+Math.imul(br,Nr)|0,ht=ht+Math.imul(br,qr)|0,ht=ht+Math.imul(dr,Nr)|0,$t=$t+Math.imul(dr,qr)|0;var w0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(w0>>>26)|0,w0&=67108863,xt=Math.imul(nr,Rr),ht=Math.imul(nr,jr),ht=ht+Math.imul(fr,Rr)|0,$t=Math.imul(fr,jr),xt=xt+Math.imul(Qt,kr)|0,ht=ht+Math.imul(Qt,Ur)|0,ht=ht+Math.imul(jt,kr)|0,$t=$t+Math.imul(jt,Ur)|0,xt=xt+Math.imul($r,Ir)|0,ht=ht+Math.imul($r,Hr)|0,ht=ht+Math.imul(Mr,Ir)|0,$t=$t+Math.imul(Mr,Hr)|0,xt=xt+Math.imul(xr,Nr)|0,ht=ht+Math.imul(xr,qr)|0,ht=ht+Math.imul(Sr,Nr)|0,$t=$t+Math.imul(Sr,qr)|0;var x0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(x0>>>26)|0,x0&=67108863,xt=Math.imul(nr,kr),ht=Math.imul(nr,Ur),ht=ht+Math.imul(fr,kr)|0,$t=Math.imul(fr,Ur),xt=xt+Math.imul(Qt,Ir)|0,ht=ht+Math.imul(Qt,Hr)|0,ht=ht+Math.imul(jt,Ir)|0,$t=$t+Math.imul(jt,Hr)|0,xt=xt+Math.imul($r,Nr)|0,ht=ht+Math.imul($r,qr)|0,ht=ht+Math.imul(Mr,Nr)|0,$t=$t+Math.imul(Mr,qr)|0;var E0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(E0>>>26)|0,E0&=67108863,xt=Math.imul(nr,Ir),ht=Math.imul(nr,Hr),ht=ht+Math.imul(fr,Ir)|0,$t=Math.imul(fr,Hr),xt=xt+Math.imul(Qt,Nr)|0,ht=ht+Math.imul(Qt,qr)|0,ht=ht+Math.imul(jt,Nr)|0,$t=$t+Math.imul(jt,qr)|0;var $0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+($0>>>26)|0,$0&=67108863,xt=Math.imul(nr,Nr),ht=Math.imul(nr,qr),ht=ht+Math.imul(fr,Nr)|0,$t=Math.imul(fr,qr);var M0=(Pt+xt|0)+((ht&8191)<<13)|0;return Pt=($t+(ht>>>13)|0)+(M0>>>26)|0,M0&=67108863,At[0]=e0,At[1]=t0,At[2]=f0,At[3]=c0,At[4]=l0,At[5]=u0,At[6]=d0,At[7]=h0,At[8]=p0,At[9]=b0,At[10]=m0,At[11]=g0,At[12]=y0,At[13]=v0,At[14]=w0,At[15]=x0,At[16]=E0,At[17]=$0,At[18]=M0,Pt!==0&&(At[19]=Pt,yt.length++),yt};Math.imul||(It=kt);function Lt(Ct,dt,mt){mt.negative=dt.negative^Ct.negative,mt.length=Ct.length+dt.length;for(var yt=0,vt=0,Et=0;Et>>26)|0,vt+=At>>>26,At&=67108863}mt.words[Et]=Pt,yt=At,At=vt}return yt!==0?mt.words[Et]=yt:mt.length--,mt.strip()}function Ot(Ct,dt,mt){var yt=new Nt;return yt.mulp(Ct,dt,mt)}tt.prototype.mulTo=function(dt,mt){var yt,vt=this.length+dt.length;return this.length===10&&dt.length===10?yt=It(this,dt,mt):vt<63?yt=kt(this,dt,mt):vt<1024?yt=Lt(this,dt,mt):yt=Ot(this,dt,mt),yt};function Nt(Ct,dt){this.x=Ct,this.y=dt}Nt.prototype.makeRBT=function(dt){for(var mt=new Array(dt),yt=tt.prototype._countBits(dt)-1,vt=0;vt>=1;return vt},Nt.prototype.permute=function(dt,mt,yt,vt,Et,At){for(var Pt=0;Pt>>1)Et++;return 1<>>13,yt[2*At+1]=Et&8191,Et=Et>>>13;for(At=2*mt;At>=26,mt+=vt/67108864|0,mt+=Et>>>26,this.words[yt]=Et&67108863}return mt!==0&&(this.words[yt]=mt,this.length++),this},tt.prototype.muln=function(dt){return this.clone().imuln(dt)},tt.prototype.sqr=function(){return this.mul(this)},tt.prototype.isqr=function(){return this.imul(this.clone())},tt.prototype.pow=function(dt){var mt=Bt(dt);if(mt.length===0)return new tt(1);for(var yt=this,vt=0;vt=0);var mt=dt%26,yt=(dt-mt)/26,vt=67108863>>>26-mt<<26-mt,Et;if(mt!==0){var At=0;for(Et=0;Et>>26-mt}At&&(this.words[Et]=At,this.length++)}if(yt!==0){for(Et=this.length-1;Et>=0;Et--)this.words[Et+yt]=this.words[Et];for(Et=0;Et=0);var vt;mt?vt=(mt-mt%26)/26:vt=0;var Et=dt%26,At=Math.min((dt-Et)/26,this.length),Pt=67108863^67108863>>>Et<At)for(this.length-=At,ht=0;ht=0&&($t!==0||ht>=vt);ht--){var Rt=this.words[ht]|0;this.words[ht]=$t<<26-Et|Rt>>>Et,$t=Rt&Pt}return xt&&$t!==0&&(xt.words[xt.length++]=$t),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},tt.prototype.ishrn=function(dt,mt,yt){return et(this.negative===0),this.iushrn(dt,mt,yt)},tt.prototype.shln=function(dt){return this.clone().ishln(dt)},tt.prototype.ushln=function(dt){return this.clone().iushln(dt)},tt.prototype.shrn=function(dt){return this.clone().ishrn(dt)},tt.prototype.ushrn=function(dt){return this.clone().iushrn(dt)},tt.prototype.testn=function(dt){et(typeof dt=="number"&&dt>=0);var mt=dt%26,yt=(dt-mt)/26,vt=1<=0);var mt=dt%26,yt=(dt-mt)/26;if(et(this.negative===0,"imaskn works only with positive numbers"),this.length<=yt)return this;if(mt!==0&&yt++,this.length=Math.min(yt,this.length),mt!==0){var vt=67108863^67108863>>>mt<=67108864;mt++)this.words[mt]-=67108864,mt===this.length-1?this.words[mt+1]=1:this.words[mt+1]++;return this.length=Math.max(this.length,mt+1),this},tt.prototype.isubn=function(dt){if(et(typeof dt=="number"),et(dt<67108864),dt<0)return this.iaddn(-dt);if(this.negative!==0)return this.negative=0,this.iaddn(dt),this.negative=1,this;if(this.words[0]-=dt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var mt=0;mt>26)-(xt/67108864|0),this.words[Et+yt]=At&67108863}for(;Et>26,this.words[Et+yt]=At&67108863;if(Pt===0)return this.strip();for(et(Pt===-1),Pt=0,Et=0;Et>26,this.words[Et]=At&67108863;return this.negative=1,this.strip()},tt.prototype._wordDiv=function(dt,mt){var yt=this.length-dt.length,vt=this.clone(),Et=dt,At=Et.words[Et.length-1]|0,Pt=this._countBits(At);yt=26-Pt,yt!==0&&(Et=Et.ushln(yt),vt.iushln(yt),At=Et.words[Et.length-1]|0);var xt=vt.length-Et.length,ht;if(mt!=="mod"){ht=new tt(null),ht.length=xt+1,ht.words=new Array(ht.length);for(var $t=0;$t=0;Dt--){var Ht=(vt.words[Et.length+Dt]|0)*67108864+(vt.words[Et.length+Dt-1]|0);for(Ht=Math.min(Ht/At|0,67108863),vt._ishlnsubmul(Et,Ht,Dt);vt.negative!==0;)Ht--,vt.negative=0,vt._ishlnsubmul(Et,1,Dt),vt.isZero()||(vt.negative^=1);ht&&(ht.words[Dt]=Ht)}return ht&&ht.strip(),vt.strip(),mt!=="div"&&yt!==0&&vt.iushrn(yt),{div:ht||null,mod:vt}},tt.prototype.divmod=function(dt,mt,yt){if(et(!dt.isZero()),this.isZero())return{div:new tt(0),mod:new tt(0)};var vt,Et,At;return this.negative!==0&&dt.negative===0?(At=this.neg().divmod(dt,mt),mt!=="mod"&&(vt=At.div.neg()),mt!=="div"&&(Et=At.mod.neg(),yt&&Et.negative!==0&&Et.iadd(dt)),{div:vt,mod:Et}):this.negative===0&&dt.negative!==0?(At=this.divmod(dt.neg(),mt),mt!=="mod"&&(vt=At.div.neg()),{div:vt,mod:At.mod}):this.negative&dt.negative?(At=this.neg().divmod(dt.neg(),mt),mt!=="div"&&(Et=At.mod.neg(),yt&&Et.negative!==0&&Et.isub(dt)),{div:At.div,mod:Et}):dt.length>this.length||this.cmp(dt)<0?{div:new tt(0),mod:this}:dt.length===1?mt==="div"?{div:this.divn(dt.words[0]),mod:null}:mt==="mod"?{div:null,mod:new tt(this.modn(dt.words[0]))}:{div:this.divn(dt.words[0]),mod:new tt(this.modn(dt.words[0]))}:this._wordDiv(dt,mt)},tt.prototype.div=function(dt){return this.divmod(dt,"div",!1).div},tt.prototype.mod=function(dt){return this.divmod(dt,"mod",!1).mod},tt.prototype.umod=function(dt){return this.divmod(dt,"mod",!0).mod},tt.prototype.divRound=function(dt){var mt=this.divmod(dt);if(mt.mod.isZero())return mt.div;var yt=mt.div.negative!==0?mt.mod.isub(dt):mt.mod,vt=dt.ushrn(1),Et=dt.andln(1),At=yt.cmp(vt);return At<0||Et===1&&At===0?mt.div:mt.div.negative!==0?mt.div.isubn(1):mt.div.iaddn(1)},tt.prototype.modn=function(dt){et(dt<=67108863);for(var mt=(1<<26)%dt,yt=0,vt=this.length-1;vt>=0;vt--)yt=(mt*yt+(this.words[vt]|0))%dt;return yt},tt.prototype.idivn=function(dt){et(dt<=67108863);for(var mt=0,yt=this.length-1;yt>=0;yt--){var vt=(this.words[yt]|0)+mt*67108864;this.words[yt]=vt/dt|0,mt=vt%dt}return this.strip()},tt.prototype.divn=function(dt){return this.clone().idivn(dt)},tt.prototype.egcd=function(dt){et(dt.negative===0),et(!dt.isZero());var mt=this,yt=dt.clone();mt.negative!==0?mt=mt.umod(dt):mt=mt.clone();for(var vt=new tt(1),Et=new tt(0),At=new tt(0),Pt=new tt(1),xt=0;mt.isEven()&&yt.isEven();)mt.iushrn(1),yt.iushrn(1),++xt;for(var ht=yt.clone(),$t=mt.clone();!mt.isZero();){for(var Rt=0,Dt=1;!(mt.words[0]&Dt)&&Rt<26;++Rt,Dt<<=1);if(Rt>0)for(mt.iushrn(Rt);Rt-- >0;)(vt.isOdd()||Et.isOdd())&&(vt.iadd(ht),Et.isub($t)),vt.iushrn(1),Et.iushrn(1);for(var Ht=0,tr=1;!(yt.words[0]&tr)&&Ht<26;++Ht,tr<<=1);if(Ht>0)for(yt.iushrn(Ht);Ht-- >0;)(At.isOdd()||Pt.isOdd())&&(At.iadd(ht),Pt.isub($t)),At.iushrn(1),Pt.iushrn(1);mt.cmp(yt)>=0?(mt.isub(yt),vt.isub(At),Et.isub(Pt)):(yt.isub(mt),At.isub(vt),Pt.isub(Et))}return{a:At,b:Pt,gcd:yt.iushln(xt)}},tt.prototype._invmp=function(dt){et(dt.negative===0),et(!dt.isZero());var mt=this,yt=dt.clone();mt.negative!==0?mt=mt.umod(dt):mt=mt.clone();for(var vt=new tt(1),Et=new tt(0),At=yt.clone();mt.cmpn(1)>0&&yt.cmpn(1)>0;){for(var Pt=0,xt=1;!(mt.words[0]&xt)&&Pt<26;++Pt,xt<<=1);if(Pt>0)for(mt.iushrn(Pt);Pt-- >0;)vt.isOdd()&&vt.iadd(At),vt.iushrn(1);for(var ht=0,$t=1;!(yt.words[0]&$t)&&ht<26;++ht,$t<<=1);if(ht>0)for(yt.iushrn(ht);ht-- >0;)Et.isOdd()&&Et.iadd(At),Et.iushrn(1);mt.cmp(yt)>=0?(mt.isub(yt),vt.isub(Et)):(yt.isub(mt),Et.isub(vt))}var Rt;return mt.cmpn(1)===0?Rt=vt:Rt=Et,Rt.cmpn(0)<0&&Rt.iadd(dt),Rt},tt.prototype.gcd=function(dt){if(this.isZero())return dt.abs();if(dt.isZero())return this.abs();var mt=this.clone(),yt=dt.clone();mt.negative=0,yt.negative=0;for(var vt=0;mt.isEven()&&yt.isEven();vt++)mt.iushrn(1),yt.iushrn(1);do{for(;mt.isEven();)mt.iushrn(1);for(;yt.isEven();)yt.iushrn(1);var Et=mt.cmp(yt);if(Et<0){var At=mt;mt=yt,yt=At}else if(Et===0||yt.cmpn(1)===0)break;mt.isub(yt)}while(!0);return yt.iushln(vt)},tt.prototype.invm=function(dt){return this.egcd(dt).a.umod(dt)},tt.prototype.isEven=function(){return(this.words[0]&1)===0},tt.prototype.isOdd=function(){return(this.words[0]&1)===1},tt.prototype.andln=function(dt){return this.words[0]&dt},tt.prototype.bincn=function(dt){et(typeof dt=="number");var mt=dt%26,yt=(dt-mt)/26,vt=1<>>26,Pt&=67108863,this.words[At]=Pt}return Et!==0&&(this.words[At]=Et,this.length++),this},tt.prototype.isZero=function(){return this.length===1&&this.words[0]===0},tt.prototype.cmpn=function(dt){var mt=dt<0;if(this.negative!==0&&!mt)return-1;if(this.negative===0&&mt)return 1;this.strip();var yt;if(this.length>1)yt=1;else{mt&&(dt=-dt),et(dt<=67108863,"Number is too big");var vt=this.words[0]|0;yt=vt===dt?0:vtdt.length)return 1;if(this.length=0;yt--){var vt=this.words[yt]|0,Et=dt.words[yt]|0;if(vt!==Et){vtEt&&(mt=1);break}}return mt},tt.prototype.gtn=function(dt){return this.cmpn(dt)===1},tt.prototype.gt=function(dt){return this.cmp(dt)===1},tt.prototype.gten=function(dt){return this.cmpn(dt)>=0},tt.prototype.gte=function(dt){return this.cmp(dt)>=0},tt.prototype.ltn=function(dt){return this.cmpn(dt)===-1},tt.prototype.lt=function(dt){return this.cmp(dt)===-1},tt.prototype.lten=function(dt){return this.cmpn(dt)<=0},tt.prototype.lte=function(dt){return this.cmp(dt)<=0},tt.prototype.eqn=function(dt){return this.cmpn(dt)===0},tt.prototype.eq=function(dt){return this.cmp(dt)===0},tt.red=function(dt){return new er(dt)},tt.prototype.toRed=function(dt){return et(!this.red,"Already a number in reduction context"),et(this.negative===0,"red works only with positives"),dt.convertTo(this)._forceRed(dt)},tt.prototype.fromRed=function(){return et(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},tt.prototype._forceRed=function(dt){return this.red=dt,this},tt.prototype.forceRed=function(dt){return et(!this.red,"Already a number in reduction context"),this._forceRed(dt)},tt.prototype.redAdd=function(dt){return et(this.red,"redAdd works only with red numbers"),this.red.add(this,dt)},tt.prototype.redIAdd=function(dt){return et(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,dt)},tt.prototype.redSub=function(dt){return et(this.red,"redSub works only with red numbers"),this.red.sub(this,dt)},tt.prototype.redISub=function(dt){return et(this.red,"redISub works only with red numbers"),this.red.isub(this,dt)},tt.prototype.redShl=function(dt){return et(this.red,"redShl works only with red numbers"),this.red.shl(this,dt)},tt.prototype.redMul=function(dt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,dt),this.red.mul(this,dt)},tt.prototype.redIMul=function(dt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,dt),this.red.imul(this,dt)},tt.prototype.redSqr=function(){return et(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},tt.prototype.redISqr=function(){return et(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},tt.prototype.redSqrt=function(){return et(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},tt.prototype.redInvm=function(){return et(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},tt.prototype.redNeg=function(){return et(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},tt.prototype.redPow=function(dt){return et(this.red&&!dt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,dt)};var Ft={k256:null,p224:null,p192:null,p25519:null};function zt(Ct,dt){this.name=Ct,this.p=new tt(dt,16),this.n=this.p.bitLength(),this.k=new tt(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}zt.prototype._tmp=function(){var dt=new tt(null);return dt.words=new Array(Math.ceil(this.n/13)),dt},zt.prototype.ireduce=function(dt){var mt=dt,yt;do this.split(mt,this.tmp),mt=this.imulK(mt),mt=mt.iadd(this.tmp),yt=mt.bitLength();while(yt>this.n);var vt=yt0?mt.isub(this.p):mt.strip!==void 0?mt.strip():mt._strip(),mt},zt.prototype.split=function(dt,mt){dt.iushrn(this.n,0,mt)},zt.prototype.imulK=function(dt){return dt.imul(this.k)};function Vt(){zt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}nt(Vt,zt),Vt.prototype.split=function(dt,mt){for(var yt=4194303,vt=Math.min(dt.length,9),Et=0;Et>>22,At=Pt}At>>>=22,dt.words[Et-10]=At,At===0&&dt.length>10?dt.length-=10:dt.length-=9},Vt.prototype.imulK=function(dt){dt.words[dt.length]=0,dt.words[dt.length+1]=0,dt.length+=2;for(var mt=0,yt=0;yt>>=26,dt.words[yt]=Et,mt=vt}return mt!==0&&(dt.words[dt.length++]=mt),dt},tt._prime=function(dt){if(Ft[dt])return Ft[dt];var mt;if(dt==="k256")mt=new Vt;else if(dt==="p224")mt=new Jt;else if(dt==="p192")mt=new ir;else if(dt==="p25519")mt=new rr;else throw new Error("Unknown prime "+dt);return Ft[dt]=mt,mt};function er(Ct){if(typeof Ct=="string"){var dt=tt._prime(Ct);this.m=dt.p,this.prime=dt}else et(Ct.gtn(1),"modulus must be greater than 1"),this.m=Ct,this.prime=null}er.prototype._verify1=function(dt){et(dt.negative===0,"red works only with positives"),et(dt.red,"red works only with red numbers")},er.prototype._verify2=function(dt,mt){et((dt.negative|mt.negative)===0,"red works only with positives"),et(dt.red&&dt.red===mt.red,"red works only with red numbers")},er.prototype.imod=function(dt){return this.prime?this.prime.ireduce(dt)._forceRed(this):dt.umod(this.m)._forceRed(this)},er.prototype.neg=function(dt){return dt.isZero()?dt.clone():this.m.sub(dt)._forceRed(this)},er.prototype.add=function(dt,mt){this._verify2(dt,mt);var yt=dt.add(mt);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt._forceRed(this)},er.prototype.iadd=function(dt,mt){this._verify2(dt,mt);var yt=dt.iadd(mt);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt},er.prototype.sub=function(dt,mt){this._verify2(dt,mt);var yt=dt.sub(mt);return yt.cmpn(0)<0&&yt.iadd(this.m),yt._forceRed(this)},er.prototype.isub=function(dt,mt){this._verify2(dt,mt);var yt=dt.isub(mt);return yt.cmpn(0)<0&&yt.iadd(this.m),yt},er.prototype.shl=function(dt,mt){return this._verify1(dt),this.imod(dt.ushln(mt))},er.prototype.imul=function(dt,mt){return this._verify2(dt,mt),this.imod(dt.imul(mt))},er.prototype.mul=function(dt,mt){return this._verify2(dt,mt),this.imod(dt.mul(mt))},er.prototype.isqr=function(dt){return this.imul(dt,dt.clone())},er.prototype.sqr=function(dt){return this.mul(dt,dt)},er.prototype.sqrt=function(dt){if(dt.isZero())return dt.clone();var mt=this.m.andln(3);if(et(mt%2===1),mt===3){var yt=this.m.add(new tt(1)).iushrn(2);return this.pow(dt,yt)}for(var vt=this.m.subn(1),Et=0;!vt.isZero()&&vt.andln(1)===0;)Et++,vt.iushrn(1);et(!vt.isZero());var At=new tt(1).toRed(this),Pt=At.redNeg(),xt=this.m.subn(1).iushrn(1),ht=this.m.bitLength();for(ht=new tt(2*ht*ht).toRed(this);this.pow(ht,xt).cmp(Pt)!==0;)ht.redIAdd(Pt);for(var $t=this.pow(ht,vt),Rt=this.pow(dt,vt.addn(1).iushrn(1)),Dt=this.pow(dt,vt),Ht=Et;Dt.cmp(At)!==0;){for(var tr=Dt,Xt=0;tr.cmp(At)!==0;Xt++)tr=tr.redSqr();et(Xt=0;Et--){for(var $t=mt.words[Et],Rt=ht-1;Rt>=0;Rt--){var Dt=$t>>Rt&1;if(At!==vt[0]&&(At=this.sqr(At)),Dt===0&&Pt===0){xt=0;continue}Pt<<=1,Pt|=Dt,xt++,!(xt!==yt&&(Et!==0||Rt!==0))&&(At=this.mul(At,vt[Pt]),xt=0,Pt=0)}ht=26}return At},er.prototype.convertTo=function(dt){var mt=dt.umod(this.m);return mt===dt?mt.clone():mt},er.prototype.convertFrom=function(dt){var mt=dt.clone();return mt.red=null,mt},tt.mont=function(dt){return new lr(dt)};function lr(Ct){er.call(this,Ct),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new tt(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)}nt(lr,er),lr.prototype.convertTo=function(dt){return this.imod(dt.ushln(this.shift))},lr.prototype.convertFrom=function(dt){var mt=this.imod(dt.mul(this.rinv));return mt.red=null,mt},lr.prototype.imul=function(dt,mt){if(dt.isZero()||mt.isZero())return dt.words[0]=0,dt.length=1,dt;var yt=dt.imul(mt),vt=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Et=yt.isub(vt).iushrn(this.shift),At=Et;return Et.cmp(this.m)>=0?At=Et.isub(this.m):Et.cmpn(0)<0&&(At=Et.iadd(this.m)),At._forceRed(this)},lr.prototype.mul=function(dt,mt){if(dt.isZero()||mt.isZero())return new tt(0)._forceRed(this);var yt=dt.mul(mt),vt=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Et=yt.isub(vt).iushrn(this.shift),At=Et;return Et.cmp(this.m)>=0?At=Et.isub(this.m):Et.cmpn(0)<0&&(At=Et.iadd(this.m)),At._forceRed(this)},lr.prototype.invm=function(dt){var mt=this.imod(dt._invmp(this.m).mul(this.r2));return mt._forceRed(this)}})(c,commonjsGlobal)})(bn$4);var bnExports$4=bn$4.exports,utils$x={};(function(c){var a=c;function d(tt,bt){if(Array.isArray(tt))return tt.slice();if(!tt)return[];var gt=[];if(typeof tt!="string"){for(var wt=0;wt>8,_t=St&255;Mt?gt.push(Mt,_t):gt.push(_t)}return gt}a.toArray=d;function et(tt){return tt.length===1?"0"+tt:tt}a.zero2=et;function nt(tt){for(var bt="",gt=0;gt(It>>1)-1?Ot=(It>>1)-Nt:Ot=Nt,Lt.isubn(Ot)):Ot=0,Bt[kt]=Ot,Lt.iushrn(1)}return Bt}a.getNAF=tt;function bt(Mt,_t){var Tt=[[],[]];Mt=Mt.clone(),_t=_t.clone();for(var Bt=0,kt=0,It;Mt.cmpn(-Bt)>0||_t.cmpn(-kt)>0;){var Lt=Mt.andln(3)+Bt&3,Ot=_t.andln(3)+kt&3;Lt===3&&(Lt=-1),Ot===3&&(Ot=-1);var Nt;Lt&1?(It=Mt.andln(7)+Bt&7,(It===3||It===5)&&Ot===2?Nt=-Lt:Nt=Lt):Nt=0,Tt[0].push(Nt);var Ft;Ot&1?(It=_t.andln(7)+kt&7,(It===3||It===5)&&Lt===2?Ft=-Ot:Ft=Ot):Ft=0,Tt[1].push(Ft),2*Bt===Nt+1&&(Bt=1-Bt),2*kt===Ft+1&&(kt=1-kt),Mt.iushrn(1),_t.iushrn(1)}return Tt}a.getJSF=bt;function gt(Mt,_t,Tt){var Bt="_"+_t;Mt.prototype[_t]=function(){return this[Bt]!==void 0?this[Bt]:this[Bt]=Tt.call(this)}}a.cachedProperty=gt;function wt(Mt){return typeof Mt=="string"?a.toArray(Mt,"hex"):Mt}a.parseBytes=wt;function St(Mt){return new d(Mt,"hex","le")}a.intFromLE=St})(utils$y);var curve$1={},BN$g=bnExports$4,utils$w=utils$y,getNAF$1=utils$w.getNAF,getJSF$1=utils$w.getJSF,assert$l=utils$w.assert;function BaseCurve$1(c,a){this.type=c,this.p=new BN$g(a.p,16),this.red=a.prime?BN$g.red(a.prime):BN$g.mont(this.p),this.zero=new BN$g(0).toRed(this.red),this.one=new BN$g(1).toRed(this.red),this.two=new BN$g(2).toRed(this.red),this.n=a.n&&new BN$g(a.n,16),this.g=a.g&&this.pointFromJSON(a.g,a.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 d=this.n&&this.p.div(this.n);!d||d.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var base$3=BaseCurve$1;BaseCurve$1.prototype.point=function(){throw new Error("Not implemented")};BaseCurve$1.prototype.validate=function(){throw new Error("Not implemented")};BaseCurve$1.prototype._fixedNafMul=function(a,d){assert$l(a.precomputed);var et=a._getDoubles(),nt=getNAF$1(d,1,this._bitLength),tt=(1<=gt;St--)wt=(wt<<1)+nt[St];bt.push(wt)}for(var Mt=this.jpoint(null,null,null),_t=this.jpoint(null,null,null),Tt=tt;Tt>0;Tt--){for(gt=0;gt=0;wt--){for(var St=0;wt>=0&&bt[wt]===0;wt--)St++;if(wt>=0&&St++,gt=gt.dblp(St),wt<0)break;var Mt=bt[wt];assert$l(Mt!==0),a.type==="affine"?Mt>0?gt=gt.mixedAdd(tt[Mt-1>>1]):gt=gt.mixedAdd(tt[-Mt-1>>1].neg()):Mt>0?gt=gt.add(tt[Mt-1>>1]):gt=gt.add(tt[-Mt-1>>1].neg())}return a.type==="affine"?gt.toP():gt};BaseCurve$1.prototype._wnafMulAdd=function(a,d,et,nt,tt){var bt=this._wnafT1,gt=this._wnafT2,wt=this._wnafT3,St=0,Mt,_t,Tt;for(Mt=0;Mt=1;Mt-=2){var kt=Mt-1,It=Mt;if(bt[kt]!==1||bt[It]!==1){wt[kt]=getNAF$1(et[kt],bt[kt],this._bitLength),wt[It]=getNAF$1(et[It],bt[It],this._bitLength),St=Math.max(wt[kt].length,St),St=Math.max(wt[It].length,St);continue}var Lt=[d[kt],null,null,d[It]];d[kt].y.cmp(d[It].y)===0?(Lt[1]=d[kt].add(d[It]),Lt[2]=d[kt].toJ().mixedAdd(d[It].neg())):d[kt].y.cmp(d[It].y.redNeg())===0?(Lt[1]=d[kt].toJ().mixedAdd(d[It]),Lt[2]=d[kt].add(d[It].neg())):(Lt[1]=d[kt].toJ().mixedAdd(d[It]),Lt[2]=d[kt].toJ().mixedAdd(d[It].neg()));var Ot=[-3,-1,-5,-7,0,7,5,1,3],Nt=getJSF$1(et[kt],et[It]);for(St=Math.max(Nt[0].length,St),wt[kt]=new Array(St),wt[It]=new Array(St),_t=0;_t=0;Mt--){for(var ir=0;Mt>=0;){var rr=!0;for(_t=0;_t=0&&ir++,Vt=Vt.dblp(ir),Mt<0)break;for(_t=0;_t0?Tt=gt[_t][er-1>>1]:er<0&&(Tt=gt[_t][-er-1>>1].neg()),Tt.type==="affine"?Vt=Vt.mixedAdd(Tt):Vt=Vt.add(Tt))}}for(Mt=0;Mt=Math.ceil((a.bitLength()+1)/d.step):!1};BasePoint$1.prototype._getDoubles=function(a,d){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var et=[this],nt=this,tt=0;tt=0&&(Bt=St,kt=Mt),_t.negative&&(_t=_t.neg(),Tt=Tt.neg()),Bt.negative&&(Bt=Bt.neg(),kt=kt.neg()),[{a:_t,b:Tt},{a:Bt,b:kt}]};ShortCurve$1.prototype._endoSplit=function(a){var d=this.endo.basis,et=d[0],nt=d[1],tt=nt.b.mul(a).divRound(this.n),bt=et.b.neg().mul(a).divRound(this.n),gt=tt.mul(et.a),wt=bt.mul(nt.a),St=tt.mul(et.b),Mt=bt.mul(nt.b),_t=a.sub(gt).sub(wt),Tt=St.add(Mt).neg();return{k1:_t,k2:Tt}};ShortCurve$1.prototype.pointFromX=function(a,d){a=new BN$f(a,16),a.red||(a=a.toRed(this.red));var et=a.redSqr().redMul(a).redIAdd(a.redMul(this.a)).redIAdd(this.b),nt=et.redSqrt();if(nt.redSqr().redSub(et).cmp(this.zero)!==0)throw new Error("invalid point");var tt=nt.fromRed().isOdd();return(d&&!tt||!d&&tt)&&(nt=nt.redNeg()),this.point(a,nt)};ShortCurve$1.prototype.validate=function(a){if(a.inf)return!0;var d=a.x,et=a.y,nt=this.a.redMul(d),tt=d.redSqr().redMul(d).redIAdd(nt).redIAdd(this.b);return et.redSqr().redISub(tt).cmpn(0)===0};ShortCurve$1.prototype._endoWnafMulAdd=function(a,d,et){for(var nt=this._endoWnafT1,tt=this._endoWnafT2,bt=0;bt":""};Point$6.prototype.isInfinity=function(){return this.inf};Point$6.prototype.add=function(a){if(this.inf)return a;if(a.inf)return this;if(this.eq(a))return this.dbl();if(this.neg().eq(a))return this.curve.point(null,null);if(this.x.cmp(a.x)===0)return this.curve.point(null,null);var d=this.y.redSub(a.y);d.cmpn(0)!==0&&(d=d.redMul(this.x.redSub(a.x).redInvm()));var et=d.redSqr().redISub(this.x).redISub(a.x),nt=d.redMul(this.x.redSub(et)).redISub(this.y);return this.curve.point(et,nt)};Point$6.prototype.dbl=function(){if(this.inf)return this;var a=this.y.redAdd(this.y);if(a.cmpn(0)===0)return this.curve.point(null,null);var d=this.curve.a,et=this.x.redSqr(),nt=a.redInvm(),tt=et.redAdd(et).redIAdd(et).redIAdd(d).redMul(nt),bt=tt.redSqr().redISub(this.x.redAdd(this.x)),gt=tt.redMul(this.x.redSub(bt)).redISub(this.y);return this.curve.point(bt,gt)};Point$6.prototype.getX=function(){return this.x.fromRed()};Point$6.prototype.getY=function(){return this.y.fromRed()};Point$6.prototype.mul=function(a){return a=new BN$f(a,16),this.isInfinity()?this:this._hasDoubles(a)?this.curve._fixedNafMul(this,a):this.curve.endo?this.curve._endoWnafMulAdd([this],[a]):this.curve._wnafMul(this,a)};Point$6.prototype.mulAdd=function(a,d,et){var nt=[this,d],tt=[a,et];return this.curve.endo?this.curve._endoWnafMulAdd(nt,tt):this.curve._wnafMulAdd(1,nt,tt,2)};Point$6.prototype.jmulAdd=function(a,d,et){var nt=[this,d],tt=[a,et];return this.curve.endo?this.curve._endoWnafMulAdd(nt,tt,!0):this.curve._wnafMulAdd(1,nt,tt,2,!0)};Point$6.prototype.eq=function(a){return this===a||this.inf===a.inf&&(this.inf||this.x.cmp(a.x)===0&&this.y.cmp(a.y)===0)};Point$6.prototype.neg=function(a){if(this.inf)return this;var d=this.curve.point(this.x,this.y.redNeg());if(a&&this.precomputed){var et=this.precomputed,nt=function(tt){return tt.neg()};d.precomputed={naf:et.naf&&{wnd:et.naf.wnd,points:et.naf.points.map(nt)},doubles:et.doubles&&{step:et.doubles.step,points:et.doubles.points.map(nt)}}}return d};Point$6.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var a=this.curve.jpoint(this.x,this.y,this.curve.one);return a};function JPoint$1(c,a,d,et){Base$5.BasePoint.call(this,c,"jacobian"),a===null&&d===null&&et===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new BN$f(0)):(this.x=new BN$f(a,16),this.y=new BN$f(d,16),this.z=new BN$f(et,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}inherits$7(JPoint$1,Base$5.BasePoint);ShortCurve$1.prototype.jpoint=function(a,d,et){return new JPoint$1(this,a,d,et)};JPoint$1.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var a=this.z.redInvm(),d=a.redSqr(),et=this.x.redMul(d),nt=this.y.redMul(d).redMul(a);return this.curve.point(et,nt)};JPoint$1.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};JPoint$1.prototype.add=function(a){if(this.isInfinity())return a;if(a.isInfinity())return this;var d=a.z.redSqr(),et=this.z.redSqr(),nt=this.x.redMul(d),tt=a.x.redMul(et),bt=this.y.redMul(d.redMul(a.z)),gt=a.y.redMul(et.redMul(this.z)),wt=nt.redSub(tt),St=bt.redSub(gt);if(wt.cmpn(0)===0)return St.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var Mt=wt.redSqr(),_t=Mt.redMul(wt),Tt=nt.redMul(Mt),Bt=St.redSqr().redIAdd(_t).redISub(Tt).redISub(Tt),kt=St.redMul(Tt.redISub(Bt)).redISub(bt.redMul(_t)),It=this.z.redMul(a.z).redMul(wt);return this.curve.jpoint(Bt,kt,It)};JPoint$1.prototype.mixedAdd=function(a){if(this.isInfinity())return a.toJ();if(a.isInfinity())return this;var d=this.z.redSqr(),et=this.x,nt=a.x.redMul(d),tt=this.y,bt=a.y.redMul(d).redMul(this.z),gt=et.redSub(nt),wt=tt.redSub(bt);if(gt.cmpn(0)===0)return wt.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var St=gt.redSqr(),Mt=St.redMul(gt),_t=et.redMul(St),Tt=wt.redSqr().redIAdd(Mt).redISub(_t).redISub(_t),Bt=wt.redMul(_t.redISub(Tt)).redISub(tt.redMul(Mt)),kt=this.z.redMul(gt);return this.curve.jpoint(Tt,Bt,kt)};JPoint$1.prototype.dblp=function(a){if(a===0)return this;if(this.isInfinity())return this;if(!a)return this.dbl();var d;if(this.curve.zeroA||this.curve.threeA){var et=this;for(d=0;d=0)return!1;if(et.redIAdd(tt),this.x.cmp(et)===0)return!0}};JPoint$1.prototype.inspect=function(){return this.isInfinity()?"":""};JPoint$1.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var BN$e=bnExports$4,inherits$6=inherits_browserExports,Base$4=base$3,utils$u=utils$y;function MontCurve$1(c){Base$4.call(this,"mont",c),this.a=new BN$e(c.a,16).toRed(this.red),this.b=new BN$e(c.b,16).toRed(this.red),this.i4=new BN$e(4).toRed(this.red).redInvm(),this.two=new BN$e(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}inherits$6(MontCurve$1,Base$4);var mont$1=MontCurve$1;MontCurve$1.prototype.validate=function(a){var d=a.normalize().x,et=d.redSqr(),nt=et.redMul(d).redAdd(et.redMul(this.a)).redAdd(d),tt=nt.redSqrt();return tt.redSqr().cmp(nt)===0};function Point$5(c,a,d){Base$4.BasePoint.call(this,c,"projective"),a===null&&d===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new BN$e(a,16),this.z=new BN$e(d,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}inherits$6(Point$5,Base$4.BasePoint);MontCurve$1.prototype.decodePoint=function(a,d){return this.point(utils$u.toArray(a,d),1)};MontCurve$1.prototype.point=function(a,d){return new Point$5(this,a,d)};MontCurve$1.prototype.pointFromJSON=function(a){return Point$5.fromJSON(this,a)};Point$5.prototype.precompute=function(){};Point$5.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};Point$5.fromJSON=function(a,d){return new Point$5(a,d[0],d[1]||a.one)};Point$5.prototype.inspect=function(){return this.isInfinity()?"":""};Point$5.prototype.isInfinity=function(){return this.z.cmpn(0)===0};Point$5.prototype.dbl=function(){var a=this.x.redAdd(this.z),d=a.redSqr(),et=this.x.redSub(this.z),nt=et.redSqr(),tt=d.redSub(nt),bt=d.redMul(nt),gt=tt.redMul(nt.redAdd(this.curve.a24.redMul(tt)));return this.curve.point(bt,gt)};Point$5.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};Point$5.prototype.diffAdd=function(a,d){var et=this.x.redAdd(this.z),nt=this.x.redSub(this.z),tt=a.x.redAdd(a.z),bt=a.x.redSub(a.z),gt=bt.redMul(et),wt=tt.redMul(nt),St=d.z.redMul(gt.redAdd(wt).redSqr()),Mt=d.x.redMul(gt.redISub(wt).redSqr());return this.curve.point(St,Mt)};Point$5.prototype.mul=function(a){for(var d=a.clone(),et=this,nt=this.curve.point(null,null),tt=this,bt=[];d.cmpn(0)!==0;d.iushrn(1))bt.push(d.andln(1));for(var gt=bt.length-1;gt>=0;gt--)bt[gt]===0?(et=et.diffAdd(nt,tt),nt=nt.dbl()):(nt=et.diffAdd(nt,tt),et=et.dbl());return nt};Point$5.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};Point$5.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};Point$5.prototype.eq=function(a){return this.getX().cmp(a.getX())===0};Point$5.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Point$5.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var utils$t=utils$y,BN$d=bnExports$4,inherits$5=inherits_browserExports,Base$3=base$3,assert$j=utils$t.assert;function EdwardsCurve$1(c){this.twisted=(c.a|0)!==1,this.mOneA=this.twisted&&(c.a|0)===-1,this.extended=this.mOneA,Base$3.call(this,"edwards",c),this.a=new BN$d(c.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new BN$d(c.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new BN$d(c.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),assert$j(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(c.c|0)===1}inherits$5(EdwardsCurve$1,Base$3);var edwards$1=EdwardsCurve$1;EdwardsCurve$1.prototype._mulA=function(a){return this.mOneA?a.redNeg():this.a.redMul(a)};EdwardsCurve$1.prototype._mulC=function(a){return this.oneC?a:this.c.redMul(a)};EdwardsCurve$1.prototype.jpoint=function(a,d,et,nt){return this.point(a,d,et,nt)};EdwardsCurve$1.prototype.pointFromX=function(a,d){a=new BN$d(a,16),a.red||(a=a.toRed(this.red));var et=a.redSqr(),nt=this.c2.redSub(this.a.redMul(et)),tt=this.one.redSub(this.c2.redMul(this.d).redMul(et)),bt=nt.redMul(tt.redInvm()),gt=bt.redSqrt();if(gt.redSqr().redSub(bt).cmp(this.zero)!==0)throw new Error("invalid point");var wt=gt.fromRed().isOdd();return(d&&!wt||!d&&wt)&&(gt=gt.redNeg()),this.point(a,gt)};EdwardsCurve$1.prototype.pointFromY=function(a,d){a=new BN$d(a,16),a.red||(a=a.toRed(this.red));var et=a.redSqr(),nt=et.redSub(this.c2),tt=et.redMul(this.d).redMul(this.c2).redSub(this.a),bt=nt.redMul(tt.redInvm());if(bt.cmp(this.zero)===0){if(d)throw new Error("invalid point");return this.point(this.zero,a)}var gt=bt.redSqrt();if(gt.redSqr().redSub(bt).cmp(this.zero)!==0)throw new Error("invalid point");return gt.fromRed().isOdd()!==d&&(gt=gt.redNeg()),this.point(gt,a)};EdwardsCurve$1.prototype.validate=function(a){if(a.isInfinity())return!0;a.normalize();var d=a.x.redSqr(),et=a.y.redSqr(),nt=d.redMul(this.a).redAdd(et),tt=this.c2.redMul(this.one.redAdd(this.d.redMul(d).redMul(et)));return nt.cmp(tt)===0};function Point$4(c,a,d,et,nt){Base$3.BasePoint.call(this,c,"projective"),a===null&&d===null&&et===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new BN$d(a,16),this.y=new BN$d(d,16),this.z=et?new BN$d(et,16):this.curve.one,this.t=nt&&new BN$d(nt,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}inherits$5(Point$4,Base$3.BasePoint);EdwardsCurve$1.prototype.pointFromJSON=function(a){return Point$4.fromJSON(this,a)};EdwardsCurve$1.prototype.point=function(a,d,et,nt){return new Point$4(this,a,d,et,nt)};Point$4.fromJSON=function(a,d){return new Point$4(a,d[0],d[1],d[2])};Point$4.prototype.inspect=function(){return this.isInfinity()?"":""};Point$4.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Point$4.prototype._extDbl=function(){var a=this.x.redSqr(),d=this.y.redSqr(),et=this.z.redSqr();et=et.redIAdd(et);var nt=this.curve._mulA(a),tt=this.x.redAdd(this.y).redSqr().redISub(a).redISub(d),bt=nt.redAdd(d),gt=bt.redSub(et),wt=nt.redSub(d),St=tt.redMul(gt),Mt=bt.redMul(wt),_t=tt.redMul(wt),Tt=gt.redMul(bt);return this.curve.point(St,Mt,Tt,_t)};Point$4.prototype._projDbl=function(){var a=this.x.redAdd(this.y).redSqr(),d=this.x.redSqr(),et=this.y.redSqr(),nt,tt,bt,gt,wt,St;if(this.curve.twisted){gt=this.curve._mulA(d);var Mt=gt.redAdd(et);this.zOne?(nt=a.redSub(d).redSub(et).redMul(Mt.redSub(this.curve.two)),tt=Mt.redMul(gt.redSub(et)),bt=Mt.redSqr().redSub(Mt).redSub(Mt)):(wt=this.z.redSqr(),St=Mt.redSub(wt).redISub(wt),nt=a.redSub(d).redISub(et).redMul(St),tt=Mt.redMul(gt.redSub(et)),bt=Mt.redMul(St))}else gt=d.redAdd(et),wt=this.curve._mulC(this.z).redSqr(),St=gt.redSub(wt).redSub(wt),nt=this.curve._mulC(a.redISub(gt)).redMul(St),tt=this.curve._mulC(gt).redMul(d.redISub(et)),bt=gt.redMul(St);return this.curve.point(nt,tt,bt)};Point$4.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Point$4.prototype._extAdd=function(a){var d=this.y.redSub(this.x).redMul(a.y.redSub(a.x)),et=this.y.redAdd(this.x).redMul(a.y.redAdd(a.x)),nt=this.t.redMul(this.curve.dd).redMul(a.t),tt=this.z.redMul(a.z.redAdd(a.z)),bt=et.redSub(d),gt=tt.redSub(nt),wt=tt.redAdd(nt),St=et.redAdd(d),Mt=bt.redMul(gt),_t=wt.redMul(St),Tt=bt.redMul(St),Bt=gt.redMul(wt);return this.curve.point(Mt,_t,Bt,Tt)};Point$4.prototype._projAdd=function(a){var d=this.z.redMul(a.z),et=d.redSqr(),nt=this.x.redMul(a.x),tt=this.y.redMul(a.y),bt=this.curve.d.redMul(nt).redMul(tt),gt=et.redSub(bt),wt=et.redAdd(bt),St=this.x.redAdd(this.y).redMul(a.x.redAdd(a.y)).redISub(nt).redISub(tt),Mt=d.redMul(gt).redMul(St),_t,Tt;return this.curve.twisted?(_t=d.redMul(wt).redMul(tt.redSub(this.curve._mulA(nt))),Tt=gt.redMul(wt)):(_t=d.redMul(wt).redMul(tt.redSub(nt)),Tt=this.curve._mulC(gt).redMul(wt)),this.curve.point(Mt,_t,Tt)};Point$4.prototype.add=function(a){return this.isInfinity()?a:a.isInfinity()?this:this.curve.extended?this._extAdd(a):this._projAdd(a)};Point$4.prototype.mul=function(a){return this._hasDoubles(a)?this.curve._fixedNafMul(this,a):this.curve._wnafMul(this,a)};Point$4.prototype.mulAdd=function(a,d,et){return this.curve._wnafMulAdd(1,[this,d],[a,et],2,!1)};Point$4.prototype.jmulAdd=function(a,d,et){return this.curve._wnafMulAdd(1,[this,d],[a,et],2,!0)};Point$4.prototype.normalize=function(){if(this.zOne)return this;var a=this.z.redInvm();return this.x=this.x.redMul(a),this.y=this.y.redMul(a),this.t&&(this.t=this.t.redMul(a)),this.z=this.curve.one,this.zOne=!0,this};Point$4.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Point$4.prototype.getX=function(){return this.normalize(),this.x.fromRed()};Point$4.prototype.getY=function(){return this.normalize(),this.y.fromRed()};Point$4.prototype.eq=function(a){return this===a||this.getX().cmp(a.getX())===0&&this.getY().cmp(a.getY())===0};Point$4.prototype.eqXToP=function(a){var d=a.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(d)===0)return!0;for(var et=a.clone(),nt=this.curve.redN.redMul(this.z);;){if(et.iadd(this.curve.n),et.cmp(this.curve.p)>=0)return!1;if(d.redIAdd(nt),this.x.cmp(d)===0)return!0}};Point$4.prototype.toP=Point$4.prototype.normalize;Point$4.prototype.mixedAdd=Point$4.prototype.add;(function(c){var a=c;a.base=base$3,a.short=short$1,a.mont=mont$1,a.edwards=edwards$1})(curve$1);var curves$3={},hash$7={},utils$s={},assert$i=minimalisticAssert,inherits$4=inherits_browserExports;utils$s.inherits=inherits$4;function isSurrogatePair(c,a){return(c.charCodeAt(a)&64512)!==55296||a<0||a+1>=c.length?!1:(c.charCodeAt(a+1)&64512)===56320}function toArray(c,a){if(Array.isArray(c))return c.slice();if(!c)return[];var d=[];if(typeof c=="string")if(a){if(a==="hex")for(c=c.replace(/[^a-z0-9]+/ig,""),c.length%2!==0&&(c="0"+c),nt=0;nt>6|192,d[et++]=tt&63|128):isSurrogatePair(c,nt)?(tt=65536+((tt&1023)<<10)+(c.charCodeAt(++nt)&1023),d[et++]=tt>>18|240,d[et++]=tt>>12&63|128,d[et++]=tt>>6&63|128,d[et++]=tt&63|128):(d[et++]=tt>>12|224,d[et++]=tt>>6&63|128,d[et++]=tt&63|128)}else for(nt=0;nt>>24|c>>>8&65280|c<<8&16711680|(c&255)<<24;return a>>>0}utils$s.htonl=htonl;function toHex32(c,a){for(var d="",et=0;et>>0}return tt}utils$s.join32=join32;function split32(c,a){for(var d=new Array(c.length*4),et=0,nt=0;et>>24,d[nt+1]=tt>>>16&255,d[nt+2]=tt>>>8&255,d[nt+3]=tt&255):(d[nt+3]=tt>>>24,d[nt+2]=tt>>>16&255,d[nt+1]=tt>>>8&255,d[nt]=tt&255)}return d}utils$s.split32=split32;function rotr32$1(c,a){return c>>>a|c<<32-a}utils$s.rotr32=rotr32$1;function rotl32$2(c,a){return c<>>32-a}utils$s.rotl32=rotl32$2;function sum32$3(c,a){return c+a>>>0}utils$s.sum32=sum32$3;function sum32_3$1(c,a,d){return c+a+d>>>0}utils$s.sum32_3=sum32_3$1;function sum32_4$2(c,a,d,et){return c+a+d+et>>>0}utils$s.sum32_4=sum32_4$2;function sum32_5$2(c,a,d,et,nt){return c+a+d+et+nt>>>0}utils$s.sum32_5=sum32_5$2;function sum64$1(c,a,d,et){var nt=c[a],tt=c[a+1],bt=et+tt>>>0,gt=(bt>>0,c[a+1]=bt}utils$s.sum64=sum64$1;function sum64_hi$1(c,a,d,et){var nt=a+et>>>0,tt=(nt>>0}utils$s.sum64_hi=sum64_hi$1;function sum64_lo$1(c,a,d,et){var nt=a+et;return nt>>>0}utils$s.sum64_lo=sum64_lo$1;function sum64_4_hi$1(c,a,d,et,nt,tt,bt,gt){var wt=0,St=a;St=St+et>>>0,wt+=St>>0,wt+=St>>0,wt+=St>>0}utils$s.sum64_4_hi=sum64_4_hi$1;function sum64_4_lo$1(c,a,d,et,nt,tt,bt,gt){var wt=a+et+tt+gt;return wt>>>0}utils$s.sum64_4_lo=sum64_4_lo$1;function sum64_5_hi$1(c,a,d,et,nt,tt,bt,gt,wt,St){var Mt=0,_t=a;_t=_t+et>>>0,Mt+=_t>>0,Mt+=_t>>0,Mt+=_t>>0,Mt+=_t>>0}utils$s.sum64_5_hi=sum64_5_hi$1;function sum64_5_lo$1(c,a,d,et,nt,tt,bt,gt,wt,St){var Mt=a+et+tt+gt+St;return Mt>>>0}utils$s.sum64_5_lo=sum64_5_lo$1;function rotr64_hi$1(c,a,d){var et=a<<32-d|c>>>d;return et>>>0}utils$s.rotr64_hi=rotr64_hi$1;function rotr64_lo$1(c,a,d){var et=c<<32-d|a>>>d;return et>>>0}utils$s.rotr64_lo=rotr64_lo$1;function shr64_hi$1(c,a,d){return c>>>d}utils$s.shr64_hi=shr64_hi$1;function shr64_lo$1(c,a,d){var et=c<<32-d|a>>>d;return et>>>0}utils$s.shr64_lo=shr64_lo$1;var common$6={},utils$r=utils$s,assert$h=minimalisticAssert;function BlockHash$4(){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}common$6.BlockHash=BlockHash$4;BlockHash$4.prototype.update=function(a,d){if(a=utils$r.toArray(a,d),this.pending?this.pending=this.pending.concat(a):this.pending=a,this.pendingTotal+=a.length,this.pending.length>=this._delta8){a=this.pending;var et=a.length%this._delta8;this.pending=a.slice(a.length-et,a.length),this.pending.length===0&&(this.pending=null),a=utils$r.join32(a,0,a.length-et,this.endian);for(var nt=0;nt>>24&255,nt[tt++]=a>>>16&255,nt[tt++]=a>>>8&255,nt[tt++]=a&255}else for(nt[tt++]=a&255,nt[tt++]=a>>>8&255,nt[tt++]=a>>>16&255,nt[tt++]=a>>>24&255,nt[tt++]=0,nt[tt++]=0,nt[tt++]=0,nt[tt++]=0,bt=8;bt>>3}common$5.g0_256=g0_256$1;function g1_256$1(c){return rotr32(c,17)^rotr32(c,19)^c>>>10}common$5.g1_256=g1_256$1;var utils$p=utils$s,common$4=common$6,shaCommon$1=common$5,rotl32$1=utils$p.rotl32,sum32$2=utils$p.sum32,sum32_5$1=utils$p.sum32_5,ft_1=shaCommon$1.ft_1,BlockHash$3=common$4.BlockHash,sha1_K=[1518500249,1859775393,2400959708,3395469782];function SHA1(){if(!(this instanceof SHA1))return new SHA1;BlockHash$3.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}utils$p.inherits(SHA1,BlockHash$3);var _1=SHA1;SHA1.blockSize=512;SHA1.outSize=160;SHA1.hmacStrength=80;SHA1.padLength=64;SHA1.prototype._update=function(a,d){for(var et=this.W,nt=0;nt<16;nt++)et[nt]=a[d+nt];for(;ntthis.blockSize&&(a=new this.Hash().update(a).digest()),assert$e(a.length<=this.blockSize);for(var d=a.length;d=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(a,d,et)}var hmacDrbg=HmacDRBG;HmacDRBG.prototype._init=function(a,d,et){var nt=a.concat(d).concat(et);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var tt=0;tt=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(a.concat(et||[])),this._reseed=1};HmacDRBG.prototype.generate=function(a,d,et,nt){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof d!="string"&&(nt=et,et=d,d=null),et&&(et=utils$i.toArray(et,nt||"hex"),this._update(et));for(var tt=[];tt.length"};var BN$b=bnExports$4,utils$g=utils$y,assert$b=utils$g.assert;function Signature$7(c,a){if(c instanceof Signature$7)return c;this._importDER(c,a)||(assert$b(c.r&&c.s,"Signature without r or s"),this.r=new BN$b(c.r,16),this.s=new BN$b(c.s,16),c.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=c.recoveryParam)}var signature$3=Signature$7;function Position$1(){this.place=0}function getLength$1(c,a){var d=c[a.place++];if(!(d&128))return d;var et=d&15;if(et===0||et>4)return!1;for(var nt=0,tt=0,bt=a.place;tt>>=0;return nt<=127?!1:(a.place=bt,nt)}function rmPadding$1(c){for(var a=0,d=c.length-1;!c[a]&&!(c[a+1]&128)&&a>>3);for(c.push(d|128);--d;)c.push(a>>>(d<<3)&255);c.push(a)}Signature$7.prototype.toDER=function(a){var d=this.r.toArray(),et=this.s.toArray();for(d[0]&128&&(d=[0].concat(d)),et[0]&128&&(et=[0].concat(et)),d=rmPadding$1(d),et=rmPadding$1(et);!et[0]&&!(et[1]&128);)et=et.slice(1);var nt=[2];constructLength$1(nt,d.length),nt=nt.concat(d),nt.push(2),constructLength$1(nt,et.length);var tt=nt.concat(et),bt=[48];return constructLength$1(bt,tt.length),bt=bt.concat(tt),utils$g.encode(bt,a)};var ec$1,hasRequiredEc$1;function requireEc$1(){if(hasRequiredEc$1)return ec$1;hasRequiredEc$1=1;var c=bnExports$4,a=hmacDrbg,d=utils$y,et=curves$3,nt=requireBrorand(),tt=d.assert,bt=key$3,gt=signature$3;function wt(St){if(!(this instanceof wt))return new wt(St);typeof St=="string"&&(tt(Object.prototype.hasOwnProperty.call(et,St),"Unknown curve "+St),St=et[St]),St instanceof et.PresetCurve&&(St={curve:St}),this.curve=St.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=St.curve.g,this.g.precompute(St.curve.n.bitLength()+1),this.hash=St.hash||St.curve.hash}return ec$1=wt,wt.prototype.keyPair=function(Mt){return new bt(this,Mt)},wt.prototype.keyFromPrivate=function(Mt,_t){return bt.fromPrivate(this,Mt,_t)},wt.prototype.keyFromPublic=function(Mt,_t){return bt.fromPublic(this,Mt,_t)},wt.prototype.genKeyPair=function(Mt){Mt||(Mt={});for(var _t=new a({hash:this.hash,pers:Mt.pers,persEnc:Mt.persEnc||"utf8",entropy:Mt.entropy||nt(this.hash.hmacStrength),entropyEnc:Mt.entropy&&Mt.entropyEnc||"utf8",nonce:this.n.toArray()}),Tt=this.n.byteLength(),Bt=this.n.sub(new c(2));;){var kt=new c(_t.generate(Tt));if(!(kt.cmp(Bt)>0))return kt.iaddn(1),this.keyFromPrivate(kt)}},wt.prototype._truncateToN=function(Mt,_t){var Tt=Mt.byteLength()*8-this.n.bitLength();return Tt>0&&(Mt=Mt.ushrn(Tt)),!_t&&Mt.cmp(this.n)>=0?Mt.sub(this.n):Mt},wt.prototype.sign=function(Mt,_t,Tt,Bt){typeof Tt=="object"&&(Bt=Tt,Tt=null),Bt||(Bt={}),_t=this.keyFromPrivate(_t,Tt),Mt=this._truncateToN(new c(Mt,16));for(var kt=this.n.byteLength(),It=_t.getPrivate().toArray("be",kt),Lt=Mt.toArray("be",kt),Ot=new a({hash:this.hash,entropy:It,nonce:Lt,pers:Bt.pers,persEnc:Bt.persEnc||"utf8"}),Nt=this.n.sub(new c(1)),Ft=0;;Ft++){var zt=Bt.k?Bt.k(Ft):new c(Ot.generate(this.n.byteLength()));if(zt=this._truncateToN(zt,!0),!(zt.cmpn(1)<=0||zt.cmp(Nt)>=0)){var Vt=this.g.mul(zt);if(!Vt.isInfinity()){var Jt=Vt.getX(),ir=Jt.umod(this.n);if(ir.cmpn(0)!==0){var rr=zt.invm(this.n).mul(ir.mul(_t.getPrivate()).iadd(Mt));if(rr=rr.umod(this.n),rr.cmpn(0)!==0){var er=(Vt.getY().isOdd()?1:0)|(Jt.cmp(ir)!==0?2:0);return Bt.canonical&&rr.cmp(this.nh)>0&&(rr=this.n.sub(rr),er^=1),new gt({r:ir,s:rr,recoveryParam:er})}}}}}},wt.prototype.verify=function(Mt,_t,Tt,Bt){Mt=this._truncateToN(new c(Mt,16)),Tt=this.keyFromPublic(Tt,Bt),_t=new gt(_t,"hex");var kt=_t.r,It=_t.s;if(kt.cmpn(1)<0||kt.cmp(this.n)>=0||It.cmpn(1)<0||It.cmp(this.n)>=0)return!1;var Lt=It.invm(this.n),Ot=Lt.mul(Mt).umod(this.n),Nt=Lt.mul(kt).umod(this.n),Ft;return this.curve._maxwellTrick?(Ft=this.g.jmulAdd(Ot,Tt.getPublic(),Nt),Ft.isInfinity()?!1:Ft.eqXToP(kt)):(Ft=this.g.mulAdd(Ot,Tt.getPublic(),Nt),Ft.isInfinity()?!1:Ft.getX().umod(this.n).cmp(kt)===0)},wt.prototype.recoverPubKey=function(St,Mt,_t,Tt){tt((3&_t)===_t,"The recovery param is more than two bits"),Mt=new gt(Mt,Tt);var Bt=this.n,kt=new c(St),It=Mt.r,Lt=Mt.s,Ot=_t&1,Nt=_t>>1;if(It.cmp(this.curve.p.umod(this.curve.n))>=0&&Nt)throw new Error("Unable to find sencond key candinate");Nt?It=this.curve.pointFromX(It.add(this.curve.n),Ot):It=this.curve.pointFromX(It,Ot);var Ft=Mt.r.invm(Bt),zt=Bt.sub(kt).mul(Ft).umod(Bt),Vt=Lt.mul(Ft).umod(Bt);return this.g.mulAdd(zt,It,Vt)},wt.prototype.getKeyRecoveryParam=function(St,Mt,_t,Tt){if(Mt=new gt(Mt,Tt),Mt.recoveryParam!==null)return Mt.recoveryParam;for(var Bt=0;Bt<4;Bt++){var kt;try{kt=this.recoverPubKey(St,Mt,Bt)}catch{continue}if(kt.eq(_t))return Bt}throw new Error("Unable to find valid recovery factor")},ec$1}var utils$f=utils$y,assert$a=utils$f.assert,parseBytes$5=utils$f.parseBytes,cachedProperty$3=utils$f.cachedProperty;function KeyPair$4(c,a){this.eddsa=c,this._secret=parseBytes$5(a.secret),c.isPoint(a.pub)?this._pub=a.pub:this._pubBytes=parseBytes$5(a.pub)}KeyPair$4.fromPublic=function(a,d){return d instanceof KeyPair$4?d:new KeyPair$4(a,{pub:d})};KeyPair$4.fromSecret=function(a,d){return d instanceof KeyPair$4?d:new KeyPair$4(a,{secret:d})};KeyPair$4.prototype.secret=function(){return this._secret};cachedProperty$3(KeyPair$4,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});cachedProperty$3(KeyPair$4,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});cachedProperty$3(KeyPair$4,"privBytes",function(){var a=this.eddsa,d=this.hash(),et=a.encodingLength-1,nt=d.slice(0,a.encodingLength);return nt[0]&=248,nt[et]&=127,nt[et]|=64,nt});cachedProperty$3(KeyPair$4,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});cachedProperty$3(KeyPair$4,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});cachedProperty$3(KeyPair$4,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});KeyPair$4.prototype.sign=function(a){return assert$a(this._secret,"KeyPair can only verify"),this.eddsa.sign(a,this)};KeyPair$4.prototype.verify=function(a,d){return this.eddsa.verify(a,d,this)};KeyPair$4.prototype.getSecret=function(a){return assert$a(this._secret,"KeyPair is public only"),utils$f.encode(this.secret(),a)};KeyPair$4.prototype.getPublic=function(a){return utils$f.encode(this.pubBytes(),a)};var key$2=KeyPair$4,BN$a=bnExports$4,utils$e=utils$y,assert$9=utils$e.assert,cachedProperty$2=utils$e.cachedProperty,parseBytes$4=utils$e.parseBytes;function Signature$6(c,a){this.eddsa=c,typeof a!="object"&&(a=parseBytes$4(a)),Array.isArray(a)&&(a={R:a.slice(0,c.encodingLength),S:a.slice(c.encodingLength)}),assert$9(a.R&&a.S,"Signature without R or S"),c.isPoint(a.R)&&(this._R=a.R),a.S instanceof BN$a&&(this._S=a.S),this._Rencoded=Array.isArray(a.R)?a.R:a.Rencoded,this._Sencoded=Array.isArray(a.S)?a.S:a.Sencoded}cachedProperty$2(Signature$6,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});cachedProperty$2(Signature$6,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});cachedProperty$2(Signature$6,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});cachedProperty$2(Signature$6,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Signature$6.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Signature$6.prototype.toHex=function(){return utils$e.encode(this.toBytes(),"hex").toUpperCase()};var signature$2=Signature$6,hash$5=hash$7,curves$2=curves$3,utils$d=utils$y,assert$8=utils$d.assert,parseBytes$3=utils$d.parseBytes,KeyPair$3=key$2,Signature$5=signature$2;function EDDSA$1(c){if(assert$8(c==="ed25519","only tested with ed25519 so far"),!(this instanceof EDDSA$1))return new EDDSA$1(c);c=curves$2[c].curve,this.curve=c,this.g=c.g,this.g.precompute(c.n.bitLength()+1),this.pointClass=c.point().constructor,this.encodingLength=Math.ceil(c.n.bitLength()/8),this.hash=hash$5.sha512}var eddsa$1=EDDSA$1;EDDSA$1.prototype.sign=function(a,d){a=parseBytes$3(a);var et=this.keyFromSecret(d),nt=this.hashInt(et.messagePrefix(),a),tt=this.g.mul(nt),bt=this.encodePoint(tt),gt=this.hashInt(bt,et.pubBytes(),a).mul(et.priv()),wt=nt.add(gt).umod(this.curve.n);return this.makeSignature({R:tt,S:wt,Rencoded:bt})};EDDSA$1.prototype.verify=function(a,d,et){a=parseBytes$3(a),d=this.makeSignature(d);var nt=this.keyFromPublic(et),tt=this.hashInt(d.Rencoded(),nt.pubBytes(),a),bt=this.g.mul(d.S()),gt=d.R().add(nt.pub().mul(tt));return gt.eq(bt)};EDDSA$1.prototype.hashInt=function(){for(var a=this.hash(),d=0;d0?dt:mt},tt.min=function(dt,mt){return dt.cmp(mt)<0?dt:mt},tt.prototype._init=function(dt,mt,yt){if(typeof dt=="number")return this._initNumber(dt,mt,yt);if(typeof dt=="object")return this._initArray(dt,mt,yt);mt==="hex"&&(mt=16),et(mt===(mt|0)&&mt>=2&&mt<=36),dt=dt.toString().replace(/\s+/g,"");var vt=0;dt[0]==="-"&&(vt++,this.negative=1),vt=0;vt-=3)At=dt[vt]|dt[vt-1]<<8|dt[vt-2]<<16,this.words[Et]|=At<>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,Et++);else if(yt==="le")for(vt=0,Et=0;vt>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,Et++);return this.strip()};function gt(Ct,dt){var mt=Ct.charCodeAt(dt);return mt>=65&&mt<=70?mt-55:mt>=97&&mt<=102?mt-87:mt-48&15}function wt(Ct,dt,mt){var yt=gt(Ct,mt);return mt-1>=dt&&(yt|=gt(Ct,mt-1)<<4),yt}tt.prototype._parseHex=function(dt,mt,yt){this.length=Math.ceil((dt.length-mt)/6),this.words=new Array(this.length);for(var vt=0;vt=mt;vt-=2)Pt=wt(dt,mt,vt)<=18?(Et-=18,At+=1,this.words[At]|=Pt>>>26):Et+=8;else{var xt=dt.length-mt;for(vt=xt%2===0?mt+1:mt;vt=18?(Et-=18,At+=1,this.words[At]|=Pt>>>26):Et+=8}this.strip()};function St(Ct,dt,mt,yt){for(var vt=0,Et=Math.min(Ct.length,mt),At=dt;At=49?vt+=Pt-49+10:Pt>=17?vt+=Pt-17+10:vt+=Pt}return vt}tt.prototype._parseBase=function(dt,mt,yt){this.words=[0],this.length=1;for(var vt=0,Et=1;Et<=67108863;Et*=mt)vt++;vt--,Et=Et/mt|0;for(var At=dt.length-yt,Pt=At%vt,xt=Math.min(At,At-Pt)+yt,ht=0,$t=yt;$t1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},tt.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},tt.prototype.inspect=function(){return(this.red?""};var Mt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],_t=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Tt=[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];tt.prototype.toString=function(dt,mt){dt=dt||10,mt=mt|0||1;var yt;if(dt===16||dt==="hex"){yt="";for(var vt=0,Et=0,At=0;At>>24-vt&16777215,Et!==0||At!==this.length-1?yt=Mt[6-xt.length]+xt+yt:yt=xt+yt,vt+=2,vt>=26&&(vt-=26,At--)}for(Et!==0&&(yt=Et.toString(16)+yt);yt.length%mt!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}if(dt===(dt|0)&&dt>=2&&dt<=36){var ht=_t[dt],$t=Tt[dt];yt="";var Rt=this.clone();for(Rt.negative=0;!Rt.isZero();){var Dt=Rt.modn($t).toString(dt);Rt=Rt.idivn($t),Rt.isZero()?yt=Dt+yt:yt=Mt[ht-Dt.length]+Dt+yt}for(this.isZero()&&(yt="0"+yt);yt.length%mt!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}et(!1,"Base should be between 2 and 36")},tt.prototype.toNumber=function(){var dt=this.words[0];return this.length===2?dt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?dt+=4503599627370496+this.words[1]*67108864:this.length>2&&et(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-dt:dt},tt.prototype.toJSON=function(){return this.toString(16)},tt.prototype.toBuffer=function(dt,mt){return et(typeof bt<"u"),this.toArrayLike(bt,dt,mt)},tt.prototype.toArray=function(dt,mt){return this.toArrayLike(Array,dt,mt)},tt.prototype.toArrayLike=function(dt,mt,yt){var vt=this.byteLength(),Et=yt||Math.max(1,vt);et(vt<=Et,"byte array longer than desired length"),et(Et>0,"Requested array length <= 0"),this.strip();var At=mt==="le",Pt=new dt(Et),xt,ht,$t=this.clone();if(At){for(ht=0;!$t.isZero();ht++)xt=$t.andln(255),$t.iushrn(8),Pt[ht]=xt;for(;ht=4096&&(yt+=13,mt>>>=13),mt>=64&&(yt+=7,mt>>>=7),mt>=8&&(yt+=4,mt>>>=4),mt>=2&&(yt+=2,mt>>>=2),yt+mt},tt.prototype._zeroBits=function(dt){if(dt===0)return 26;var mt=dt,yt=0;return mt&8191||(yt+=13,mt>>>=13),mt&127||(yt+=7,mt>>>=7),mt&15||(yt+=4,mt>>>=4),mt&3||(yt+=2,mt>>>=2),mt&1||yt++,yt},tt.prototype.bitLength=function(){var dt=this.words[this.length-1],mt=this._countBits(dt);return(this.length-1)*26+mt};function Bt(Ct){for(var dt=new Array(Ct.bitLength()),mt=0;mt>>vt}return dt}tt.prototype.zeroBits=function(){if(this.isZero())return 0;for(var dt=0,mt=0;mtdt.length?this.clone().ior(dt):dt.clone().ior(this)},tt.prototype.uor=function(dt){return this.length>dt.length?this.clone().iuor(dt):dt.clone().iuor(this)},tt.prototype.iuand=function(dt){var mt;this.length>dt.length?mt=dt:mt=this;for(var yt=0;ytdt.length?this.clone().iand(dt):dt.clone().iand(this)},tt.prototype.uand=function(dt){return this.length>dt.length?this.clone().iuand(dt):dt.clone().iuand(this)},tt.prototype.iuxor=function(dt){var mt,yt;this.length>dt.length?(mt=this,yt=dt):(mt=dt,yt=this);for(var vt=0;vtdt.length?this.clone().ixor(dt):dt.clone().ixor(this)},tt.prototype.uxor=function(dt){return this.length>dt.length?this.clone().iuxor(dt):dt.clone().iuxor(this)},tt.prototype.inotn=function(dt){et(typeof dt=="number"&&dt>=0);var mt=Math.ceil(dt/26)|0,yt=dt%26;this._expand(mt),yt>0&&mt--;for(var vt=0;vt0&&(this.words[vt]=~this.words[vt]&67108863>>26-yt),this.strip()},tt.prototype.notn=function(dt){return this.clone().inotn(dt)},tt.prototype.setn=function(dt,mt){et(typeof dt=="number"&&dt>=0);var yt=dt/26|0,vt=dt%26;return this._expand(yt+1),mt?this.words[yt]=this.words[yt]|1<dt.length?(yt=this,vt=dt):(yt=dt,vt=this);for(var Et=0,At=0;At>>26;for(;Et!==0&&At>>26;if(this.length=yt.length,Et!==0)this.words[this.length]=Et,this.length++;else if(yt!==this)for(;Atdt.length?this.clone().iadd(dt):dt.clone().iadd(this)},tt.prototype.isub=function(dt){if(dt.negative!==0){dt.negative=0;var mt=this.iadd(dt);return dt.negative=1,mt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(dt),this.negative=1,this._normSign();var yt=this.cmp(dt);if(yt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var vt,Et;yt>0?(vt=this,Et=dt):(vt=dt,Et=this);for(var At=0,Pt=0;Pt>26,this.words[Pt]=mt&67108863;for(;At!==0&&Pt>26,this.words[Pt]=mt&67108863;if(At===0&&Pt>>26,Rt=xt&67108863,Dt=Math.min(ht,dt.length-1),Ht=Math.max(0,ht-Ct.length+1);Ht<=Dt;Ht++){var tr=ht-Ht|0;vt=Ct.words[tr]|0,Et=dt.words[Ht]|0,At=vt*Et+Rt,$t+=At/67108864|0,Rt=At&67108863}mt.words[ht]=Rt|0,xt=$t|0}return xt!==0?mt.words[ht]=xt|0:mt.length--,mt.strip()}var It=function(dt,mt,yt){var vt=dt.words,Et=mt.words,At=yt.words,Pt=0,xt,ht,$t,Rt=vt[0]|0,Dt=Rt&8191,Ht=Rt>>>13,tr=vt[1]|0,Xt=tr&8191,Ut=tr>>>13,qt=vt[2]|0,Gt=qt&8191,Zt=qt>>>13,Yt=vt[3]|0,Kt=Yt&8191,ar=Yt>>>13,gr=vt[4]|0,cr=gr&8191,ur=gr>>>13,Pr=vt[5]|0,br=Pr&8191,dr=Pr>>>13,Kr=vt[6]|0,xr=Kr&8191,Sr=Kr>>>13,Zr=vt[7]|0,$r=Zr&8191,Mr=Zr>>>13,Xr=vt[8]|0,Qt=Xr&8191,jt=Xr>>>13,Wt=vt[9]|0,nr=Wt&8191,fr=Wt>>>13,Er=Et[0]|0,pr=Er&8191,vr=Er>>>13,Jr=Et[1]|0,wr=Jr&8191,Ar=Jr>>>13,Yr=Et[2]|0,Cr=Yr&8191,Or=Yr>>>13,Qr=Et[3]|0,_r=Qr&8191,Dr=Qr>>>13,r0=Et[4]|0,Tr=r0&8191,Lr=r0>>>13,n0=Et[5]|0,Br=n0&8191,Fr=n0>>>13,i0=Et[6]|0,Rr=i0&8191,jr=i0>>>13,a0=Et[7]|0,kr=a0&8191,Ur=a0>>>13,s0=Et[8]|0,Ir=s0&8191,Hr=s0>>>13,o0=Et[9]|0,Nr=o0&8191,qr=o0>>>13;yt.negative=dt.negative^mt.negative,yt.length=19,xt=Math.imul(Dt,pr),ht=Math.imul(Dt,vr),ht=ht+Math.imul(Ht,pr)|0,$t=Math.imul(Ht,vr);var e0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(e0>>>26)|0,e0&=67108863,xt=Math.imul(Xt,pr),ht=Math.imul(Xt,vr),ht=ht+Math.imul(Ut,pr)|0,$t=Math.imul(Ut,vr),xt=xt+Math.imul(Dt,wr)|0,ht=ht+Math.imul(Dt,Ar)|0,ht=ht+Math.imul(Ht,wr)|0,$t=$t+Math.imul(Ht,Ar)|0;var t0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(t0>>>26)|0,t0&=67108863,xt=Math.imul(Gt,pr),ht=Math.imul(Gt,vr),ht=ht+Math.imul(Zt,pr)|0,$t=Math.imul(Zt,vr),xt=xt+Math.imul(Xt,wr)|0,ht=ht+Math.imul(Xt,Ar)|0,ht=ht+Math.imul(Ut,wr)|0,$t=$t+Math.imul(Ut,Ar)|0,xt=xt+Math.imul(Dt,Cr)|0,ht=ht+Math.imul(Dt,Or)|0,ht=ht+Math.imul(Ht,Cr)|0,$t=$t+Math.imul(Ht,Or)|0;var f0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(f0>>>26)|0,f0&=67108863,xt=Math.imul(Kt,pr),ht=Math.imul(Kt,vr),ht=ht+Math.imul(ar,pr)|0,$t=Math.imul(ar,vr),xt=xt+Math.imul(Gt,wr)|0,ht=ht+Math.imul(Gt,Ar)|0,ht=ht+Math.imul(Zt,wr)|0,$t=$t+Math.imul(Zt,Ar)|0,xt=xt+Math.imul(Xt,Cr)|0,ht=ht+Math.imul(Xt,Or)|0,ht=ht+Math.imul(Ut,Cr)|0,$t=$t+Math.imul(Ut,Or)|0,xt=xt+Math.imul(Dt,_r)|0,ht=ht+Math.imul(Dt,Dr)|0,ht=ht+Math.imul(Ht,_r)|0,$t=$t+Math.imul(Ht,Dr)|0;var c0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(c0>>>26)|0,c0&=67108863,xt=Math.imul(cr,pr),ht=Math.imul(cr,vr),ht=ht+Math.imul(ur,pr)|0,$t=Math.imul(ur,vr),xt=xt+Math.imul(Kt,wr)|0,ht=ht+Math.imul(Kt,Ar)|0,ht=ht+Math.imul(ar,wr)|0,$t=$t+Math.imul(ar,Ar)|0,xt=xt+Math.imul(Gt,Cr)|0,ht=ht+Math.imul(Gt,Or)|0,ht=ht+Math.imul(Zt,Cr)|0,$t=$t+Math.imul(Zt,Or)|0,xt=xt+Math.imul(Xt,_r)|0,ht=ht+Math.imul(Xt,Dr)|0,ht=ht+Math.imul(Ut,_r)|0,$t=$t+Math.imul(Ut,Dr)|0,xt=xt+Math.imul(Dt,Tr)|0,ht=ht+Math.imul(Dt,Lr)|0,ht=ht+Math.imul(Ht,Tr)|0,$t=$t+Math.imul(Ht,Lr)|0;var l0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(l0>>>26)|0,l0&=67108863,xt=Math.imul(br,pr),ht=Math.imul(br,vr),ht=ht+Math.imul(dr,pr)|0,$t=Math.imul(dr,vr),xt=xt+Math.imul(cr,wr)|0,ht=ht+Math.imul(cr,Ar)|0,ht=ht+Math.imul(ur,wr)|0,$t=$t+Math.imul(ur,Ar)|0,xt=xt+Math.imul(Kt,Cr)|0,ht=ht+Math.imul(Kt,Or)|0,ht=ht+Math.imul(ar,Cr)|0,$t=$t+Math.imul(ar,Or)|0,xt=xt+Math.imul(Gt,_r)|0,ht=ht+Math.imul(Gt,Dr)|0,ht=ht+Math.imul(Zt,_r)|0,$t=$t+Math.imul(Zt,Dr)|0,xt=xt+Math.imul(Xt,Tr)|0,ht=ht+Math.imul(Xt,Lr)|0,ht=ht+Math.imul(Ut,Tr)|0,$t=$t+Math.imul(Ut,Lr)|0,xt=xt+Math.imul(Dt,Br)|0,ht=ht+Math.imul(Dt,Fr)|0,ht=ht+Math.imul(Ht,Br)|0,$t=$t+Math.imul(Ht,Fr)|0;var u0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(u0>>>26)|0,u0&=67108863,xt=Math.imul(xr,pr),ht=Math.imul(xr,vr),ht=ht+Math.imul(Sr,pr)|0,$t=Math.imul(Sr,vr),xt=xt+Math.imul(br,wr)|0,ht=ht+Math.imul(br,Ar)|0,ht=ht+Math.imul(dr,wr)|0,$t=$t+Math.imul(dr,Ar)|0,xt=xt+Math.imul(cr,Cr)|0,ht=ht+Math.imul(cr,Or)|0,ht=ht+Math.imul(ur,Cr)|0,$t=$t+Math.imul(ur,Or)|0,xt=xt+Math.imul(Kt,_r)|0,ht=ht+Math.imul(Kt,Dr)|0,ht=ht+Math.imul(ar,_r)|0,$t=$t+Math.imul(ar,Dr)|0,xt=xt+Math.imul(Gt,Tr)|0,ht=ht+Math.imul(Gt,Lr)|0,ht=ht+Math.imul(Zt,Tr)|0,$t=$t+Math.imul(Zt,Lr)|0,xt=xt+Math.imul(Xt,Br)|0,ht=ht+Math.imul(Xt,Fr)|0,ht=ht+Math.imul(Ut,Br)|0,$t=$t+Math.imul(Ut,Fr)|0,xt=xt+Math.imul(Dt,Rr)|0,ht=ht+Math.imul(Dt,jr)|0,ht=ht+Math.imul(Ht,Rr)|0,$t=$t+Math.imul(Ht,jr)|0;var d0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(d0>>>26)|0,d0&=67108863,xt=Math.imul($r,pr),ht=Math.imul($r,vr),ht=ht+Math.imul(Mr,pr)|0,$t=Math.imul(Mr,vr),xt=xt+Math.imul(xr,wr)|0,ht=ht+Math.imul(xr,Ar)|0,ht=ht+Math.imul(Sr,wr)|0,$t=$t+Math.imul(Sr,Ar)|0,xt=xt+Math.imul(br,Cr)|0,ht=ht+Math.imul(br,Or)|0,ht=ht+Math.imul(dr,Cr)|0,$t=$t+Math.imul(dr,Or)|0,xt=xt+Math.imul(cr,_r)|0,ht=ht+Math.imul(cr,Dr)|0,ht=ht+Math.imul(ur,_r)|0,$t=$t+Math.imul(ur,Dr)|0,xt=xt+Math.imul(Kt,Tr)|0,ht=ht+Math.imul(Kt,Lr)|0,ht=ht+Math.imul(ar,Tr)|0,$t=$t+Math.imul(ar,Lr)|0,xt=xt+Math.imul(Gt,Br)|0,ht=ht+Math.imul(Gt,Fr)|0,ht=ht+Math.imul(Zt,Br)|0,$t=$t+Math.imul(Zt,Fr)|0,xt=xt+Math.imul(Xt,Rr)|0,ht=ht+Math.imul(Xt,jr)|0,ht=ht+Math.imul(Ut,Rr)|0,$t=$t+Math.imul(Ut,jr)|0,xt=xt+Math.imul(Dt,kr)|0,ht=ht+Math.imul(Dt,Ur)|0,ht=ht+Math.imul(Ht,kr)|0,$t=$t+Math.imul(Ht,Ur)|0;var h0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(h0>>>26)|0,h0&=67108863,xt=Math.imul(Qt,pr),ht=Math.imul(Qt,vr),ht=ht+Math.imul(jt,pr)|0,$t=Math.imul(jt,vr),xt=xt+Math.imul($r,wr)|0,ht=ht+Math.imul($r,Ar)|0,ht=ht+Math.imul(Mr,wr)|0,$t=$t+Math.imul(Mr,Ar)|0,xt=xt+Math.imul(xr,Cr)|0,ht=ht+Math.imul(xr,Or)|0,ht=ht+Math.imul(Sr,Cr)|0,$t=$t+Math.imul(Sr,Or)|0,xt=xt+Math.imul(br,_r)|0,ht=ht+Math.imul(br,Dr)|0,ht=ht+Math.imul(dr,_r)|0,$t=$t+Math.imul(dr,Dr)|0,xt=xt+Math.imul(cr,Tr)|0,ht=ht+Math.imul(cr,Lr)|0,ht=ht+Math.imul(ur,Tr)|0,$t=$t+Math.imul(ur,Lr)|0,xt=xt+Math.imul(Kt,Br)|0,ht=ht+Math.imul(Kt,Fr)|0,ht=ht+Math.imul(ar,Br)|0,$t=$t+Math.imul(ar,Fr)|0,xt=xt+Math.imul(Gt,Rr)|0,ht=ht+Math.imul(Gt,jr)|0,ht=ht+Math.imul(Zt,Rr)|0,$t=$t+Math.imul(Zt,jr)|0,xt=xt+Math.imul(Xt,kr)|0,ht=ht+Math.imul(Xt,Ur)|0,ht=ht+Math.imul(Ut,kr)|0,$t=$t+Math.imul(Ut,Ur)|0,xt=xt+Math.imul(Dt,Ir)|0,ht=ht+Math.imul(Dt,Hr)|0,ht=ht+Math.imul(Ht,Ir)|0,$t=$t+Math.imul(Ht,Hr)|0;var p0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(p0>>>26)|0,p0&=67108863,xt=Math.imul(nr,pr),ht=Math.imul(nr,vr),ht=ht+Math.imul(fr,pr)|0,$t=Math.imul(fr,vr),xt=xt+Math.imul(Qt,wr)|0,ht=ht+Math.imul(Qt,Ar)|0,ht=ht+Math.imul(jt,wr)|0,$t=$t+Math.imul(jt,Ar)|0,xt=xt+Math.imul($r,Cr)|0,ht=ht+Math.imul($r,Or)|0,ht=ht+Math.imul(Mr,Cr)|0,$t=$t+Math.imul(Mr,Or)|0,xt=xt+Math.imul(xr,_r)|0,ht=ht+Math.imul(xr,Dr)|0,ht=ht+Math.imul(Sr,_r)|0,$t=$t+Math.imul(Sr,Dr)|0,xt=xt+Math.imul(br,Tr)|0,ht=ht+Math.imul(br,Lr)|0,ht=ht+Math.imul(dr,Tr)|0,$t=$t+Math.imul(dr,Lr)|0,xt=xt+Math.imul(cr,Br)|0,ht=ht+Math.imul(cr,Fr)|0,ht=ht+Math.imul(ur,Br)|0,$t=$t+Math.imul(ur,Fr)|0,xt=xt+Math.imul(Kt,Rr)|0,ht=ht+Math.imul(Kt,jr)|0,ht=ht+Math.imul(ar,Rr)|0,$t=$t+Math.imul(ar,jr)|0,xt=xt+Math.imul(Gt,kr)|0,ht=ht+Math.imul(Gt,Ur)|0,ht=ht+Math.imul(Zt,kr)|0,$t=$t+Math.imul(Zt,Ur)|0,xt=xt+Math.imul(Xt,Ir)|0,ht=ht+Math.imul(Xt,Hr)|0,ht=ht+Math.imul(Ut,Ir)|0,$t=$t+Math.imul(Ut,Hr)|0,xt=xt+Math.imul(Dt,Nr)|0,ht=ht+Math.imul(Dt,qr)|0,ht=ht+Math.imul(Ht,Nr)|0,$t=$t+Math.imul(Ht,qr)|0;var b0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(b0>>>26)|0,b0&=67108863,xt=Math.imul(nr,wr),ht=Math.imul(nr,Ar),ht=ht+Math.imul(fr,wr)|0,$t=Math.imul(fr,Ar),xt=xt+Math.imul(Qt,Cr)|0,ht=ht+Math.imul(Qt,Or)|0,ht=ht+Math.imul(jt,Cr)|0,$t=$t+Math.imul(jt,Or)|0,xt=xt+Math.imul($r,_r)|0,ht=ht+Math.imul($r,Dr)|0,ht=ht+Math.imul(Mr,_r)|0,$t=$t+Math.imul(Mr,Dr)|0,xt=xt+Math.imul(xr,Tr)|0,ht=ht+Math.imul(xr,Lr)|0,ht=ht+Math.imul(Sr,Tr)|0,$t=$t+Math.imul(Sr,Lr)|0,xt=xt+Math.imul(br,Br)|0,ht=ht+Math.imul(br,Fr)|0,ht=ht+Math.imul(dr,Br)|0,$t=$t+Math.imul(dr,Fr)|0,xt=xt+Math.imul(cr,Rr)|0,ht=ht+Math.imul(cr,jr)|0,ht=ht+Math.imul(ur,Rr)|0,$t=$t+Math.imul(ur,jr)|0,xt=xt+Math.imul(Kt,kr)|0,ht=ht+Math.imul(Kt,Ur)|0,ht=ht+Math.imul(ar,kr)|0,$t=$t+Math.imul(ar,Ur)|0,xt=xt+Math.imul(Gt,Ir)|0,ht=ht+Math.imul(Gt,Hr)|0,ht=ht+Math.imul(Zt,Ir)|0,$t=$t+Math.imul(Zt,Hr)|0,xt=xt+Math.imul(Xt,Nr)|0,ht=ht+Math.imul(Xt,qr)|0,ht=ht+Math.imul(Ut,Nr)|0,$t=$t+Math.imul(Ut,qr)|0;var m0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(m0>>>26)|0,m0&=67108863,xt=Math.imul(nr,Cr),ht=Math.imul(nr,Or),ht=ht+Math.imul(fr,Cr)|0,$t=Math.imul(fr,Or),xt=xt+Math.imul(Qt,_r)|0,ht=ht+Math.imul(Qt,Dr)|0,ht=ht+Math.imul(jt,_r)|0,$t=$t+Math.imul(jt,Dr)|0,xt=xt+Math.imul($r,Tr)|0,ht=ht+Math.imul($r,Lr)|0,ht=ht+Math.imul(Mr,Tr)|0,$t=$t+Math.imul(Mr,Lr)|0,xt=xt+Math.imul(xr,Br)|0,ht=ht+Math.imul(xr,Fr)|0,ht=ht+Math.imul(Sr,Br)|0,$t=$t+Math.imul(Sr,Fr)|0,xt=xt+Math.imul(br,Rr)|0,ht=ht+Math.imul(br,jr)|0,ht=ht+Math.imul(dr,Rr)|0,$t=$t+Math.imul(dr,jr)|0,xt=xt+Math.imul(cr,kr)|0,ht=ht+Math.imul(cr,Ur)|0,ht=ht+Math.imul(ur,kr)|0,$t=$t+Math.imul(ur,Ur)|0,xt=xt+Math.imul(Kt,Ir)|0,ht=ht+Math.imul(Kt,Hr)|0,ht=ht+Math.imul(ar,Ir)|0,$t=$t+Math.imul(ar,Hr)|0,xt=xt+Math.imul(Gt,Nr)|0,ht=ht+Math.imul(Gt,qr)|0,ht=ht+Math.imul(Zt,Nr)|0,$t=$t+Math.imul(Zt,qr)|0;var g0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(g0>>>26)|0,g0&=67108863,xt=Math.imul(nr,_r),ht=Math.imul(nr,Dr),ht=ht+Math.imul(fr,_r)|0,$t=Math.imul(fr,Dr),xt=xt+Math.imul(Qt,Tr)|0,ht=ht+Math.imul(Qt,Lr)|0,ht=ht+Math.imul(jt,Tr)|0,$t=$t+Math.imul(jt,Lr)|0,xt=xt+Math.imul($r,Br)|0,ht=ht+Math.imul($r,Fr)|0,ht=ht+Math.imul(Mr,Br)|0,$t=$t+Math.imul(Mr,Fr)|0,xt=xt+Math.imul(xr,Rr)|0,ht=ht+Math.imul(xr,jr)|0,ht=ht+Math.imul(Sr,Rr)|0,$t=$t+Math.imul(Sr,jr)|0,xt=xt+Math.imul(br,kr)|0,ht=ht+Math.imul(br,Ur)|0,ht=ht+Math.imul(dr,kr)|0,$t=$t+Math.imul(dr,Ur)|0,xt=xt+Math.imul(cr,Ir)|0,ht=ht+Math.imul(cr,Hr)|0,ht=ht+Math.imul(ur,Ir)|0,$t=$t+Math.imul(ur,Hr)|0,xt=xt+Math.imul(Kt,Nr)|0,ht=ht+Math.imul(Kt,qr)|0,ht=ht+Math.imul(ar,Nr)|0,$t=$t+Math.imul(ar,qr)|0;var y0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(y0>>>26)|0,y0&=67108863,xt=Math.imul(nr,Tr),ht=Math.imul(nr,Lr),ht=ht+Math.imul(fr,Tr)|0,$t=Math.imul(fr,Lr),xt=xt+Math.imul(Qt,Br)|0,ht=ht+Math.imul(Qt,Fr)|0,ht=ht+Math.imul(jt,Br)|0,$t=$t+Math.imul(jt,Fr)|0,xt=xt+Math.imul($r,Rr)|0,ht=ht+Math.imul($r,jr)|0,ht=ht+Math.imul(Mr,Rr)|0,$t=$t+Math.imul(Mr,jr)|0,xt=xt+Math.imul(xr,kr)|0,ht=ht+Math.imul(xr,Ur)|0,ht=ht+Math.imul(Sr,kr)|0,$t=$t+Math.imul(Sr,Ur)|0,xt=xt+Math.imul(br,Ir)|0,ht=ht+Math.imul(br,Hr)|0,ht=ht+Math.imul(dr,Ir)|0,$t=$t+Math.imul(dr,Hr)|0,xt=xt+Math.imul(cr,Nr)|0,ht=ht+Math.imul(cr,qr)|0,ht=ht+Math.imul(ur,Nr)|0,$t=$t+Math.imul(ur,qr)|0;var v0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(v0>>>26)|0,v0&=67108863,xt=Math.imul(nr,Br),ht=Math.imul(nr,Fr),ht=ht+Math.imul(fr,Br)|0,$t=Math.imul(fr,Fr),xt=xt+Math.imul(Qt,Rr)|0,ht=ht+Math.imul(Qt,jr)|0,ht=ht+Math.imul(jt,Rr)|0,$t=$t+Math.imul(jt,jr)|0,xt=xt+Math.imul($r,kr)|0,ht=ht+Math.imul($r,Ur)|0,ht=ht+Math.imul(Mr,kr)|0,$t=$t+Math.imul(Mr,Ur)|0,xt=xt+Math.imul(xr,Ir)|0,ht=ht+Math.imul(xr,Hr)|0,ht=ht+Math.imul(Sr,Ir)|0,$t=$t+Math.imul(Sr,Hr)|0,xt=xt+Math.imul(br,Nr)|0,ht=ht+Math.imul(br,qr)|0,ht=ht+Math.imul(dr,Nr)|0,$t=$t+Math.imul(dr,qr)|0;var w0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(w0>>>26)|0,w0&=67108863,xt=Math.imul(nr,Rr),ht=Math.imul(nr,jr),ht=ht+Math.imul(fr,Rr)|0,$t=Math.imul(fr,jr),xt=xt+Math.imul(Qt,kr)|0,ht=ht+Math.imul(Qt,Ur)|0,ht=ht+Math.imul(jt,kr)|0,$t=$t+Math.imul(jt,Ur)|0,xt=xt+Math.imul($r,Ir)|0,ht=ht+Math.imul($r,Hr)|0,ht=ht+Math.imul(Mr,Ir)|0,$t=$t+Math.imul(Mr,Hr)|0,xt=xt+Math.imul(xr,Nr)|0,ht=ht+Math.imul(xr,qr)|0,ht=ht+Math.imul(Sr,Nr)|0,$t=$t+Math.imul(Sr,qr)|0;var x0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(x0>>>26)|0,x0&=67108863,xt=Math.imul(nr,kr),ht=Math.imul(nr,Ur),ht=ht+Math.imul(fr,kr)|0,$t=Math.imul(fr,Ur),xt=xt+Math.imul(Qt,Ir)|0,ht=ht+Math.imul(Qt,Hr)|0,ht=ht+Math.imul(jt,Ir)|0,$t=$t+Math.imul(jt,Hr)|0,xt=xt+Math.imul($r,Nr)|0,ht=ht+Math.imul($r,qr)|0,ht=ht+Math.imul(Mr,Nr)|0,$t=$t+Math.imul(Mr,qr)|0;var E0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(E0>>>26)|0,E0&=67108863,xt=Math.imul(nr,Ir),ht=Math.imul(nr,Hr),ht=ht+Math.imul(fr,Ir)|0,$t=Math.imul(fr,Hr),xt=xt+Math.imul(Qt,Nr)|0,ht=ht+Math.imul(Qt,qr)|0,ht=ht+Math.imul(jt,Nr)|0,$t=$t+Math.imul(jt,qr)|0;var $0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+($0>>>26)|0,$0&=67108863,xt=Math.imul(nr,Nr),ht=Math.imul(nr,qr),ht=ht+Math.imul(fr,Nr)|0,$t=Math.imul(fr,qr);var M0=(Pt+xt|0)+((ht&8191)<<13)|0;return Pt=($t+(ht>>>13)|0)+(M0>>>26)|0,M0&=67108863,At[0]=e0,At[1]=t0,At[2]=f0,At[3]=c0,At[4]=l0,At[5]=u0,At[6]=d0,At[7]=h0,At[8]=p0,At[9]=b0,At[10]=m0,At[11]=g0,At[12]=y0,At[13]=v0,At[14]=w0,At[15]=x0,At[16]=E0,At[17]=$0,At[18]=M0,Pt!==0&&(At[19]=Pt,yt.length++),yt};Math.imul||(It=kt);function Lt(Ct,dt,mt){mt.negative=dt.negative^Ct.negative,mt.length=Ct.length+dt.length;for(var yt=0,vt=0,Et=0;Et>>26)|0,vt+=At>>>26,At&=67108863}mt.words[Et]=Pt,yt=At,At=vt}return yt!==0?mt.words[Et]=yt:mt.length--,mt.strip()}function Ot(Ct,dt,mt){var yt=new Nt;return yt.mulp(Ct,dt,mt)}tt.prototype.mulTo=function(dt,mt){var yt,vt=this.length+dt.length;return this.length===10&&dt.length===10?yt=It(this,dt,mt):vt<63?yt=kt(this,dt,mt):vt<1024?yt=Lt(this,dt,mt):yt=Ot(this,dt,mt),yt};function Nt(Ct,dt){this.x=Ct,this.y=dt}Nt.prototype.makeRBT=function(dt){for(var mt=new Array(dt),yt=tt.prototype._countBits(dt)-1,vt=0;vt>=1;return vt},Nt.prototype.permute=function(dt,mt,yt,vt,Et,At){for(var Pt=0;Pt>>1)Et++;return 1<>>13,yt[2*At+1]=Et&8191,Et=Et>>>13;for(At=2*mt;At>=26,mt+=vt/67108864|0,mt+=Et>>>26,this.words[yt]=Et&67108863}return mt!==0&&(this.words[yt]=mt,this.length++),this},tt.prototype.muln=function(dt){return this.clone().imuln(dt)},tt.prototype.sqr=function(){return this.mul(this)},tt.prototype.isqr=function(){return this.imul(this.clone())},tt.prototype.pow=function(dt){var mt=Bt(dt);if(mt.length===0)return new tt(1);for(var yt=this,vt=0;vt=0);var mt=dt%26,yt=(dt-mt)/26,vt=67108863>>>26-mt<<26-mt,Et;if(mt!==0){var At=0;for(Et=0;Et>>26-mt}At&&(this.words[Et]=At,this.length++)}if(yt!==0){for(Et=this.length-1;Et>=0;Et--)this.words[Et+yt]=this.words[Et];for(Et=0;Et=0);var vt;mt?vt=(mt-mt%26)/26:vt=0;var Et=dt%26,At=Math.min((dt-Et)/26,this.length),Pt=67108863^67108863>>>Et<At)for(this.length-=At,ht=0;ht=0&&($t!==0||ht>=vt);ht--){var Rt=this.words[ht]|0;this.words[ht]=$t<<26-Et|Rt>>>Et,$t=Rt&Pt}return xt&&$t!==0&&(xt.words[xt.length++]=$t),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},tt.prototype.ishrn=function(dt,mt,yt){return et(this.negative===0),this.iushrn(dt,mt,yt)},tt.prototype.shln=function(dt){return this.clone().ishln(dt)},tt.prototype.ushln=function(dt){return this.clone().iushln(dt)},tt.prototype.shrn=function(dt){return this.clone().ishrn(dt)},tt.prototype.ushrn=function(dt){return this.clone().iushrn(dt)},tt.prototype.testn=function(dt){et(typeof dt=="number"&&dt>=0);var mt=dt%26,yt=(dt-mt)/26,vt=1<=0);var mt=dt%26,yt=(dt-mt)/26;if(et(this.negative===0,"imaskn works only with positive numbers"),this.length<=yt)return this;if(mt!==0&&yt++,this.length=Math.min(yt,this.length),mt!==0){var vt=67108863^67108863>>>mt<=67108864;mt++)this.words[mt]-=67108864,mt===this.length-1?this.words[mt+1]=1:this.words[mt+1]++;return this.length=Math.max(this.length,mt+1),this},tt.prototype.isubn=function(dt){if(et(typeof dt=="number"),et(dt<67108864),dt<0)return this.iaddn(-dt);if(this.negative!==0)return this.negative=0,this.iaddn(dt),this.negative=1,this;if(this.words[0]-=dt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var mt=0;mt>26)-(xt/67108864|0),this.words[Et+yt]=At&67108863}for(;Et>26,this.words[Et+yt]=At&67108863;if(Pt===0)return this.strip();for(et(Pt===-1),Pt=0,Et=0;Et>26,this.words[Et]=At&67108863;return this.negative=1,this.strip()},tt.prototype._wordDiv=function(dt,mt){var yt=this.length-dt.length,vt=this.clone(),Et=dt,At=Et.words[Et.length-1]|0,Pt=this._countBits(At);yt=26-Pt,yt!==0&&(Et=Et.ushln(yt),vt.iushln(yt),At=Et.words[Et.length-1]|0);var xt=vt.length-Et.length,ht;if(mt!=="mod"){ht=new tt(null),ht.length=xt+1,ht.words=new Array(ht.length);for(var $t=0;$t=0;Dt--){var Ht=(vt.words[Et.length+Dt]|0)*67108864+(vt.words[Et.length+Dt-1]|0);for(Ht=Math.min(Ht/At|0,67108863),vt._ishlnsubmul(Et,Ht,Dt);vt.negative!==0;)Ht--,vt.negative=0,vt._ishlnsubmul(Et,1,Dt),vt.isZero()||(vt.negative^=1);ht&&(ht.words[Dt]=Ht)}return ht&&ht.strip(),vt.strip(),mt!=="div"&&yt!==0&&vt.iushrn(yt),{div:ht||null,mod:vt}},tt.prototype.divmod=function(dt,mt,yt){if(et(!dt.isZero()),this.isZero())return{div:new tt(0),mod:new tt(0)};var vt,Et,At;return this.negative!==0&&dt.negative===0?(At=this.neg().divmod(dt,mt),mt!=="mod"&&(vt=At.div.neg()),mt!=="div"&&(Et=At.mod.neg(),yt&&Et.negative!==0&&Et.iadd(dt)),{div:vt,mod:Et}):this.negative===0&&dt.negative!==0?(At=this.divmod(dt.neg(),mt),mt!=="mod"&&(vt=At.div.neg()),{div:vt,mod:At.mod}):this.negative&dt.negative?(At=this.neg().divmod(dt.neg(),mt),mt!=="div"&&(Et=At.mod.neg(),yt&&Et.negative!==0&&Et.isub(dt)),{div:At.div,mod:Et}):dt.length>this.length||this.cmp(dt)<0?{div:new tt(0),mod:this}:dt.length===1?mt==="div"?{div:this.divn(dt.words[0]),mod:null}:mt==="mod"?{div:null,mod:new tt(this.modn(dt.words[0]))}:{div:this.divn(dt.words[0]),mod:new tt(this.modn(dt.words[0]))}:this._wordDiv(dt,mt)},tt.prototype.div=function(dt){return this.divmod(dt,"div",!1).div},tt.prototype.mod=function(dt){return this.divmod(dt,"mod",!1).mod},tt.prototype.umod=function(dt){return this.divmod(dt,"mod",!0).mod},tt.prototype.divRound=function(dt){var mt=this.divmod(dt);if(mt.mod.isZero())return mt.div;var yt=mt.div.negative!==0?mt.mod.isub(dt):mt.mod,vt=dt.ushrn(1),Et=dt.andln(1),At=yt.cmp(vt);return At<0||Et===1&&At===0?mt.div:mt.div.negative!==0?mt.div.isubn(1):mt.div.iaddn(1)},tt.prototype.modn=function(dt){et(dt<=67108863);for(var mt=(1<<26)%dt,yt=0,vt=this.length-1;vt>=0;vt--)yt=(mt*yt+(this.words[vt]|0))%dt;return yt},tt.prototype.idivn=function(dt){et(dt<=67108863);for(var mt=0,yt=this.length-1;yt>=0;yt--){var vt=(this.words[yt]|0)+mt*67108864;this.words[yt]=vt/dt|0,mt=vt%dt}return this.strip()},tt.prototype.divn=function(dt){return this.clone().idivn(dt)},tt.prototype.egcd=function(dt){et(dt.negative===0),et(!dt.isZero());var mt=this,yt=dt.clone();mt.negative!==0?mt=mt.umod(dt):mt=mt.clone();for(var vt=new tt(1),Et=new tt(0),At=new tt(0),Pt=new tt(1),xt=0;mt.isEven()&&yt.isEven();)mt.iushrn(1),yt.iushrn(1),++xt;for(var ht=yt.clone(),$t=mt.clone();!mt.isZero();){for(var Rt=0,Dt=1;!(mt.words[0]&Dt)&&Rt<26;++Rt,Dt<<=1);if(Rt>0)for(mt.iushrn(Rt);Rt-- >0;)(vt.isOdd()||Et.isOdd())&&(vt.iadd(ht),Et.isub($t)),vt.iushrn(1),Et.iushrn(1);for(var Ht=0,tr=1;!(yt.words[0]&tr)&&Ht<26;++Ht,tr<<=1);if(Ht>0)for(yt.iushrn(Ht);Ht-- >0;)(At.isOdd()||Pt.isOdd())&&(At.iadd(ht),Pt.isub($t)),At.iushrn(1),Pt.iushrn(1);mt.cmp(yt)>=0?(mt.isub(yt),vt.isub(At),Et.isub(Pt)):(yt.isub(mt),At.isub(vt),Pt.isub(Et))}return{a:At,b:Pt,gcd:yt.iushln(xt)}},tt.prototype._invmp=function(dt){et(dt.negative===0),et(!dt.isZero());var mt=this,yt=dt.clone();mt.negative!==0?mt=mt.umod(dt):mt=mt.clone();for(var vt=new tt(1),Et=new tt(0),At=yt.clone();mt.cmpn(1)>0&&yt.cmpn(1)>0;){for(var Pt=0,xt=1;!(mt.words[0]&xt)&&Pt<26;++Pt,xt<<=1);if(Pt>0)for(mt.iushrn(Pt);Pt-- >0;)vt.isOdd()&&vt.iadd(At),vt.iushrn(1);for(var ht=0,$t=1;!(yt.words[0]&$t)&&ht<26;++ht,$t<<=1);if(ht>0)for(yt.iushrn(ht);ht-- >0;)Et.isOdd()&&Et.iadd(At),Et.iushrn(1);mt.cmp(yt)>=0?(mt.isub(yt),vt.isub(Et)):(yt.isub(mt),Et.isub(vt))}var Rt;return mt.cmpn(1)===0?Rt=vt:Rt=Et,Rt.cmpn(0)<0&&Rt.iadd(dt),Rt},tt.prototype.gcd=function(dt){if(this.isZero())return dt.abs();if(dt.isZero())return this.abs();var mt=this.clone(),yt=dt.clone();mt.negative=0,yt.negative=0;for(var vt=0;mt.isEven()&&yt.isEven();vt++)mt.iushrn(1),yt.iushrn(1);do{for(;mt.isEven();)mt.iushrn(1);for(;yt.isEven();)yt.iushrn(1);var Et=mt.cmp(yt);if(Et<0){var At=mt;mt=yt,yt=At}else if(Et===0||yt.cmpn(1)===0)break;mt.isub(yt)}while(!0);return yt.iushln(vt)},tt.prototype.invm=function(dt){return this.egcd(dt).a.umod(dt)},tt.prototype.isEven=function(){return(this.words[0]&1)===0},tt.prototype.isOdd=function(){return(this.words[0]&1)===1},tt.prototype.andln=function(dt){return this.words[0]&dt},tt.prototype.bincn=function(dt){et(typeof dt=="number");var mt=dt%26,yt=(dt-mt)/26,vt=1<>>26,Pt&=67108863,this.words[At]=Pt}return Et!==0&&(this.words[At]=Et,this.length++),this},tt.prototype.isZero=function(){return this.length===1&&this.words[0]===0},tt.prototype.cmpn=function(dt){var mt=dt<0;if(this.negative!==0&&!mt)return-1;if(this.negative===0&&mt)return 1;this.strip();var yt;if(this.length>1)yt=1;else{mt&&(dt=-dt),et(dt<=67108863,"Number is too big");var vt=this.words[0]|0;yt=vt===dt?0:vtdt.length)return 1;if(this.length=0;yt--){var vt=this.words[yt]|0,Et=dt.words[yt]|0;if(vt!==Et){vtEt&&(mt=1);break}}return mt},tt.prototype.gtn=function(dt){return this.cmpn(dt)===1},tt.prototype.gt=function(dt){return this.cmp(dt)===1},tt.prototype.gten=function(dt){return this.cmpn(dt)>=0},tt.prototype.gte=function(dt){return this.cmp(dt)>=0},tt.prototype.ltn=function(dt){return this.cmpn(dt)===-1},tt.prototype.lt=function(dt){return this.cmp(dt)===-1},tt.prototype.lten=function(dt){return this.cmpn(dt)<=0},tt.prototype.lte=function(dt){return this.cmp(dt)<=0},tt.prototype.eqn=function(dt){return this.cmpn(dt)===0},tt.prototype.eq=function(dt){return this.cmp(dt)===0},tt.red=function(dt){return new er(dt)},tt.prototype.toRed=function(dt){return et(!this.red,"Already a number in reduction context"),et(this.negative===0,"red works only with positives"),dt.convertTo(this)._forceRed(dt)},tt.prototype.fromRed=function(){return et(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},tt.prototype._forceRed=function(dt){return this.red=dt,this},tt.prototype.forceRed=function(dt){return et(!this.red,"Already a number in reduction context"),this._forceRed(dt)},tt.prototype.redAdd=function(dt){return et(this.red,"redAdd works only with red numbers"),this.red.add(this,dt)},tt.prototype.redIAdd=function(dt){return et(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,dt)},tt.prototype.redSub=function(dt){return et(this.red,"redSub works only with red numbers"),this.red.sub(this,dt)},tt.prototype.redISub=function(dt){return et(this.red,"redISub works only with red numbers"),this.red.isub(this,dt)},tt.prototype.redShl=function(dt){return et(this.red,"redShl works only with red numbers"),this.red.shl(this,dt)},tt.prototype.redMul=function(dt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,dt),this.red.mul(this,dt)},tt.prototype.redIMul=function(dt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,dt),this.red.imul(this,dt)},tt.prototype.redSqr=function(){return et(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},tt.prototype.redISqr=function(){return et(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},tt.prototype.redSqrt=function(){return et(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},tt.prototype.redInvm=function(){return et(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},tt.prototype.redNeg=function(){return et(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},tt.prototype.redPow=function(dt){return et(this.red&&!dt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,dt)};var Ft={k256:null,p224:null,p192:null,p25519:null};function zt(Ct,dt){this.name=Ct,this.p=new tt(dt,16),this.n=this.p.bitLength(),this.k=new tt(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}zt.prototype._tmp=function(){var dt=new tt(null);return dt.words=new Array(Math.ceil(this.n/13)),dt},zt.prototype.ireduce=function(dt){var mt=dt,yt;do this.split(mt,this.tmp),mt=this.imulK(mt),mt=mt.iadd(this.tmp),yt=mt.bitLength();while(yt>this.n);var vt=yt0?mt.isub(this.p):mt.strip!==void 0?mt.strip():mt._strip(),mt},zt.prototype.split=function(dt,mt){dt.iushrn(this.n,0,mt)},zt.prototype.imulK=function(dt){return dt.imul(this.k)};function Vt(){zt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}nt(Vt,zt),Vt.prototype.split=function(dt,mt){for(var yt=4194303,vt=Math.min(dt.length,9),Et=0;Et>>22,At=Pt}At>>>=22,dt.words[Et-10]=At,At===0&&dt.length>10?dt.length-=10:dt.length-=9},Vt.prototype.imulK=function(dt){dt.words[dt.length]=0,dt.words[dt.length+1]=0,dt.length+=2;for(var mt=0,yt=0;yt>>=26,dt.words[yt]=Et,mt=vt}return mt!==0&&(dt.words[dt.length++]=mt),dt},tt._prime=function(dt){if(Ft[dt])return Ft[dt];var mt;if(dt==="k256")mt=new Vt;else if(dt==="p224")mt=new Jt;else if(dt==="p192")mt=new ir;else if(dt==="p25519")mt=new rr;else throw new Error("Unknown prime "+dt);return Ft[dt]=mt,mt};function er(Ct){if(typeof Ct=="string"){var dt=tt._prime(Ct);this.m=dt.p,this.prime=dt}else et(Ct.gtn(1),"modulus must be greater than 1"),this.m=Ct,this.prime=null}er.prototype._verify1=function(dt){et(dt.negative===0,"red works only with positives"),et(dt.red,"red works only with red numbers")},er.prototype._verify2=function(dt,mt){et((dt.negative|mt.negative)===0,"red works only with positives"),et(dt.red&&dt.red===mt.red,"red works only with red numbers")},er.prototype.imod=function(dt){return this.prime?this.prime.ireduce(dt)._forceRed(this):dt.umod(this.m)._forceRed(this)},er.prototype.neg=function(dt){return dt.isZero()?dt.clone():this.m.sub(dt)._forceRed(this)},er.prototype.add=function(dt,mt){this._verify2(dt,mt);var yt=dt.add(mt);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt._forceRed(this)},er.prototype.iadd=function(dt,mt){this._verify2(dt,mt);var yt=dt.iadd(mt);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt},er.prototype.sub=function(dt,mt){this._verify2(dt,mt);var yt=dt.sub(mt);return yt.cmpn(0)<0&&yt.iadd(this.m),yt._forceRed(this)},er.prototype.isub=function(dt,mt){this._verify2(dt,mt);var yt=dt.isub(mt);return yt.cmpn(0)<0&&yt.iadd(this.m),yt},er.prototype.shl=function(dt,mt){return this._verify1(dt),this.imod(dt.ushln(mt))},er.prototype.imul=function(dt,mt){return this._verify2(dt,mt),this.imod(dt.imul(mt))},er.prototype.mul=function(dt,mt){return this._verify2(dt,mt),this.imod(dt.mul(mt))},er.prototype.isqr=function(dt){return this.imul(dt,dt.clone())},er.prototype.sqr=function(dt){return this.mul(dt,dt)},er.prototype.sqrt=function(dt){if(dt.isZero())return dt.clone();var mt=this.m.andln(3);if(et(mt%2===1),mt===3){var yt=this.m.add(new tt(1)).iushrn(2);return this.pow(dt,yt)}for(var vt=this.m.subn(1),Et=0;!vt.isZero()&&vt.andln(1)===0;)Et++,vt.iushrn(1);et(!vt.isZero());var At=new tt(1).toRed(this),Pt=At.redNeg(),xt=this.m.subn(1).iushrn(1),ht=this.m.bitLength();for(ht=new tt(2*ht*ht).toRed(this);this.pow(ht,xt).cmp(Pt)!==0;)ht.redIAdd(Pt);for(var $t=this.pow(ht,vt),Rt=this.pow(dt,vt.addn(1).iushrn(1)),Dt=this.pow(dt,vt),Ht=Et;Dt.cmp(At)!==0;){for(var tr=Dt,Xt=0;tr.cmp(At)!==0;Xt++)tr=tr.redSqr();et(Xt=0;Et--){for(var $t=mt.words[Et],Rt=ht-1;Rt>=0;Rt--){var Dt=$t>>Rt&1;if(At!==vt[0]&&(At=this.sqr(At)),Dt===0&&Pt===0){xt=0;continue}Pt<<=1,Pt|=Dt,xt++,!(xt!==yt&&(Et!==0||Rt!==0))&&(At=this.mul(At,vt[Pt]),xt=0,Pt=0)}ht=26}return At},er.prototype.convertTo=function(dt){var mt=dt.umod(this.m);return mt===dt?mt.clone():mt},er.prototype.convertFrom=function(dt){var mt=dt.clone();return mt.red=null,mt},tt.mont=function(dt){return new lr(dt)};function lr(Ct){er.call(this,Ct),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new tt(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)}nt(lr,er),lr.prototype.convertTo=function(dt){return this.imod(dt.ushln(this.shift))},lr.prototype.convertFrom=function(dt){var mt=this.imod(dt.mul(this.rinv));return mt.red=null,mt},lr.prototype.imul=function(dt,mt){if(dt.isZero()||mt.isZero())return dt.words[0]=0,dt.length=1,dt;var yt=dt.imul(mt),vt=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Et=yt.isub(vt).iushrn(this.shift),At=Et;return Et.cmp(this.m)>=0?At=Et.isub(this.m):Et.cmpn(0)<0&&(At=Et.iadd(this.m)),At._forceRed(this)},lr.prototype.mul=function(dt,mt){if(dt.isZero()||mt.isZero())return new tt(0)._forceRed(this);var yt=dt.mul(mt),vt=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Et=yt.isub(vt).iushrn(this.shift),At=Et;return Et.cmp(this.m)>=0?At=Et.isub(this.m):Et.cmpn(0)<0&&(At=Et.iadd(this.m)),At._forceRed(this)},lr.prototype.invm=function(dt){var mt=this.imod(dt._invmp(this.m).mul(this.r2));return mt._forceRed(this)}})(c,commonjsGlobal)})(bn$3);var bnExports$3=bn$3.exports,api={},vmBrowserify={},hasRequiredVmBrowserify;function requireVmBrowserify(){return hasRequiredVmBrowserify||(hasRequiredVmBrowserify=1,function(exports){var indexOf=function(c,a){if(c.indexOf)return c.indexOf(a);for(var d=0;d"u"}c.isPrimitive=mt,c.isBuffer=isBufferBrowser;function yt(Bt){return Object.prototype.toString.call(Bt)}function vt(Bt){return Bt<10?"0"+Bt.toString(10):Bt.toString(10)}var Et=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function At(){var Bt=new Date,Dt=[vt(Bt.getHours()),vt(Bt.getMinutes()),vt(Bt.getSeconds())].join(":");return[Bt.getDate(),Et[Bt.getMonth()],Dt].join(" ")}c.log=function(){console.log("%s - %s",At(),c.format.apply(c,arguments))},c.inherits=inherits_browserExports,c._extend=function(Bt,Dt){if(!Dt||!er(Dt))return Bt;for(var Ht=Object.keys(Dt),tr=Ht.length;tr--;)Bt[Ht[tr]]=Dt[Ht[tr]];return Bt};function Pt(Bt,Dt){return Object.prototype.hasOwnProperty.call(Bt,Dt)}var xt=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;c.promisify=function(Dt){if(typeof Dt!="function")throw new TypeError('The "original" argument must be of type Function');if(xt&&Dt[xt]){var Ht=Dt[xt];if(typeof Ht!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Ht,xt,{value:Ht,enumerable:!1,writable:!1,configurable:!0}),Ht}function Ht(){for(var tr,Xt,Ut=new Promise(function(Zt,Yt){tr=Zt,Xt=Yt}),qt=[],Gt=0;Gt0?this.tail.next=Ot:this.head=Ot,this.tail=Ot,++this.length}},{key:"unshift",value:function(Lt){var Ot={data:Lt,next:this.head};this.length===0&&(this.tail=Ot),this.head=Ot,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Lt=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Lt}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Lt){if(this.length===0)return"";for(var Ot=this.head,Nt=""+Ot.data;Ot=Ot.next;)Nt+=Lt+Ot.data;return Nt}},{key:"concat",value:function(Lt){if(this.length===0)return St.alloc(0);for(var Ot=St.allocUnsafe(Lt>>>0),Nt=this.head,Ft=0;Nt;)Rt(Nt.data,Ot,Ft),Ft+=Nt.data.length,Nt=Nt.next;return Ot}},{key:"consume",value:function(Lt,Ot){var Nt;return Ltjt.length?jt.length:Lt;if(Vt===jt.length?Ft+=jt:Ft+=jt.slice(0,Lt),Lt-=Vt,Lt===0){Vt===jt.length?(++Nt,Ot.next?this.head=Ot.next:this.head=this.tail=null):(this.head=Ot,Ot.data=jt.slice(Vt));break}++Nt}return this.length-=Nt,Ft}},{key:"_getBuffer",value:function(Lt){var Ot=St.allocUnsafe(Lt),Nt=this.head,Ft=1;for(Nt.data.copy(Ot),Lt-=Nt.data.length;Nt=Nt.next;){var jt=Nt.data,Vt=Lt>jt.length?jt.length:Lt;if(jt.copy(Ot,Ot.length-Lt,0,Vt),Lt-=Vt,Lt===0){Vt===jt.length?(++Ft,Nt.next?this.head=Nt.next:this.head=this.tail=null):(this.head=Nt,Nt.data=jt.slice(Vt));break}++Ft}return this.length-=Ft,Ot}},{key:Tt,value:function(Lt,Ot){return _t(this,a(a({},Ot),{},{depth:0,customInspect:!1}))}}]),kt}(),buffer_list}function destroy$1(c,a){var d=this,et=this._readableState&&this._readableState.destroyed,nt=this._writableState&&this._writableState.destroyed;return et||nt?(a?a(c):c&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,dist$2.process.nextTick(emitErrorNT$1,this,c)):dist$2.process.nextTick(emitErrorNT$1,this,c)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(c||null,function(tt){!a&&tt?d._writableState?d._writableState.errorEmitted?dist$2.process.nextTick(emitCloseNT,d):(d._writableState.errorEmitted=!0,dist$2.process.nextTick(emitErrorAndCloseNT,d,tt)):dist$2.process.nextTick(emitErrorAndCloseNT,d,tt):a?(dist$2.process.nextTick(emitCloseNT,d),a(tt)):dist$2.process.nextTick(emitCloseNT,d)}),this)}function emitErrorAndCloseNT(c,a){emitErrorNT$1(c,a),emitCloseNT(c)}function emitCloseNT(c){c._writableState&&!c._writableState.emitClose||c._readableState&&!c._readableState.emitClose||c.emit("close")}function undestroy$1(){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)}function emitErrorNT$1(c,a){c.emit("error",a)}function errorOrDestroy(c,a){var d=c._readableState,et=c._writableState;d&&d.autoDestroy||et&&et.autoDestroy?c.destroy(a):c.emit("error",a)}var destroy_1$1={destroy:destroy$1,undestroy:undestroy$1,errorOrDestroy},errorsBrowser={};function _inheritsLoose(c,a){c.prototype=Object.create(a.prototype),c.prototype.constructor=c,c.__proto__=a}var codes={};function createErrorType(c,a,d){d||(d=Error);function et(tt,bt,gt){return typeof a=="string"?a:a(tt,bt,gt)}var nt=function(tt){_inheritsLoose(bt,tt);function bt(gt,wt,St){return tt.call(this,et(gt,wt,St))||this}return bt}(d);nt.prototype.name=d.name,nt.prototype.code=c,codes[c]=nt}function oneOf(c,a){if(Array.isArray(c)){var d=c.length;return c=c.map(function(et){return String(et)}),d>2?"one of ".concat(a," ").concat(c.slice(0,d-1).join(", "),", or ")+c[d-1]:d===2?"one of ".concat(a," ").concat(c[0]," or ").concat(c[1]):"of ".concat(a," ").concat(c[0])}else return"of ".concat(a," ").concat(String(c))}function startsWith(c,a,d){return c.substr(!d||d<0?0:+d,a.length)===a}function endsWith(c,a,d){return(d===void 0||d>c.length)&&(d=c.length),c.substring(d-a.length,d)===a}function includes(c,a,d){return typeof d!="number"&&(d=0),d+a.length>c.length?!1:c.indexOf(a,d)!==-1}createErrorType("ERR_INVALID_OPT_VALUE",function(c,a){return'The value "'+a+'" is invalid for option "'+c+'"'},TypeError);createErrorType("ERR_INVALID_ARG_TYPE",function(c,a,d){var et;typeof a=="string"&&startsWith(a,"not ")?(et="must not be",a=a.replace(/^not /,"")):et="must be";var nt;if(endsWith(c," argument"))nt="The ".concat(c," ").concat(et," ").concat(oneOf(a,"type"));else{var tt=includes(c,".")?"property":"argument";nt='The "'.concat(c,'" ').concat(tt," ").concat(et," ").concat(oneOf(a,"type"))}return nt+=". Received type ".concat(typeof d),nt},TypeError);createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");createErrorType("ERR_METHOD_NOT_IMPLEMENTED",function(c){return"The "+c+" method is not implemented"});createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close");createErrorType("ERR_STREAM_DESTROYED",function(c){return"Cannot call "+c+" after a stream was destroyed"});createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times");createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);createErrorType("ERR_UNKNOWN_ENCODING",function(c){return"Unknown encoding: "+c},TypeError);createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");errorsBrowser.codes=codes;var ERR_INVALID_OPT_VALUE=errorsBrowser.codes.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(c,a,d){return c.highWaterMark!=null?c.highWaterMark:a?c[d]:null}function getHighWaterMark(c,a,d,et){var nt=highWaterMarkFrom(a,et,d);if(nt!=null){if(!(isFinite(nt)&&Math.floor(nt)===nt)||nt<0){var tt=et?d:"highWaterMark";throw new ERR_INVALID_OPT_VALUE(tt,nt)}return Math.floor(nt)}return c.objectMode?16:16*1024}var state={getHighWaterMark},browser$a=deprecate;function deprecate(c,a){if(config$1("noDeprecation"))return c;var d=!1;function et(){if(!d){if(config$1("throwDeprecation"))throw new Error(a);config$1("traceDeprecation")?console.trace(a):console.warn(a),d=!0}return c.apply(this,arguments)}return et}function config$1(c){try{if(!commonjsGlobal.localStorage)return!1}catch{return!1}var a=commonjsGlobal.localStorage[c];return a==null?!1:String(a).toLowerCase()==="true"}var _stream_writable$1,hasRequired_stream_writable$1;function require_stream_writable$1(){if(hasRequired_stream_writable$1)return _stream_writable$1;hasRequired_stream_writable$1=1,_stream_writable$1=rr;function c(Xt){var Ut=this;this.next=null,this.entry=null,this.finish=function(){tr(Ut,Xt)}}var a;rr.WritableState=Jt;var d={deprecate:browser$a},et=streamBrowser$1,nt=bufferPolyfill.Buffer,tt=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function bt(Xt){return nt.from(Xt)}function gt(Xt){return nt.isBuffer(Xt)||Xt instanceof tt}var wt=destroy_1$1,St=state,Mt=St.getHighWaterMark,_t=errorsBrowser.codes,Tt=_t.ERR_INVALID_ARG_TYPE,Rt=_t.ERR_METHOD_NOT_IMPLEMENTED,kt=_t.ERR_MULTIPLE_CALLBACK,It=_t.ERR_STREAM_CANNOT_PIPE,Lt=_t.ERR_STREAM_DESTROYED,Ot=_t.ERR_STREAM_NULL_VALUES,Nt=_t.ERR_STREAM_WRITE_AFTER_END,Ft=_t.ERR_UNKNOWN_ENCODING,jt=wt.errorOrDestroy;inherits_browserExports(rr,et);function Vt(){}function Jt(Xt,Ut,qt){a=a||require_stream_duplex$1(),Xt=Xt||{},typeof qt!="boolean"&&(qt=Ut instanceof a),this.objectMode=!!Xt.objectMode,qt&&(this.objectMode=this.objectMode||!!Xt.writableObjectMode),this.highWaterMark=Mt(this,Xt,"writableHighWaterMark",qt),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Gt=Xt.decodeStrings===!1;this.decodeStrings=!Gt,this.defaultEncoding=Xt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Zt){Et(Ut,Zt)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Xt.emitClose!==!1,this.autoDestroy=!!Xt.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new c(this)}Jt.prototype.getBuffer=function(){for(var Ut=this.bufferedRequest,qt=[];Ut;)qt.push(Ut),Ut=Ut.next;return qt},function(){try{Object.defineProperty(Jt.prototype,"buffer",{get:d.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var ir;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ir=Function.prototype[Symbol.hasInstance],Object.defineProperty(rr,Symbol.hasInstance,{value:function(Ut){return ir.call(this,Ut)?!0:this!==rr?!1:Ut&&Ut._writableState instanceof Jt}})):ir=function(Ut){return Ut instanceof this};function rr(Xt){a=a||require_stream_duplex$1();var Ut=this instanceof a;if(!Ut&&!ir.call(rr,this))return new rr(Xt);this._writableState=new Jt(Xt,this,Ut),this.writable=!0,Xt&&(typeof Xt.write=="function"&&(this._write=Xt.write),typeof Xt.writev=="function"&&(this._writev=Xt.writev),typeof Xt.destroy=="function"&&(this._destroy=Xt.destroy),typeof Xt.final=="function"&&(this._final=Xt.final)),et.call(this)}rr.prototype.pipe=function(){jt(this,new It)};function er(Xt,Ut){var qt=new Nt;jt(Xt,qt),dist$2.process.nextTick(Ut,qt)}function lr(Xt,Ut,qt,Gt){var Zt;return qt===null?Zt=new Ot:typeof qt!="string"&&!Ut.objectMode&&(Zt=new Tt("chunk",["string","Buffer"],qt)),Zt?(jt(Xt,Zt),dist$2.process.nextTick(Gt,Zt),!1):!0}rr.prototype.write=function(Xt,Ut,qt){var Gt=this._writableState,Zt=!1,Yt=!Gt.objectMode&>(Xt);return Yt&&!nt.isBuffer(Xt)&&(Xt=bt(Xt)),typeof Ut=="function"&&(qt=Ut,Ut=null),Yt?Ut="buffer":Ut||(Ut=Gt.defaultEncoding),typeof qt!="function"&&(qt=Vt),Gt.ending?er(this,qt):(Yt||lr(this,Gt,Xt,qt))&&(Gt.pendingcb++,Zt=dt(this,Gt,Yt,Xt,Ut,qt)),Zt},rr.prototype.cork=function(){this._writableState.corked++},rr.prototype.uncork=function(){var Xt=this._writableState;Xt.corked&&(Xt.corked--,!Xt.writing&&!Xt.corked&&!Xt.bufferProcessing&&Xt.bufferedRequest&&xt(this,Xt))},rr.prototype.setDefaultEncoding=function(Ut){if(typeof Ut=="string"&&(Ut=Ut.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ut+"").toLowerCase())>-1))throw new Ft(Ut);return this._writableState.defaultEncoding=Ut,this},Object.defineProperty(rr.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Ct(Xt,Ut,qt){return!Xt.objectMode&&Xt.decodeStrings!==!1&&typeof Ut=="string"&&(Ut=nt.from(Ut,qt)),Ut}Object.defineProperty(rr.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function dt(Xt,Ut,qt,Gt,Zt,Yt){if(!qt){var Kt=Ct(Ut,Gt,Zt);Gt!==Kt&&(qt=!0,Zt="buffer",Gt=Kt)}var ar=Ut.objectMode?1:Gt.length;Ut.length+=ar;var gr=Ut.length>5===6?2:c>>4===14?3:c>>3===30?4:c>>6===2?-1:-2}function utf8CheckIncomplete(c,a,d){var et=a.length-1;if(et=0?(nt>0&&(c.lastNeed=nt-1),nt):--et=0?(nt>0&&(c.lastNeed=nt-2),nt):--et=0?(nt>0&&(nt===2?nt=0:c.lastNeed=nt-3),nt):0))}function utf8CheckExtraBytes(c,a,d){if((a[0]&192)!==128)return c.lastNeed=0,"�";if(c.lastNeed>1&&a.length>1){if((a[1]&192)!==128)return c.lastNeed=1,"�";if(c.lastNeed>2&&a.length>2&&(a[2]&192)!==128)return c.lastNeed=2,"�"}}function utf8FillLast(c){var a=this.lastTotal-this.lastNeed,d=utf8CheckExtraBytes(this,c);if(d!==void 0)return d;if(this.lastNeed<=c.length)return c.copy(this.lastChar,a,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);c.copy(this.lastChar,a,0,c.length),this.lastNeed-=c.length}function utf8Text(c,a){var d=utf8CheckIncomplete(this,c,a);if(!this.lastNeed)return c.toString("utf8",a);this.lastTotal=d;var et=c.length-(d-this.lastNeed);return c.copy(this.lastChar,0,et),c.toString("utf8",a,et)}function utf8End(c){var a=c&&c.length?this.write(c):"";return this.lastNeed?a+"�":a}function utf16Text(c,a){if((c.length-a)%2===0){var d=c.toString("utf16le",a);if(d){var et=d.charCodeAt(d.length-1);if(et>=55296&&et<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=c[c.length-2],this.lastChar[1]=c[c.length-1],d.slice(0,-1)}return d}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=c[c.length-1],c.toString("utf16le",a,c.length-1)}function utf16End(c){var a=c&&c.length?this.write(c):"";if(this.lastNeed){var d=this.lastTotal-this.lastNeed;return a+this.lastChar.toString("utf16le",0,d)}return a}function base64Text(c,a){var d=(c.length-a)%3;return d===0?c.toString("base64",a):(this.lastNeed=3-d,this.lastTotal=3,d===1?this.lastChar[0]=c[c.length-1]:(this.lastChar[0]=c[c.length-2],this.lastChar[1]=c[c.length-1]),c.toString("base64",a,c.length-d))}function base64End(c){var a=c&&c.length?this.write(c):"";return this.lastNeed?a+this.lastChar.toString("base64",0,3-this.lastNeed):a}function simpleWrite(c){return c.toString(this.encoding)}function simpleEnd(c){return c&&c.length?this.write(c):""}var ERR_STREAM_PREMATURE_CLOSE=errorsBrowser.codes.ERR_STREAM_PREMATURE_CLOSE;function once$1(c){var a=!1;return function(){if(!a){a=!0;for(var d=arguments.length,et=new Array(d),nt=0;nt0)if(typeof Kt!="string"&&!ur.objectMode&&Object.getPrototypeOf(Kt)!==et.prototype&&(Kt=tt(Kt)),gr)ur.endEmitted?Vt(Yt,new Ot):Ct(Yt,ur,Kt,!0);else if(ur.ended)Vt(Yt,new It);else{if(ur.destroyed)return!1;ur.reading=!1,ur.decoder&&!ar?(Kt=ur.decoder.write(Kt),ur.objectMode||Kt.length!==0?Ct(Yt,ur,Kt,!1):xt(Yt,ur)):Ct(Yt,ur,Kt,!1)}else gr||(ur.reading=!1,xt(Yt,ur))}return!ur.ended&&(ur.length=mt?Yt=mt:(Yt--,Yt|=Yt>>>1,Yt|=Yt>>>2,Yt|=Yt>>>4,Yt|=Yt>>>8,Yt|=Yt>>>16,Yt++),Yt}function vt(Yt,Kt){return Yt<=0||Kt.length===0&&Kt.ended?0:Kt.objectMode?1:Yt!==Yt?Kt.flowing&&Kt.length?Kt.buffer.head.data.length:Kt.length:(Yt>Kt.highWaterMark&&(Kt.highWaterMark=yt(Yt)),Yt<=Kt.length?Yt:Kt.ended?Kt.length:(Kt.needReadable=!0,0))}er.prototype.read=function(Yt){wt("read",Yt),Yt=parseInt(Yt,10);var Kt=this._readableState,ar=Yt;if(Yt!==0&&(Kt.emittedReadable=!1),Yt===0&&Kt.needReadable&&((Kt.highWaterMark!==0?Kt.length>=Kt.highWaterMark:Kt.length>0)||Kt.ended))return wt("read: emitReadable",Kt.length,Kt.ended),Kt.length===0&&Kt.ended?qt(this):At(this),null;if(Yt=vt(Yt,Kt),Yt===0&&Kt.ended)return Kt.length===0&&qt(this),null;var gr=Kt.needReadable;wt("need readable",gr),(Kt.length===0||Kt.length-Yt0?cr=Ut(Yt,Kt):cr=null,cr===null?(Kt.needReadable=Kt.length<=Kt.highWaterMark,Yt=0):(Kt.length-=Yt,Kt.awaitDrain=0),Kt.length===0&&(Kt.ended||(Kt.needReadable=!0),ar!==Yt&&Kt.ended&&qt(this)),cr!==null&&this.emit("data",cr),cr};function Et(Yt,Kt){if(wt("onEofChunk"),!Kt.ended){if(Kt.decoder){var ar=Kt.decoder.end();ar&&ar.length&&(Kt.buffer.push(ar),Kt.length+=Kt.objectMode?1:ar.length)}Kt.ended=!0,Kt.sync?At(Yt):(Kt.needReadable=!1,Kt.emittedReadable||(Kt.emittedReadable=!0,Pt(Yt)))}}function At(Yt){var Kt=Yt._readableState;wt("emitReadable",Kt.needReadable,Kt.emittedReadable),Kt.needReadable=!1,Kt.emittedReadable||(wt("emitReadable",Kt.flowing),Kt.emittedReadable=!0,dist$2.process.nextTick(Pt,Yt))}function Pt(Yt){var Kt=Yt._readableState;wt("emitReadable_",Kt.destroyed,Kt.length,Kt.ended),!Kt.destroyed&&(Kt.length||Kt.ended)&&(Yt.emit("readable"),Kt.emittedReadable=!1),Kt.needReadable=!Kt.flowing&&!Kt.ended&&Kt.length<=Kt.highWaterMark,Xt(Yt)}function xt(Yt,Kt){Kt.readingMore||(Kt.readingMore=!0,dist$2.process.nextTick(ht,Yt,Kt))}function ht(Yt,Kt){for(;!Kt.reading&&!Kt.ended&&(Kt.length1&&Zt(gr.pipes,Yt)!==-1)&&!Kr&&(wt("false write response, pause",gr.awaitDrain),gr.awaitDrain++),ar.pause())}function Zr(Qt){wt("onerror",Qt),Xr(),Yt.removeListener("error",Zr),a(Yt,"error")===0&&Vt(Yt,Qt)}ir(Yt,"error",Zr);function $r(){Yt.removeListener("finish",Mr),Xr()}Yt.once("close",$r);function Mr(){wt("onfinish"),Yt.removeListener("close",$r),Xr()}Yt.once("finish",Mr);function Xr(){wt("unpipe"),ar.unpipe(Yt)}return Yt.emit("pipe",ar),gr.flowing||(wt("pipe resume"),ar.resume()),Yt};function $t(Yt){return function(){var ar=Yt._readableState;wt("pipeOnDrain",ar.awaitDrain),ar.awaitDrain&&ar.awaitDrain--,ar.awaitDrain===0&&a(Yt,"data")&&(ar.flowing=!0,Xt(Yt))}}er.prototype.unpipe=function(Yt){var Kt=this._readableState,ar={hasUnpiped:!1};if(Kt.pipesCount===0)return this;if(Kt.pipesCount===1)return Yt&&Yt!==Kt.pipes?this:(Yt||(Yt=Kt.pipes),Kt.pipes=null,Kt.pipesCount=0,Kt.flowing=!1,Yt&&Yt.emit("unpipe",this,ar),this);if(!Yt){var gr=Kt.pipes,cr=Kt.pipesCount;Kt.pipes=null,Kt.pipesCount=0,Kt.flowing=!1;for(var ur=0;ur0,gr.flowing!==!1&&this.resume()):Yt==="readable"&&!gr.endEmitted&&!gr.readableListening&&(gr.readableListening=gr.needReadable=!0,gr.flowing=!1,gr.emittedReadable=!1,wt("on readable",gr.length,gr.reading),gr.length?At(this):gr.reading||dist$2.process.nextTick(Dt,this)),ar},er.prototype.addListener=er.prototype.on,er.prototype.removeListener=function(Yt,Kt){var ar=d.prototype.removeListener.call(this,Yt,Kt);return Yt==="readable"&&dist$2.process.nextTick(Bt,this),ar},er.prototype.removeAllListeners=function(Yt){var Kt=d.prototype.removeAllListeners.apply(this,arguments);return(Yt==="readable"||Yt===void 0)&&dist$2.process.nextTick(Bt,this),Kt};function Bt(Yt){var Kt=Yt._readableState;Kt.readableListening=Yt.listenerCount("readable")>0,Kt.resumeScheduled&&!Kt.paused?Kt.flowing=!0:Yt.listenerCount("data")>0&&Yt.resume()}function Dt(Yt){wt("readable nexttick read 0"),Yt.read(0)}er.prototype.resume=function(){var Yt=this._readableState;return Yt.flowing||(wt("resume"),Yt.flowing=!Yt.readableListening,Ht(this,Yt)),Yt.paused=!1,this};function Ht(Yt,Kt){Kt.resumeScheduled||(Kt.resumeScheduled=!0,dist$2.process.nextTick(tr,Yt,Kt))}function tr(Yt,Kt){wt("resume",Kt.reading),Kt.reading||Yt.read(0),Kt.resumeScheduled=!1,Yt.emit("resume"),Xt(Yt),Kt.flowing&&!Kt.reading&&Yt.read(0)}er.prototype.pause=function(){return wt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(wt("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Xt(Yt){var Kt=Yt._readableState;for(wt("flow",Kt.flowing);Kt.flowing&&Yt.read()!==null;);}er.prototype.wrap=function(Yt){var Kt=this,ar=this._readableState,gr=!1;Yt.on("end",function(){if(wt("wrapped end"),ar.decoder&&!ar.ended){var Pr=ar.decoder.end();Pr&&Pr.length&&Kt.push(Pr)}Kt.push(null)}),Yt.on("data",function(Pr){if(wt("wrapped data"),ar.decoder&&(Pr=ar.decoder.write(Pr)),!(ar.objectMode&&Pr==null)&&!(!ar.objectMode&&(!Pr||!Pr.length))){var br=Kt.push(Pr);br||(gr=!0,Yt.pause())}});for(var cr in Yt)this[cr]===void 0&&typeof Yt[cr]=="function"&&(this[cr]=function(br){return function(){return Yt[br].apply(Yt,arguments)}}(cr));for(var ur=0;ur=Kt.length?(Kt.decoder?ar=Kt.buffer.join(""):Kt.buffer.length===1?ar=Kt.buffer.first():ar=Kt.buffer.concat(Kt.length),Kt.buffer.clear()):ar=Kt.buffer.consume(Yt,Kt.decoder),ar}function qt(Yt){var Kt=Yt._readableState;wt("endReadable",Kt.endEmitted),Kt.endEmitted||(Kt.ended=!0,dist$2.process.nextTick(Gt,Kt,Yt))}function Gt(Yt,Kt){if(wt("endReadableNT",Yt.endEmitted,Yt.length),!Yt.endEmitted&&Yt.length===0&&(Yt.endEmitted=!0,Kt.readable=!1,Kt.emit("end"),Yt.autoDestroy)){var ar=Kt._writableState;(!ar||ar.autoDestroy&&ar.finished)&&Kt.destroy()}}typeof Symbol=="function"&&(er.from=function(Yt,Kt){return jt===void 0&&(jt=requireFromBrowser()),jt(er,Yt,Kt)});function Zt(Yt,Kt){for(var ar=0,gr=Yt.length;ar0;return destroyer(bt,wt,St,function(Mt){nt||(nt=Mt),Mt&&tt.forEach(call$1),!wt&&(tt.forEach(call$1),et(nt))})});return a.reduce(pipe)}var pipeline_1=pipeline;(function(c,a){a=c.exports=require_stream_readable$1(),a.Stream=a,a.Readable=a,a.Writable=require_stream_writable$1(),a.Duplex=require_stream_duplex$1(),a.Transform=_stream_transform$1,a.PassThrough=_stream_passthrough$1,a.finished=endOfStream,a.pipeline=pipeline_1})(readableBrowser$1,readableBrowser$1.exports);var readableBrowserExports$1=readableBrowser$1.exports,Buffer$y=safeBufferExports$1.Buffer,Transform$7=readableBrowserExports$1.Transform,inherits$t=inherits_browserExports;function throwIfNotStringOrBuffer(c,a){if(!Buffer$y.isBuffer(c)&&typeof c!="string")throw new TypeError(a+" must be a string or a buffer")}function HashBase$2(c){Transform$7.call(this),this._block=Buffer$y.allocUnsafe(c),this._blockSize=c,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}inherits$t(HashBase$2,Transform$7);HashBase$2.prototype._transform=function(c,a,d){var et=null;try{this.update(c,a)}catch(nt){et=nt}d(et)};HashBase$2.prototype._flush=function(c){var a=null;try{this.push(this.digest())}catch(d){a=d}c(a)};HashBase$2.prototype.update=function(c,a){if(throwIfNotStringOrBuffer(c,"Data"),this._finalized)throw new Error("Digest already called");Buffer$y.isBuffer(c)||(c=Buffer$y.from(c,a));for(var d=this._block,et=0;this._blockOffset+c.length-et>=this._blockSize;){for(var nt=this._blockOffset;nt0;++tt)this._length[tt]+=bt,bt=this._length[tt]/4294967296|0,bt>0&&(this._length[tt]-=4294967296*bt);return this};HashBase$2.prototype._update=function(){throw new Error("_update is not implemented")};HashBase$2.prototype.digest=function(c){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var a=this._digest();c!==void 0&&(a=a.toString(c)),this._block.fill(0),this._blockOffset=0;for(var d=0;d<4;++d)this._length[d]=0;return a};HashBase$2.prototype._digest=function(){throw new Error("_digest is not implemented")};var hashBase=HashBase$2,inherits$s=inherits_browserExports,HashBase$1=hashBase,Buffer$x=safeBufferExports$1.Buffer,ARRAY16$1=new Array(16);function MD5$3(){HashBase$1.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}inherits$s(MD5$3,HashBase$1);MD5$3.prototype._update=function(){for(var c=ARRAY16$1,a=0;a<16;++a)c[a]=this._block.readInt32LE(a*4);var d=this._a,et=this._b,nt=this._c,tt=this._d;d=fnF(d,et,nt,tt,c[0],3614090360,7),tt=fnF(tt,d,et,nt,c[1],3905402710,12),nt=fnF(nt,tt,d,et,c[2],606105819,17),et=fnF(et,nt,tt,d,c[3],3250441966,22),d=fnF(d,et,nt,tt,c[4],4118548399,7),tt=fnF(tt,d,et,nt,c[5],1200080426,12),nt=fnF(nt,tt,d,et,c[6],2821735955,17),et=fnF(et,nt,tt,d,c[7],4249261313,22),d=fnF(d,et,nt,tt,c[8],1770035416,7),tt=fnF(tt,d,et,nt,c[9],2336552879,12),nt=fnF(nt,tt,d,et,c[10],4294925233,17),et=fnF(et,nt,tt,d,c[11],2304563134,22),d=fnF(d,et,nt,tt,c[12],1804603682,7),tt=fnF(tt,d,et,nt,c[13],4254626195,12),nt=fnF(nt,tt,d,et,c[14],2792965006,17),et=fnF(et,nt,tt,d,c[15],1236535329,22),d=fnG(d,et,nt,tt,c[1],4129170786,5),tt=fnG(tt,d,et,nt,c[6],3225465664,9),nt=fnG(nt,tt,d,et,c[11],643717713,14),et=fnG(et,nt,tt,d,c[0],3921069994,20),d=fnG(d,et,nt,tt,c[5],3593408605,5),tt=fnG(tt,d,et,nt,c[10],38016083,9),nt=fnG(nt,tt,d,et,c[15],3634488961,14),et=fnG(et,nt,tt,d,c[4],3889429448,20),d=fnG(d,et,nt,tt,c[9],568446438,5),tt=fnG(tt,d,et,nt,c[14],3275163606,9),nt=fnG(nt,tt,d,et,c[3],4107603335,14),et=fnG(et,nt,tt,d,c[8],1163531501,20),d=fnG(d,et,nt,tt,c[13],2850285829,5),tt=fnG(tt,d,et,nt,c[2],4243563512,9),nt=fnG(nt,tt,d,et,c[7],1735328473,14),et=fnG(et,nt,tt,d,c[12],2368359562,20),d=fnH(d,et,nt,tt,c[5],4294588738,4),tt=fnH(tt,d,et,nt,c[8],2272392833,11),nt=fnH(nt,tt,d,et,c[11],1839030562,16),et=fnH(et,nt,tt,d,c[14],4259657740,23),d=fnH(d,et,nt,tt,c[1],2763975236,4),tt=fnH(tt,d,et,nt,c[4],1272893353,11),nt=fnH(nt,tt,d,et,c[7],4139469664,16),et=fnH(et,nt,tt,d,c[10],3200236656,23),d=fnH(d,et,nt,tt,c[13],681279174,4),tt=fnH(tt,d,et,nt,c[0],3936430074,11),nt=fnH(nt,tt,d,et,c[3],3572445317,16),et=fnH(et,nt,tt,d,c[6],76029189,23),d=fnH(d,et,nt,tt,c[9],3654602809,4),tt=fnH(tt,d,et,nt,c[12],3873151461,11),nt=fnH(nt,tt,d,et,c[15],530742520,16),et=fnH(et,nt,tt,d,c[2],3299628645,23),d=fnI(d,et,nt,tt,c[0],4096336452,6),tt=fnI(tt,d,et,nt,c[7],1126891415,10),nt=fnI(nt,tt,d,et,c[14],2878612391,15),et=fnI(et,nt,tt,d,c[5],4237533241,21),d=fnI(d,et,nt,tt,c[12],1700485571,6),tt=fnI(tt,d,et,nt,c[3],2399980690,10),nt=fnI(nt,tt,d,et,c[10],4293915773,15),et=fnI(et,nt,tt,d,c[1],2240044497,21),d=fnI(d,et,nt,tt,c[8],1873313359,6),tt=fnI(tt,d,et,nt,c[15],4264355552,10),nt=fnI(nt,tt,d,et,c[6],2734768916,15),et=fnI(et,nt,tt,d,c[13],1309151649,21),d=fnI(d,et,nt,tt,c[4],4149444226,6),tt=fnI(tt,d,et,nt,c[11],3174756917,10),nt=fnI(nt,tt,d,et,c[2],718787259,15),et=fnI(et,nt,tt,d,c[9],3951481745,21),this._a=this._a+d|0,this._b=this._b+et|0,this._c=this._c+nt|0,this._d=this._d+tt|0};MD5$3.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var c=Buffer$x.allocUnsafe(16);return c.writeInt32LE(this._a,0),c.writeInt32LE(this._b,4),c.writeInt32LE(this._c,8),c.writeInt32LE(this._d,12),c};function rotl$1(c,a){return c<>>32-a}function fnF(c,a,d,et,nt,tt,bt){return rotl$1(c+(a&d|~a&et)+nt+tt|0,bt)+a|0}function fnG(c,a,d,et,nt,tt,bt){return rotl$1(c+(a&et|d&~et)+nt+tt|0,bt)+a|0}function fnH(c,a,d,et,nt,tt,bt){return rotl$1(c+(a^d^et)+nt+tt|0,bt)+a|0}function fnI(c,a,d,et,nt,tt,bt){return rotl$1(c+(d^(a|~et))+nt+tt|0,bt)+a|0}var md5_js=MD5$3,Buffer$w=bufferPolyfill.Buffer,inherits$r=inherits_browserExports,HashBase=hashBase,ARRAY16=new Array(16),zl=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],zr=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],sl=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],sr=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],hl=[0,1518500249,1859775393,2400959708,2840853838],hr=[1352829926,1548603684,1836072691,2053994217,0];function RIPEMD160$4(){HashBase.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}inherits$r(RIPEMD160$4,HashBase);RIPEMD160$4.prototype._update=function(){for(var c=ARRAY16,a=0;a<16;++a)c[a]=this._block.readInt32LE(a*4);for(var d=this._a|0,et=this._b|0,nt=this._c|0,tt=this._d|0,bt=this._e|0,gt=this._a|0,wt=this._b|0,St=this._c|0,Mt=this._d|0,_t=this._e|0,Tt=0;Tt<80;Tt+=1){var Rt,kt;Tt<16?(Rt=fn1(d,et,nt,tt,bt,c[zl[Tt]],hl[0],sl[Tt]),kt=fn5(gt,wt,St,Mt,_t,c[zr[Tt]],hr[0],sr[Tt])):Tt<32?(Rt=fn2(d,et,nt,tt,bt,c[zl[Tt]],hl[1],sl[Tt]),kt=fn4(gt,wt,St,Mt,_t,c[zr[Tt]],hr[1],sr[Tt])):Tt<48?(Rt=fn3(d,et,nt,tt,bt,c[zl[Tt]],hl[2],sl[Tt]),kt=fn3(gt,wt,St,Mt,_t,c[zr[Tt]],hr[2],sr[Tt])):Tt<64?(Rt=fn4(d,et,nt,tt,bt,c[zl[Tt]],hl[3],sl[Tt]),kt=fn2(gt,wt,St,Mt,_t,c[zr[Tt]],hr[3],sr[Tt])):(Rt=fn5(d,et,nt,tt,bt,c[zl[Tt]],hl[4],sl[Tt]),kt=fn1(gt,wt,St,Mt,_t,c[zr[Tt]],hr[4],sr[Tt])),d=bt,bt=tt,tt=rotl(nt,10),nt=et,et=Rt,gt=_t,_t=Mt,Mt=rotl(St,10),St=wt,wt=kt}var It=this._b+nt+Mt|0;this._b=this._c+tt+_t|0,this._c=this._d+bt+gt|0,this._d=this._e+d+wt|0,this._e=this._a+et+St|0,this._a=It};RIPEMD160$4.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var c=Buffer$w.alloc?Buffer$w.alloc(20):new Buffer$w(20);return c.writeInt32LE(this._a,0),c.writeInt32LE(this._b,4),c.writeInt32LE(this._c,8),c.writeInt32LE(this._d,12),c.writeInt32LE(this._e,16),c};function rotl(c,a){return c<>>32-a}function fn1(c,a,d,et,nt,tt,bt,gt){return rotl(c+(a^d^et)+tt+bt|0,gt)+nt|0}function fn2(c,a,d,et,nt,tt,bt,gt){return rotl(c+(a&d|~a&et)+tt+bt|0,gt)+nt|0}function fn3(c,a,d,et,nt,tt,bt,gt){return rotl(c+((a|~d)^et)+tt+bt|0,gt)+nt|0}function fn4(c,a,d,et,nt,tt,bt,gt){return rotl(c+(a&et|d&~et)+tt+bt|0,gt)+nt|0}function fn5(c,a,d,et,nt,tt,bt,gt){return rotl(c+(a^(d|~et))+tt+bt|0,gt)+nt|0}var ripemd160=RIPEMD160$4,sha_js={exports:{}},Buffer$v=safeBufferExports$1.Buffer;function Hash$8(c,a){this._block=Buffer$v.alloc(c),this._finalSize=a,this._blockSize=c,this._len=0}Hash$8.prototype.update=function(c,a){typeof c=="string"&&(a=a||"utf8",c=Buffer$v.from(c,a));for(var d=this._block,et=this._blockSize,nt=c.length,tt=this._len,bt=0;bt=this._finalSize&&(this._update(this._block),this._block.fill(0));var d=this._len*8;if(d<=4294967295)this._block.writeUInt32BE(d,this._blockSize-4);else{var et=(d&4294967295)>>>0,nt=(d-et)/4294967296;this._block.writeUInt32BE(nt,this._blockSize-8),this._block.writeUInt32BE(et,this._blockSize-4)}this._update(this._block);var tt=this._hash();return c?tt.toString(c):tt};Hash$8.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var hash$8=Hash$8,inherits$q=inherits_browserExports,Hash$7=hash$8,Buffer$u=safeBufferExports$1.Buffer,K$4=[1518500249,1859775393,-1894007588,-899497514],W$5=new Array(80);function Sha(){this.init(),this._w=W$5,Hash$7.call(this,64,56)}inherits$q(Sha,Hash$7);Sha.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl5$1(c){return c<<5|c>>>27}function rotl30$1(c){return c<<30|c>>>2}function ft$1(c,a,d,et){return c===0?a&d|~a&et:c===2?a&d|a&et|d&et:a^d^et}Sha.prototype._update=function(c){for(var a=this._w,d=this._a|0,et=this._b|0,nt=this._c|0,tt=this._d|0,bt=this._e|0,gt=0;gt<16;++gt)a[gt]=c.readInt32BE(gt*4);for(;gt<80;++gt)a[gt]=a[gt-3]^a[gt-8]^a[gt-14]^a[gt-16];for(var wt=0;wt<80;++wt){var St=~~(wt/20),Mt=rotl5$1(d)+ft$1(St,et,nt,tt)+bt+a[wt]+K$4[St]|0;bt=tt,tt=nt,nt=rotl30$1(et),et=d,d=Mt}this._a=d+this._a|0,this._b=et+this._b|0,this._c=nt+this._c|0,this._d=tt+this._d|0,this._e=bt+this._e|0};Sha.prototype._hash=function(){var c=Buffer$u.allocUnsafe(20);return c.writeInt32BE(this._a|0,0),c.writeInt32BE(this._b|0,4),c.writeInt32BE(this._c|0,8),c.writeInt32BE(this._d|0,12),c.writeInt32BE(this._e|0,16),c};var sha$4=Sha,inherits$p=inherits_browserExports,Hash$6=hash$8,Buffer$t=safeBufferExports$1.Buffer,K$3=[1518500249,1859775393,-1894007588,-899497514],W$4=new Array(80);function Sha1(){this.init(),this._w=W$4,Hash$6.call(this,64,56)}inherits$p(Sha1,Hash$6);Sha1.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl1(c){return c<<1|c>>>31}function rotl5(c){return c<<5|c>>>27}function rotl30(c){return c<<30|c>>>2}function ft(c,a,d,et){return c===0?a&d|~a&et:c===2?a&d|a&et|d&et:a^d^et}Sha1.prototype._update=function(c){for(var a=this._w,d=this._a|0,et=this._b|0,nt=this._c|0,tt=this._d|0,bt=this._e|0,gt=0;gt<16;++gt)a[gt]=c.readInt32BE(gt*4);for(;gt<80;++gt)a[gt]=rotl1(a[gt-3]^a[gt-8]^a[gt-14]^a[gt-16]);for(var wt=0;wt<80;++wt){var St=~~(wt/20),Mt=rotl5(d)+ft(St,et,nt,tt)+bt+a[wt]+K$3[St]|0;bt=tt,tt=nt,nt=rotl30(et),et=d,d=Mt}this._a=d+this._a|0,this._b=et+this._b|0,this._c=nt+this._c|0,this._d=tt+this._d|0,this._e=bt+this._e|0};Sha1.prototype._hash=function(){var c=Buffer$t.allocUnsafe(20);return c.writeInt32BE(this._a|0,0),c.writeInt32BE(this._b|0,4),c.writeInt32BE(this._c|0,8),c.writeInt32BE(this._d|0,12),c.writeInt32BE(this._e|0,16),c};var sha1=Sha1,inherits$o=inherits_browserExports,Hash$5=hash$8,Buffer$s=safeBufferExports$1.Buffer,K$2=[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],W$3=new Array(64);function Sha256$1(){this.init(),this._w=W$3,Hash$5.call(this,64,56)}inherits$o(Sha256$1,Hash$5);Sha256$1.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};function ch(c,a,d){return d^c&(a^d)}function maj$1(c,a,d){return c&a|d&(c|a)}function sigma0$1(c){return(c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10)}function sigma1$1(c){return(c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7)}function gamma0(c){return(c>>>7|c<<25)^(c>>>18|c<<14)^c>>>3}function gamma1(c){return(c>>>17|c<<15)^(c>>>19|c<<13)^c>>>10}Sha256$1.prototype._update=function(c){for(var a=this._w,d=this._a|0,et=this._b|0,nt=this._c|0,tt=this._d|0,bt=this._e|0,gt=this._f|0,wt=this._g|0,St=this._h|0,Mt=0;Mt<16;++Mt)a[Mt]=c.readInt32BE(Mt*4);for(;Mt<64;++Mt)a[Mt]=gamma1(a[Mt-2])+a[Mt-7]+gamma0(a[Mt-15])+a[Mt-16]|0;for(var _t=0;_t<64;++_t){var Tt=St+sigma1$1(bt)+ch(bt,gt,wt)+K$2[_t]+a[_t]|0,Rt=sigma0$1(d)+maj$1(d,et,nt)|0;St=wt,wt=gt,gt=bt,bt=tt+Tt|0,tt=nt,nt=et,et=d,d=Tt+Rt|0}this._a=d+this._a|0,this._b=et+this._b|0,this._c=nt+this._c|0,this._d=tt+this._d|0,this._e=bt+this._e|0,this._f=gt+this._f|0,this._g=wt+this._g|0,this._h=St+this._h|0};Sha256$1.prototype._hash=function(){var c=Buffer$s.allocUnsafe(32);return c.writeInt32BE(this._a,0),c.writeInt32BE(this._b,4),c.writeInt32BE(this._c,8),c.writeInt32BE(this._d,12),c.writeInt32BE(this._e,16),c.writeInt32BE(this._f,20),c.writeInt32BE(this._g,24),c.writeInt32BE(this._h,28),c};var sha256$3=Sha256$1,inherits$n=inherits_browserExports,Sha256=sha256$3,Hash$4=hash$8,Buffer$r=safeBufferExports$1.Buffer,W$2=new Array(64);function Sha224(){this.init(),this._w=W$2,Hash$4.call(this,64,56)}inherits$n(Sha224,Sha256);Sha224.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};Sha224.prototype._hash=function(){var c=Buffer$r.allocUnsafe(28);return c.writeInt32BE(this._a,0),c.writeInt32BE(this._b,4),c.writeInt32BE(this._c,8),c.writeInt32BE(this._d,12),c.writeInt32BE(this._e,16),c.writeInt32BE(this._f,20),c.writeInt32BE(this._g,24),c};var sha224$1=Sha224,inherits$m=inherits_browserExports,Hash$3=hash$8,Buffer$q=safeBufferExports$1.Buffer,K$1=[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],W$1=new Array(160);function Sha512(){this.init(),this._w=W$1,Hash$3.call(this,128,112)}inherits$m(Sha512,Hash$3);Sha512.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};function Ch(c,a,d){return d^c&(a^d)}function maj(c,a,d){return c&a|d&(c|a)}function sigma0(c,a){return(c>>>28|a<<4)^(a>>>2|c<<30)^(a>>>7|c<<25)}function sigma1(c,a){return(c>>>14|a<<18)^(c>>>18|a<<14)^(a>>>9|c<<23)}function Gamma0(c,a){return(c>>>1|a<<31)^(c>>>8|a<<24)^c>>>7}function Gamma0l(c,a){return(c>>>1|a<<31)^(c>>>8|a<<24)^(c>>>7|a<<25)}function Gamma1(c,a){return(c>>>19|a<<13)^(a>>>29|c<<3)^c>>>6}function Gamma1l(c,a){return(c>>>19|a<<13)^(a>>>29|c<<3)^(c>>>6|a<<26)}function getCarry(c,a){return c>>>0>>0?1:0}Sha512.prototype._update=function(c){for(var a=this._w,d=this._ah|0,et=this._bh|0,nt=this._ch|0,tt=this._dh|0,bt=this._eh|0,gt=this._fh|0,wt=this._gh|0,St=this._hh|0,Mt=this._al|0,_t=this._bl|0,Tt=this._cl|0,Rt=this._dl|0,kt=this._el|0,It=this._fl|0,Lt=this._gl|0,Ot=this._hl|0,Nt=0;Nt<32;Nt+=2)a[Nt]=c.readInt32BE(Nt*4),a[Nt+1]=c.readInt32BE(Nt*4+4);for(;Nt<160;Nt+=2){var Ft=a[Nt-30],jt=a[Nt-15*2+1],Vt=Gamma0(Ft,jt),Jt=Gamma0l(jt,Ft);Ft=a[Nt-2*2],jt=a[Nt-2*2+1];var ir=Gamma1(Ft,jt),rr=Gamma1l(jt,Ft),er=a[Nt-7*2],lr=a[Nt-7*2+1],Ct=a[Nt-16*2],dt=a[Nt-16*2+1],mt=Jt+lr|0,yt=Vt+er+getCarry(mt,Jt)|0;mt=mt+rr|0,yt=yt+ir+getCarry(mt,rr)|0,mt=mt+dt|0,yt=yt+Ct+getCarry(mt,dt)|0,a[Nt]=yt,a[Nt+1]=mt}for(var vt=0;vt<160;vt+=2){yt=a[vt],mt=a[vt+1];var Et=maj(d,et,nt),At=maj(Mt,_t,Tt),Pt=sigma0(d,Mt),xt=sigma0(Mt,d),ht=sigma1(bt,kt),$t=sigma1(kt,bt),Bt=K$1[vt],Dt=K$1[vt+1],Ht=Ch(bt,gt,wt),tr=Ch(kt,It,Lt),Xt=Ot+$t|0,Ut=St+ht+getCarry(Xt,Ot)|0;Xt=Xt+tr|0,Ut=Ut+Ht+getCarry(Xt,tr)|0,Xt=Xt+Dt|0,Ut=Ut+Bt+getCarry(Xt,Dt)|0,Xt=Xt+mt|0,Ut=Ut+yt+getCarry(Xt,mt)|0;var qt=xt+At|0,Gt=Pt+Et+getCarry(qt,xt)|0;St=wt,Ot=Lt,wt=gt,Lt=It,gt=bt,It=kt,kt=Rt+Xt|0,bt=tt+Ut+getCarry(kt,Rt)|0,tt=nt,Rt=Tt,nt=et,Tt=_t,et=d,_t=Mt,Mt=Xt+qt|0,d=Ut+Gt+getCarry(Mt,Xt)|0}this._al=this._al+Mt|0,this._bl=this._bl+_t|0,this._cl=this._cl+Tt|0,this._dl=this._dl+Rt|0,this._el=this._el+kt|0,this._fl=this._fl+It|0,this._gl=this._gl+Lt|0,this._hl=this._hl+Ot|0,this._ah=this._ah+d+getCarry(this._al,Mt)|0,this._bh=this._bh+et+getCarry(this._bl,_t)|0,this._ch=this._ch+nt+getCarry(this._cl,Tt)|0,this._dh=this._dh+tt+getCarry(this._dl,Rt)|0,this._eh=this._eh+bt+getCarry(this._el,kt)|0,this._fh=this._fh+gt+getCarry(this._fl,It)|0,this._gh=this._gh+wt+getCarry(this._gl,Lt)|0,this._hh=this._hh+St+getCarry(this._hl,Ot)|0};Sha512.prototype._hash=function(){var c=Buffer$q.allocUnsafe(64);function a(d,et,nt){c.writeInt32BE(d,nt),c.writeInt32BE(et,nt+4)}return a(this._ah,this._al,0),a(this._bh,this._bl,8),a(this._ch,this._cl,16),a(this._dh,this._dl,24),a(this._eh,this._el,32),a(this._fh,this._fl,40),a(this._gh,this._gl,48),a(this._hh,this._hl,56),c};var sha512$1=Sha512,inherits$l=inherits_browserExports,SHA512$2=sha512$1,Hash$2=hash$8,Buffer$p=safeBufferExports$1.Buffer,W=new Array(160);function Sha384(){this.init(),this._w=W,Hash$2.call(this,128,112)}inherits$l(Sha384,SHA512$2);Sha384.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};Sha384.prototype._hash=function(){var c=Buffer$p.allocUnsafe(48);function a(d,et,nt){c.writeInt32BE(d,nt),c.writeInt32BE(et,nt+4)}return a(this._ah,this._al,0),a(this._bh,this._bl,8),a(this._ch,this._cl,16),a(this._dh,this._dl,24),a(this._eh,this._el,32),a(this._fh,this._fl,40),c};var sha384$1=Sha384,exports=sha_js.exports=function(a){a=a.toLowerCase();var d=exports[a];if(!d)throw new Error(a+" is not supported (we accept pull requests)");return new d};exports.sha=sha$4;exports.sha1=sha1;exports.sha224=sha224$1;exports.sha256=sha256$3;exports.sha384=sha384$1;exports.sha512=sha512$1;var sha_jsExports=sha_js.exports,streamBrowserify=Stream,EE=eventsExports.EventEmitter,inherits$k=inherits_browserExports;inherits$k(Stream,EE);Stream.Readable=require_stream_readable$1();Stream.Writable=require_stream_writable$1();Stream.Duplex=require_stream_duplex$1();Stream.Transform=_stream_transform$1;Stream.PassThrough=_stream_passthrough$1;Stream.finished=endOfStream;Stream.pipeline=pipeline_1;Stream.Stream=Stream;function Stream(){EE.call(this)}Stream.prototype.pipe=function(c,a){var d=this;function et(Mt){c.writable&&c.write(Mt)===!1&&d.pause&&d.pause()}d.on("data",et);function nt(){d.readable&&d.resume&&d.resume()}c.on("drain",nt),!c._isStdio&&(!a||a.end!==!1)&&(d.on("end",bt),d.on("close",gt));var tt=!1;function bt(){tt||(tt=!0,c.end())}function gt(){tt||(tt=!0,typeof c.destroy=="function"&&c.destroy())}function wt(Mt){if(St(),EE.listenerCount(this,"error")===0)throw Mt}d.on("error",wt),c.on("error",wt);function St(){d.removeListener("data",et),c.removeListener("drain",nt),d.removeListener("end",bt),d.removeListener("close",gt),d.removeListener("error",wt),c.removeListener("error",wt),d.removeListener("end",St),d.removeListener("close",St),c.removeListener("close",St)}return d.on("end",St),d.on("close",St),c.on("close",St),c.emit("pipe",d),c};var Buffer$o=safeBufferExports$1.Buffer,Transform$6=streamBrowserify.Transform,StringDecoder=string_decoder.StringDecoder,inherits$j=inherits_browserExports;function CipherBase$1(c){Transform$6.call(this),this.hashMode=typeof c=="string",this.hashMode?this[c]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}inherits$j(CipherBase$1,Transform$6);CipherBase$1.prototype.update=function(c,a,d){typeof c=="string"&&(c=Buffer$o.from(c,a));var et=this._update(c);return this.hashMode?this:(d&&(et=this._toString(et,d)),et)};CipherBase$1.prototype.setAutoPadding=function(){};CipherBase$1.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};CipherBase$1.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};CipherBase$1.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};CipherBase$1.prototype._transform=function(c,a,d){var et;try{this.hashMode?this._update(c):this.push(this._update(c))}catch(nt){et=nt}finally{d(et)}};CipherBase$1.prototype._flush=function(c){var a;try{this.push(this.__final())}catch(d){a=d}c(a)};CipherBase$1.prototype._finalOrDigest=function(c){var a=this.__final()||Buffer$o.alloc(0);return c&&(a=this._toString(a,c,!0)),a};CipherBase$1.prototype._toString=function(c,a,d){if(this._decoder||(this._decoder=new StringDecoder(a),this._encoding=a),this._encoding!==a)throw new Error("can't switch encodings");var et=this._decoder.write(c);return d&&(et+=this._decoder.end()),et};var cipherBase=CipherBase$1,inherits$i=inherits_browserExports,MD5$2=md5_js,RIPEMD160$3=ripemd160,sha$3=sha_jsExports,Base$8=cipherBase;function Hash$1(c){Base$8.call(this,"digest"),this._hash=c}inherits$i(Hash$1,Base$8);Hash$1.prototype._update=function(c){this._hash.update(c)};Hash$1.prototype._final=function(){return this._hash.digest()};var browser$9=function(a){return a=a.toLowerCase(),a==="md5"?new MD5$2:a==="rmd160"||a==="ripemd160"?new RIPEMD160$3:new Hash$1(sha$3(a))},inherits$h=inherits_browserExports,Buffer$n=safeBufferExports$1.Buffer,Base$7=cipherBase,ZEROS$2=Buffer$n.alloc(128),blocksize=64;function Hmac$3(c,a){Base$7.call(this,"digest"),typeof a=="string"&&(a=Buffer$n.from(a)),this._alg=c,this._key=a,a.length>blocksize?a=c(a):a.lengthd){var et=c==="rmd160"?new RIPEMD160$2:sha$2(c);a=et.update(a).digest()}else a.lengthMAX_ALLOC||a!==a)throw new TypeError("Bad key length")},defaultEncoding$2;if(commonjsGlobal.process&&commonjsGlobal.process.browser)defaultEncoding$2="utf-8";else if(commonjsGlobal.process&&commonjsGlobal.process.version){var pVersionMajor=parseInt(dist$2.process.version.split(".")[0].slice(1),10);defaultEncoding$2=pVersionMajor>=6?"utf-8":"binary"}else defaultEncoding$2="utf-8";var defaultEncoding_1=defaultEncoding$2,Buffer$l=safeBufferExports$1.Buffer,toBuffer$2=function(c,a,d){if(Buffer$l.isBuffer(c))return c;if(typeof c=="string")return Buffer$l.from(c,a);if(ArrayBuffer.isView(c))return Buffer$l.from(c.buffer);throw new TypeError(d+" must be a string, a Buffer, a typed array or a DataView")},md5=md5$2,RIPEMD160$1=ripemd160,sha$1=sha_jsExports,Buffer$k=safeBufferExports$1.Buffer,checkParameters$1=precondition,defaultEncoding$1=defaultEncoding_1,toBuffer$1=toBuffer$2,ZEROS=Buffer$k.alloc(128),sizes={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function Hmac$1(c,a,d){var et=getDigest(c),nt=c==="sha512"||c==="sha384"?128:64;a.length>nt?a=et(a):a.length>>0};utils$A.writeUInt32BE=function(a,d,et){a[0+et]=d>>>24,a[1+et]=d>>>16&255,a[2+et]=d>>>8&255,a[3+et]=d&255};utils$A.ip=function(a,d,et,nt){for(var tt=0,bt=0,gt=6;gt>=0;gt-=2){for(var wt=0;wt<=24;wt+=8)tt<<=1,tt|=d>>>wt+gt&1;for(var wt=0;wt<=24;wt+=8)tt<<=1,tt|=a>>>wt+gt&1}for(var gt=6;gt>=0;gt-=2){for(var wt=1;wt<=25;wt+=8)bt<<=1,bt|=d>>>wt+gt&1;for(var wt=1;wt<=25;wt+=8)bt<<=1,bt|=a>>>wt+gt&1}et[nt+0]=tt>>>0,et[nt+1]=bt>>>0};utils$A.rip=function(a,d,et,nt){for(var tt=0,bt=0,gt=0;gt<4;gt++)for(var wt=24;wt>=0;wt-=8)tt<<=1,tt|=d>>>wt+gt&1,tt<<=1,tt|=a>>>wt+gt&1;for(var gt=4;gt<8;gt++)for(var wt=24;wt>=0;wt-=8)bt<<=1,bt|=d>>>wt+gt&1,bt<<=1,bt|=a>>>wt+gt&1;et[nt+0]=tt>>>0,et[nt+1]=bt>>>0};utils$A.pc1=function(a,d,et,nt){for(var tt=0,bt=0,gt=7;gt>=5;gt--){for(var wt=0;wt<=24;wt+=8)tt<<=1,tt|=d>>wt+gt&1;for(var wt=0;wt<=24;wt+=8)tt<<=1,tt|=a>>wt+gt&1}for(var wt=0;wt<=24;wt+=8)tt<<=1,tt|=d>>wt+gt&1;for(var gt=1;gt<=3;gt++){for(var wt=0;wt<=24;wt+=8)bt<<=1,bt|=d>>wt+gt&1;for(var wt=0;wt<=24;wt+=8)bt<<=1,bt|=a>>wt+gt&1}for(var wt=0;wt<=24;wt+=8)bt<<=1,bt|=a>>wt+gt&1;et[nt+0]=tt>>>0,et[nt+1]=bt>>>0};utils$A.r28shl=function(a,d){return a<>>28-d};var pc2table=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];utils$A.pc2=function(a,d,et,nt){for(var tt=0,bt=0,gt=pc2table.length>>>1,wt=0;wt>>pc2table[wt]&1;for(var wt=gt;wt>>pc2table[wt]&1;et[nt+0]=tt>>>0,et[nt+1]=bt>>>0};utils$A.expand=function(a,d,et){var nt=0,tt=0;nt=(a&1)<<5|a>>>27;for(var bt=23;bt>=15;bt-=4)nt<<=6,nt|=a>>>bt&63;for(var bt=11;bt>=3;bt-=4)tt|=a>>>bt&63,tt<<=6;tt|=(a&31)<<1|a>>>31,d[et+0]=nt>>>0,d[et+1]=tt>>>0};var sTable=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];utils$A.substitute=function(a,d){for(var et=0,nt=0;nt<4;nt++){var tt=a>>>18-nt*6&63,bt=sTable[nt*64+tt];et<<=4,et|=bt}for(var nt=0;nt<4;nt++){var tt=d>>>18-nt*6&63,bt=sTable[4*64+nt*64+tt];et<<=4,et|=bt}return et>>>0};var permuteTable=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];utils$A.permute=function(a){for(var d=0,et=0;et>>permuteTable[et]&1;return d>>>0};utils$A.padSplit=function(a,d,et){for(var nt=a.toString(2);nt.length0;nt--)d+=this._buffer(a,d),et+=this._flushBuffer(tt,et);return d+=this._buffer(a,d),tt};Cipher$3.prototype.final=function(a){var d;a&&(d=this.update(a));var et;return this.type==="encrypt"?et=this._finalEncrypt():et=this._finalDecrypt(),d?d.concat(et):et};Cipher$3.prototype._pad=function(a,d){if(d===0)return!1;for(;d>>1];et=utils$z.r28shl(et,bt),nt=utils$z.r28shl(nt,bt),utils$z.pc2(et,nt,a.keys,tt)}};DES$3.prototype._update=function(a,d,et,nt){var tt=this._desState,bt=utils$z.readUInt32BE(a,d),gt=utils$z.readUInt32BE(a,d+4);utils$z.ip(bt,gt,tt.tmp,0),bt=tt.tmp[0],gt=tt.tmp[1],this.type==="encrypt"?this._encrypt(tt,bt,gt,tt.tmp,0):this._decrypt(tt,bt,gt,tt.tmp,0),bt=tt.tmp[0],gt=tt.tmp[1],utils$z.writeUInt32BE(et,bt,nt),utils$z.writeUInt32BE(et,gt,nt+4)};DES$3.prototype._pad=function(a,d){if(this.padding===!1)return!1;for(var et=a.length-d,nt=d;nt>>0,bt=Rt}utils$z.rip(gt,bt,nt,tt)};DES$3.prototype._decrypt=function(a,d,et,nt,tt){for(var bt=et,gt=d,wt=a.keys.length-2;wt>=0;wt-=2){var St=a.keys[wt],Mt=a.keys[wt+1];utils$z.expand(bt,a.tmp,0),St^=a.tmp[0],Mt^=a.tmp[1];var _t=utils$z.substitute(St,Mt),Tt=utils$z.permute(_t),Rt=bt;bt=(gt^Tt)>>>0,gt=Rt}utils$z.rip(bt,gt,nt,tt)};var cbc$1={},assert$n=minimalisticAssert,inherits$e=inherits_browserExports,proto={};function CBCState(c){assert$n.equal(c.length,8,"Invalid IV length"),this.iv=new Array(8);for(var a=0;a>nt%8,c._prev=shiftIn(c._prev,d?gt:wt);return bt}function shiftIn(c,a){var d=c.length,et=-1,nt=Buffer$f.allocUnsafe(c.length);for(c=Buffer$f.concat([c,Buffer$f.from([a])]);++et>7;return nt}cfb1.encrypt=function(c,a,d){for(var et=a.length,nt=Buffer$f.allocUnsafe(et),tt=-1;++tt>>24]^bt[Mt>>>16&255]^gt[_t>>>8&255]^wt[Tt&255]^a[Ot++],kt=tt[Mt>>>24]^bt[_t>>>16&255]^gt[Tt>>>8&255]^wt[St&255]^a[Ot++],It=tt[_t>>>24]^bt[Tt>>>16&255]^gt[St>>>8&255]^wt[Mt&255]^a[Ot++],Lt=tt[Tt>>>24]^bt[St>>>16&255]^gt[Mt>>>8&255]^wt[_t&255]^a[Ot++],St=Rt,Mt=kt,_t=It,Tt=Lt;return Rt=(et[St>>>24]<<24|et[Mt>>>16&255]<<16|et[_t>>>8&255]<<8|et[Tt&255])^a[Ot++],kt=(et[Mt>>>24]<<24|et[_t>>>16&255]<<16|et[Tt>>>8&255]<<8|et[St&255])^a[Ot++],It=(et[_t>>>24]<<24|et[Tt>>>16&255]<<16|et[St>>>8&255]<<8|et[Mt&255])^a[Ot++],Lt=(et[Tt>>>24]<<24|et[St>>>16&255]<<16|et[Mt>>>8&255]<<8|et[_t&255])^a[Ot++],Rt=Rt>>>0,kt=kt>>>0,It=It>>>0,Lt=Lt>>>0,[Rt,kt,It,Lt]}var RCON=[0,1,2,4,8,16,32,64,128,27,54],G=function(){for(var c=new Array(256),a=0;a<256;a++)a<128?c[a]=a<<1:c[a]=a<<1^283;for(var d=[],et=[],nt=[[],[],[],[]],tt=[[],[],[],[]],bt=0,gt=0,wt=0;wt<256;++wt){var St=gt^gt<<1^gt<<2^gt<<3^gt<<4;St=St>>>8^St&255^99,d[bt]=St,et[St]=bt;var Mt=c[bt],_t=c[Mt],Tt=c[_t],Rt=c[St]*257^St*16843008;nt[0][bt]=Rt<<24|Rt>>>8,nt[1][bt]=Rt<<16|Rt>>>16,nt[2][bt]=Rt<<8|Rt>>>24,nt[3][bt]=Rt,Rt=Tt*16843009^_t*65537^Mt*257^bt*16843008,tt[0][St]=Rt<<24|Rt>>>8,tt[1][St]=Rt<<16|Rt>>>16,tt[2][St]=Rt<<8|Rt>>>24,tt[3][St]=Rt,bt===0?bt=gt=1:(bt=Mt^c[c[c[Tt^Mt]]],gt^=c[c[gt]])}return{SBOX:d,INV_SBOX:et,SUB_MIX:nt,INV_SUB_MIX:tt}}();function AES(c){this._key=asUInt32Array(c),this._reset()}AES.blockSize=4*4;AES.keySize=256/8;AES.prototype.blockSize=AES.blockSize;AES.prototype.keySize=AES.keySize;AES.prototype._reset=function(){for(var c=this._key,a=c.length,d=a+6,et=(d+1)*4,nt=[],tt=0;tt>>24,bt=G.SBOX[bt>>>24]<<24|G.SBOX[bt>>>16&255]<<16|G.SBOX[bt>>>8&255]<<8|G.SBOX[bt&255],bt^=RCON[tt/a|0]<<24):a>6&&tt%a===4&&(bt=G.SBOX[bt>>>24]<<24|G.SBOX[bt>>>16&255]<<16|G.SBOX[bt>>>8&255]<<8|G.SBOX[bt&255]),nt[tt]=nt[tt-a]^bt}for(var gt=[],wt=0;wt>>24]]^G.INV_SUB_MIX[1][G.SBOX[Mt>>>16&255]]^G.INV_SUB_MIX[2][G.SBOX[Mt>>>8&255]]^G.INV_SUB_MIX[3][G.SBOX[Mt&255]]}this._nRounds=d,this._keySchedule=nt,this._invKeySchedule=gt};AES.prototype.encryptBlockRaw=function(c){return c=asUInt32Array(c),cryptBlock(c,this._keySchedule,G.SUB_MIX,G.SBOX,this._nRounds)};AES.prototype.encryptBlock=function(c){var a=this.encryptBlockRaw(c),d=Buffer$d.allocUnsafe(16);return d.writeUInt32BE(a[0],0),d.writeUInt32BE(a[1],4),d.writeUInt32BE(a[2],8),d.writeUInt32BE(a[3],12),d};AES.prototype.decryptBlock=function(c){c=asUInt32Array(c);var a=c[1];c[1]=c[3],c[3]=a;var d=cryptBlock(c,this._invKeySchedule,G.INV_SUB_MIX,G.INV_SBOX,this._nRounds),et=Buffer$d.allocUnsafe(16);return et.writeUInt32BE(d[0],0),et.writeUInt32BE(d[3],4),et.writeUInt32BE(d[2],8),et.writeUInt32BE(d[1],12),et};AES.prototype.scrub=function(){scrubVec(this._keySchedule),scrubVec(this._invKeySchedule),scrubVec(this._key)};aes$5.AES=AES;var Buffer$c=safeBufferExports$1.Buffer,ZEROES=Buffer$c.alloc(16,0);function toArray$1(c){return[c.readUInt32BE(0),c.readUInt32BE(4),c.readUInt32BE(8),c.readUInt32BE(12)]}function fromArray(c){var a=Buffer$c.allocUnsafe(16);return a.writeUInt32BE(c[0]>>>0,0),a.writeUInt32BE(c[1]>>>0,4),a.writeUInt32BE(c[2]>>>0,8),a.writeUInt32BE(c[3]>>>0,12),a}function GHASH$1(c){this.h=c,this.state=Buffer$c.alloc(16,0),this.cache=Buffer$c.allocUnsafe(0)}GHASH$1.prototype.ghash=function(c){for(var a=-1;++a0;d--)c[d]=c[d]>>>1|(c[d-1]&1)<<31;c[0]=c[0]>>>1,nt&&(c[0]=c[0]^225<<24)}this.state=fromArray(a)};GHASH$1.prototype.update=function(c){this.cache=Buffer$c.concat([this.cache,c]);for(var a;this.cache.length>=16;)a=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(a)};GHASH$1.prototype.final=function(c,a){return this.cache.length&&this.ghash(Buffer$c.concat([this.cache,ZEROES],16)),this.ghash(fromArray([0,c,0,a])),this.state};var ghash=GHASH$1,aes$4=aes$5,Buffer$b=safeBufferExports$1.Buffer,Transform$5=cipherBase,inherits$b=inherits_browserExports,GHASH=ghash,xor$3=bufferXor,incr32=incr32_1;function xorTest(c,a){var d=0;c.length!==a.length&&d++;for(var et=Math.min(c.length,a.length),nt=0;nt0||et>0;){var wt=new MD5;wt.update(gt),wt.update(c),a&&wt.update(a),gt=wt.digest();var St=0;if(nt>0){var Mt=tt.length-nt;St=Math.min(nt,gt.length),gt.copy(tt,Mt,0,St),nt-=St}if(St0){var _t=bt.length-et,Tt=Math.min(et,gt.length-St);gt.copy(bt,_t,St,St+Tt),et-=Tt}}return gt.fill(0),{key:tt,iv:bt}}var evp_bytestokey=EVP_BytesToKey,MODES$1=modes_1,AuthCipher$1=authCipher,Buffer$8=safeBufferExports$1.Buffer,StreamCipher$1=streamCipher,Transform$3=cipherBase,aes$2=aes$5,ebtk$2=evp_bytestokey,inherits$9=inherits_browserExports;function Cipher(c,a,d){Transform$3.call(this),this._cache=new Splitter$1,this._cipher=new aes$2.AES(a),this._prev=Buffer$8.from(d),this._mode=c,this._autopadding=!0}inherits$9(Cipher,Transform$3);Cipher.prototype._update=function(c){this._cache.add(c);for(var a,d,et=[];a=this._cache.get();)d=this._mode.encrypt(this,a),et.push(d);return Buffer$8.concat(et)};var PADDING=Buffer$8.alloc(16,16);Cipher.prototype._final=function(){var c=this._cache.flush();if(this._autopadding)return c=this._mode.encrypt(this,c),this._cipher.scrub(),c;if(!c.equals(PADDING))throw this._cipher.scrub(),new Error("data not multiple of block length")};Cipher.prototype.setAutoPadding=function(c){return this._autopadding=!!c,this};function Splitter$1(){this.cache=Buffer$8.allocUnsafe(0)}Splitter$1.prototype.add=function(c){this.cache=Buffer$8.concat([this.cache,c])};Splitter$1.prototype.get=function(){if(this.cache.length>15){var c=this.cache.slice(0,16);return this.cache=this.cache.slice(16),c}return null};Splitter$1.prototype.flush=function(){for(var c=16-this.cache.length,a=Buffer$8.allocUnsafe(c),d=-1;++d16)return a=this.cache.slice(0,16),this.cache=this.cache.slice(16),a}else if(this.cache.length>=16)return a=this.cache.slice(0,16),this.cache=this.cache.slice(16),a;return null};Splitter.prototype.flush=function(){if(this.cache.length)return this.cache};function unpad(c){var a=c[15];if(a<1||a>16)throw new Error("unable to decrypt data");for(var d=-1;++d0?dt:mt},tt.min=function(dt,mt){return dt.cmp(mt)<0?dt:mt},tt.prototype._init=function(dt,mt,yt){if(typeof dt=="number")return this._initNumber(dt,mt,yt);if(typeof dt=="object")return this._initArray(dt,mt,yt);mt==="hex"&&(mt=16),et(mt===(mt|0)&&mt>=2&&mt<=36),dt=dt.toString().replace(/\s+/g,"");var vt=0;dt[0]==="-"&&(vt++,this.negative=1),vt=0;vt-=3)At=dt[vt]|dt[vt-1]<<8|dt[vt-2]<<16,this.words[Et]|=At<>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,Et++);else if(yt==="le")for(vt=0,Et=0;vt>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,Et++);return this.strip()};function gt(Ct,dt){var mt=Ct.charCodeAt(dt);return mt>=65&&mt<=70?mt-55:mt>=97&&mt<=102?mt-87:mt-48&15}function wt(Ct,dt,mt){var yt=gt(Ct,mt);return mt-1>=dt&&(yt|=gt(Ct,mt-1)<<4),yt}tt.prototype._parseHex=function(dt,mt,yt){this.length=Math.ceil((dt.length-mt)/6),this.words=new Array(this.length);for(var vt=0;vt=mt;vt-=2)Pt=wt(dt,mt,vt)<=18?(Et-=18,At+=1,this.words[At]|=Pt>>>26):Et+=8;else{var xt=dt.length-mt;for(vt=xt%2===0?mt+1:mt;vt=18?(Et-=18,At+=1,this.words[At]|=Pt>>>26):Et+=8}this.strip()};function St(Ct,dt,mt,yt){for(var vt=0,Et=Math.min(Ct.length,mt),At=dt;At=49?vt+=Pt-49+10:Pt>=17?vt+=Pt-17+10:vt+=Pt}return vt}tt.prototype._parseBase=function(dt,mt,yt){this.words=[0],this.length=1;for(var vt=0,Et=1;Et<=67108863;Et*=mt)vt++;vt--,Et=Et/mt|0;for(var At=dt.length-yt,Pt=At%vt,xt=Math.min(At,At-Pt)+yt,ht=0,$t=yt;$t1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},tt.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},tt.prototype.inspect=function(){return(this.red?""};var Mt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],_t=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Tt=[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];tt.prototype.toString=function(dt,mt){dt=dt||10,mt=mt|0||1;var yt;if(dt===16||dt==="hex"){yt="";for(var vt=0,Et=0,At=0;At>>24-vt&16777215,Et!==0||At!==this.length-1?yt=Mt[6-xt.length]+xt+yt:yt=xt+yt,vt+=2,vt>=26&&(vt-=26,At--)}for(Et!==0&&(yt=Et.toString(16)+yt);yt.length%mt!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}if(dt===(dt|0)&&dt>=2&&dt<=36){var ht=_t[dt],$t=Tt[dt];yt="";var Bt=this.clone();for(Bt.negative=0;!Bt.isZero();){var Dt=Bt.modn($t).toString(dt);Bt=Bt.idivn($t),Bt.isZero()?yt=Dt+yt:yt=Mt[ht-Dt.length]+Dt+yt}for(this.isZero()&&(yt="0"+yt);yt.length%mt!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}et(!1,"Base should be between 2 and 36")},tt.prototype.toNumber=function(){var dt=this.words[0];return this.length===2?dt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?dt+=4503599627370496+this.words[1]*67108864:this.length>2&&et(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-dt:dt},tt.prototype.toJSON=function(){return this.toString(16)},tt.prototype.toBuffer=function(dt,mt){return et(typeof bt<"u"),this.toArrayLike(bt,dt,mt)},tt.prototype.toArray=function(dt,mt){return this.toArrayLike(Array,dt,mt)},tt.prototype.toArrayLike=function(dt,mt,yt){var vt=this.byteLength(),Et=yt||Math.max(1,vt);et(vt<=Et,"byte array longer than desired length"),et(Et>0,"Requested array length <= 0"),this.strip();var At=mt==="le",Pt=new dt(Et),xt,ht,$t=this.clone();if(At){for(ht=0;!$t.isZero();ht++)xt=$t.andln(255),$t.iushrn(8),Pt[ht]=xt;for(;ht=4096&&(yt+=13,mt>>>=13),mt>=64&&(yt+=7,mt>>>=7),mt>=8&&(yt+=4,mt>>>=4),mt>=2&&(yt+=2,mt>>>=2),yt+mt},tt.prototype._zeroBits=function(dt){if(dt===0)return 26;var mt=dt,yt=0;return mt&8191||(yt+=13,mt>>>=13),mt&127||(yt+=7,mt>>>=7),mt&15||(yt+=4,mt>>>=4),mt&3||(yt+=2,mt>>>=2),mt&1||yt++,yt},tt.prototype.bitLength=function(){var dt=this.words[this.length-1],mt=this._countBits(dt);return(this.length-1)*26+mt};function Rt(Ct){for(var dt=new Array(Ct.bitLength()),mt=0;mt>>vt}return dt}tt.prototype.zeroBits=function(){if(this.isZero())return 0;for(var dt=0,mt=0;mtdt.length?this.clone().ior(dt):dt.clone().ior(this)},tt.prototype.uor=function(dt){return this.length>dt.length?this.clone().iuor(dt):dt.clone().iuor(this)},tt.prototype.iuand=function(dt){var mt;this.length>dt.length?mt=dt:mt=this;for(var yt=0;ytdt.length?this.clone().iand(dt):dt.clone().iand(this)},tt.prototype.uand=function(dt){return this.length>dt.length?this.clone().iuand(dt):dt.clone().iuand(this)},tt.prototype.iuxor=function(dt){var mt,yt;this.length>dt.length?(mt=this,yt=dt):(mt=dt,yt=this);for(var vt=0;vtdt.length?this.clone().ixor(dt):dt.clone().ixor(this)},tt.prototype.uxor=function(dt){return this.length>dt.length?this.clone().iuxor(dt):dt.clone().iuxor(this)},tt.prototype.inotn=function(dt){et(typeof dt=="number"&&dt>=0);var mt=Math.ceil(dt/26)|0,yt=dt%26;this._expand(mt),yt>0&&mt--;for(var vt=0;vt0&&(this.words[vt]=~this.words[vt]&67108863>>26-yt),this.strip()},tt.prototype.notn=function(dt){return this.clone().inotn(dt)},tt.prototype.setn=function(dt,mt){et(typeof dt=="number"&&dt>=0);var yt=dt/26|0,vt=dt%26;return this._expand(yt+1),mt?this.words[yt]=this.words[yt]|1<dt.length?(yt=this,vt=dt):(yt=dt,vt=this);for(var Et=0,At=0;At>>26;for(;Et!==0&&At>>26;if(this.length=yt.length,Et!==0)this.words[this.length]=Et,this.length++;else if(yt!==this)for(;Atdt.length?this.clone().iadd(dt):dt.clone().iadd(this)},tt.prototype.isub=function(dt){if(dt.negative!==0){dt.negative=0;var mt=this.iadd(dt);return dt.negative=1,mt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(dt),this.negative=1,this._normSign();var yt=this.cmp(dt);if(yt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var vt,Et;yt>0?(vt=this,Et=dt):(vt=dt,Et=this);for(var At=0,Pt=0;Pt>26,this.words[Pt]=mt&67108863;for(;At!==0&&Pt>26,this.words[Pt]=mt&67108863;if(At===0&&Pt>>26,Bt=xt&67108863,Dt=Math.min(ht,dt.length-1),Ht=Math.max(0,ht-Ct.length+1);Ht<=Dt;Ht++){var tr=ht-Ht|0;vt=Ct.words[tr]|0,Et=dt.words[Ht]|0,At=vt*Et+Bt,$t+=At/67108864|0,Bt=At&67108863}mt.words[ht]=Bt|0,xt=$t|0}return xt!==0?mt.words[ht]=xt|0:mt.length--,mt.strip()}var It=function(dt,mt,yt){var vt=dt.words,Et=mt.words,At=yt.words,Pt=0,xt,ht,$t,Bt=vt[0]|0,Dt=Bt&8191,Ht=Bt>>>13,tr=vt[1]|0,Xt=tr&8191,Ut=tr>>>13,qt=vt[2]|0,Gt=qt&8191,Zt=qt>>>13,Yt=vt[3]|0,Kt=Yt&8191,ar=Yt>>>13,gr=vt[4]|0,cr=gr&8191,ur=gr>>>13,Pr=vt[5]|0,br=Pr&8191,dr=Pr>>>13,Kr=vt[6]|0,xr=Kr&8191,Sr=Kr>>>13,Zr=vt[7]|0,$r=Zr&8191,Mr=Zr>>>13,Xr=vt[8]|0,Qt=Xr&8191,zt=Xr>>>13,Wt=vt[9]|0,nr=Wt&8191,fr=Wt>>>13,Er=Et[0]|0,pr=Er&8191,vr=Er>>>13,Jr=Et[1]|0,wr=Jr&8191,Ar=Jr>>>13,Yr=Et[2]|0,Cr=Yr&8191,Or=Yr>>>13,Qr=Et[3]|0,_r=Qr&8191,Dr=Qr>>>13,r0=Et[4]|0,Tr=r0&8191,Lr=r0>>>13,n0=Et[5]|0,Rr=n0&8191,Fr=n0>>>13,i0=Et[6]|0,Br=i0&8191,jr=i0>>>13,a0=Et[7]|0,kr=a0&8191,Ur=a0>>>13,s0=Et[8]|0,Ir=s0&8191,Hr=s0>>>13,o0=Et[9]|0,Nr=o0&8191,qr=o0>>>13;yt.negative=dt.negative^mt.negative,yt.length=19,xt=Math.imul(Dt,pr),ht=Math.imul(Dt,vr),ht=ht+Math.imul(Ht,pr)|0,$t=Math.imul(Ht,vr);var e0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(e0>>>26)|0,e0&=67108863,xt=Math.imul(Xt,pr),ht=Math.imul(Xt,vr),ht=ht+Math.imul(Ut,pr)|0,$t=Math.imul(Ut,vr),xt=xt+Math.imul(Dt,wr)|0,ht=ht+Math.imul(Dt,Ar)|0,ht=ht+Math.imul(Ht,wr)|0,$t=$t+Math.imul(Ht,Ar)|0;var t0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(t0>>>26)|0,t0&=67108863,xt=Math.imul(Gt,pr),ht=Math.imul(Gt,vr),ht=ht+Math.imul(Zt,pr)|0,$t=Math.imul(Zt,vr),xt=xt+Math.imul(Xt,wr)|0,ht=ht+Math.imul(Xt,Ar)|0,ht=ht+Math.imul(Ut,wr)|0,$t=$t+Math.imul(Ut,Ar)|0,xt=xt+Math.imul(Dt,Cr)|0,ht=ht+Math.imul(Dt,Or)|0,ht=ht+Math.imul(Ht,Cr)|0,$t=$t+Math.imul(Ht,Or)|0;var f0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(f0>>>26)|0,f0&=67108863,xt=Math.imul(Kt,pr),ht=Math.imul(Kt,vr),ht=ht+Math.imul(ar,pr)|0,$t=Math.imul(ar,vr),xt=xt+Math.imul(Gt,wr)|0,ht=ht+Math.imul(Gt,Ar)|0,ht=ht+Math.imul(Zt,wr)|0,$t=$t+Math.imul(Zt,Ar)|0,xt=xt+Math.imul(Xt,Cr)|0,ht=ht+Math.imul(Xt,Or)|0,ht=ht+Math.imul(Ut,Cr)|0,$t=$t+Math.imul(Ut,Or)|0,xt=xt+Math.imul(Dt,_r)|0,ht=ht+Math.imul(Dt,Dr)|0,ht=ht+Math.imul(Ht,_r)|0,$t=$t+Math.imul(Ht,Dr)|0;var c0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(c0>>>26)|0,c0&=67108863,xt=Math.imul(cr,pr),ht=Math.imul(cr,vr),ht=ht+Math.imul(ur,pr)|0,$t=Math.imul(ur,vr),xt=xt+Math.imul(Kt,wr)|0,ht=ht+Math.imul(Kt,Ar)|0,ht=ht+Math.imul(ar,wr)|0,$t=$t+Math.imul(ar,Ar)|0,xt=xt+Math.imul(Gt,Cr)|0,ht=ht+Math.imul(Gt,Or)|0,ht=ht+Math.imul(Zt,Cr)|0,$t=$t+Math.imul(Zt,Or)|0,xt=xt+Math.imul(Xt,_r)|0,ht=ht+Math.imul(Xt,Dr)|0,ht=ht+Math.imul(Ut,_r)|0,$t=$t+Math.imul(Ut,Dr)|0,xt=xt+Math.imul(Dt,Tr)|0,ht=ht+Math.imul(Dt,Lr)|0,ht=ht+Math.imul(Ht,Tr)|0,$t=$t+Math.imul(Ht,Lr)|0;var l0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(l0>>>26)|0,l0&=67108863,xt=Math.imul(br,pr),ht=Math.imul(br,vr),ht=ht+Math.imul(dr,pr)|0,$t=Math.imul(dr,vr),xt=xt+Math.imul(cr,wr)|0,ht=ht+Math.imul(cr,Ar)|0,ht=ht+Math.imul(ur,wr)|0,$t=$t+Math.imul(ur,Ar)|0,xt=xt+Math.imul(Kt,Cr)|0,ht=ht+Math.imul(Kt,Or)|0,ht=ht+Math.imul(ar,Cr)|0,$t=$t+Math.imul(ar,Or)|0,xt=xt+Math.imul(Gt,_r)|0,ht=ht+Math.imul(Gt,Dr)|0,ht=ht+Math.imul(Zt,_r)|0,$t=$t+Math.imul(Zt,Dr)|0,xt=xt+Math.imul(Xt,Tr)|0,ht=ht+Math.imul(Xt,Lr)|0,ht=ht+Math.imul(Ut,Tr)|0,$t=$t+Math.imul(Ut,Lr)|0,xt=xt+Math.imul(Dt,Rr)|0,ht=ht+Math.imul(Dt,Fr)|0,ht=ht+Math.imul(Ht,Rr)|0,$t=$t+Math.imul(Ht,Fr)|0;var u0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(u0>>>26)|0,u0&=67108863,xt=Math.imul(xr,pr),ht=Math.imul(xr,vr),ht=ht+Math.imul(Sr,pr)|0,$t=Math.imul(Sr,vr),xt=xt+Math.imul(br,wr)|0,ht=ht+Math.imul(br,Ar)|0,ht=ht+Math.imul(dr,wr)|0,$t=$t+Math.imul(dr,Ar)|0,xt=xt+Math.imul(cr,Cr)|0,ht=ht+Math.imul(cr,Or)|0,ht=ht+Math.imul(ur,Cr)|0,$t=$t+Math.imul(ur,Or)|0,xt=xt+Math.imul(Kt,_r)|0,ht=ht+Math.imul(Kt,Dr)|0,ht=ht+Math.imul(ar,_r)|0,$t=$t+Math.imul(ar,Dr)|0,xt=xt+Math.imul(Gt,Tr)|0,ht=ht+Math.imul(Gt,Lr)|0,ht=ht+Math.imul(Zt,Tr)|0,$t=$t+Math.imul(Zt,Lr)|0,xt=xt+Math.imul(Xt,Rr)|0,ht=ht+Math.imul(Xt,Fr)|0,ht=ht+Math.imul(Ut,Rr)|0,$t=$t+Math.imul(Ut,Fr)|0,xt=xt+Math.imul(Dt,Br)|0,ht=ht+Math.imul(Dt,jr)|0,ht=ht+Math.imul(Ht,Br)|0,$t=$t+Math.imul(Ht,jr)|0;var d0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(d0>>>26)|0,d0&=67108863,xt=Math.imul($r,pr),ht=Math.imul($r,vr),ht=ht+Math.imul(Mr,pr)|0,$t=Math.imul(Mr,vr),xt=xt+Math.imul(xr,wr)|0,ht=ht+Math.imul(xr,Ar)|0,ht=ht+Math.imul(Sr,wr)|0,$t=$t+Math.imul(Sr,Ar)|0,xt=xt+Math.imul(br,Cr)|0,ht=ht+Math.imul(br,Or)|0,ht=ht+Math.imul(dr,Cr)|0,$t=$t+Math.imul(dr,Or)|0,xt=xt+Math.imul(cr,_r)|0,ht=ht+Math.imul(cr,Dr)|0,ht=ht+Math.imul(ur,_r)|0,$t=$t+Math.imul(ur,Dr)|0,xt=xt+Math.imul(Kt,Tr)|0,ht=ht+Math.imul(Kt,Lr)|0,ht=ht+Math.imul(ar,Tr)|0,$t=$t+Math.imul(ar,Lr)|0,xt=xt+Math.imul(Gt,Rr)|0,ht=ht+Math.imul(Gt,Fr)|0,ht=ht+Math.imul(Zt,Rr)|0,$t=$t+Math.imul(Zt,Fr)|0,xt=xt+Math.imul(Xt,Br)|0,ht=ht+Math.imul(Xt,jr)|0,ht=ht+Math.imul(Ut,Br)|0,$t=$t+Math.imul(Ut,jr)|0,xt=xt+Math.imul(Dt,kr)|0,ht=ht+Math.imul(Dt,Ur)|0,ht=ht+Math.imul(Ht,kr)|0,$t=$t+Math.imul(Ht,Ur)|0;var h0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(h0>>>26)|0,h0&=67108863,xt=Math.imul(Qt,pr),ht=Math.imul(Qt,vr),ht=ht+Math.imul(zt,pr)|0,$t=Math.imul(zt,vr),xt=xt+Math.imul($r,wr)|0,ht=ht+Math.imul($r,Ar)|0,ht=ht+Math.imul(Mr,wr)|0,$t=$t+Math.imul(Mr,Ar)|0,xt=xt+Math.imul(xr,Cr)|0,ht=ht+Math.imul(xr,Or)|0,ht=ht+Math.imul(Sr,Cr)|0,$t=$t+Math.imul(Sr,Or)|0,xt=xt+Math.imul(br,_r)|0,ht=ht+Math.imul(br,Dr)|0,ht=ht+Math.imul(dr,_r)|0,$t=$t+Math.imul(dr,Dr)|0,xt=xt+Math.imul(cr,Tr)|0,ht=ht+Math.imul(cr,Lr)|0,ht=ht+Math.imul(ur,Tr)|0,$t=$t+Math.imul(ur,Lr)|0,xt=xt+Math.imul(Kt,Rr)|0,ht=ht+Math.imul(Kt,Fr)|0,ht=ht+Math.imul(ar,Rr)|0,$t=$t+Math.imul(ar,Fr)|0,xt=xt+Math.imul(Gt,Br)|0,ht=ht+Math.imul(Gt,jr)|0,ht=ht+Math.imul(Zt,Br)|0,$t=$t+Math.imul(Zt,jr)|0,xt=xt+Math.imul(Xt,kr)|0,ht=ht+Math.imul(Xt,Ur)|0,ht=ht+Math.imul(Ut,kr)|0,$t=$t+Math.imul(Ut,Ur)|0,xt=xt+Math.imul(Dt,Ir)|0,ht=ht+Math.imul(Dt,Hr)|0,ht=ht+Math.imul(Ht,Ir)|0,$t=$t+Math.imul(Ht,Hr)|0;var p0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(p0>>>26)|0,p0&=67108863,xt=Math.imul(nr,pr),ht=Math.imul(nr,vr),ht=ht+Math.imul(fr,pr)|0,$t=Math.imul(fr,vr),xt=xt+Math.imul(Qt,wr)|0,ht=ht+Math.imul(Qt,Ar)|0,ht=ht+Math.imul(zt,wr)|0,$t=$t+Math.imul(zt,Ar)|0,xt=xt+Math.imul($r,Cr)|0,ht=ht+Math.imul($r,Or)|0,ht=ht+Math.imul(Mr,Cr)|0,$t=$t+Math.imul(Mr,Or)|0,xt=xt+Math.imul(xr,_r)|0,ht=ht+Math.imul(xr,Dr)|0,ht=ht+Math.imul(Sr,_r)|0,$t=$t+Math.imul(Sr,Dr)|0,xt=xt+Math.imul(br,Tr)|0,ht=ht+Math.imul(br,Lr)|0,ht=ht+Math.imul(dr,Tr)|0,$t=$t+Math.imul(dr,Lr)|0,xt=xt+Math.imul(cr,Rr)|0,ht=ht+Math.imul(cr,Fr)|0,ht=ht+Math.imul(ur,Rr)|0,$t=$t+Math.imul(ur,Fr)|0,xt=xt+Math.imul(Kt,Br)|0,ht=ht+Math.imul(Kt,jr)|0,ht=ht+Math.imul(ar,Br)|0,$t=$t+Math.imul(ar,jr)|0,xt=xt+Math.imul(Gt,kr)|0,ht=ht+Math.imul(Gt,Ur)|0,ht=ht+Math.imul(Zt,kr)|0,$t=$t+Math.imul(Zt,Ur)|0,xt=xt+Math.imul(Xt,Ir)|0,ht=ht+Math.imul(Xt,Hr)|0,ht=ht+Math.imul(Ut,Ir)|0,$t=$t+Math.imul(Ut,Hr)|0,xt=xt+Math.imul(Dt,Nr)|0,ht=ht+Math.imul(Dt,qr)|0,ht=ht+Math.imul(Ht,Nr)|0,$t=$t+Math.imul(Ht,qr)|0;var b0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(b0>>>26)|0,b0&=67108863,xt=Math.imul(nr,wr),ht=Math.imul(nr,Ar),ht=ht+Math.imul(fr,wr)|0,$t=Math.imul(fr,Ar),xt=xt+Math.imul(Qt,Cr)|0,ht=ht+Math.imul(Qt,Or)|0,ht=ht+Math.imul(zt,Cr)|0,$t=$t+Math.imul(zt,Or)|0,xt=xt+Math.imul($r,_r)|0,ht=ht+Math.imul($r,Dr)|0,ht=ht+Math.imul(Mr,_r)|0,$t=$t+Math.imul(Mr,Dr)|0,xt=xt+Math.imul(xr,Tr)|0,ht=ht+Math.imul(xr,Lr)|0,ht=ht+Math.imul(Sr,Tr)|0,$t=$t+Math.imul(Sr,Lr)|0,xt=xt+Math.imul(br,Rr)|0,ht=ht+Math.imul(br,Fr)|0,ht=ht+Math.imul(dr,Rr)|0,$t=$t+Math.imul(dr,Fr)|0,xt=xt+Math.imul(cr,Br)|0,ht=ht+Math.imul(cr,jr)|0,ht=ht+Math.imul(ur,Br)|0,$t=$t+Math.imul(ur,jr)|0,xt=xt+Math.imul(Kt,kr)|0,ht=ht+Math.imul(Kt,Ur)|0,ht=ht+Math.imul(ar,kr)|0,$t=$t+Math.imul(ar,Ur)|0,xt=xt+Math.imul(Gt,Ir)|0,ht=ht+Math.imul(Gt,Hr)|0,ht=ht+Math.imul(Zt,Ir)|0,$t=$t+Math.imul(Zt,Hr)|0,xt=xt+Math.imul(Xt,Nr)|0,ht=ht+Math.imul(Xt,qr)|0,ht=ht+Math.imul(Ut,Nr)|0,$t=$t+Math.imul(Ut,qr)|0;var m0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(m0>>>26)|0,m0&=67108863,xt=Math.imul(nr,Cr),ht=Math.imul(nr,Or),ht=ht+Math.imul(fr,Cr)|0,$t=Math.imul(fr,Or),xt=xt+Math.imul(Qt,_r)|0,ht=ht+Math.imul(Qt,Dr)|0,ht=ht+Math.imul(zt,_r)|0,$t=$t+Math.imul(zt,Dr)|0,xt=xt+Math.imul($r,Tr)|0,ht=ht+Math.imul($r,Lr)|0,ht=ht+Math.imul(Mr,Tr)|0,$t=$t+Math.imul(Mr,Lr)|0,xt=xt+Math.imul(xr,Rr)|0,ht=ht+Math.imul(xr,Fr)|0,ht=ht+Math.imul(Sr,Rr)|0,$t=$t+Math.imul(Sr,Fr)|0,xt=xt+Math.imul(br,Br)|0,ht=ht+Math.imul(br,jr)|0,ht=ht+Math.imul(dr,Br)|0,$t=$t+Math.imul(dr,jr)|0,xt=xt+Math.imul(cr,kr)|0,ht=ht+Math.imul(cr,Ur)|0,ht=ht+Math.imul(ur,kr)|0,$t=$t+Math.imul(ur,Ur)|0,xt=xt+Math.imul(Kt,Ir)|0,ht=ht+Math.imul(Kt,Hr)|0,ht=ht+Math.imul(ar,Ir)|0,$t=$t+Math.imul(ar,Hr)|0,xt=xt+Math.imul(Gt,Nr)|0,ht=ht+Math.imul(Gt,qr)|0,ht=ht+Math.imul(Zt,Nr)|0,$t=$t+Math.imul(Zt,qr)|0;var g0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(g0>>>26)|0,g0&=67108863,xt=Math.imul(nr,_r),ht=Math.imul(nr,Dr),ht=ht+Math.imul(fr,_r)|0,$t=Math.imul(fr,Dr),xt=xt+Math.imul(Qt,Tr)|0,ht=ht+Math.imul(Qt,Lr)|0,ht=ht+Math.imul(zt,Tr)|0,$t=$t+Math.imul(zt,Lr)|0,xt=xt+Math.imul($r,Rr)|0,ht=ht+Math.imul($r,Fr)|0,ht=ht+Math.imul(Mr,Rr)|0,$t=$t+Math.imul(Mr,Fr)|0,xt=xt+Math.imul(xr,Br)|0,ht=ht+Math.imul(xr,jr)|0,ht=ht+Math.imul(Sr,Br)|0,$t=$t+Math.imul(Sr,jr)|0,xt=xt+Math.imul(br,kr)|0,ht=ht+Math.imul(br,Ur)|0,ht=ht+Math.imul(dr,kr)|0,$t=$t+Math.imul(dr,Ur)|0,xt=xt+Math.imul(cr,Ir)|0,ht=ht+Math.imul(cr,Hr)|0,ht=ht+Math.imul(ur,Ir)|0,$t=$t+Math.imul(ur,Hr)|0,xt=xt+Math.imul(Kt,Nr)|0,ht=ht+Math.imul(Kt,qr)|0,ht=ht+Math.imul(ar,Nr)|0,$t=$t+Math.imul(ar,qr)|0;var y0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(y0>>>26)|0,y0&=67108863,xt=Math.imul(nr,Tr),ht=Math.imul(nr,Lr),ht=ht+Math.imul(fr,Tr)|0,$t=Math.imul(fr,Lr),xt=xt+Math.imul(Qt,Rr)|0,ht=ht+Math.imul(Qt,Fr)|0,ht=ht+Math.imul(zt,Rr)|0,$t=$t+Math.imul(zt,Fr)|0,xt=xt+Math.imul($r,Br)|0,ht=ht+Math.imul($r,jr)|0,ht=ht+Math.imul(Mr,Br)|0,$t=$t+Math.imul(Mr,jr)|0,xt=xt+Math.imul(xr,kr)|0,ht=ht+Math.imul(xr,Ur)|0,ht=ht+Math.imul(Sr,kr)|0,$t=$t+Math.imul(Sr,Ur)|0,xt=xt+Math.imul(br,Ir)|0,ht=ht+Math.imul(br,Hr)|0,ht=ht+Math.imul(dr,Ir)|0,$t=$t+Math.imul(dr,Hr)|0,xt=xt+Math.imul(cr,Nr)|0,ht=ht+Math.imul(cr,qr)|0,ht=ht+Math.imul(ur,Nr)|0,$t=$t+Math.imul(ur,qr)|0;var v0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(v0>>>26)|0,v0&=67108863,xt=Math.imul(nr,Rr),ht=Math.imul(nr,Fr),ht=ht+Math.imul(fr,Rr)|0,$t=Math.imul(fr,Fr),xt=xt+Math.imul(Qt,Br)|0,ht=ht+Math.imul(Qt,jr)|0,ht=ht+Math.imul(zt,Br)|0,$t=$t+Math.imul(zt,jr)|0,xt=xt+Math.imul($r,kr)|0,ht=ht+Math.imul($r,Ur)|0,ht=ht+Math.imul(Mr,kr)|0,$t=$t+Math.imul(Mr,Ur)|0,xt=xt+Math.imul(xr,Ir)|0,ht=ht+Math.imul(xr,Hr)|0,ht=ht+Math.imul(Sr,Ir)|0,$t=$t+Math.imul(Sr,Hr)|0,xt=xt+Math.imul(br,Nr)|0,ht=ht+Math.imul(br,qr)|0,ht=ht+Math.imul(dr,Nr)|0,$t=$t+Math.imul(dr,qr)|0;var w0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(w0>>>26)|0,w0&=67108863,xt=Math.imul(nr,Br),ht=Math.imul(nr,jr),ht=ht+Math.imul(fr,Br)|0,$t=Math.imul(fr,jr),xt=xt+Math.imul(Qt,kr)|0,ht=ht+Math.imul(Qt,Ur)|0,ht=ht+Math.imul(zt,kr)|0,$t=$t+Math.imul(zt,Ur)|0,xt=xt+Math.imul($r,Ir)|0,ht=ht+Math.imul($r,Hr)|0,ht=ht+Math.imul(Mr,Ir)|0,$t=$t+Math.imul(Mr,Hr)|0,xt=xt+Math.imul(xr,Nr)|0,ht=ht+Math.imul(xr,qr)|0,ht=ht+Math.imul(Sr,Nr)|0,$t=$t+Math.imul(Sr,qr)|0;var x0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(x0>>>26)|0,x0&=67108863,xt=Math.imul(nr,kr),ht=Math.imul(nr,Ur),ht=ht+Math.imul(fr,kr)|0,$t=Math.imul(fr,Ur),xt=xt+Math.imul(Qt,Ir)|0,ht=ht+Math.imul(Qt,Hr)|0,ht=ht+Math.imul(zt,Ir)|0,$t=$t+Math.imul(zt,Hr)|0,xt=xt+Math.imul($r,Nr)|0,ht=ht+Math.imul($r,qr)|0,ht=ht+Math.imul(Mr,Nr)|0,$t=$t+Math.imul(Mr,qr)|0;var E0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(E0>>>26)|0,E0&=67108863,xt=Math.imul(nr,Ir),ht=Math.imul(nr,Hr),ht=ht+Math.imul(fr,Ir)|0,$t=Math.imul(fr,Hr),xt=xt+Math.imul(Qt,Nr)|0,ht=ht+Math.imul(Qt,qr)|0,ht=ht+Math.imul(zt,Nr)|0,$t=$t+Math.imul(zt,qr)|0;var $0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+($0>>>26)|0,$0&=67108863,xt=Math.imul(nr,Nr),ht=Math.imul(nr,qr),ht=ht+Math.imul(fr,Nr)|0,$t=Math.imul(fr,qr);var M0=(Pt+xt|0)+((ht&8191)<<13)|0;return Pt=($t+(ht>>>13)|0)+(M0>>>26)|0,M0&=67108863,At[0]=e0,At[1]=t0,At[2]=f0,At[3]=c0,At[4]=l0,At[5]=u0,At[6]=d0,At[7]=h0,At[8]=p0,At[9]=b0,At[10]=m0,At[11]=g0,At[12]=y0,At[13]=v0,At[14]=w0,At[15]=x0,At[16]=E0,At[17]=$0,At[18]=M0,Pt!==0&&(At[19]=Pt,yt.length++),yt};Math.imul||(It=kt);function Lt(Ct,dt,mt){mt.negative=dt.negative^Ct.negative,mt.length=Ct.length+dt.length;for(var yt=0,vt=0,Et=0;Et>>26)|0,vt+=At>>>26,At&=67108863}mt.words[Et]=Pt,yt=At,At=vt}return yt!==0?mt.words[Et]=yt:mt.length--,mt.strip()}function Ot(Ct,dt,mt){var yt=new Nt;return yt.mulp(Ct,dt,mt)}tt.prototype.mulTo=function(dt,mt){var yt,vt=this.length+dt.length;return this.length===10&&dt.length===10?yt=It(this,dt,mt):vt<63?yt=kt(this,dt,mt):vt<1024?yt=Lt(this,dt,mt):yt=Ot(this,dt,mt),yt};function Nt(Ct,dt){this.x=Ct,this.y=dt}Nt.prototype.makeRBT=function(dt){for(var mt=new Array(dt),yt=tt.prototype._countBits(dt)-1,vt=0;vt>=1;return vt},Nt.prototype.permute=function(dt,mt,yt,vt,Et,At){for(var Pt=0;Pt>>1)Et++;return 1<>>13,yt[2*At+1]=Et&8191,Et=Et>>>13;for(At=2*mt;At>=26,mt+=vt/67108864|0,mt+=Et>>>26,this.words[yt]=Et&67108863}return mt!==0&&(this.words[yt]=mt,this.length++),this},tt.prototype.muln=function(dt){return this.clone().imuln(dt)},tt.prototype.sqr=function(){return this.mul(this)},tt.prototype.isqr=function(){return this.imul(this.clone())},tt.prototype.pow=function(dt){var mt=Rt(dt);if(mt.length===0)return new tt(1);for(var yt=this,vt=0;vt=0);var mt=dt%26,yt=(dt-mt)/26,vt=67108863>>>26-mt<<26-mt,Et;if(mt!==0){var At=0;for(Et=0;Et>>26-mt}At&&(this.words[Et]=At,this.length++)}if(yt!==0){for(Et=this.length-1;Et>=0;Et--)this.words[Et+yt]=this.words[Et];for(Et=0;Et=0);var vt;mt?vt=(mt-mt%26)/26:vt=0;var Et=dt%26,At=Math.min((dt-Et)/26,this.length),Pt=67108863^67108863>>>Et<At)for(this.length-=At,ht=0;ht=0&&($t!==0||ht>=vt);ht--){var Bt=this.words[ht]|0;this.words[ht]=$t<<26-Et|Bt>>>Et,$t=Bt&Pt}return xt&&$t!==0&&(xt.words[xt.length++]=$t),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},tt.prototype.ishrn=function(dt,mt,yt){return et(this.negative===0),this.iushrn(dt,mt,yt)},tt.prototype.shln=function(dt){return this.clone().ishln(dt)},tt.prototype.ushln=function(dt){return this.clone().iushln(dt)},tt.prototype.shrn=function(dt){return this.clone().ishrn(dt)},tt.prototype.ushrn=function(dt){return this.clone().iushrn(dt)},tt.prototype.testn=function(dt){et(typeof dt=="number"&&dt>=0);var mt=dt%26,yt=(dt-mt)/26,vt=1<=0);var mt=dt%26,yt=(dt-mt)/26;if(et(this.negative===0,"imaskn works only with positive numbers"),this.length<=yt)return this;if(mt!==0&&yt++,this.length=Math.min(yt,this.length),mt!==0){var vt=67108863^67108863>>>mt<=67108864;mt++)this.words[mt]-=67108864,mt===this.length-1?this.words[mt+1]=1:this.words[mt+1]++;return this.length=Math.max(this.length,mt+1),this},tt.prototype.isubn=function(dt){if(et(typeof dt=="number"),et(dt<67108864),dt<0)return this.iaddn(-dt);if(this.negative!==0)return this.negative=0,this.iaddn(dt),this.negative=1,this;if(this.words[0]-=dt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var mt=0;mt>26)-(xt/67108864|0),this.words[Et+yt]=At&67108863}for(;Et>26,this.words[Et+yt]=At&67108863;if(Pt===0)return this.strip();for(et(Pt===-1),Pt=0,Et=0;Et>26,this.words[Et]=At&67108863;return this.negative=1,this.strip()},tt.prototype._wordDiv=function(dt,mt){var yt=this.length-dt.length,vt=this.clone(),Et=dt,At=Et.words[Et.length-1]|0,Pt=this._countBits(At);yt=26-Pt,yt!==0&&(Et=Et.ushln(yt),vt.iushln(yt),At=Et.words[Et.length-1]|0);var xt=vt.length-Et.length,ht;if(mt!=="mod"){ht=new tt(null),ht.length=xt+1,ht.words=new Array(ht.length);for(var $t=0;$t=0;Dt--){var Ht=(vt.words[Et.length+Dt]|0)*67108864+(vt.words[Et.length+Dt-1]|0);for(Ht=Math.min(Ht/At|0,67108863),vt._ishlnsubmul(Et,Ht,Dt);vt.negative!==0;)Ht--,vt.negative=0,vt._ishlnsubmul(Et,1,Dt),vt.isZero()||(vt.negative^=1);ht&&(ht.words[Dt]=Ht)}return ht&&ht.strip(),vt.strip(),mt!=="div"&&yt!==0&&vt.iushrn(yt),{div:ht||null,mod:vt}},tt.prototype.divmod=function(dt,mt,yt){if(et(!dt.isZero()),this.isZero())return{div:new tt(0),mod:new tt(0)};var vt,Et,At;return this.negative!==0&&dt.negative===0?(At=this.neg().divmod(dt,mt),mt!=="mod"&&(vt=At.div.neg()),mt!=="div"&&(Et=At.mod.neg(),yt&&Et.negative!==0&&Et.iadd(dt)),{div:vt,mod:Et}):this.negative===0&&dt.negative!==0?(At=this.divmod(dt.neg(),mt),mt!=="mod"&&(vt=At.div.neg()),{div:vt,mod:At.mod}):this.negative&dt.negative?(At=this.neg().divmod(dt.neg(),mt),mt!=="div"&&(Et=At.mod.neg(),yt&&Et.negative!==0&&Et.isub(dt)),{div:At.div,mod:Et}):dt.length>this.length||this.cmp(dt)<0?{div:new tt(0),mod:this}:dt.length===1?mt==="div"?{div:this.divn(dt.words[0]),mod:null}:mt==="mod"?{div:null,mod:new tt(this.modn(dt.words[0]))}:{div:this.divn(dt.words[0]),mod:new tt(this.modn(dt.words[0]))}:this._wordDiv(dt,mt)},tt.prototype.div=function(dt){return this.divmod(dt,"div",!1).div},tt.prototype.mod=function(dt){return this.divmod(dt,"mod",!1).mod},tt.prototype.umod=function(dt){return this.divmod(dt,"mod",!0).mod},tt.prototype.divRound=function(dt){var mt=this.divmod(dt);if(mt.mod.isZero())return mt.div;var yt=mt.div.negative!==0?mt.mod.isub(dt):mt.mod,vt=dt.ushrn(1),Et=dt.andln(1),At=yt.cmp(vt);return At<0||Et===1&&At===0?mt.div:mt.div.negative!==0?mt.div.isubn(1):mt.div.iaddn(1)},tt.prototype.modn=function(dt){et(dt<=67108863);for(var mt=(1<<26)%dt,yt=0,vt=this.length-1;vt>=0;vt--)yt=(mt*yt+(this.words[vt]|0))%dt;return yt},tt.prototype.idivn=function(dt){et(dt<=67108863);for(var mt=0,yt=this.length-1;yt>=0;yt--){var vt=(this.words[yt]|0)+mt*67108864;this.words[yt]=vt/dt|0,mt=vt%dt}return this.strip()},tt.prototype.divn=function(dt){return this.clone().idivn(dt)},tt.prototype.egcd=function(dt){et(dt.negative===0),et(!dt.isZero());var mt=this,yt=dt.clone();mt.negative!==0?mt=mt.umod(dt):mt=mt.clone();for(var vt=new tt(1),Et=new tt(0),At=new tt(0),Pt=new tt(1),xt=0;mt.isEven()&&yt.isEven();)mt.iushrn(1),yt.iushrn(1),++xt;for(var ht=yt.clone(),$t=mt.clone();!mt.isZero();){for(var Bt=0,Dt=1;!(mt.words[0]&Dt)&&Bt<26;++Bt,Dt<<=1);if(Bt>0)for(mt.iushrn(Bt);Bt-- >0;)(vt.isOdd()||Et.isOdd())&&(vt.iadd(ht),Et.isub($t)),vt.iushrn(1),Et.iushrn(1);for(var Ht=0,tr=1;!(yt.words[0]&tr)&&Ht<26;++Ht,tr<<=1);if(Ht>0)for(yt.iushrn(Ht);Ht-- >0;)(At.isOdd()||Pt.isOdd())&&(At.iadd(ht),Pt.isub($t)),At.iushrn(1),Pt.iushrn(1);mt.cmp(yt)>=0?(mt.isub(yt),vt.isub(At),Et.isub(Pt)):(yt.isub(mt),At.isub(vt),Pt.isub(Et))}return{a:At,b:Pt,gcd:yt.iushln(xt)}},tt.prototype._invmp=function(dt){et(dt.negative===0),et(!dt.isZero());var mt=this,yt=dt.clone();mt.negative!==0?mt=mt.umod(dt):mt=mt.clone();for(var vt=new tt(1),Et=new tt(0),At=yt.clone();mt.cmpn(1)>0&&yt.cmpn(1)>0;){for(var Pt=0,xt=1;!(mt.words[0]&xt)&&Pt<26;++Pt,xt<<=1);if(Pt>0)for(mt.iushrn(Pt);Pt-- >0;)vt.isOdd()&&vt.iadd(At),vt.iushrn(1);for(var ht=0,$t=1;!(yt.words[0]&$t)&&ht<26;++ht,$t<<=1);if(ht>0)for(yt.iushrn(ht);ht-- >0;)Et.isOdd()&&Et.iadd(At),Et.iushrn(1);mt.cmp(yt)>=0?(mt.isub(yt),vt.isub(Et)):(yt.isub(mt),Et.isub(vt))}var Bt;return mt.cmpn(1)===0?Bt=vt:Bt=Et,Bt.cmpn(0)<0&&Bt.iadd(dt),Bt},tt.prototype.gcd=function(dt){if(this.isZero())return dt.abs();if(dt.isZero())return this.abs();var mt=this.clone(),yt=dt.clone();mt.negative=0,yt.negative=0;for(var vt=0;mt.isEven()&&yt.isEven();vt++)mt.iushrn(1),yt.iushrn(1);do{for(;mt.isEven();)mt.iushrn(1);for(;yt.isEven();)yt.iushrn(1);var Et=mt.cmp(yt);if(Et<0){var At=mt;mt=yt,yt=At}else if(Et===0||yt.cmpn(1)===0)break;mt.isub(yt)}while(!0);return yt.iushln(vt)},tt.prototype.invm=function(dt){return this.egcd(dt).a.umod(dt)},tt.prototype.isEven=function(){return(this.words[0]&1)===0},tt.prototype.isOdd=function(){return(this.words[0]&1)===1},tt.prototype.andln=function(dt){return this.words[0]&dt},tt.prototype.bincn=function(dt){et(typeof dt=="number");var mt=dt%26,yt=(dt-mt)/26,vt=1<>>26,Pt&=67108863,this.words[At]=Pt}return Et!==0&&(this.words[At]=Et,this.length++),this},tt.prototype.isZero=function(){return this.length===1&&this.words[0]===0},tt.prototype.cmpn=function(dt){var mt=dt<0;if(this.negative!==0&&!mt)return-1;if(this.negative===0&&mt)return 1;this.strip();var yt;if(this.length>1)yt=1;else{mt&&(dt=-dt),et(dt<=67108863,"Number is too big");var vt=this.words[0]|0;yt=vt===dt?0:vtdt.length)return 1;if(this.length=0;yt--){var vt=this.words[yt]|0,Et=dt.words[yt]|0;if(vt!==Et){vtEt&&(mt=1);break}}return mt},tt.prototype.gtn=function(dt){return this.cmpn(dt)===1},tt.prototype.gt=function(dt){return this.cmp(dt)===1},tt.prototype.gten=function(dt){return this.cmpn(dt)>=0},tt.prototype.gte=function(dt){return this.cmp(dt)>=0},tt.prototype.ltn=function(dt){return this.cmpn(dt)===-1},tt.prototype.lt=function(dt){return this.cmp(dt)===-1},tt.prototype.lten=function(dt){return this.cmpn(dt)<=0},tt.prototype.lte=function(dt){return this.cmp(dt)<=0},tt.prototype.eqn=function(dt){return this.cmpn(dt)===0},tt.prototype.eq=function(dt){return this.cmp(dt)===0},tt.red=function(dt){return new er(dt)},tt.prototype.toRed=function(dt){return et(!this.red,"Already a number in reduction context"),et(this.negative===0,"red works only with positives"),dt.convertTo(this)._forceRed(dt)},tt.prototype.fromRed=function(){return et(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},tt.prototype._forceRed=function(dt){return this.red=dt,this},tt.prototype.forceRed=function(dt){return et(!this.red,"Already a number in reduction context"),this._forceRed(dt)},tt.prototype.redAdd=function(dt){return et(this.red,"redAdd works only with red numbers"),this.red.add(this,dt)},tt.prototype.redIAdd=function(dt){return et(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,dt)},tt.prototype.redSub=function(dt){return et(this.red,"redSub works only with red numbers"),this.red.sub(this,dt)},tt.prototype.redISub=function(dt){return et(this.red,"redISub works only with red numbers"),this.red.isub(this,dt)},tt.prototype.redShl=function(dt){return et(this.red,"redShl works only with red numbers"),this.red.shl(this,dt)},tt.prototype.redMul=function(dt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,dt),this.red.mul(this,dt)},tt.prototype.redIMul=function(dt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,dt),this.red.imul(this,dt)},tt.prototype.redSqr=function(){return et(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},tt.prototype.redISqr=function(){return et(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},tt.prototype.redSqrt=function(){return et(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},tt.prototype.redInvm=function(){return et(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},tt.prototype.redNeg=function(){return et(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},tt.prototype.redPow=function(dt){return et(this.red&&!dt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,dt)};var Ft={k256:null,p224:null,p192:null,p25519:null};function jt(Ct,dt){this.name=Ct,this.p=new tt(dt,16),this.n=this.p.bitLength(),this.k=new tt(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}jt.prototype._tmp=function(){var dt=new tt(null);return dt.words=new Array(Math.ceil(this.n/13)),dt},jt.prototype.ireduce=function(dt){var mt=dt,yt;do this.split(mt,this.tmp),mt=this.imulK(mt),mt=mt.iadd(this.tmp),yt=mt.bitLength();while(yt>this.n);var vt=yt0?mt.isub(this.p):mt.strip!==void 0?mt.strip():mt._strip(),mt},jt.prototype.split=function(dt,mt){dt.iushrn(this.n,0,mt)},jt.prototype.imulK=function(dt){return dt.imul(this.k)};function Vt(){jt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}nt(Vt,jt),Vt.prototype.split=function(dt,mt){for(var yt=4194303,vt=Math.min(dt.length,9),Et=0;Et>>22,At=Pt}At>>>=22,dt.words[Et-10]=At,At===0&&dt.length>10?dt.length-=10:dt.length-=9},Vt.prototype.imulK=function(dt){dt.words[dt.length]=0,dt.words[dt.length+1]=0,dt.length+=2;for(var mt=0,yt=0;yt>>=26,dt.words[yt]=Et,mt=vt}return mt!==0&&(dt.words[dt.length++]=mt),dt},tt._prime=function(dt){if(Ft[dt])return Ft[dt];var mt;if(dt==="k256")mt=new Vt;else if(dt==="p224")mt=new Jt;else if(dt==="p192")mt=new ir;else if(dt==="p25519")mt=new rr;else throw new Error("Unknown prime "+dt);return Ft[dt]=mt,mt};function er(Ct){if(typeof Ct=="string"){var dt=tt._prime(Ct);this.m=dt.p,this.prime=dt}else et(Ct.gtn(1),"modulus must be greater than 1"),this.m=Ct,this.prime=null}er.prototype._verify1=function(dt){et(dt.negative===0,"red works only with positives"),et(dt.red,"red works only with red numbers")},er.prototype._verify2=function(dt,mt){et((dt.negative|mt.negative)===0,"red works only with positives"),et(dt.red&&dt.red===mt.red,"red works only with red numbers")},er.prototype.imod=function(dt){return this.prime?this.prime.ireduce(dt)._forceRed(this):dt.umod(this.m)._forceRed(this)},er.prototype.neg=function(dt){return dt.isZero()?dt.clone():this.m.sub(dt)._forceRed(this)},er.prototype.add=function(dt,mt){this._verify2(dt,mt);var yt=dt.add(mt);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt._forceRed(this)},er.prototype.iadd=function(dt,mt){this._verify2(dt,mt);var yt=dt.iadd(mt);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt},er.prototype.sub=function(dt,mt){this._verify2(dt,mt);var yt=dt.sub(mt);return yt.cmpn(0)<0&&yt.iadd(this.m),yt._forceRed(this)},er.prototype.isub=function(dt,mt){this._verify2(dt,mt);var yt=dt.isub(mt);return yt.cmpn(0)<0&&yt.iadd(this.m),yt},er.prototype.shl=function(dt,mt){return this._verify1(dt),this.imod(dt.ushln(mt))},er.prototype.imul=function(dt,mt){return this._verify2(dt,mt),this.imod(dt.imul(mt))},er.prototype.mul=function(dt,mt){return this._verify2(dt,mt),this.imod(dt.mul(mt))},er.prototype.isqr=function(dt){return this.imul(dt,dt.clone())},er.prototype.sqr=function(dt){return this.mul(dt,dt)},er.prototype.sqrt=function(dt){if(dt.isZero())return dt.clone();var mt=this.m.andln(3);if(et(mt%2===1),mt===3){var yt=this.m.add(new tt(1)).iushrn(2);return this.pow(dt,yt)}for(var vt=this.m.subn(1),Et=0;!vt.isZero()&&vt.andln(1)===0;)Et++,vt.iushrn(1);et(!vt.isZero());var At=new tt(1).toRed(this),Pt=At.redNeg(),xt=this.m.subn(1).iushrn(1),ht=this.m.bitLength();for(ht=new tt(2*ht*ht).toRed(this);this.pow(ht,xt).cmp(Pt)!==0;)ht.redIAdd(Pt);for(var $t=this.pow(ht,vt),Bt=this.pow(dt,vt.addn(1).iushrn(1)),Dt=this.pow(dt,vt),Ht=Et;Dt.cmp(At)!==0;){for(var tr=Dt,Xt=0;tr.cmp(At)!==0;Xt++)tr=tr.redSqr();et(Xt=0;Et--){for(var $t=mt.words[Et],Bt=ht-1;Bt>=0;Bt--){var Dt=$t>>Bt&1;if(At!==vt[0]&&(At=this.sqr(At)),Dt===0&&Pt===0){xt=0;continue}Pt<<=1,Pt|=Dt,xt++,!(xt!==yt&&(Et!==0||Bt!==0))&&(At=this.mul(At,vt[Pt]),xt=0,Pt=0)}ht=26}return At},er.prototype.convertTo=function(dt){var mt=dt.umod(this.m);return mt===dt?mt.clone():mt},er.prototype.convertFrom=function(dt){var mt=dt.clone();return mt.red=null,mt},tt.mont=function(dt){return new lr(dt)};function lr(Ct){er.call(this,Ct),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new tt(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)}nt(lr,er),lr.prototype.convertTo=function(dt){return this.imod(dt.ushln(this.shift))},lr.prototype.convertFrom=function(dt){var mt=this.imod(dt.mul(this.rinv));return mt.red=null,mt},lr.prototype.imul=function(dt,mt){if(dt.isZero()||mt.isZero())return dt.words[0]=0,dt.length=1,dt;var yt=dt.imul(mt),vt=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Et=yt.isub(vt).iushrn(this.shift),At=Et;return Et.cmp(this.m)>=0?At=Et.isub(this.m):Et.cmpn(0)<0&&(At=Et.iadd(this.m)),At._forceRed(this)},lr.prototype.mul=function(dt,mt){if(dt.isZero()||mt.isZero())return new tt(0)._forceRed(this);var yt=dt.mul(mt),vt=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Et=yt.isub(vt).iushrn(this.shift),At=Et;return Et.cmp(this.m)>=0?At=Et.isub(this.m):Et.cmpn(0)<0&&(At=Et.iadd(this.m)),At._forceRed(this)},lr.prototype.invm=function(dt){var mt=this.imod(dt._invmp(this.m).mul(this.r2));return mt._forceRed(this)}})(c,commonjsGlobal)})(bn$7);var bnExports$7=bn$7.exports,bn$6={exports:{}};bn$6.exports;(function(c){(function(a,d){function et(Ct,dt){if(!Ct)throw new Error(dt||"Assertion failed")}function nt(Ct,dt){Ct.super_=dt;var mt=function(){};mt.prototype=dt.prototype,Ct.prototype=new mt,Ct.prototype.constructor=Ct}function tt(Ct,dt,mt){if(tt.isBN(Ct))return Ct;this.negative=0,this.words=null,this.length=0,this.red=null,Ct!==null&&((dt==="le"||dt==="be")&&(mt=dt,dt=10),this._init(Ct||0,dt||10,mt||"be"))}typeof a=="object"?a.exports=tt:d.BN=tt,tt.BN=tt,tt.wordSize=26;var bt;try{typeof window<"u"&&typeof window.Buffer<"u"?bt=window.Buffer:bt=bufferPolyfill.Buffer}catch{}tt.isBN=function(dt){return dt instanceof tt?!0:dt!==null&&typeof dt=="object"&&dt.constructor.wordSize===tt.wordSize&&Array.isArray(dt.words)},tt.max=function(dt,mt){return dt.cmp(mt)>0?dt:mt},tt.min=function(dt,mt){return dt.cmp(mt)<0?dt:mt},tt.prototype._init=function(dt,mt,yt){if(typeof dt=="number")return this._initNumber(dt,mt,yt);if(typeof dt=="object")return this._initArray(dt,mt,yt);mt==="hex"&&(mt=16),et(mt===(mt|0)&&mt>=2&&mt<=36),dt=dt.toString().replace(/\s+/g,"");var vt=0;dt[0]==="-"&&(vt++,this.negative=1),vt=0;vt-=3)At=dt[vt]|dt[vt-1]<<8|dt[vt-2]<<16,this.words[Et]|=At<>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,Et++);else if(yt==="le")for(vt=0,Et=0;vt>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,Et++);return this.strip()};function gt(Ct,dt){var mt=Ct.charCodeAt(dt);return mt>=65&&mt<=70?mt-55:mt>=97&&mt<=102?mt-87:mt-48&15}function wt(Ct,dt,mt){var yt=gt(Ct,mt);return mt-1>=dt&&(yt|=gt(Ct,mt-1)<<4),yt}tt.prototype._parseHex=function(dt,mt,yt){this.length=Math.ceil((dt.length-mt)/6),this.words=new Array(this.length);for(var vt=0;vt=mt;vt-=2)Pt=wt(dt,mt,vt)<=18?(Et-=18,At+=1,this.words[At]|=Pt>>>26):Et+=8;else{var xt=dt.length-mt;for(vt=xt%2===0?mt+1:mt;vt=18?(Et-=18,At+=1,this.words[At]|=Pt>>>26):Et+=8}this.strip()};function St(Ct,dt,mt,yt){for(var vt=0,Et=Math.min(Ct.length,mt),At=dt;At=49?vt+=Pt-49+10:Pt>=17?vt+=Pt-17+10:vt+=Pt}return vt}tt.prototype._parseBase=function(dt,mt,yt){this.words=[0],this.length=1;for(var vt=0,Et=1;Et<=67108863;Et*=mt)vt++;vt--,Et=Et/mt|0;for(var At=dt.length-yt,Pt=At%vt,xt=Math.min(At,At-Pt)+yt,ht=0,$t=yt;$t1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},tt.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},tt.prototype.inspect=function(){return(this.red?""};var Mt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],_t=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Tt=[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];tt.prototype.toString=function(dt,mt){dt=dt||10,mt=mt|0||1;var yt;if(dt===16||dt==="hex"){yt="";for(var vt=0,Et=0,At=0;At>>24-vt&16777215,Et!==0||At!==this.length-1?yt=Mt[6-xt.length]+xt+yt:yt=xt+yt,vt+=2,vt>=26&&(vt-=26,At--)}for(Et!==0&&(yt=Et.toString(16)+yt);yt.length%mt!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}if(dt===(dt|0)&&dt>=2&&dt<=36){var ht=_t[dt],$t=Tt[dt];yt="";var Bt=this.clone();for(Bt.negative=0;!Bt.isZero();){var Dt=Bt.modn($t).toString(dt);Bt=Bt.idivn($t),Bt.isZero()?yt=Dt+yt:yt=Mt[ht-Dt.length]+Dt+yt}for(this.isZero()&&(yt="0"+yt);yt.length%mt!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}et(!1,"Base should be between 2 and 36")},tt.prototype.toNumber=function(){var dt=this.words[0];return this.length===2?dt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?dt+=4503599627370496+this.words[1]*67108864:this.length>2&&et(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-dt:dt},tt.prototype.toJSON=function(){return this.toString(16)},tt.prototype.toBuffer=function(dt,mt){return et(typeof bt<"u"),this.toArrayLike(bt,dt,mt)},tt.prototype.toArray=function(dt,mt){return this.toArrayLike(Array,dt,mt)},tt.prototype.toArrayLike=function(dt,mt,yt){var vt=this.byteLength(),Et=yt||Math.max(1,vt);et(vt<=Et,"byte array longer than desired length"),et(Et>0,"Requested array length <= 0"),this.strip();var At=mt==="le",Pt=new dt(Et),xt,ht,$t=this.clone();if(At){for(ht=0;!$t.isZero();ht++)xt=$t.andln(255),$t.iushrn(8),Pt[ht]=xt;for(;ht=4096&&(yt+=13,mt>>>=13),mt>=64&&(yt+=7,mt>>>=7),mt>=8&&(yt+=4,mt>>>=4),mt>=2&&(yt+=2,mt>>>=2),yt+mt},tt.prototype._zeroBits=function(dt){if(dt===0)return 26;var mt=dt,yt=0;return mt&8191||(yt+=13,mt>>>=13),mt&127||(yt+=7,mt>>>=7),mt&15||(yt+=4,mt>>>=4),mt&3||(yt+=2,mt>>>=2),mt&1||yt++,yt},tt.prototype.bitLength=function(){var dt=this.words[this.length-1],mt=this._countBits(dt);return(this.length-1)*26+mt};function Rt(Ct){for(var dt=new Array(Ct.bitLength()),mt=0;mt>>vt}return dt}tt.prototype.zeroBits=function(){if(this.isZero())return 0;for(var dt=0,mt=0;mtdt.length?this.clone().ior(dt):dt.clone().ior(this)},tt.prototype.uor=function(dt){return this.length>dt.length?this.clone().iuor(dt):dt.clone().iuor(this)},tt.prototype.iuand=function(dt){var mt;this.length>dt.length?mt=dt:mt=this;for(var yt=0;ytdt.length?this.clone().iand(dt):dt.clone().iand(this)},tt.prototype.uand=function(dt){return this.length>dt.length?this.clone().iuand(dt):dt.clone().iuand(this)},tt.prototype.iuxor=function(dt){var mt,yt;this.length>dt.length?(mt=this,yt=dt):(mt=dt,yt=this);for(var vt=0;vtdt.length?this.clone().ixor(dt):dt.clone().ixor(this)},tt.prototype.uxor=function(dt){return this.length>dt.length?this.clone().iuxor(dt):dt.clone().iuxor(this)},tt.prototype.inotn=function(dt){et(typeof dt=="number"&&dt>=0);var mt=Math.ceil(dt/26)|0,yt=dt%26;this._expand(mt),yt>0&&mt--;for(var vt=0;vt0&&(this.words[vt]=~this.words[vt]&67108863>>26-yt),this.strip()},tt.prototype.notn=function(dt){return this.clone().inotn(dt)},tt.prototype.setn=function(dt,mt){et(typeof dt=="number"&&dt>=0);var yt=dt/26|0,vt=dt%26;return this._expand(yt+1),mt?this.words[yt]=this.words[yt]|1<dt.length?(yt=this,vt=dt):(yt=dt,vt=this);for(var Et=0,At=0;At>>26;for(;Et!==0&&At>>26;if(this.length=yt.length,Et!==0)this.words[this.length]=Et,this.length++;else if(yt!==this)for(;Atdt.length?this.clone().iadd(dt):dt.clone().iadd(this)},tt.prototype.isub=function(dt){if(dt.negative!==0){dt.negative=0;var mt=this.iadd(dt);return dt.negative=1,mt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(dt),this.negative=1,this._normSign();var yt=this.cmp(dt);if(yt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var vt,Et;yt>0?(vt=this,Et=dt):(vt=dt,Et=this);for(var At=0,Pt=0;Pt>26,this.words[Pt]=mt&67108863;for(;At!==0&&Pt>26,this.words[Pt]=mt&67108863;if(At===0&&Pt>>26,Bt=xt&67108863,Dt=Math.min(ht,dt.length-1),Ht=Math.max(0,ht-Ct.length+1);Ht<=Dt;Ht++){var tr=ht-Ht|0;vt=Ct.words[tr]|0,Et=dt.words[Ht]|0,At=vt*Et+Bt,$t+=At/67108864|0,Bt=At&67108863}mt.words[ht]=Bt|0,xt=$t|0}return xt!==0?mt.words[ht]=xt|0:mt.length--,mt.strip()}var It=function(dt,mt,yt){var vt=dt.words,Et=mt.words,At=yt.words,Pt=0,xt,ht,$t,Bt=vt[0]|0,Dt=Bt&8191,Ht=Bt>>>13,tr=vt[1]|0,Xt=tr&8191,Ut=tr>>>13,qt=vt[2]|0,Gt=qt&8191,Zt=qt>>>13,Yt=vt[3]|0,Kt=Yt&8191,ar=Yt>>>13,gr=vt[4]|0,cr=gr&8191,ur=gr>>>13,Pr=vt[5]|0,br=Pr&8191,dr=Pr>>>13,Kr=vt[6]|0,xr=Kr&8191,Sr=Kr>>>13,Zr=vt[7]|0,$r=Zr&8191,Mr=Zr>>>13,Xr=vt[8]|0,Qt=Xr&8191,zt=Xr>>>13,Wt=vt[9]|0,nr=Wt&8191,fr=Wt>>>13,Er=Et[0]|0,pr=Er&8191,vr=Er>>>13,Jr=Et[1]|0,wr=Jr&8191,Ar=Jr>>>13,Yr=Et[2]|0,Cr=Yr&8191,Or=Yr>>>13,Qr=Et[3]|0,_r=Qr&8191,Dr=Qr>>>13,r0=Et[4]|0,Tr=r0&8191,Lr=r0>>>13,n0=Et[5]|0,Rr=n0&8191,Fr=n0>>>13,i0=Et[6]|0,Br=i0&8191,jr=i0>>>13,a0=Et[7]|0,kr=a0&8191,Ur=a0>>>13,s0=Et[8]|0,Ir=s0&8191,Hr=s0>>>13,o0=Et[9]|0,Nr=o0&8191,qr=o0>>>13;yt.negative=dt.negative^mt.negative,yt.length=19,xt=Math.imul(Dt,pr),ht=Math.imul(Dt,vr),ht=ht+Math.imul(Ht,pr)|0,$t=Math.imul(Ht,vr);var e0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(e0>>>26)|0,e0&=67108863,xt=Math.imul(Xt,pr),ht=Math.imul(Xt,vr),ht=ht+Math.imul(Ut,pr)|0,$t=Math.imul(Ut,vr),xt=xt+Math.imul(Dt,wr)|0,ht=ht+Math.imul(Dt,Ar)|0,ht=ht+Math.imul(Ht,wr)|0,$t=$t+Math.imul(Ht,Ar)|0;var t0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(t0>>>26)|0,t0&=67108863,xt=Math.imul(Gt,pr),ht=Math.imul(Gt,vr),ht=ht+Math.imul(Zt,pr)|0,$t=Math.imul(Zt,vr),xt=xt+Math.imul(Xt,wr)|0,ht=ht+Math.imul(Xt,Ar)|0,ht=ht+Math.imul(Ut,wr)|0,$t=$t+Math.imul(Ut,Ar)|0,xt=xt+Math.imul(Dt,Cr)|0,ht=ht+Math.imul(Dt,Or)|0,ht=ht+Math.imul(Ht,Cr)|0,$t=$t+Math.imul(Ht,Or)|0;var f0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(f0>>>26)|0,f0&=67108863,xt=Math.imul(Kt,pr),ht=Math.imul(Kt,vr),ht=ht+Math.imul(ar,pr)|0,$t=Math.imul(ar,vr),xt=xt+Math.imul(Gt,wr)|0,ht=ht+Math.imul(Gt,Ar)|0,ht=ht+Math.imul(Zt,wr)|0,$t=$t+Math.imul(Zt,Ar)|0,xt=xt+Math.imul(Xt,Cr)|0,ht=ht+Math.imul(Xt,Or)|0,ht=ht+Math.imul(Ut,Cr)|0,$t=$t+Math.imul(Ut,Or)|0,xt=xt+Math.imul(Dt,_r)|0,ht=ht+Math.imul(Dt,Dr)|0,ht=ht+Math.imul(Ht,_r)|0,$t=$t+Math.imul(Ht,Dr)|0;var c0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(c0>>>26)|0,c0&=67108863,xt=Math.imul(cr,pr),ht=Math.imul(cr,vr),ht=ht+Math.imul(ur,pr)|0,$t=Math.imul(ur,vr),xt=xt+Math.imul(Kt,wr)|0,ht=ht+Math.imul(Kt,Ar)|0,ht=ht+Math.imul(ar,wr)|0,$t=$t+Math.imul(ar,Ar)|0,xt=xt+Math.imul(Gt,Cr)|0,ht=ht+Math.imul(Gt,Or)|0,ht=ht+Math.imul(Zt,Cr)|0,$t=$t+Math.imul(Zt,Or)|0,xt=xt+Math.imul(Xt,_r)|0,ht=ht+Math.imul(Xt,Dr)|0,ht=ht+Math.imul(Ut,_r)|0,$t=$t+Math.imul(Ut,Dr)|0,xt=xt+Math.imul(Dt,Tr)|0,ht=ht+Math.imul(Dt,Lr)|0,ht=ht+Math.imul(Ht,Tr)|0,$t=$t+Math.imul(Ht,Lr)|0;var l0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(l0>>>26)|0,l0&=67108863,xt=Math.imul(br,pr),ht=Math.imul(br,vr),ht=ht+Math.imul(dr,pr)|0,$t=Math.imul(dr,vr),xt=xt+Math.imul(cr,wr)|0,ht=ht+Math.imul(cr,Ar)|0,ht=ht+Math.imul(ur,wr)|0,$t=$t+Math.imul(ur,Ar)|0,xt=xt+Math.imul(Kt,Cr)|0,ht=ht+Math.imul(Kt,Or)|0,ht=ht+Math.imul(ar,Cr)|0,$t=$t+Math.imul(ar,Or)|0,xt=xt+Math.imul(Gt,_r)|0,ht=ht+Math.imul(Gt,Dr)|0,ht=ht+Math.imul(Zt,_r)|0,$t=$t+Math.imul(Zt,Dr)|0,xt=xt+Math.imul(Xt,Tr)|0,ht=ht+Math.imul(Xt,Lr)|0,ht=ht+Math.imul(Ut,Tr)|0,$t=$t+Math.imul(Ut,Lr)|0,xt=xt+Math.imul(Dt,Rr)|0,ht=ht+Math.imul(Dt,Fr)|0,ht=ht+Math.imul(Ht,Rr)|0,$t=$t+Math.imul(Ht,Fr)|0;var u0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(u0>>>26)|0,u0&=67108863,xt=Math.imul(xr,pr),ht=Math.imul(xr,vr),ht=ht+Math.imul(Sr,pr)|0,$t=Math.imul(Sr,vr),xt=xt+Math.imul(br,wr)|0,ht=ht+Math.imul(br,Ar)|0,ht=ht+Math.imul(dr,wr)|0,$t=$t+Math.imul(dr,Ar)|0,xt=xt+Math.imul(cr,Cr)|0,ht=ht+Math.imul(cr,Or)|0,ht=ht+Math.imul(ur,Cr)|0,$t=$t+Math.imul(ur,Or)|0,xt=xt+Math.imul(Kt,_r)|0,ht=ht+Math.imul(Kt,Dr)|0,ht=ht+Math.imul(ar,_r)|0,$t=$t+Math.imul(ar,Dr)|0,xt=xt+Math.imul(Gt,Tr)|0,ht=ht+Math.imul(Gt,Lr)|0,ht=ht+Math.imul(Zt,Tr)|0,$t=$t+Math.imul(Zt,Lr)|0,xt=xt+Math.imul(Xt,Rr)|0,ht=ht+Math.imul(Xt,Fr)|0,ht=ht+Math.imul(Ut,Rr)|0,$t=$t+Math.imul(Ut,Fr)|0,xt=xt+Math.imul(Dt,Br)|0,ht=ht+Math.imul(Dt,jr)|0,ht=ht+Math.imul(Ht,Br)|0,$t=$t+Math.imul(Ht,jr)|0;var d0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(d0>>>26)|0,d0&=67108863,xt=Math.imul($r,pr),ht=Math.imul($r,vr),ht=ht+Math.imul(Mr,pr)|0,$t=Math.imul(Mr,vr),xt=xt+Math.imul(xr,wr)|0,ht=ht+Math.imul(xr,Ar)|0,ht=ht+Math.imul(Sr,wr)|0,$t=$t+Math.imul(Sr,Ar)|0,xt=xt+Math.imul(br,Cr)|0,ht=ht+Math.imul(br,Or)|0,ht=ht+Math.imul(dr,Cr)|0,$t=$t+Math.imul(dr,Or)|0,xt=xt+Math.imul(cr,_r)|0,ht=ht+Math.imul(cr,Dr)|0,ht=ht+Math.imul(ur,_r)|0,$t=$t+Math.imul(ur,Dr)|0,xt=xt+Math.imul(Kt,Tr)|0,ht=ht+Math.imul(Kt,Lr)|0,ht=ht+Math.imul(ar,Tr)|0,$t=$t+Math.imul(ar,Lr)|0,xt=xt+Math.imul(Gt,Rr)|0,ht=ht+Math.imul(Gt,Fr)|0,ht=ht+Math.imul(Zt,Rr)|0,$t=$t+Math.imul(Zt,Fr)|0,xt=xt+Math.imul(Xt,Br)|0,ht=ht+Math.imul(Xt,jr)|0,ht=ht+Math.imul(Ut,Br)|0,$t=$t+Math.imul(Ut,jr)|0,xt=xt+Math.imul(Dt,kr)|0,ht=ht+Math.imul(Dt,Ur)|0,ht=ht+Math.imul(Ht,kr)|0,$t=$t+Math.imul(Ht,Ur)|0;var h0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(h0>>>26)|0,h0&=67108863,xt=Math.imul(Qt,pr),ht=Math.imul(Qt,vr),ht=ht+Math.imul(zt,pr)|0,$t=Math.imul(zt,vr),xt=xt+Math.imul($r,wr)|0,ht=ht+Math.imul($r,Ar)|0,ht=ht+Math.imul(Mr,wr)|0,$t=$t+Math.imul(Mr,Ar)|0,xt=xt+Math.imul(xr,Cr)|0,ht=ht+Math.imul(xr,Or)|0,ht=ht+Math.imul(Sr,Cr)|0,$t=$t+Math.imul(Sr,Or)|0,xt=xt+Math.imul(br,_r)|0,ht=ht+Math.imul(br,Dr)|0,ht=ht+Math.imul(dr,_r)|0,$t=$t+Math.imul(dr,Dr)|0,xt=xt+Math.imul(cr,Tr)|0,ht=ht+Math.imul(cr,Lr)|0,ht=ht+Math.imul(ur,Tr)|0,$t=$t+Math.imul(ur,Lr)|0,xt=xt+Math.imul(Kt,Rr)|0,ht=ht+Math.imul(Kt,Fr)|0,ht=ht+Math.imul(ar,Rr)|0,$t=$t+Math.imul(ar,Fr)|0,xt=xt+Math.imul(Gt,Br)|0,ht=ht+Math.imul(Gt,jr)|0,ht=ht+Math.imul(Zt,Br)|0,$t=$t+Math.imul(Zt,jr)|0,xt=xt+Math.imul(Xt,kr)|0,ht=ht+Math.imul(Xt,Ur)|0,ht=ht+Math.imul(Ut,kr)|0,$t=$t+Math.imul(Ut,Ur)|0,xt=xt+Math.imul(Dt,Ir)|0,ht=ht+Math.imul(Dt,Hr)|0,ht=ht+Math.imul(Ht,Ir)|0,$t=$t+Math.imul(Ht,Hr)|0;var p0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(p0>>>26)|0,p0&=67108863,xt=Math.imul(nr,pr),ht=Math.imul(nr,vr),ht=ht+Math.imul(fr,pr)|0,$t=Math.imul(fr,vr),xt=xt+Math.imul(Qt,wr)|0,ht=ht+Math.imul(Qt,Ar)|0,ht=ht+Math.imul(zt,wr)|0,$t=$t+Math.imul(zt,Ar)|0,xt=xt+Math.imul($r,Cr)|0,ht=ht+Math.imul($r,Or)|0,ht=ht+Math.imul(Mr,Cr)|0,$t=$t+Math.imul(Mr,Or)|0,xt=xt+Math.imul(xr,_r)|0,ht=ht+Math.imul(xr,Dr)|0,ht=ht+Math.imul(Sr,_r)|0,$t=$t+Math.imul(Sr,Dr)|0,xt=xt+Math.imul(br,Tr)|0,ht=ht+Math.imul(br,Lr)|0,ht=ht+Math.imul(dr,Tr)|0,$t=$t+Math.imul(dr,Lr)|0,xt=xt+Math.imul(cr,Rr)|0,ht=ht+Math.imul(cr,Fr)|0,ht=ht+Math.imul(ur,Rr)|0,$t=$t+Math.imul(ur,Fr)|0,xt=xt+Math.imul(Kt,Br)|0,ht=ht+Math.imul(Kt,jr)|0,ht=ht+Math.imul(ar,Br)|0,$t=$t+Math.imul(ar,jr)|0,xt=xt+Math.imul(Gt,kr)|0,ht=ht+Math.imul(Gt,Ur)|0,ht=ht+Math.imul(Zt,kr)|0,$t=$t+Math.imul(Zt,Ur)|0,xt=xt+Math.imul(Xt,Ir)|0,ht=ht+Math.imul(Xt,Hr)|0,ht=ht+Math.imul(Ut,Ir)|0,$t=$t+Math.imul(Ut,Hr)|0,xt=xt+Math.imul(Dt,Nr)|0,ht=ht+Math.imul(Dt,qr)|0,ht=ht+Math.imul(Ht,Nr)|0,$t=$t+Math.imul(Ht,qr)|0;var b0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(b0>>>26)|0,b0&=67108863,xt=Math.imul(nr,wr),ht=Math.imul(nr,Ar),ht=ht+Math.imul(fr,wr)|0,$t=Math.imul(fr,Ar),xt=xt+Math.imul(Qt,Cr)|0,ht=ht+Math.imul(Qt,Or)|0,ht=ht+Math.imul(zt,Cr)|0,$t=$t+Math.imul(zt,Or)|0,xt=xt+Math.imul($r,_r)|0,ht=ht+Math.imul($r,Dr)|0,ht=ht+Math.imul(Mr,_r)|0,$t=$t+Math.imul(Mr,Dr)|0,xt=xt+Math.imul(xr,Tr)|0,ht=ht+Math.imul(xr,Lr)|0,ht=ht+Math.imul(Sr,Tr)|0,$t=$t+Math.imul(Sr,Lr)|0,xt=xt+Math.imul(br,Rr)|0,ht=ht+Math.imul(br,Fr)|0,ht=ht+Math.imul(dr,Rr)|0,$t=$t+Math.imul(dr,Fr)|0,xt=xt+Math.imul(cr,Br)|0,ht=ht+Math.imul(cr,jr)|0,ht=ht+Math.imul(ur,Br)|0,$t=$t+Math.imul(ur,jr)|0,xt=xt+Math.imul(Kt,kr)|0,ht=ht+Math.imul(Kt,Ur)|0,ht=ht+Math.imul(ar,kr)|0,$t=$t+Math.imul(ar,Ur)|0,xt=xt+Math.imul(Gt,Ir)|0,ht=ht+Math.imul(Gt,Hr)|0,ht=ht+Math.imul(Zt,Ir)|0,$t=$t+Math.imul(Zt,Hr)|0,xt=xt+Math.imul(Xt,Nr)|0,ht=ht+Math.imul(Xt,qr)|0,ht=ht+Math.imul(Ut,Nr)|0,$t=$t+Math.imul(Ut,qr)|0;var m0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(m0>>>26)|0,m0&=67108863,xt=Math.imul(nr,Cr),ht=Math.imul(nr,Or),ht=ht+Math.imul(fr,Cr)|0,$t=Math.imul(fr,Or),xt=xt+Math.imul(Qt,_r)|0,ht=ht+Math.imul(Qt,Dr)|0,ht=ht+Math.imul(zt,_r)|0,$t=$t+Math.imul(zt,Dr)|0,xt=xt+Math.imul($r,Tr)|0,ht=ht+Math.imul($r,Lr)|0,ht=ht+Math.imul(Mr,Tr)|0,$t=$t+Math.imul(Mr,Lr)|0,xt=xt+Math.imul(xr,Rr)|0,ht=ht+Math.imul(xr,Fr)|0,ht=ht+Math.imul(Sr,Rr)|0,$t=$t+Math.imul(Sr,Fr)|0,xt=xt+Math.imul(br,Br)|0,ht=ht+Math.imul(br,jr)|0,ht=ht+Math.imul(dr,Br)|0,$t=$t+Math.imul(dr,jr)|0,xt=xt+Math.imul(cr,kr)|0,ht=ht+Math.imul(cr,Ur)|0,ht=ht+Math.imul(ur,kr)|0,$t=$t+Math.imul(ur,Ur)|0,xt=xt+Math.imul(Kt,Ir)|0,ht=ht+Math.imul(Kt,Hr)|0,ht=ht+Math.imul(ar,Ir)|0,$t=$t+Math.imul(ar,Hr)|0,xt=xt+Math.imul(Gt,Nr)|0,ht=ht+Math.imul(Gt,qr)|0,ht=ht+Math.imul(Zt,Nr)|0,$t=$t+Math.imul(Zt,qr)|0;var g0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(g0>>>26)|0,g0&=67108863,xt=Math.imul(nr,_r),ht=Math.imul(nr,Dr),ht=ht+Math.imul(fr,_r)|0,$t=Math.imul(fr,Dr),xt=xt+Math.imul(Qt,Tr)|0,ht=ht+Math.imul(Qt,Lr)|0,ht=ht+Math.imul(zt,Tr)|0,$t=$t+Math.imul(zt,Lr)|0,xt=xt+Math.imul($r,Rr)|0,ht=ht+Math.imul($r,Fr)|0,ht=ht+Math.imul(Mr,Rr)|0,$t=$t+Math.imul(Mr,Fr)|0,xt=xt+Math.imul(xr,Br)|0,ht=ht+Math.imul(xr,jr)|0,ht=ht+Math.imul(Sr,Br)|0,$t=$t+Math.imul(Sr,jr)|0,xt=xt+Math.imul(br,kr)|0,ht=ht+Math.imul(br,Ur)|0,ht=ht+Math.imul(dr,kr)|0,$t=$t+Math.imul(dr,Ur)|0,xt=xt+Math.imul(cr,Ir)|0,ht=ht+Math.imul(cr,Hr)|0,ht=ht+Math.imul(ur,Ir)|0,$t=$t+Math.imul(ur,Hr)|0,xt=xt+Math.imul(Kt,Nr)|0,ht=ht+Math.imul(Kt,qr)|0,ht=ht+Math.imul(ar,Nr)|0,$t=$t+Math.imul(ar,qr)|0;var y0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(y0>>>26)|0,y0&=67108863,xt=Math.imul(nr,Tr),ht=Math.imul(nr,Lr),ht=ht+Math.imul(fr,Tr)|0,$t=Math.imul(fr,Lr),xt=xt+Math.imul(Qt,Rr)|0,ht=ht+Math.imul(Qt,Fr)|0,ht=ht+Math.imul(zt,Rr)|0,$t=$t+Math.imul(zt,Fr)|0,xt=xt+Math.imul($r,Br)|0,ht=ht+Math.imul($r,jr)|0,ht=ht+Math.imul(Mr,Br)|0,$t=$t+Math.imul(Mr,jr)|0,xt=xt+Math.imul(xr,kr)|0,ht=ht+Math.imul(xr,Ur)|0,ht=ht+Math.imul(Sr,kr)|0,$t=$t+Math.imul(Sr,Ur)|0,xt=xt+Math.imul(br,Ir)|0,ht=ht+Math.imul(br,Hr)|0,ht=ht+Math.imul(dr,Ir)|0,$t=$t+Math.imul(dr,Hr)|0,xt=xt+Math.imul(cr,Nr)|0,ht=ht+Math.imul(cr,qr)|0,ht=ht+Math.imul(ur,Nr)|0,$t=$t+Math.imul(ur,qr)|0;var v0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(v0>>>26)|0,v0&=67108863,xt=Math.imul(nr,Rr),ht=Math.imul(nr,Fr),ht=ht+Math.imul(fr,Rr)|0,$t=Math.imul(fr,Fr),xt=xt+Math.imul(Qt,Br)|0,ht=ht+Math.imul(Qt,jr)|0,ht=ht+Math.imul(zt,Br)|0,$t=$t+Math.imul(zt,jr)|0,xt=xt+Math.imul($r,kr)|0,ht=ht+Math.imul($r,Ur)|0,ht=ht+Math.imul(Mr,kr)|0,$t=$t+Math.imul(Mr,Ur)|0,xt=xt+Math.imul(xr,Ir)|0,ht=ht+Math.imul(xr,Hr)|0,ht=ht+Math.imul(Sr,Ir)|0,$t=$t+Math.imul(Sr,Hr)|0,xt=xt+Math.imul(br,Nr)|0,ht=ht+Math.imul(br,qr)|0,ht=ht+Math.imul(dr,Nr)|0,$t=$t+Math.imul(dr,qr)|0;var w0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(w0>>>26)|0,w0&=67108863,xt=Math.imul(nr,Br),ht=Math.imul(nr,jr),ht=ht+Math.imul(fr,Br)|0,$t=Math.imul(fr,jr),xt=xt+Math.imul(Qt,kr)|0,ht=ht+Math.imul(Qt,Ur)|0,ht=ht+Math.imul(zt,kr)|0,$t=$t+Math.imul(zt,Ur)|0,xt=xt+Math.imul($r,Ir)|0,ht=ht+Math.imul($r,Hr)|0,ht=ht+Math.imul(Mr,Ir)|0,$t=$t+Math.imul(Mr,Hr)|0,xt=xt+Math.imul(xr,Nr)|0,ht=ht+Math.imul(xr,qr)|0,ht=ht+Math.imul(Sr,Nr)|0,$t=$t+Math.imul(Sr,qr)|0;var x0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(x0>>>26)|0,x0&=67108863,xt=Math.imul(nr,kr),ht=Math.imul(nr,Ur),ht=ht+Math.imul(fr,kr)|0,$t=Math.imul(fr,Ur),xt=xt+Math.imul(Qt,Ir)|0,ht=ht+Math.imul(Qt,Hr)|0,ht=ht+Math.imul(zt,Ir)|0,$t=$t+Math.imul(zt,Hr)|0,xt=xt+Math.imul($r,Nr)|0,ht=ht+Math.imul($r,qr)|0,ht=ht+Math.imul(Mr,Nr)|0,$t=$t+Math.imul(Mr,qr)|0;var E0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(E0>>>26)|0,E0&=67108863,xt=Math.imul(nr,Ir),ht=Math.imul(nr,Hr),ht=ht+Math.imul(fr,Ir)|0,$t=Math.imul(fr,Hr),xt=xt+Math.imul(Qt,Nr)|0,ht=ht+Math.imul(Qt,qr)|0,ht=ht+Math.imul(zt,Nr)|0,$t=$t+Math.imul(zt,qr)|0;var $0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+($0>>>26)|0,$0&=67108863,xt=Math.imul(nr,Nr),ht=Math.imul(nr,qr),ht=ht+Math.imul(fr,Nr)|0,$t=Math.imul(fr,qr);var M0=(Pt+xt|0)+((ht&8191)<<13)|0;return Pt=($t+(ht>>>13)|0)+(M0>>>26)|0,M0&=67108863,At[0]=e0,At[1]=t0,At[2]=f0,At[3]=c0,At[4]=l0,At[5]=u0,At[6]=d0,At[7]=h0,At[8]=p0,At[9]=b0,At[10]=m0,At[11]=g0,At[12]=y0,At[13]=v0,At[14]=w0,At[15]=x0,At[16]=E0,At[17]=$0,At[18]=M0,Pt!==0&&(At[19]=Pt,yt.length++),yt};Math.imul||(It=kt);function Lt(Ct,dt,mt){mt.negative=dt.negative^Ct.negative,mt.length=Ct.length+dt.length;for(var yt=0,vt=0,Et=0;Et>>26)|0,vt+=At>>>26,At&=67108863}mt.words[Et]=Pt,yt=At,At=vt}return yt!==0?mt.words[Et]=yt:mt.length--,mt.strip()}function Ot(Ct,dt,mt){var yt=new Nt;return yt.mulp(Ct,dt,mt)}tt.prototype.mulTo=function(dt,mt){var yt,vt=this.length+dt.length;return this.length===10&&dt.length===10?yt=It(this,dt,mt):vt<63?yt=kt(this,dt,mt):vt<1024?yt=Lt(this,dt,mt):yt=Ot(this,dt,mt),yt};function Nt(Ct,dt){this.x=Ct,this.y=dt}Nt.prototype.makeRBT=function(dt){for(var mt=new Array(dt),yt=tt.prototype._countBits(dt)-1,vt=0;vt>=1;return vt},Nt.prototype.permute=function(dt,mt,yt,vt,Et,At){for(var Pt=0;Pt>>1)Et++;return 1<>>13,yt[2*At+1]=Et&8191,Et=Et>>>13;for(At=2*mt;At>=26,mt+=vt/67108864|0,mt+=Et>>>26,this.words[yt]=Et&67108863}return mt!==0&&(this.words[yt]=mt,this.length++),this},tt.prototype.muln=function(dt){return this.clone().imuln(dt)},tt.prototype.sqr=function(){return this.mul(this)},tt.prototype.isqr=function(){return this.imul(this.clone())},tt.prototype.pow=function(dt){var mt=Rt(dt);if(mt.length===0)return new tt(1);for(var yt=this,vt=0;vt=0);var mt=dt%26,yt=(dt-mt)/26,vt=67108863>>>26-mt<<26-mt,Et;if(mt!==0){var At=0;for(Et=0;Et>>26-mt}At&&(this.words[Et]=At,this.length++)}if(yt!==0){for(Et=this.length-1;Et>=0;Et--)this.words[Et+yt]=this.words[Et];for(Et=0;Et=0);var vt;mt?vt=(mt-mt%26)/26:vt=0;var Et=dt%26,At=Math.min((dt-Et)/26,this.length),Pt=67108863^67108863>>>Et<At)for(this.length-=At,ht=0;ht=0&&($t!==0||ht>=vt);ht--){var Bt=this.words[ht]|0;this.words[ht]=$t<<26-Et|Bt>>>Et,$t=Bt&Pt}return xt&&$t!==0&&(xt.words[xt.length++]=$t),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},tt.prototype.ishrn=function(dt,mt,yt){return et(this.negative===0),this.iushrn(dt,mt,yt)},tt.prototype.shln=function(dt){return this.clone().ishln(dt)},tt.prototype.ushln=function(dt){return this.clone().iushln(dt)},tt.prototype.shrn=function(dt){return this.clone().ishrn(dt)},tt.prototype.ushrn=function(dt){return this.clone().iushrn(dt)},tt.prototype.testn=function(dt){et(typeof dt=="number"&&dt>=0);var mt=dt%26,yt=(dt-mt)/26,vt=1<=0);var mt=dt%26,yt=(dt-mt)/26;if(et(this.negative===0,"imaskn works only with positive numbers"),this.length<=yt)return this;if(mt!==0&&yt++,this.length=Math.min(yt,this.length),mt!==0){var vt=67108863^67108863>>>mt<=67108864;mt++)this.words[mt]-=67108864,mt===this.length-1?this.words[mt+1]=1:this.words[mt+1]++;return this.length=Math.max(this.length,mt+1),this},tt.prototype.isubn=function(dt){if(et(typeof dt=="number"),et(dt<67108864),dt<0)return this.iaddn(-dt);if(this.negative!==0)return this.negative=0,this.iaddn(dt),this.negative=1,this;if(this.words[0]-=dt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var mt=0;mt>26)-(xt/67108864|0),this.words[Et+yt]=At&67108863}for(;Et>26,this.words[Et+yt]=At&67108863;if(Pt===0)return this.strip();for(et(Pt===-1),Pt=0,Et=0;Et>26,this.words[Et]=At&67108863;return this.negative=1,this.strip()},tt.prototype._wordDiv=function(dt,mt){var yt=this.length-dt.length,vt=this.clone(),Et=dt,At=Et.words[Et.length-1]|0,Pt=this._countBits(At);yt=26-Pt,yt!==0&&(Et=Et.ushln(yt),vt.iushln(yt),At=Et.words[Et.length-1]|0);var xt=vt.length-Et.length,ht;if(mt!=="mod"){ht=new tt(null),ht.length=xt+1,ht.words=new Array(ht.length);for(var $t=0;$t=0;Dt--){var Ht=(vt.words[Et.length+Dt]|0)*67108864+(vt.words[Et.length+Dt-1]|0);for(Ht=Math.min(Ht/At|0,67108863),vt._ishlnsubmul(Et,Ht,Dt);vt.negative!==0;)Ht--,vt.negative=0,vt._ishlnsubmul(Et,1,Dt),vt.isZero()||(vt.negative^=1);ht&&(ht.words[Dt]=Ht)}return ht&&ht.strip(),vt.strip(),mt!=="div"&&yt!==0&&vt.iushrn(yt),{div:ht||null,mod:vt}},tt.prototype.divmod=function(dt,mt,yt){if(et(!dt.isZero()),this.isZero())return{div:new tt(0),mod:new tt(0)};var vt,Et,At;return this.negative!==0&&dt.negative===0?(At=this.neg().divmod(dt,mt),mt!=="mod"&&(vt=At.div.neg()),mt!=="div"&&(Et=At.mod.neg(),yt&&Et.negative!==0&&Et.iadd(dt)),{div:vt,mod:Et}):this.negative===0&&dt.negative!==0?(At=this.divmod(dt.neg(),mt),mt!=="mod"&&(vt=At.div.neg()),{div:vt,mod:At.mod}):this.negative&dt.negative?(At=this.neg().divmod(dt.neg(),mt),mt!=="div"&&(Et=At.mod.neg(),yt&&Et.negative!==0&&Et.isub(dt)),{div:At.div,mod:Et}):dt.length>this.length||this.cmp(dt)<0?{div:new tt(0),mod:this}:dt.length===1?mt==="div"?{div:this.divn(dt.words[0]),mod:null}:mt==="mod"?{div:null,mod:new tt(this.modn(dt.words[0]))}:{div:this.divn(dt.words[0]),mod:new tt(this.modn(dt.words[0]))}:this._wordDiv(dt,mt)},tt.prototype.div=function(dt){return this.divmod(dt,"div",!1).div},tt.prototype.mod=function(dt){return this.divmod(dt,"mod",!1).mod},tt.prototype.umod=function(dt){return this.divmod(dt,"mod",!0).mod},tt.prototype.divRound=function(dt){var mt=this.divmod(dt);if(mt.mod.isZero())return mt.div;var yt=mt.div.negative!==0?mt.mod.isub(dt):mt.mod,vt=dt.ushrn(1),Et=dt.andln(1),At=yt.cmp(vt);return At<0||Et===1&&At===0?mt.div:mt.div.negative!==0?mt.div.isubn(1):mt.div.iaddn(1)},tt.prototype.modn=function(dt){et(dt<=67108863);for(var mt=(1<<26)%dt,yt=0,vt=this.length-1;vt>=0;vt--)yt=(mt*yt+(this.words[vt]|0))%dt;return yt},tt.prototype.idivn=function(dt){et(dt<=67108863);for(var mt=0,yt=this.length-1;yt>=0;yt--){var vt=(this.words[yt]|0)+mt*67108864;this.words[yt]=vt/dt|0,mt=vt%dt}return this.strip()},tt.prototype.divn=function(dt){return this.clone().idivn(dt)},tt.prototype.egcd=function(dt){et(dt.negative===0),et(!dt.isZero());var mt=this,yt=dt.clone();mt.negative!==0?mt=mt.umod(dt):mt=mt.clone();for(var vt=new tt(1),Et=new tt(0),At=new tt(0),Pt=new tt(1),xt=0;mt.isEven()&&yt.isEven();)mt.iushrn(1),yt.iushrn(1),++xt;for(var ht=yt.clone(),$t=mt.clone();!mt.isZero();){for(var Bt=0,Dt=1;!(mt.words[0]&Dt)&&Bt<26;++Bt,Dt<<=1);if(Bt>0)for(mt.iushrn(Bt);Bt-- >0;)(vt.isOdd()||Et.isOdd())&&(vt.iadd(ht),Et.isub($t)),vt.iushrn(1),Et.iushrn(1);for(var Ht=0,tr=1;!(yt.words[0]&tr)&&Ht<26;++Ht,tr<<=1);if(Ht>0)for(yt.iushrn(Ht);Ht-- >0;)(At.isOdd()||Pt.isOdd())&&(At.iadd(ht),Pt.isub($t)),At.iushrn(1),Pt.iushrn(1);mt.cmp(yt)>=0?(mt.isub(yt),vt.isub(At),Et.isub(Pt)):(yt.isub(mt),At.isub(vt),Pt.isub(Et))}return{a:At,b:Pt,gcd:yt.iushln(xt)}},tt.prototype._invmp=function(dt){et(dt.negative===0),et(!dt.isZero());var mt=this,yt=dt.clone();mt.negative!==0?mt=mt.umod(dt):mt=mt.clone();for(var vt=new tt(1),Et=new tt(0),At=yt.clone();mt.cmpn(1)>0&&yt.cmpn(1)>0;){for(var Pt=0,xt=1;!(mt.words[0]&xt)&&Pt<26;++Pt,xt<<=1);if(Pt>0)for(mt.iushrn(Pt);Pt-- >0;)vt.isOdd()&&vt.iadd(At),vt.iushrn(1);for(var ht=0,$t=1;!(yt.words[0]&$t)&&ht<26;++ht,$t<<=1);if(ht>0)for(yt.iushrn(ht);ht-- >0;)Et.isOdd()&&Et.iadd(At),Et.iushrn(1);mt.cmp(yt)>=0?(mt.isub(yt),vt.isub(Et)):(yt.isub(mt),Et.isub(vt))}var Bt;return mt.cmpn(1)===0?Bt=vt:Bt=Et,Bt.cmpn(0)<0&&Bt.iadd(dt),Bt},tt.prototype.gcd=function(dt){if(this.isZero())return dt.abs();if(dt.isZero())return this.abs();var mt=this.clone(),yt=dt.clone();mt.negative=0,yt.negative=0;for(var vt=0;mt.isEven()&&yt.isEven();vt++)mt.iushrn(1),yt.iushrn(1);do{for(;mt.isEven();)mt.iushrn(1);for(;yt.isEven();)yt.iushrn(1);var Et=mt.cmp(yt);if(Et<0){var At=mt;mt=yt,yt=At}else if(Et===0||yt.cmpn(1)===0)break;mt.isub(yt)}while(!0);return yt.iushln(vt)},tt.prototype.invm=function(dt){return this.egcd(dt).a.umod(dt)},tt.prototype.isEven=function(){return(this.words[0]&1)===0},tt.prototype.isOdd=function(){return(this.words[0]&1)===1},tt.prototype.andln=function(dt){return this.words[0]&dt},tt.prototype.bincn=function(dt){et(typeof dt=="number");var mt=dt%26,yt=(dt-mt)/26,vt=1<>>26,Pt&=67108863,this.words[At]=Pt}return Et!==0&&(this.words[At]=Et,this.length++),this},tt.prototype.isZero=function(){return this.length===1&&this.words[0]===0},tt.prototype.cmpn=function(dt){var mt=dt<0;if(this.negative!==0&&!mt)return-1;if(this.negative===0&&mt)return 1;this.strip();var yt;if(this.length>1)yt=1;else{mt&&(dt=-dt),et(dt<=67108863,"Number is too big");var vt=this.words[0]|0;yt=vt===dt?0:vtdt.length)return 1;if(this.length=0;yt--){var vt=this.words[yt]|0,Et=dt.words[yt]|0;if(vt!==Et){vtEt&&(mt=1);break}}return mt},tt.prototype.gtn=function(dt){return this.cmpn(dt)===1},tt.prototype.gt=function(dt){return this.cmp(dt)===1},tt.prototype.gten=function(dt){return this.cmpn(dt)>=0},tt.prototype.gte=function(dt){return this.cmp(dt)>=0},tt.prototype.ltn=function(dt){return this.cmpn(dt)===-1},tt.prototype.lt=function(dt){return this.cmp(dt)===-1},tt.prototype.lten=function(dt){return this.cmpn(dt)<=0},tt.prototype.lte=function(dt){return this.cmp(dt)<=0},tt.prototype.eqn=function(dt){return this.cmpn(dt)===0},tt.prototype.eq=function(dt){return this.cmp(dt)===0},tt.red=function(dt){return new er(dt)},tt.prototype.toRed=function(dt){return et(!this.red,"Already a number in reduction context"),et(this.negative===0,"red works only with positives"),dt.convertTo(this)._forceRed(dt)},tt.prototype.fromRed=function(){return et(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},tt.prototype._forceRed=function(dt){return this.red=dt,this},tt.prototype.forceRed=function(dt){return et(!this.red,"Already a number in reduction context"),this._forceRed(dt)},tt.prototype.redAdd=function(dt){return et(this.red,"redAdd works only with red numbers"),this.red.add(this,dt)},tt.prototype.redIAdd=function(dt){return et(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,dt)},tt.prototype.redSub=function(dt){return et(this.red,"redSub works only with red numbers"),this.red.sub(this,dt)},tt.prototype.redISub=function(dt){return et(this.red,"redISub works only with red numbers"),this.red.isub(this,dt)},tt.prototype.redShl=function(dt){return et(this.red,"redShl works only with red numbers"),this.red.shl(this,dt)},tt.prototype.redMul=function(dt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,dt),this.red.mul(this,dt)},tt.prototype.redIMul=function(dt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,dt),this.red.imul(this,dt)},tt.prototype.redSqr=function(){return et(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},tt.prototype.redISqr=function(){return et(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},tt.prototype.redSqrt=function(){return et(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},tt.prototype.redInvm=function(){return et(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},tt.prototype.redNeg=function(){return et(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},tt.prototype.redPow=function(dt){return et(this.red&&!dt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,dt)};var Ft={k256:null,p224:null,p192:null,p25519:null};function jt(Ct,dt){this.name=Ct,this.p=new tt(dt,16),this.n=this.p.bitLength(),this.k=new tt(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}jt.prototype._tmp=function(){var dt=new tt(null);return dt.words=new Array(Math.ceil(this.n/13)),dt},jt.prototype.ireduce=function(dt){var mt=dt,yt;do this.split(mt,this.tmp),mt=this.imulK(mt),mt=mt.iadd(this.tmp),yt=mt.bitLength();while(yt>this.n);var vt=yt0?mt.isub(this.p):mt.strip!==void 0?mt.strip():mt._strip(),mt},jt.prototype.split=function(dt,mt){dt.iushrn(this.n,0,mt)},jt.prototype.imulK=function(dt){return dt.imul(this.k)};function Vt(){jt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}nt(Vt,jt),Vt.prototype.split=function(dt,mt){for(var yt=4194303,vt=Math.min(dt.length,9),Et=0;Et>>22,At=Pt}At>>>=22,dt.words[Et-10]=At,At===0&&dt.length>10?dt.length-=10:dt.length-=9},Vt.prototype.imulK=function(dt){dt.words[dt.length]=0,dt.words[dt.length+1]=0,dt.length+=2;for(var mt=0,yt=0;yt>>=26,dt.words[yt]=Et,mt=vt}return mt!==0&&(dt.words[dt.length++]=mt),dt},tt._prime=function(dt){if(Ft[dt])return Ft[dt];var mt;if(dt==="k256")mt=new Vt;else if(dt==="p224")mt=new Jt;else if(dt==="p192")mt=new ir;else if(dt==="p25519")mt=new rr;else throw new Error("Unknown prime "+dt);return Ft[dt]=mt,mt};function er(Ct){if(typeof Ct=="string"){var dt=tt._prime(Ct);this.m=dt.p,this.prime=dt}else et(Ct.gtn(1),"modulus must be greater than 1"),this.m=Ct,this.prime=null}er.prototype._verify1=function(dt){et(dt.negative===0,"red works only with positives"),et(dt.red,"red works only with red numbers")},er.prototype._verify2=function(dt,mt){et((dt.negative|mt.negative)===0,"red works only with positives"),et(dt.red&&dt.red===mt.red,"red works only with red numbers")},er.prototype.imod=function(dt){return this.prime?this.prime.ireduce(dt)._forceRed(this):dt.umod(this.m)._forceRed(this)},er.prototype.neg=function(dt){return dt.isZero()?dt.clone():this.m.sub(dt)._forceRed(this)},er.prototype.add=function(dt,mt){this._verify2(dt,mt);var yt=dt.add(mt);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt._forceRed(this)},er.prototype.iadd=function(dt,mt){this._verify2(dt,mt);var yt=dt.iadd(mt);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt},er.prototype.sub=function(dt,mt){this._verify2(dt,mt);var yt=dt.sub(mt);return yt.cmpn(0)<0&&yt.iadd(this.m),yt._forceRed(this)},er.prototype.isub=function(dt,mt){this._verify2(dt,mt);var yt=dt.isub(mt);return yt.cmpn(0)<0&&yt.iadd(this.m),yt},er.prototype.shl=function(dt,mt){return this._verify1(dt),this.imod(dt.ushln(mt))},er.prototype.imul=function(dt,mt){return this._verify2(dt,mt),this.imod(dt.imul(mt))},er.prototype.mul=function(dt,mt){return this._verify2(dt,mt),this.imod(dt.mul(mt))},er.prototype.isqr=function(dt){return this.imul(dt,dt.clone())},er.prototype.sqr=function(dt){return this.mul(dt,dt)},er.prototype.sqrt=function(dt){if(dt.isZero())return dt.clone();var mt=this.m.andln(3);if(et(mt%2===1),mt===3){var yt=this.m.add(new tt(1)).iushrn(2);return this.pow(dt,yt)}for(var vt=this.m.subn(1),Et=0;!vt.isZero()&&vt.andln(1)===0;)Et++,vt.iushrn(1);et(!vt.isZero());var At=new tt(1).toRed(this),Pt=At.redNeg(),xt=this.m.subn(1).iushrn(1),ht=this.m.bitLength();for(ht=new tt(2*ht*ht).toRed(this);this.pow(ht,xt).cmp(Pt)!==0;)ht.redIAdd(Pt);for(var $t=this.pow(ht,vt),Bt=this.pow(dt,vt.addn(1).iushrn(1)),Dt=this.pow(dt,vt),Ht=Et;Dt.cmp(At)!==0;){for(var tr=Dt,Xt=0;tr.cmp(At)!==0;Xt++)tr=tr.redSqr();et(Xt=0;Et--){for(var $t=mt.words[Et],Bt=ht-1;Bt>=0;Bt--){var Dt=$t>>Bt&1;if(At!==vt[0]&&(At=this.sqr(At)),Dt===0&&Pt===0){xt=0;continue}Pt<<=1,Pt|=Dt,xt++,!(xt!==yt&&(Et!==0||Bt!==0))&&(At=this.mul(At,vt[Pt]),xt=0,Pt=0)}ht=26}return At},er.prototype.convertTo=function(dt){var mt=dt.umod(this.m);return mt===dt?mt.clone():mt},er.prototype.convertFrom=function(dt){var mt=dt.clone();return mt.red=null,mt},tt.mont=function(dt){return new lr(dt)};function lr(Ct){er.call(this,Ct),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new tt(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)}nt(lr,er),lr.prototype.convertTo=function(dt){return this.imod(dt.ushln(this.shift))},lr.prototype.convertFrom=function(dt){var mt=this.imod(dt.mul(this.rinv));return mt.red=null,mt},lr.prototype.imul=function(dt,mt){if(dt.isZero()||mt.isZero())return dt.words[0]=0,dt.length=1,dt;var yt=dt.imul(mt),vt=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Et=yt.isub(vt).iushrn(this.shift),At=Et;return Et.cmp(this.m)>=0?At=Et.isub(this.m):Et.cmpn(0)<0&&(At=Et.iadd(this.m)),At._forceRed(this)},lr.prototype.mul=function(dt,mt){if(dt.isZero()||mt.isZero())return new tt(0)._forceRed(this);var yt=dt.mul(mt),vt=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Et=yt.isub(vt).iushrn(this.shift),At=Et;return Et.cmp(this.m)>=0?At=Et.isub(this.m):Et.cmpn(0)<0&&(At=Et.iadd(this.m)),At._forceRed(this)},lr.prototype.invm=function(dt){var mt=this.imod(dt._invmp(this.m).mul(this.r2));return mt._forceRed(this)}})(c,commonjsGlobal)})(bn$6);var bnExports$6=bn$6.exports,brorand={exports:{}},hasRequiredBrorand;function requireBrorand(){if(hasRequiredBrorand)return brorand.exports;hasRequiredBrorand=1;var c;brorand.exports=function(nt){return c||(c=new a(null)),c.generate(nt)};function a(et){this.rand=et}if(brorand.exports.Rand=a,a.prototype.generate=function(nt){return this._rand(nt)},a.prototype._rand=function(nt){if(this.rand.getBytes)return this.rand.getBytes(nt);for(var tt=new Uint8Array(nt),bt=0;bt=0);return gt},d.prototype._randrange=function(nt,tt){var bt=tt.sub(nt);return nt.add(this._randbelow(bt))},d.prototype.test=function(nt,tt,bt){var gt=nt.bitLength(),wt=c.mont(nt),St=new c(1).toRed(wt);tt||(tt=Math.max(1,gt/48|0));for(var Mt=nt.subn(1),_t=0;!Mt.testn(_t);_t++);for(var Tt=nt.shrn(_t),Rt=Mt.toRed(wt),kt=!0;tt>0;tt--){var It=this._randrange(new c(2),Mt);bt&&bt(It);var Lt=It.toRed(wt).redPow(Tt);if(!(Lt.cmp(St)===0||Lt.cmp(Rt)===0)){for(var Ot=1;Ot<_t;Ot++){if(Lt=Lt.redSqr(),Lt.cmp(St)===0)return!1;if(Lt.cmp(Rt)===0)break}if(Ot===_t)return!1}}return kt},d.prototype.getDivisor=function(nt,tt){var bt=nt.bitLength(),gt=c.mont(nt),wt=new c(1).toRed(gt);tt||(tt=Math.max(1,bt/48|0));for(var St=nt.subn(1),Mt=0;!St.testn(Mt);Mt++);for(var _t=nt.shrn(Mt),Tt=St.toRed(gt);tt>0;tt--){var Rt=this._randrange(new c(2),St),kt=nt.gcd(Rt);if(kt.cmpn(1)!==0)return kt;var It=Rt.toRed(gt).redPow(_t);if(!(It.cmp(wt)===0||It.cmp(Tt)===0)){for(var Lt=1;LtOt;)Ft.ishrn(1);if(Ft.isEven()&&Ft.iadd(tt),Ft.testn(1)||Ft.iadd(bt),Nt.cmp(bt)){if(!Nt.cmp(gt))for(;Ft.mod(wt).cmp(St);)Ft.iadd(_t)}else for(;Ft.mod(d).cmp(Mt);)Ft.iadd(_t);if(jt=Ft.shrn(1),kt(jt)&&kt(Ft)&&It(jt)&&It(Ft)&&nt.test(jt)&&nt.test(Ft))return Ft}}return generatePrime}const modp1={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},require$$1$1={modp1,modp2,modp5,modp14,modp15,modp16,modp17,modp18};var dh,hasRequiredDh;function requireDh(){if(hasRequiredDh)return dh;hasRequiredDh=1;var c=bnExports$7,a=requireMr(),d=new a,et=new c(24),nt=new c(11),tt=new c(10),bt=new c(3),gt=new c(7),wt=requireGeneratePrime(),St=browserExports;dh=kt;function Mt(Lt,Ot){return Ot=Ot||"utf8",dist$2.Buffer.isBuffer(Lt)||(Lt=new dist$2.Buffer(Lt,Ot)),this._pub=new c(Lt),this}function _t(Lt,Ot){return Ot=Ot||"utf8",dist$2.Buffer.isBuffer(Lt)||(Lt=new dist$2.Buffer(Lt,Ot)),this._priv=new c(Lt),this}var Tt={};function Rt(Lt,Ot){var Nt=Ot.toString("hex"),Ft=[Nt,Lt.toString(16)].join("_");if(Ft in Tt)return Tt[Ft];var jt=0;if(Lt.isEven()||!wt.simpleSieve||!wt.fermatTest(Lt)||!d.test(Lt))return jt+=1,Nt==="02"||Nt==="05"?jt+=8:jt+=4,Tt[Ft]=jt,jt;d.test(Lt.shrn(1))||(jt+=2);var Vt;switch(Nt){case"02":Lt.mod(et).cmp(nt)&&(jt+=8);break;case"05":Vt=Lt.mod(tt),Vt.cmp(bt)&&Vt.cmp(gt)&&(jt+=8);break;default:jt+=4}return Tt[Ft]=jt,jt}function kt(Lt,Ot,Nt){this.setGenerator(Ot),this.__prime=new c(Lt),this._prime=c.mont(this.__prime),this._primeLen=Lt.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,Nt?(this.setPublicKey=Mt,this.setPrivateKey=_t):this._primeCode=8}Object.defineProperty(kt.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=Rt(this.__prime,this.__gen)),this._primeCode}}),kt.prototype.generateKeys=function(){return this._priv||(this._priv=new c(St(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},kt.prototype.computeSecret=function(Lt){Lt=new c(Lt),Lt=Lt.toRed(this._prime);var Ot=Lt.redPow(this._priv).fromRed(),Nt=new dist$2.Buffer(Ot.toArray()),Ft=this.getPrime();if(Nt.length"u"||!dist$2.process.version||dist$2.process.version.indexOf("v0.")===0||dist$2.process.version.indexOf("v1.")===0&&dist$2.process.version.indexOf("v1.8.")!==0?processNextickArgs.exports={nextTick}:processNextickArgs.exports=dist$2.process;function nextTick(c,a,d,et){if(typeof c!="function")throw new TypeError('"callback" argument must be a function');var nt=arguments.length,tt,bt;switch(nt){case 0:case 1:return dist$2.process.nextTick(c);case 2:return dist$2.process.nextTick(function(){c.call(null,a)});case 3:return dist$2.process.nextTick(function(){c.call(null,a,d)});case 4:return dist$2.process.nextTick(function(){c.call(null,a,d,et)});default:for(tt=new Array(nt-1),bt=0;bt"u"}util$2.isPrimitive=isPrimitive;util$2.isBuffer=bufferPolyfill.Buffer.isBuffer;function objectToString(c){return Object.prototype.toString.call(c)}var BufferList={exports:{}},hasRequiredBufferList;function requireBufferList(){return hasRequiredBufferList||(hasRequiredBufferList=1,function(c){function a(tt,bt){if(!(tt instanceof bt))throw new TypeError("Cannot call a class as a function")}var d=safeBufferExports.Buffer,et=util$3;function nt(tt,bt,gt){tt.copy(bt,gt)}c.exports=function(){function tt(){a(this,tt),this.head=null,this.tail=null,this.length=0}return tt.prototype.push=function(gt){var wt={data:gt,next:null};this.length>0?this.tail.next=wt:this.head=wt,this.tail=wt,++this.length},tt.prototype.unshift=function(gt){var wt={data:gt,next:this.head};this.length===0&&(this.tail=wt),this.head=wt,++this.length},tt.prototype.shift=function(){if(this.length!==0){var gt=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,gt}},tt.prototype.clear=function(){this.head=this.tail=null,this.length=0},tt.prototype.join=function(gt){if(this.length===0)return"";for(var wt=this.head,St=""+wt.data;wt=wt.next;)St+=gt+wt.data;return St},tt.prototype.concat=function(gt){if(this.length===0)return d.alloc(0);for(var wt=d.allocUnsafe(gt>>>0),St=this.head,Mt=0;St;)nt(St.data,wt,Mt),Mt+=St.data.length,St=St.next;return wt},tt}(),et&&et.inspect&&et.inspect.custom&&(c.exports.prototype[et.inspect.custom]=function(){var tt=et.inspect({length:this.length});return this.constructor.name+" "+tt})}(BufferList)),BufferList.exports}var pna=processNextickArgsExports;function destroy(c,a){var d=this,et=this._readableState&&this._readableState.destroyed,nt=this._writableState&&this._writableState.destroyed;return et||nt?(a?a(c):c&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,pna.nextTick(emitErrorNT,this,c)):pna.nextTick(emitErrorNT,this,c)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(c||null,function(tt){!a&&tt?d._writableState?d._writableState.errorEmitted||(d._writableState.errorEmitted=!0,pna.nextTick(emitErrorNT,d,tt)):pna.nextTick(emitErrorNT,d,tt):a&&a(tt)}),this)}function undestroy(){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)}function emitErrorNT(c,a){c.emit("error",a)}var destroy_1={destroy,undestroy},_stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1;var c=processNextickArgsExports;_stream_writable=It;function a(At){var Pt=this;this.next=null,this.entry=null,this.finish=function(){Et(Pt,At)}}var d=!dist$2.process.browser&&["v0.10","v0.9."].indexOf(dist$2.process.version.slice(0,5))>-1?setImmediate:c.nextTick,et;It.WritableState=Rt;var nt=Object.create(util$2);nt.inherits=inherits_browserExports;var tt={deprecate:browser$a},bt=streamBrowser,gt=safeBufferExports.Buffer,wt=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function St(At){return gt.from(At)}function Mt(At){return gt.isBuffer(At)||At instanceof wt}var _t=destroy_1;nt.inherits(It,bt);function Tt(){}function Rt(At,Pt){et=et||require_stream_duplex(),At=At||{};var xt=Pt instanceof et;this.objectMode=!!At.objectMode,xt&&(this.objectMode=this.objectMode||!!At.writableObjectMode);var ht=At.highWaterMark,$t=At.writableHighWaterMark,Bt=this.objectMode?16:16*1024;ht||ht===0?this.highWaterMark=ht:xt&&($t||$t===0)?this.highWaterMark=$t:this.highWaterMark=Bt,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Dt=At.decodeStrings===!1;this.decodeStrings=!Dt,this.defaultEncoding=At.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ht){ir(Pt,Ht)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}Rt.prototype.getBuffer=function(){for(var Pt=this.bufferedRequest,xt=[];Pt;)xt.push(Pt),Pt=Pt.next;return xt},function(){try{Object.defineProperty(Rt.prototype,"buffer",{get:tt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var kt;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(kt=Function.prototype[Symbol.hasInstance],Object.defineProperty(It,Symbol.hasInstance,{value:function(At){return kt.call(this,At)?!0:this!==It?!1:At&&At._writableState instanceof Rt}})):kt=function(At){return At instanceof this};function It(At){if(et=et||require_stream_duplex(),!kt.call(It,this)&&!(this instanceof et))return new It(At);this._writableState=new Rt(At,this),this.writable=!0,At&&(typeof At.write=="function"&&(this._write=At.write),typeof At.writev=="function"&&(this._writev=At.writev),typeof At.destroy=="function"&&(this._destroy=At.destroy),typeof At.final=="function"&&(this._final=At.final)),bt.call(this)}It.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Lt(At,Pt){var xt=new Error("write after end");At.emit("error",xt),c.nextTick(Pt,xt)}function Ot(At,Pt,xt,ht){var $t=!0,Bt=!1;return xt===null?Bt=new TypeError("May not write null values to stream"):typeof xt!="string"&&xt!==void 0&&!Pt.objectMode&&(Bt=new TypeError("Invalid non-string/buffer chunk")),Bt&&(At.emit("error",Bt),c.nextTick(ht,Bt),$t=!1),$t}It.prototype.write=function(At,Pt,xt){var ht=this._writableState,$t=!1,Bt=!ht.objectMode&&Mt(At);return Bt&&!gt.isBuffer(At)&&(At=St(At)),typeof Pt=="function"&&(xt=Pt,Pt=null),Bt?Pt="buffer":Pt||(Pt=ht.defaultEncoding),typeof xt!="function"&&(xt=Tt),ht.ended?Lt(this,xt):(Bt||Ot(this,ht,At,xt))&&(ht.pendingcb++,$t=Ft(this,ht,Bt,At,Pt,xt)),$t},It.prototype.cork=function(){var At=this._writableState;At.corked++},It.prototype.uncork=function(){var At=this._writableState;At.corked&&(At.corked--,!At.writing&&!At.corked&&!At.bufferProcessing&&At.bufferedRequest&&lr(this,At))},It.prototype.setDefaultEncoding=function(Pt){if(typeof Pt=="string"&&(Pt=Pt.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Pt+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Pt);return this._writableState.defaultEncoding=Pt,this};function Nt(At,Pt,xt){return!At.objectMode&&At.decodeStrings!==!1&&typeof Pt=="string"&&(Pt=gt.from(Pt,xt)),Pt}Object.defineProperty(It.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ft(At,Pt,xt,ht,$t,Bt){if(!xt){var Dt=Nt(Pt,ht,$t);ht!==Dt&&(xt=!0,$t="buffer",ht=Dt)}var Ht=Pt.objectMode?1:ht.length;Pt.length+=Ht;var tr=Pt.length0?(typeof qt!="string"&&!Kt.objectMode&&Object.getPrototypeOf(qt)!==tt.prototype&&(qt=gt(qt)),Zt?Kt.endEmitted?Ut.emit("error",new Error("stream.unshift() after end event")):jt(Ut,Kt,qt,!0):Kt.ended?Ut.emit("error",new Error("stream.push() after EOF")):(Kt.reading=!1,Kt.decoder&&!Gt?(qt=Kt.decoder.write(qt),Kt.objectMode||qt.length!==0?jt(Ut,Kt,qt,!1):mt(Ut,Kt)):jt(Ut,Kt,qt,!1))):Zt||(Kt.reading=!1)}return Jt(Kt)}function jt(Ut,qt,Gt,Zt){qt.flowing&&qt.length===0&&!qt.sync?(Ut.emit("data",Gt),Ut.read(0)):(qt.length+=qt.objectMode?1:Gt.length,Zt?qt.buffer.unshift(Gt):qt.buffer.push(Gt),qt.needReadable&&Ct(Ut)),mt(Ut,qt)}function Vt(Ut,qt){var Gt;return!wt(qt)&&typeof qt!="string"&&qt!==void 0&&!Ut.objectMode&&(Gt=new TypeError("Invalid non-string/buffer chunk")),Gt}function Jt(Ut){return!Ut.ended&&(Ut.needReadable||Ut.length=ir?Ut=ir:(Ut--,Ut|=Ut>>>1,Ut|=Ut>>>2,Ut|=Ut>>>4,Ut|=Ut>>>8,Ut|=Ut>>>16,Ut++),Ut}function er(Ut,qt){return Ut<=0||qt.length===0&&qt.ended?0:qt.objectMode?1:Ut!==Ut?qt.flowing&&qt.length?qt.buffer.head.data.length:qt.length:(Ut>qt.highWaterMark&&(qt.highWaterMark=rr(Ut)),Ut<=qt.length?Ut:qt.ended?qt.length:(qt.needReadable=!0,0))}Nt.prototype.read=function(Ut){_t("read",Ut),Ut=parseInt(Ut,10);var qt=this._readableState,Gt=Ut;if(Ut!==0&&(qt.emittedReadable=!1),Ut===0&&qt.needReadable&&(qt.length>=qt.highWaterMark||qt.ended))return _t("read: emitReadable",qt.length,qt.ended),qt.length===0&&qt.ended?Ht(this):Ct(this),null;if(Ut=er(Ut,qt),Ut===0&&qt.ended)return qt.length===0&&Ht(this),null;var Zt=qt.needReadable;_t("need readable",Zt),(qt.length===0||qt.length-Ut0?Yt=ht(Ut,qt):Yt=null,Yt===null?(qt.needReadable=!0,Ut=0):qt.length-=Ut,qt.length===0&&(qt.ended||(qt.needReadable=!0),Gt!==Ut&&qt.ended&&Ht(this)),Yt!==null&&this.emit("data",Yt),Yt};function lr(Ut,qt){if(!qt.ended){if(qt.decoder){var Gt=qt.decoder.end();Gt&&Gt.length&&(qt.buffer.push(Gt),qt.length+=qt.objectMode?1:Gt.length)}qt.ended=!0,Ct(Ut)}}function Ct(Ut){var qt=Ut._readableState;qt.needReadable=!1,qt.emittedReadable||(_t("emitReadable",qt.flowing),qt.emittedReadable=!0,qt.sync?c.nextTick(dt,Ut):dt(Ut))}function dt(Ut){_t("emit readable"),Ut.emit("readable"),xt(Ut)}function mt(Ut,qt){qt.readingMore||(qt.readingMore=!0,c.nextTick(yt,Ut,qt))}function yt(Ut,qt){for(var Gt=qt.length;!qt.reading&&!qt.flowing&&!qt.ended&&qt.length1&&Xt(Zt.pipes,Ut)!==-1)&&!ur&&(_t("false write response, pause",Zt.awaitDrain),Zt.awaitDrain++,br=!0),Gt.pause())}function Kr($r){_t("onerror",$r),Zr(),Ut.removeListener("error",Kr),et(Ut,"error")===0&&Ut.emit("error",$r)}Lt(Ut,"error",Kr);function xr(){Ut.removeListener("finish",Sr),Zr()}Ut.once("close",xr);function Sr(){_t("onfinish"),Ut.removeListener("close",xr),Zr()}Ut.once("finish",Sr);function Zr(){_t("unpipe"),Gt.unpipe(Ut)}return Ut.emit("pipe",Gt),Zt.flowing||(_t("pipe resume"),Gt.resume()),Ut};function vt(Ut){return function(){var qt=Ut._readableState;_t("pipeOnDrain",qt.awaitDrain),qt.awaitDrain&&qt.awaitDrain--,qt.awaitDrain===0&&et(Ut,"data")&&(qt.flowing=!0,xt(Ut))}}Nt.prototype.unpipe=function(Ut){var qt=this._readableState,Gt={hasUnpiped:!1};if(qt.pipesCount===0)return this;if(qt.pipesCount===1)return Ut&&Ut!==qt.pipes?this:(Ut||(Ut=qt.pipes),qt.pipes=null,qt.pipesCount=0,qt.flowing=!1,Ut&&Ut.emit("unpipe",this,Gt),this);if(!Ut){var Zt=qt.pipes,Yt=qt.pipesCount;qt.pipes=null,qt.pipesCount=0,qt.flowing=!1;for(var Kt=0;Kt=qt.length?(qt.decoder?Gt=qt.buffer.join(""):qt.buffer.length===1?Gt=qt.buffer.head.data:Gt=qt.buffer.concat(qt.length),qt.buffer.clear()):Gt=$t(Ut,qt.buffer,qt.decoder),Gt}function $t(Ut,qt,Gt){var Zt;return UtKt.length?Kt.length:Ut;if(ar===Kt.length?Yt+=Kt:Yt+=Kt.slice(0,Ut),Ut-=ar,Ut===0){ar===Kt.length?(++Zt,Gt.next?qt.head=Gt.next:qt.head=qt.tail=null):(qt.head=Gt,Gt.data=Kt.slice(ar));break}++Zt}return qt.length-=Zt,Yt}function Dt(Ut,qt){var Gt=tt.allocUnsafe(Ut),Zt=qt.head,Yt=1;for(Zt.data.copy(Gt),Ut-=Zt.data.length;Zt=Zt.next;){var Kt=Zt.data,ar=Ut>Kt.length?Kt.length:Ut;if(Kt.copy(Gt,Gt.length-Ut,0,ar),Ut-=ar,Ut===0){ar===Kt.length?(++Yt,Zt.next?qt.head=Zt.next:qt.head=qt.tail=null):(qt.head=Zt,Zt.data=Kt.slice(ar));break}++Yt}return qt.length-=Yt,Gt}function Ht(Ut){var qt=Ut._readableState;if(qt.length>0)throw new Error('"endReadable()" called on non-empty stream');qt.endEmitted||(qt.ended=!0,c.nextTick(tr,qt,Ut))}function tr(Ut,qt){!Ut.endEmitted&&Ut.length===0&&(Ut.endEmitted=!0,qt.readable=!1,qt.emit("end"))}function Xt(Ut,qt){for(var Gt=0,Zt=Ut.length;Gt0?yt:vt},tt.min=function(yt,vt){return yt.cmp(vt)<0?yt:vt},tt.prototype._init=function(yt,vt,Et){if(typeof yt=="number")return this._initNumber(yt,vt,Et);if(typeof yt=="object")return this._initArray(yt,vt,Et);vt==="hex"&&(vt=16),et(vt===(vt|0)&&vt>=2&&vt<=36),yt=yt.toString().replace(/\s+/g,"");var At=0;yt[0]==="-"&&(At++,this.negative=1),At=0;At-=3)xt=yt[At]|yt[At-1]<<8|yt[At-2]<<16,this.words[Pt]|=xt<>>26-ht&67108863,ht+=24,ht>=26&&(ht-=26,Pt++);else if(Et==="le")for(At=0,Pt=0;At>>26-ht&67108863,ht+=24,ht>=26&&(ht-=26,Pt++);return this._strip()};function gt(mt,yt){var vt=mt.charCodeAt(yt);if(vt>=48&&vt<=57)return vt-48;if(vt>=65&&vt<=70)return vt-55;if(vt>=97&&vt<=102)return vt-87;et(!1,"Invalid character in "+mt)}function wt(mt,yt,vt){var Et=gt(mt,vt);return vt-1>=yt&&(Et|=gt(mt,vt-1)<<4),Et}tt.prototype._parseHex=function(yt,vt,Et){this.length=Math.ceil((yt.length-vt)/6),this.words=new Array(this.length);for(var At=0;At=vt;At-=2)ht=wt(yt,vt,At)<=18?(Pt-=18,xt+=1,this.words[xt]|=ht>>>26):Pt+=8;else{var $t=yt.length-vt;for(At=$t%2===0?vt+1:vt;At=18?(Pt-=18,xt+=1,this.words[xt]|=ht>>>26):Pt+=8}this._strip()};function St(mt,yt,vt,Et){for(var At=0,Pt=0,xt=Math.min(mt.length,vt),ht=yt;ht=49?Pt=$t-49+10:$t>=17?Pt=$t-17+10:Pt=$t,et($t>=0&&Pt1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},tt.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{tt.prototype[Symbol.for("nodejs.util.inspect.custom")]=_t}catch{tt.prototype.inspect=_t}else tt.prototype.inspect=_t;function _t(){return(this.red?""}var Tt=["","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"],Rt=[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],kt=[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];tt.prototype.toString=function(yt,vt){yt=yt||10,vt=vt|0||1;var Et;if(yt===16||yt==="hex"){Et="";for(var At=0,Pt=0,xt=0;xt>>24-At&16777215,At+=2,At>=26&&(At-=26,xt--),Pt!==0||xt!==this.length-1?Et=Tt[6-$t.length]+$t+Et:Et=$t+Et}for(Pt!==0&&(Et=Pt.toString(16)+Et);Et.length%vt!==0;)Et="0"+Et;return this.negative!==0&&(Et="-"+Et),Et}if(yt===(yt|0)&&yt>=2&&yt<=36){var Bt=Rt[yt],Dt=kt[yt];Et="";var Ht=this.clone();for(Ht.negative=0;!Ht.isZero();){var tr=Ht.modrn(Dt).toString(yt);Ht=Ht.idivn(Dt),Ht.isZero()?Et=tr+Et:Et=Tt[Bt-tr.length]+tr+Et}for(this.isZero()&&(Et="0"+Et);Et.length%vt!==0;)Et="0"+Et;return this.negative!==0&&(Et="-"+Et),Et}et(!1,"Base should be between 2 and 36")},tt.prototype.toNumber=function(){var yt=this.words[0];return this.length===2?yt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?yt+=4503599627370496+this.words[1]*67108864:this.length>2&&et(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-yt:yt},tt.prototype.toJSON=function(){return this.toString(16,2)},bt&&(tt.prototype.toBuffer=function(yt,vt){return this.toArrayLike(bt,yt,vt)}),tt.prototype.toArray=function(yt,vt){return this.toArrayLike(Array,yt,vt)};var It=function(yt,vt){return yt.allocUnsafe?yt.allocUnsafe(vt):new yt(vt)};tt.prototype.toArrayLike=function(yt,vt,Et){this._strip();var At=this.byteLength(),Pt=Et||Math.max(1,At);et(At<=Pt,"byte array longer than desired length"),et(Pt>0,"Requested array length <= 0");var xt=It(yt,Pt),ht=vt==="le"?"LE":"BE";return this["_toArrayLike"+ht](xt,At),xt},tt.prototype._toArrayLikeLE=function(yt,vt){for(var Et=0,At=0,Pt=0,xt=0;Pt>8&255),Et>16&255),xt===6?(Et>24&255),At=0,xt=0):(At=ht>>>24,xt+=2)}if(Et=0&&(yt[Et--]=ht>>8&255),Et>=0&&(yt[Et--]=ht>>16&255),xt===6?(Et>=0&&(yt[Et--]=ht>>24&255),At=0,xt=0):(At=ht>>>24,xt+=2)}if(Et>=0)for(yt[Et--]=At;Et>=0;)yt[Et--]=0},Math.clz32?tt.prototype._countBits=function(yt){return 32-Math.clz32(yt)}:tt.prototype._countBits=function(yt){var vt=yt,Et=0;return vt>=4096&&(Et+=13,vt>>>=13),vt>=64&&(Et+=7,vt>>>=7),vt>=8&&(Et+=4,vt>>>=4),vt>=2&&(Et+=2,vt>>>=2),Et+vt},tt.prototype._zeroBits=function(yt){if(yt===0)return 26;var vt=yt,Et=0;return vt&8191||(Et+=13,vt>>>=13),vt&127||(Et+=7,vt>>>=7),vt&15||(Et+=4,vt>>>=4),vt&3||(Et+=2,vt>>>=2),vt&1||Et++,Et},tt.prototype.bitLength=function(){var yt=this.words[this.length-1],vt=this._countBits(yt);return(this.length-1)*26+vt};function Lt(mt){for(var yt=new Array(mt.bitLength()),vt=0;vt>>At&1}return yt}tt.prototype.zeroBits=function(){if(this.isZero())return 0;for(var yt=0,vt=0;vtyt.length?this.clone().ior(yt):yt.clone().ior(this)},tt.prototype.uor=function(yt){return this.length>yt.length?this.clone().iuor(yt):yt.clone().iuor(this)},tt.prototype.iuand=function(yt){var vt;this.length>yt.length?vt=yt:vt=this;for(var Et=0;Etyt.length?this.clone().iand(yt):yt.clone().iand(this)},tt.prototype.uand=function(yt){return this.length>yt.length?this.clone().iuand(yt):yt.clone().iuand(this)},tt.prototype.iuxor=function(yt){var vt,Et;this.length>yt.length?(vt=this,Et=yt):(vt=yt,Et=this);for(var At=0;Atyt.length?this.clone().ixor(yt):yt.clone().ixor(this)},tt.prototype.uxor=function(yt){return this.length>yt.length?this.clone().iuxor(yt):yt.clone().iuxor(this)},tt.prototype.inotn=function(yt){et(typeof yt=="number"&&yt>=0);var vt=Math.ceil(yt/26)|0,Et=yt%26;this._expand(vt),Et>0&&vt--;for(var At=0;At0&&(this.words[At]=~this.words[At]&67108863>>26-Et),this._strip()},tt.prototype.notn=function(yt){return this.clone().inotn(yt)},tt.prototype.setn=function(yt,vt){et(typeof yt=="number"&&yt>=0);var Et=yt/26|0,At=yt%26;return this._expand(Et+1),vt?this.words[Et]=this.words[Et]|1<yt.length?(Et=this,At=yt):(Et=yt,At=this);for(var Pt=0,xt=0;xt>>26;for(;Pt!==0&&xt>>26;if(this.length=Et.length,Pt!==0)this.words[this.length]=Pt,this.length++;else if(Et!==this)for(;xtyt.length?this.clone().iadd(yt):yt.clone().iadd(this)},tt.prototype.isub=function(yt){if(yt.negative!==0){yt.negative=0;var vt=this.iadd(yt);return yt.negative=1,vt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(yt),this.negative=1,this._normSign();var Et=this.cmp(yt);if(Et===0)return this.negative=0,this.length=1,this.words[0]=0,this;var At,Pt;Et>0?(At=this,Pt=yt):(At=yt,Pt=this);for(var xt=0,ht=0;ht>26,this.words[ht]=vt&67108863;for(;xt!==0&&ht>26,this.words[ht]=vt&67108863;if(xt===0&&ht>>26,Ht=$t&67108863,tr=Math.min(Bt,yt.length-1),Xt=Math.max(0,Bt-mt.length+1);Xt<=tr;Xt++){var Ut=Bt-Xt|0;At=mt.words[Ut]|0,Pt=yt.words[Xt]|0,xt=At*Pt+Ht,Dt+=xt/67108864|0,Ht=xt&67108863}vt.words[Bt]=Ht|0,$t=Dt|0}return $t!==0?vt.words[Bt]=$t|0:vt.length--,vt._strip()}var Nt=function(yt,vt,Et){var At=yt.words,Pt=vt.words,xt=Et.words,ht=0,$t,Bt,Dt,Ht=At[0]|0,tr=Ht&8191,Xt=Ht>>>13,Ut=At[1]|0,qt=Ut&8191,Gt=Ut>>>13,Zt=At[2]|0,Yt=Zt&8191,Kt=Zt>>>13,ar=At[3]|0,gr=ar&8191,cr=ar>>>13,ur=At[4]|0,Pr=ur&8191,br=ur>>>13,dr=At[5]|0,Kr=dr&8191,xr=dr>>>13,Sr=At[6]|0,Zr=Sr&8191,$r=Sr>>>13,Mr=At[7]|0,Xr=Mr&8191,Qt=Mr>>>13,zt=At[8]|0,Wt=zt&8191,nr=zt>>>13,fr=At[9]|0,Er=fr&8191,pr=fr>>>13,vr=Pt[0]|0,Jr=vr&8191,wr=vr>>>13,Ar=Pt[1]|0,Yr=Ar&8191,Cr=Ar>>>13,Or=Pt[2]|0,Qr=Or&8191,_r=Or>>>13,Dr=Pt[3]|0,r0=Dr&8191,Tr=Dr>>>13,Lr=Pt[4]|0,n0=Lr&8191,Rr=Lr>>>13,Fr=Pt[5]|0,i0=Fr&8191,Br=Fr>>>13,jr=Pt[6]|0,a0=jr&8191,kr=jr>>>13,Ur=Pt[7]|0,s0=Ur&8191,Ir=Ur>>>13,Hr=Pt[8]|0,o0=Hr&8191,Nr=Hr>>>13,qr=Pt[9]|0,e0=qr&8191,t0=qr>>>13;Et.negative=yt.negative^vt.negative,Et.length=19,$t=Math.imul(tr,Jr),Bt=Math.imul(tr,wr),Bt=Bt+Math.imul(Xt,Jr)|0,Dt=Math.imul(Xt,wr);var f0=(ht+$t|0)+((Bt&8191)<<13)|0;ht=(Dt+(Bt>>>13)|0)+(f0>>>26)|0,f0&=67108863,$t=Math.imul(qt,Jr),Bt=Math.imul(qt,wr),Bt=Bt+Math.imul(Gt,Jr)|0,Dt=Math.imul(Gt,wr),$t=$t+Math.imul(tr,Yr)|0,Bt=Bt+Math.imul(tr,Cr)|0,Bt=Bt+Math.imul(Xt,Yr)|0,Dt=Dt+Math.imul(Xt,Cr)|0;var c0=(ht+$t|0)+((Bt&8191)<<13)|0;ht=(Dt+(Bt>>>13)|0)+(c0>>>26)|0,c0&=67108863,$t=Math.imul(Yt,Jr),Bt=Math.imul(Yt,wr),Bt=Bt+Math.imul(Kt,Jr)|0,Dt=Math.imul(Kt,wr),$t=$t+Math.imul(qt,Yr)|0,Bt=Bt+Math.imul(qt,Cr)|0,Bt=Bt+Math.imul(Gt,Yr)|0,Dt=Dt+Math.imul(Gt,Cr)|0,$t=$t+Math.imul(tr,Qr)|0,Bt=Bt+Math.imul(tr,_r)|0,Bt=Bt+Math.imul(Xt,Qr)|0,Dt=Dt+Math.imul(Xt,_r)|0;var l0=(ht+$t|0)+((Bt&8191)<<13)|0;ht=(Dt+(Bt>>>13)|0)+(l0>>>26)|0,l0&=67108863,$t=Math.imul(gr,Jr),Bt=Math.imul(gr,wr),Bt=Bt+Math.imul(cr,Jr)|0,Dt=Math.imul(cr,wr),$t=$t+Math.imul(Yt,Yr)|0,Bt=Bt+Math.imul(Yt,Cr)|0,Bt=Bt+Math.imul(Kt,Yr)|0,Dt=Dt+Math.imul(Kt,Cr)|0,$t=$t+Math.imul(qt,Qr)|0,Bt=Bt+Math.imul(qt,_r)|0,Bt=Bt+Math.imul(Gt,Qr)|0,Dt=Dt+Math.imul(Gt,_r)|0,$t=$t+Math.imul(tr,r0)|0,Bt=Bt+Math.imul(tr,Tr)|0,Bt=Bt+Math.imul(Xt,r0)|0,Dt=Dt+Math.imul(Xt,Tr)|0;var u0=(ht+$t|0)+((Bt&8191)<<13)|0;ht=(Dt+(Bt>>>13)|0)+(u0>>>26)|0,u0&=67108863,$t=Math.imul(Pr,Jr),Bt=Math.imul(Pr,wr),Bt=Bt+Math.imul(br,Jr)|0,Dt=Math.imul(br,wr),$t=$t+Math.imul(gr,Yr)|0,Bt=Bt+Math.imul(gr,Cr)|0,Bt=Bt+Math.imul(cr,Yr)|0,Dt=Dt+Math.imul(cr,Cr)|0,$t=$t+Math.imul(Yt,Qr)|0,Bt=Bt+Math.imul(Yt,_r)|0,Bt=Bt+Math.imul(Kt,Qr)|0,Dt=Dt+Math.imul(Kt,_r)|0,$t=$t+Math.imul(qt,r0)|0,Bt=Bt+Math.imul(qt,Tr)|0,Bt=Bt+Math.imul(Gt,r0)|0,Dt=Dt+Math.imul(Gt,Tr)|0,$t=$t+Math.imul(tr,n0)|0,Bt=Bt+Math.imul(tr,Rr)|0,Bt=Bt+Math.imul(Xt,n0)|0,Dt=Dt+Math.imul(Xt,Rr)|0;var d0=(ht+$t|0)+((Bt&8191)<<13)|0;ht=(Dt+(Bt>>>13)|0)+(d0>>>26)|0,d0&=67108863,$t=Math.imul(Kr,Jr),Bt=Math.imul(Kr,wr),Bt=Bt+Math.imul(xr,Jr)|0,Dt=Math.imul(xr,wr),$t=$t+Math.imul(Pr,Yr)|0,Bt=Bt+Math.imul(Pr,Cr)|0,Bt=Bt+Math.imul(br,Yr)|0,Dt=Dt+Math.imul(br,Cr)|0,$t=$t+Math.imul(gr,Qr)|0,Bt=Bt+Math.imul(gr,_r)|0,Bt=Bt+Math.imul(cr,Qr)|0,Dt=Dt+Math.imul(cr,_r)|0,$t=$t+Math.imul(Yt,r0)|0,Bt=Bt+Math.imul(Yt,Tr)|0,Bt=Bt+Math.imul(Kt,r0)|0,Dt=Dt+Math.imul(Kt,Tr)|0,$t=$t+Math.imul(qt,n0)|0,Bt=Bt+Math.imul(qt,Rr)|0,Bt=Bt+Math.imul(Gt,n0)|0,Dt=Dt+Math.imul(Gt,Rr)|0,$t=$t+Math.imul(tr,i0)|0,Bt=Bt+Math.imul(tr,Br)|0,Bt=Bt+Math.imul(Xt,i0)|0,Dt=Dt+Math.imul(Xt,Br)|0;var h0=(ht+$t|0)+((Bt&8191)<<13)|0;ht=(Dt+(Bt>>>13)|0)+(h0>>>26)|0,h0&=67108863,$t=Math.imul(Zr,Jr),Bt=Math.imul(Zr,wr),Bt=Bt+Math.imul($r,Jr)|0,Dt=Math.imul($r,wr),$t=$t+Math.imul(Kr,Yr)|0,Bt=Bt+Math.imul(Kr,Cr)|0,Bt=Bt+Math.imul(xr,Yr)|0,Dt=Dt+Math.imul(xr,Cr)|0,$t=$t+Math.imul(Pr,Qr)|0,Bt=Bt+Math.imul(Pr,_r)|0,Bt=Bt+Math.imul(br,Qr)|0,Dt=Dt+Math.imul(br,_r)|0,$t=$t+Math.imul(gr,r0)|0,Bt=Bt+Math.imul(gr,Tr)|0,Bt=Bt+Math.imul(cr,r0)|0,Dt=Dt+Math.imul(cr,Tr)|0,$t=$t+Math.imul(Yt,n0)|0,Bt=Bt+Math.imul(Yt,Rr)|0,Bt=Bt+Math.imul(Kt,n0)|0,Dt=Dt+Math.imul(Kt,Rr)|0,$t=$t+Math.imul(qt,i0)|0,Bt=Bt+Math.imul(qt,Br)|0,Bt=Bt+Math.imul(Gt,i0)|0,Dt=Dt+Math.imul(Gt,Br)|0,$t=$t+Math.imul(tr,a0)|0,Bt=Bt+Math.imul(tr,kr)|0,Bt=Bt+Math.imul(Xt,a0)|0,Dt=Dt+Math.imul(Xt,kr)|0;var p0=(ht+$t|0)+((Bt&8191)<<13)|0;ht=(Dt+(Bt>>>13)|0)+(p0>>>26)|0,p0&=67108863,$t=Math.imul(Xr,Jr),Bt=Math.imul(Xr,wr),Bt=Bt+Math.imul(Qt,Jr)|0,Dt=Math.imul(Qt,wr),$t=$t+Math.imul(Zr,Yr)|0,Bt=Bt+Math.imul(Zr,Cr)|0,Bt=Bt+Math.imul($r,Yr)|0,Dt=Dt+Math.imul($r,Cr)|0,$t=$t+Math.imul(Kr,Qr)|0,Bt=Bt+Math.imul(Kr,_r)|0,Bt=Bt+Math.imul(xr,Qr)|0,Dt=Dt+Math.imul(xr,_r)|0,$t=$t+Math.imul(Pr,r0)|0,Bt=Bt+Math.imul(Pr,Tr)|0,Bt=Bt+Math.imul(br,r0)|0,Dt=Dt+Math.imul(br,Tr)|0,$t=$t+Math.imul(gr,n0)|0,Bt=Bt+Math.imul(gr,Rr)|0,Bt=Bt+Math.imul(cr,n0)|0,Dt=Dt+Math.imul(cr,Rr)|0,$t=$t+Math.imul(Yt,i0)|0,Bt=Bt+Math.imul(Yt,Br)|0,Bt=Bt+Math.imul(Kt,i0)|0,Dt=Dt+Math.imul(Kt,Br)|0,$t=$t+Math.imul(qt,a0)|0,Bt=Bt+Math.imul(qt,kr)|0,Bt=Bt+Math.imul(Gt,a0)|0,Dt=Dt+Math.imul(Gt,kr)|0,$t=$t+Math.imul(tr,s0)|0,Bt=Bt+Math.imul(tr,Ir)|0,Bt=Bt+Math.imul(Xt,s0)|0,Dt=Dt+Math.imul(Xt,Ir)|0;var b0=(ht+$t|0)+((Bt&8191)<<13)|0;ht=(Dt+(Bt>>>13)|0)+(b0>>>26)|0,b0&=67108863,$t=Math.imul(Wt,Jr),Bt=Math.imul(Wt,wr),Bt=Bt+Math.imul(nr,Jr)|0,Dt=Math.imul(nr,wr),$t=$t+Math.imul(Xr,Yr)|0,Bt=Bt+Math.imul(Xr,Cr)|0,Bt=Bt+Math.imul(Qt,Yr)|0,Dt=Dt+Math.imul(Qt,Cr)|0,$t=$t+Math.imul(Zr,Qr)|0,Bt=Bt+Math.imul(Zr,_r)|0,Bt=Bt+Math.imul($r,Qr)|0,Dt=Dt+Math.imul($r,_r)|0,$t=$t+Math.imul(Kr,r0)|0,Bt=Bt+Math.imul(Kr,Tr)|0,Bt=Bt+Math.imul(xr,r0)|0,Dt=Dt+Math.imul(xr,Tr)|0,$t=$t+Math.imul(Pr,n0)|0,Bt=Bt+Math.imul(Pr,Rr)|0,Bt=Bt+Math.imul(br,n0)|0,Dt=Dt+Math.imul(br,Rr)|0,$t=$t+Math.imul(gr,i0)|0,Bt=Bt+Math.imul(gr,Br)|0,Bt=Bt+Math.imul(cr,i0)|0,Dt=Dt+Math.imul(cr,Br)|0,$t=$t+Math.imul(Yt,a0)|0,Bt=Bt+Math.imul(Yt,kr)|0,Bt=Bt+Math.imul(Kt,a0)|0,Dt=Dt+Math.imul(Kt,kr)|0,$t=$t+Math.imul(qt,s0)|0,Bt=Bt+Math.imul(qt,Ir)|0,Bt=Bt+Math.imul(Gt,s0)|0,Dt=Dt+Math.imul(Gt,Ir)|0,$t=$t+Math.imul(tr,o0)|0,Bt=Bt+Math.imul(tr,Nr)|0,Bt=Bt+Math.imul(Xt,o0)|0,Dt=Dt+Math.imul(Xt,Nr)|0;var m0=(ht+$t|0)+((Bt&8191)<<13)|0;ht=(Dt+(Bt>>>13)|0)+(m0>>>26)|0,m0&=67108863,$t=Math.imul(Er,Jr),Bt=Math.imul(Er,wr),Bt=Bt+Math.imul(pr,Jr)|0,Dt=Math.imul(pr,wr),$t=$t+Math.imul(Wt,Yr)|0,Bt=Bt+Math.imul(Wt,Cr)|0,Bt=Bt+Math.imul(nr,Yr)|0,Dt=Dt+Math.imul(nr,Cr)|0,$t=$t+Math.imul(Xr,Qr)|0,Bt=Bt+Math.imul(Xr,_r)|0,Bt=Bt+Math.imul(Qt,Qr)|0,Dt=Dt+Math.imul(Qt,_r)|0,$t=$t+Math.imul(Zr,r0)|0,Bt=Bt+Math.imul(Zr,Tr)|0,Bt=Bt+Math.imul($r,r0)|0,Dt=Dt+Math.imul($r,Tr)|0,$t=$t+Math.imul(Kr,n0)|0,Bt=Bt+Math.imul(Kr,Rr)|0,Bt=Bt+Math.imul(xr,n0)|0,Dt=Dt+Math.imul(xr,Rr)|0,$t=$t+Math.imul(Pr,i0)|0,Bt=Bt+Math.imul(Pr,Br)|0,Bt=Bt+Math.imul(br,i0)|0,Dt=Dt+Math.imul(br,Br)|0,$t=$t+Math.imul(gr,a0)|0,Bt=Bt+Math.imul(gr,kr)|0,Bt=Bt+Math.imul(cr,a0)|0,Dt=Dt+Math.imul(cr,kr)|0,$t=$t+Math.imul(Yt,s0)|0,Bt=Bt+Math.imul(Yt,Ir)|0,Bt=Bt+Math.imul(Kt,s0)|0,Dt=Dt+Math.imul(Kt,Ir)|0,$t=$t+Math.imul(qt,o0)|0,Bt=Bt+Math.imul(qt,Nr)|0,Bt=Bt+Math.imul(Gt,o0)|0,Dt=Dt+Math.imul(Gt,Nr)|0,$t=$t+Math.imul(tr,e0)|0,Bt=Bt+Math.imul(tr,t0)|0,Bt=Bt+Math.imul(Xt,e0)|0,Dt=Dt+Math.imul(Xt,t0)|0;var g0=(ht+$t|0)+((Bt&8191)<<13)|0;ht=(Dt+(Bt>>>13)|0)+(g0>>>26)|0,g0&=67108863,$t=Math.imul(Er,Yr),Bt=Math.imul(Er,Cr),Bt=Bt+Math.imul(pr,Yr)|0,Dt=Math.imul(pr,Cr),$t=$t+Math.imul(Wt,Qr)|0,Bt=Bt+Math.imul(Wt,_r)|0,Bt=Bt+Math.imul(nr,Qr)|0,Dt=Dt+Math.imul(nr,_r)|0,$t=$t+Math.imul(Xr,r0)|0,Bt=Bt+Math.imul(Xr,Tr)|0,Bt=Bt+Math.imul(Qt,r0)|0,Dt=Dt+Math.imul(Qt,Tr)|0,$t=$t+Math.imul(Zr,n0)|0,Bt=Bt+Math.imul(Zr,Rr)|0,Bt=Bt+Math.imul($r,n0)|0,Dt=Dt+Math.imul($r,Rr)|0,$t=$t+Math.imul(Kr,i0)|0,Bt=Bt+Math.imul(Kr,Br)|0,Bt=Bt+Math.imul(xr,i0)|0,Dt=Dt+Math.imul(xr,Br)|0,$t=$t+Math.imul(Pr,a0)|0,Bt=Bt+Math.imul(Pr,kr)|0,Bt=Bt+Math.imul(br,a0)|0,Dt=Dt+Math.imul(br,kr)|0,$t=$t+Math.imul(gr,s0)|0,Bt=Bt+Math.imul(gr,Ir)|0,Bt=Bt+Math.imul(cr,s0)|0,Dt=Dt+Math.imul(cr,Ir)|0,$t=$t+Math.imul(Yt,o0)|0,Bt=Bt+Math.imul(Yt,Nr)|0,Bt=Bt+Math.imul(Kt,o0)|0,Dt=Dt+Math.imul(Kt,Nr)|0,$t=$t+Math.imul(qt,e0)|0,Bt=Bt+Math.imul(qt,t0)|0,Bt=Bt+Math.imul(Gt,e0)|0,Dt=Dt+Math.imul(Gt,t0)|0;var y0=(ht+$t|0)+((Bt&8191)<<13)|0;ht=(Dt+(Bt>>>13)|0)+(y0>>>26)|0,y0&=67108863,$t=Math.imul(Er,Qr),Bt=Math.imul(Er,_r),Bt=Bt+Math.imul(pr,Qr)|0,Dt=Math.imul(pr,_r),$t=$t+Math.imul(Wt,r0)|0,Bt=Bt+Math.imul(Wt,Tr)|0,Bt=Bt+Math.imul(nr,r0)|0,Dt=Dt+Math.imul(nr,Tr)|0,$t=$t+Math.imul(Xr,n0)|0,Bt=Bt+Math.imul(Xr,Rr)|0,Bt=Bt+Math.imul(Qt,n0)|0,Dt=Dt+Math.imul(Qt,Rr)|0,$t=$t+Math.imul(Zr,i0)|0,Bt=Bt+Math.imul(Zr,Br)|0,Bt=Bt+Math.imul($r,i0)|0,Dt=Dt+Math.imul($r,Br)|0,$t=$t+Math.imul(Kr,a0)|0,Bt=Bt+Math.imul(Kr,kr)|0,Bt=Bt+Math.imul(xr,a0)|0,Dt=Dt+Math.imul(xr,kr)|0,$t=$t+Math.imul(Pr,s0)|0,Bt=Bt+Math.imul(Pr,Ir)|0,Bt=Bt+Math.imul(br,s0)|0,Dt=Dt+Math.imul(br,Ir)|0,$t=$t+Math.imul(gr,o0)|0,Bt=Bt+Math.imul(gr,Nr)|0,Bt=Bt+Math.imul(cr,o0)|0,Dt=Dt+Math.imul(cr,Nr)|0,$t=$t+Math.imul(Yt,e0)|0,Bt=Bt+Math.imul(Yt,t0)|0,Bt=Bt+Math.imul(Kt,e0)|0,Dt=Dt+Math.imul(Kt,t0)|0;var v0=(ht+$t|0)+((Bt&8191)<<13)|0;ht=(Dt+(Bt>>>13)|0)+(v0>>>26)|0,v0&=67108863,$t=Math.imul(Er,r0),Bt=Math.imul(Er,Tr),Bt=Bt+Math.imul(pr,r0)|0,Dt=Math.imul(pr,Tr),$t=$t+Math.imul(Wt,n0)|0,Bt=Bt+Math.imul(Wt,Rr)|0,Bt=Bt+Math.imul(nr,n0)|0,Dt=Dt+Math.imul(nr,Rr)|0,$t=$t+Math.imul(Xr,i0)|0,Bt=Bt+Math.imul(Xr,Br)|0,Bt=Bt+Math.imul(Qt,i0)|0,Dt=Dt+Math.imul(Qt,Br)|0,$t=$t+Math.imul(Zr,a0)|0,Bt=Bt+Math.imul(Zr,kr)|0,Bt=Bt+Math.imul($r,a0)|0,Dt=Dt+Math.imul($r,kr)|0,$t=$t+Math.imul(Kr,s0)|0,Bt=Bt+Math.imul(Kr,Ir)|0,Bt=Bt+Math.imul(xr,s0)|0,Dt=Dt+Math.imul(xr,Ir)|0,$t=$t+Math.imul(Pr,o0)|0,Bt=Bt+Math.imul(Pr,Nr)|0,Bt=Bt+Math.imul(br,o0)|0,Dt=Dt+Math.imul(br,Nr)|0,$t=$t+Math.imul(gr,e0)|0,Bt=Bt+Math.imul(gr,t0)|0,Bt=Bt+Math.imul(cr,e0)|0,Dt=Dt+Math.imul(cr,t0)|0;var w0=(ht+$t|0)+((Bt&8191)<<13)|0;ht=(Dt+(Bt>>>13)|0)+(w0>>>26)|0,w0&=67108863,$t=Math.imul(Er,n0),Bt=Math.imul(Er,Rr),Bt=Bt+Math.imul(pr,n0)|0,Dt=Math.imul(pr,Rr),$t=$t+Math.imul(Wt,i0)|0,Bt=Bt+Math.imul(Wt,Br)|0,Bt=Bt+Math.imul(nr,i0)|0,Dt=Dt+Math.imul(nr,Br)|0,$t=$t+Math.imul(Xr,a0)|0,Bt=Bt+Math.imul(Xr,kr)|0,Bt=Bt+Math.imul(Qt,a0)|0,Dt=Dt+Math.imul(Qt,kr)|0,$t=$t+Math.imul(Zr,s0)|0,Bt=Bt+Math.imul(Zr,Ir)|0,Bt=Bt+Math.imul($r,s0)|0,Dt=Dt+Math.imul($r,Ir)|0,$t=$t+Math.imul(Kr,o0)|0,Bt=Bt+Math.imul(Kr,Nr)|0,Bt=Bt+Math.imul(xr,o0)|0,Dt=Dt+Math.imul(xr,Nr)|0,$t=$t+Math.imul(Pr,e0)|0,Bt=Bt+Math.imul(Pr,t0)|0,Bt=Bt+Math.imul(br,e0)|0,Dt=Dt+Math.imul(br,t0)|0;var x0=(ht+$t|0)+((Bt&8191)<<13)|0;ht=(Dt+(Bt>>>13)|0)+(x0>>>26)|0,x0&=67108863,$t=Math.imul(Er,i0),Bt=Math.imul(Er,Br),Bt=Bt+Math.imul(pr,i0)|0,Dt=Math.imul(pr,Br),$t=$t+Math.imul(Wt,a0)|0,Bt=Bt+Math.imul(Wt,kr)|0,Bt=Bt+Math.imul(nr,a0)|0,Dt=Dt+Math.imul(nr,kr)|0,$t=$t+Math.imul(Xr,s0)|0,Bt=Bt+Math.imul(Xr,Ir)|0,Bt=Bt+Math.imul(Qt,s0)|0,Dt=Dt+Math.imul(Qt,Ir)|0,$t=$t+Math.imul(Zr,o0)|0,Bt=Bt+Math.imul(Zr,Nr)|0,Bt=Bt+Math.imul($r,o0)|0,Dt=Dt+Math.imul($r,Nr)|0,$t=$t+Math.imul(Kr,e0)|0,Bt=Bt+Math.imul(Kr,t0)|0,Bt=Bt+Math.imul(xr,e0)|0,Dt=Dt+Math.imul(xr,t0)|0;var E0=(ht+$t|0)+((Bt&8191)<<13)|0;ht=(Dt+(Bt>>>13)|0)+(E0>>>26)|0,E0&=67108863,$t=Math.imul(Er,a0),Bt=Math.imul(Er,kr),Bt=Bt+Math.imul(pr,a0)|0,Dt=Math.imul(pr,kr),$t=$t+Math.imul(Wt,s0)|0,Bt=Bt+Math.imul(Wt,Ir)|0,Bt=Bt+Math.imul(nr,s0)|0,Dt=Dt+Math.imul(nr,Ir)|0,$t=$t+Math.imul(Xr,o0)|0,Bt=Bt+Math.imul(Xr,Nr)|0,Bt=Bt+Math.imul(Qt,o0)|0,Dt=Dt+Math.imul(Qt,Nr)|0,$t=$t+Math.imul(Zr,e0)|0,Bt=Bt+Math.imul(Zr,t0)|0,Bt=Bt+Math.imul($r,e0)|0,Dt=Dt+Math.imul($r,t0)|0;var $0=(ht+$t|0)+((Bt&8191)<<13)|0;ht=(Dt+(Bt>>>13)|0)+($0>>>26)|0,$0&=67108863,$t=Math.imul(Er,s0),Bt=Math.imul(Er,Ir),Bt=Bt+Math.imul(pr,s0)|0,Dt=Math.imul(pr,Ir),$t=$t+Math.imul(Wt,o0)|0,Bt=Bt+Math.imul(Wt,Nr)|0,Bt=Bt+Math.imul(nr,o0)|0,Dt=Dt+Math.imul(nr,Nr)|0,$t=$t+Math.imul(Xr,e0)|0,Bt=Bt+Math.imul(Xr,t0)|0,Bt=Bt+Math.imul(Qt,e0)|0,Dt=Dt+Math.imul(Qt,t0)|0;var M0=(ht+$t|0)+((Bt&8191)<<13)|0;ht=(Dt+(Bt>>>13)|0)+(M0>>>26)|0,M0&=67108863,$t=Math.imul(Er,o0),Bt=Math.imul(Er,Nr),Bt=Bt+Math.imul(pr,o0)|0,Dt=Math.imul(pr,Nr),$t=$t+Math.imul(Wt,e0)|0,Bt=Bt+Math.imul(Wt,t0)|0,Bt=Bt+Math.imul(nr,e0)|0,Dt=Dt+Math.imul(nr,t0)|0;var Oo=(ht+$t|0)+((Bt&8191)<<13)|0;ht=(Dt+(Bt>>>13)|0)+(Oo>>>26)|0,Oo&=67108863,$t=Math.imul(Er,e0),Bt=Math.imul(Er,t0),Bt=Bt+Math.imul(pr,e0)|0,Dt=Math.imul(pr,t0);var Do=(ht+$t|0)+((Bt&8191)<<13)|0;return ht=(Dt+(Bt>>>13)|0)+(Do>>>26)|0,Do&=67108863,xt[0]=f0,xt[1]=c0,xt[2]=l0,xt[3]=u0,xt[4]=d0,xt[5]=h0,xt[6]=p0,xt[7]=b0,xt[8]=m0,xt[9]=g0,xt[10]=y0,xt[11]=v0,xt[12]=w0,xt[13]=x0,xt[14]=E0,xt[15]=$0,xt[16]=M0,xt[17]=Oo,xt[18]=Do,ht!==0&&(xt[19]=ht,Et.length++),Et};Math.imul||(Nt=Ot);function Ft(mt,yt,vt){vt.negative=yt.negative^mt.negative,vt.length=mt.length+yt.length;for(var Et=0,At=0,Pt=0;Pt>>26)|0,At+=xt>>>26,xt&=67108863}vt.words[Pt]=ht,Et=xt,xt=At}return Et!==0?vt.words[Pt]=Et:vt.length--,vt._strip()}function jt(mt,yt,vt){return Ft(mt,yt,vt)}tt.prototype.mulTo=function(yt,vt){var Et,At=this.length+yt.length;return this.length===10&&yt.length===10?Et=Nt(this,yt,vt):At<63?Et=Ot(this,yt,vt):At<1024?Et=Ft(this,yt,vt):Et=jt(this,yt,vt),Et},tt.prototype.mul=function(yt){var vt=new tt(null);return vt.words=new Array(this.length+yt.length),this.mulTo(yt,vt)},tt.prototype.mulf=function(yt){var vt=new tt(null);return vt.words=new Array(this.length+yt.length),jt(this,yt,vt)},tt.prototype.imul=function(yt){return this.clone().mulTo(yt,this)},tt.prototype.imuln=function(yt){var vt=yt<0;vt&&(yt=-yt),et(typeof yt=="number"),et(yt<67108864);for(var Et=0,At=0;At>=26,Et+=Pt/67108864|0,Et+=xt>>>26,this.words[At]=xt&67108863}return Et!==0&&(this.words[At]=Et,this.length++),vt?this.ineg():this},tt.prototype.muln=function(yt){return this.clone().imuln(yt)},tt.prototype.sqr=function(){return this.mul(this)},tt.prototype.isqr=function(){return this.imul(this.clone())},tt.prototype.pow=function(yt){var vt=Lt(yt);if(vt.length===0)return new tt(1);for(var Et=this,At=0;At=0);var vt=yt%26,Et=(yt-vt)/26,At=67108863>>>26-vt<<26-vt,Pt;if(vt!==0){var xt=0;for(Pt=0;Pt>>26-vt}xt&&(this.words[Pt]=xt,this.length++)}if(Et!==0){for(Pt=this.length-1;Pt>=0;Pt--)this.words[Pt+Et]=this.words[Pt];for(Pt=0;Pt=0);var At;vt?At=(vt-vt%26)/26:At=0;var Pt=yt%26,xt=Math.min((yt-Pt)/26,this.length),ht=67108863^67108863>>>Pt<xt)for(this.length-=xt,Bt=0;Bt=0&&(Dt!==0||Bt>=At);Bt--){var Ht=this.words[Bt]|0;this.words[Bt]=Dt<<26-Pt|Ht>>>Pt,Dt=Ht&ht}return $t&&Dt!==0&&($t.words[$t.length++]=Dt),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},tt.prototype.ishrn=function(yt,vt,Et){return et(this.negative===0),this.iushrn(yt,vt,Et)},tt.prototype.shln=function(yt){return this.clone().ishln(yt)},tt.prototype.ushln=function(yt){return this.clone().iushln(yt)},tt.prototype.shrn=function(yt){return this.clone().ishrn(yt)},tt.prototype.ushrn=function(yt){return this.clone().iushrn(yt)},tt.prototype.testn=function(yt){et(typeof yt=="number"&&yt>=0);var vt=yt%26,Et=(yt-vt)/26,At=1<=0);var vt=yt%26,Et=(yt-vt)/26;if(et(this.negative===0,"imaskn works only with positive numbers"),this.length<=Et)return this;if(vt!==0&&Et++,this.length=Math.min(Et,this.length),vt!==0){var At=67108863^67108863>>>vt<=67108864;vt++)this.words[vt]-=67108864,vt===this.length-1?this.words[vt+1]=1:this.words[vt+1]++;return this.length=Math.max(this.length,vt+1),this},tt.prototype.isubn=function(yt){if(et(typeof yt=="number"),et(yt<67108864),yt<0)return this.iaddn(-yt);if(this.negative!==0)return this.negative=0,this.iaddn(yt),this.negative=1,this;if(this.words[0]-=yt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var vt=0;vt>26)-($t/67108864|0),this.words[Pt+Et]=xt&67108863}for(;Pt>26,this.words[Pt+Et]=xt&67108863;if(ht===0)return this._strip();for(et(ht===-1),ht=0,Pt=0;Pt>26,this.words[Pt]=xt&67108863;return this.negative=1,this._strip()},tt.prototype._wordDiv=function(yt,vt){var Et=this.length-yt.length,At=this.clone(),Pt=yt,xt=Pt.words[Pt.length-1]|0,ht=this._countBits(xt);Et=26-ht,Et!==0&&(Pt=Pt.ushln(Et),At.iushln(Et),xt=Pt.words[Pt.length-1]|0);var $t=At.length-Pt.length,Bt;if(vt!=="mod"){Bt=new tt(null),Bt.length=$t+1,Bt.words=new Array(Bt.length);for(var Dt=0;Dt=0;tr--){var Xt=(At.words[Pt.length+tr]|0)*67108864+(At.words[Pt.length+tr-1]|0);for(Xt=Math.min(Xt/xt|0,67108863),At._ishlnsubmul(Pt,Xt,tr);At.negative!==0;)Xt--,At.negative=0,At._ishlnsubmul(Pt,1,tr),At.isZero()||(At.negative^=1);Bt&&(Bt.words[tr]=Xt)}return Bt&&Bt._strip(),At._strip(),vt!=="div"&&Et!==0&&At.iushrn(Et),{div:Bt||null,mod:At}},tt.prototype.divmod=function(yt,vt,Et){if(et(!yt.isZero()),this.isZero())return{div:new tt(0),mod:new tt(0)};var At,Pt,xt;return this.negative!==0&&yt.negative===0?(xt=this.neg().divmod(yt,vt),vt!=="mod"&&(At=xt.div.neg()),vt!=="div"&&(Pt=xt.mod.neg(),Et&&Pt.negative!==0&&Pt.iadd(yt)),{div:At,mod:Pt}):this.negative===0&&yt.negative!==0?(xt=this.divmod(yt.neg(),vt),vt!=="mod"&&(At=xt.div.neg()),{div:At,mod:xt.mod}):this.negative&yt.negative?(xt=this.neg().divmod(yt.neg(),vt),vt!=="div"&&(Pt=xt.mod.neg(),Et&&Pt.negative!==0&&Pt.isub(yt)),{div:xt.div,mod:Pt}):yt.length>this.length||this.cmp(yt)<0?{div:new tt(0),mod:this}:yt.length===1?vt==="div"?{div:this.divn(yt.words[0]),mod:null}:vt==="mod"?{div:null,mod:new tt(this.modrn(yt.words[0]))}:{div:this.divn(yt.words[0]),mod:new tt(this.modrn(yt.words[0]))}:this._wordDiv(yt,vt)},tt.prototype.div=function(yt){return this.divmod(yt,"div",!1).div},tt.prototype.mod=function(yt){return this.divmod(yt,"mod",!1).mod},tt.prototype.umod=function(yt){return this.divmod(yt,"mod",!0).mod},tt.prototype.divRound=function(yt){var vt=this.divmod(yt);if(vt.mod.isZero())return vt.div;var Et=vt.div.negative!==0?vt.mod.isub(yt):vt.mod,At=yt.ushrn(1),Pt=yt.andln(1),xt=Et.cmp(At);return xt<0||Pt===1&&xt===0?vt.div:vt.div.negative!==0?vt.div.isubn(1):vt.div.iaddn(1)},tt.prototype.modrn=function(yt){var vt=yt<0;vt&&(yt=-yt),et(yt<=67108863);for(var Et=(1<<26)%yt,At=0,Pt=this.length-1;Pt>=0;Pt--)At=(Et*At+(this.words[Pt]|0))%yt;return vt?-At:At},tt.prototype.modn=function(yt){return this.modrn(yt)},tt.prototype.idivn=function(yt){var vt=yt<0;vt&&(yt=-yt),et(yt<=67108863);for(var Et=0,At=this.length-1;At>=0;At--){var Pt=(this.words[At]|0)+Et*67108864;this.words[At]=Pt/yt|0,Et=Pt%yt}return this._strip(),vt?this.ineg():this},tt.prototype.divn=function(yt){return this.clone().idivn(yt)},tt.prototype.egcd=function(yt){et(yt.negative===0),et(!yt.isZero());var vt=this,Et=yt.clone();vt.negative!==0?vt=vt.umod(yt):vt=vt.clone();for(var At=new tt(1),Pt=new tt(0),xt=new tt(0),ht=new tt(1),$t=0;vt.isEven()&&Et.isEven();)vt.iushrn(1),Et.iushrn(1),++$t;for(var Bt=Et.clone(),Dt=vt.clone();!vt.isZero();){for(var Ht=0,tr=1;!(vt.words[0]&tr)&&Ht<26;++Ht,tr<<=1);if(Ht>0)for(vt.iushrn(Ht);Ht-- >0;)(At.isOdd()||Pt.isOdd())&&(At.iadd(Bt),Pt.isub(Dt)),At.iushrn(1),Pt.iushrn(1);for(var Xt=0,Ut=1;!(Et.words[0]&Ut)&&Xt<26;++Xt,Ut<<=1);if(Xt>0)for(Et.iushrn(Xt);Xt-- >0;)(xt.isOdd()||ht.isOdd())&&(xt.iadd(Bt),ht.isub(Dt)),xt.iushrn(1),ht.iushrn(1);vt.cmp(Et)>=0?(vt.isub(Et),At.isub(xt),Pt.isub(ht)):(Et.isub(vt),xt.isub(At),ht.isub(Pt))}return{a:xt,b:ht,gcd:Et.iushln($t)}},tt.prototype._invmp=function(yt){et(yt.negative===0),et(!yt.isZero());var vt=this,Et=yt.clone();vt.negative!==0?vt=vt.umod(yt):vt=vt.clone();for(var At=new tt(1),Pt=new tt(0),xt=Et.clone();vt.cmpn(1)>0&&Et.cmpn(1)>0;){for(var ht=0,$t=1;!(vt.words[0]&$t)&&ht<26;++ht,$t<<=1);if(ht>0)for(vt.iushrn(ht);ht-- >0;)At.isOdd()&&At.iadd(xt),At.iushrn(1);for(var Bt=0,Dt=1;!(Et.words[0]&Dt)&&Bt<26;++Bt,Dt<<=1);if(Bt>0)for(Et.iushrn(Bt);Bt-- >0;)Pt.isOdd()&&Pt.iadd(xt),Pt.iushrn(1);vt.cmp(Et)>=0?(vt.isub(Et),At.isub(Pt)):(Et.isub(vt),Pt.isub(At))}var Ht;return vt.cmpn(1)===0?Ht=At:Ht=Pt,Ht.cmpn(0)<0&&Ht.iadd(yt),Ht},tt.prototype.gcd=function(yt){if(this.isZero())return yt.abs();if(yt.isZero())return this.abs();var vt=this.clone(),Et=yt.clone();vt.negative=0,Et.negative=0;for(var At=0;vt.isEven()&&Et.isEven();At++)vt.iushrn(1),Et.iushrn(1);do{for(;vt.isEven();)vt.iushrn(1);for(;Et.isEven();)Et.iushrn(1);var Pt=vt.cmp(Et);if(Pt<0){var xt=vt;vt=Et,Et=xt}else if(Pt===0||Et.cmpn(1)===0)break;vt.isub(Et)}while(!0);return Et.iushln(At)},tt.prototype.invm=function(yt){return this.egcd(yt).a.umod(yt)},tt.prototype.isEven=function(){return(this.words[0]&1)===0},tt.prototype.isOdd=function(){return(this.words[0]&1)===1},tt.prototype.andln=function(yt){return this.words[0]&yt},tt.prototype.bincn=function(yt){et(typeof yt=="number");var vt=yt%26,Et=(yt-vt)/26,At=1<>>26,ht&=67108863,this.words[xt]=ht}return Pt!==0&&(this.words[xt]=Pt,this.length++),this},tt.prototype.isZero=function(){return this.length===1&&this.words[0]===0},tt.prototype.cmpn=function(yt){var vt=yt<0;if(this.negative!==0&&!vt)return-1;if(this.negative===0&&vt)return 1;this._strip();var Et;if(this.length>1)Et=1;else{vt&&(yt=-yt),et(yt<=67108863,"Number is too big");var At=this.words[0]|0;Et=At===yt?0:Atyt.length)return 1;if(this.length=0;Et--){var At=this.words[Et]|0,Pt=yt.words[Et]|0;if(At!==Pt){AtPt&&(vt=1);break}}return vt},tt.prototype.gtn=function(yt){return this.cmpn(yt)===1},tt.prototype.gt=function(yt){return this.cmp(yt)===1},tt.prototype.gten=function(yt){return this.cmpn(yt)>=0},tt.prototype.gte=function(yt){return this.cmp(yt)>=0},tt.prototype.ltn=function(yt){return this.cmpn(yt)===-1},tt.prototype.lt=function(yt){return this.cmp(yt)===-1},tt.prototype.lten=function(yt){return this.cmpn(yt)<=0},tt.prototype.lte=function(yt){return this.cmp(yt)<=0},tt.prototype.eqn=function(yt){return this.cmpn(yt)===0},tt.prototype.eq=function(yt){return this.cmp(yt)===0},tt.red=function(yt){return new Ct(yt)},tt.prototype.toRed=function(yt){return et(!this.red,"Already a number in reduction context"),et(this.negative===0,"red works only with positives"),yt.convertTo(this)._forceRed(yt)},tt.prototype.fromRed=function(){return et(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},tt.prototype._forceRed=function(yt){return this.red=yt,this},tt.prototype.forceRed=function(yt){return et(!this.red,"Already a number in reduction context"),this._forceRed(yt)},tt.prototype.redAdd=function(yt){return et(this.red,"redAdd works only with red numbers"),this.red.add(this,yt)},tt.prototype.redIAdd=function(yt){return et(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,yt)},tt.prototype.redSub=function(yt){return et(this.red,"redSub works only with red numbers"),this.red.sub(this,yt)},tt.prototype.redISub=function(yt){return et(this.red,"redISub works only with red numbers"),this.red.isub(this,yt)},tt.prototype.redShl=function(yt){return et(this.red,"redShl works only with red numbers"),this.red.shl(this,yt)},tt.prototype.redMul=function(yt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,yt),this.red.mul(this,yt)},tt.prototype.redIMul=function(yt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,yt),this.red.imul(this,yt)},tt.prototype.redSqr=function(){return et(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},tt.prototype.redISqr=function(){return et(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},tt.prototype.redSqrt=function(){return et(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},tt.prototype.redInvm=function(){return et(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},tt.prototype.redNeg=function(){return et(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},tt.prototype.redPow=function(yt){return et(this.red&&!yt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,yt)};var Vt={k256:null,p224:null,p192:null,p25519:null};function Jt(mt,yt){this.name=mt,this.p=new tt(yt,16),this.n=this.p.bitLength(),this.k=new tt(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Jt.prototype._tmp=function(){var yt=new tt(null);return yt.words=new Array(Math.ceil(this.n/13)),yt},Jt.prototype.ireduce=function(yt){var vt=yt,Et;do this.split(vt,this.tmp),vt=this.imulK(vt),vt=vt.iadd(this.tmp),Et=vt.bitLength();while(Et>this.n);var At=Et0?vt.isub(this.p):vt.strip!==void 0?vt.strip():vt._strip(),vt},Jt.prototype.split=function(yt,vt){yt.iushrn(this.n,0,vt)},Jt.prototype.imulK=function(yt){return yt.imul(this.k)};function ir(){Jt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}nt(ir,Jt),ir.prototype.split=function(yt,vt){for(var Et=4194303,At=Math.min(yt.length,9),Pt=0;Pt>>22,xt=ht}xt>>>=22,yt.words[Pt-10]=xt,xt===0&&yt.length>10?yt.length-=10:yt.length-=9},ir.prototype.imulK=function(yt){yt.words[yt.length]=0,yt.words[yt.length+1]=0,yt.length+=2;for(var vt=0,Et=0;Et>>=26,yt.words[Et]=Pt,vt=At}return vt!==0&&(yt.words[yt.length++]=vt),yt},tt._prime=function(yt){if(Vt[yt])return Vt[yt];var vt;if(yt==="k256")vt=new ir;else if(yt==="p224")vt=new rr;else if(yt==="p192")vt=new er;else if(yt==="p25519")vt=new lr;else throw new Error("Unknown prime "+yt);return Vt[yt]=vt,vt};function Ct(mt){if(typeof mt=="string"){var yt=tt._prime(mt);this.m=yt.p,this.prime=yt}else et(mt.gtn(1),"modulus must be greater than 1"),this.m=mt,this.prime=null}Ct.prototype._verify1=function(yt){et(yt.negative===0,"red works only with positives"),et(yt.red,"red works only with red numbers")},Ct.prototype._verify2=function(yt,vt){et((yt.negative|vt.negative)===0,"red works only with positives"),et(yt.red&&yt.red===vt.red,"red works only with red numbers")},Ct.prototype.imod=function(yt){return this.prime?this.prime.ireduce(yt)._forceRed(this):(Mt(yt,yt.umod(this.m)._forceRed(this)),yt)},Ct.prototype.neg=function(yt){return yt.isZero()?yt.clone():this.m.sub(yt)._forceRed(this)},Ct.prototype.add=function(yt,vt){this._verify2(yt,vt);var Et=yt.add(vt);return Et.cmp(this.m)>=0&&Et.isub(this.m),Et._forceRed(this)},Ct.prototype.iadd=function(yt,vt){this._verify2(yt,vt);var Et=yt.iadd(vt);return Et.cmp(this.m)>=0&&Et.isub(this.m),Et},Ct.prototype.sub=function(yt,vt){this._verify2(yt,vt);var Et=yt.sub(vt);return Et.cmpn(0)<0&&Et.iadd(this.m),Et._forceRed(this)},Ct.prototype.isub=function(yt,vt){this._verify2(yt,vt);var Et=yt.isub(vt);return Et.cmpn(0)<0&&Et.iadd(this.m),Et},Ct.prototype.shl=function(yt,vt){return this._verify1(yt),this.imod(yt.ushln(vt))},Ct.prototype.imul=function(yt,vt){return this._verify2(yt,vt),this.imod(yt.imul(vt))},Ct.prototype.mul=function(yt,vt){return this._verify2(yt,vt),this.imod(yt.mul(vt))},Ct.prototype.isqr=function(yt){return this.imul(yt,yt.clone())},Ct.prototype.sqr=function(yt){return this.mul(yt,yt)},Ct.prototype.sqrt=function(yt){if(yt.isZero())return yt.clone();var vt=this.m.andln(3);if(et(vt%2===1),vt===3){var Et=this.m.add(new tt(1)).iushrn(2);return this.pow(yt,Et)}for(var At=this.m.subn(1),Pt=0;!At.isZero()&&At.andln(1)===0;)Pt++,At.iushrn(1);et(!At.isZero());var xt=new tt(1).toRed(this),ht=xt.redNeg(),$t=this.m.subn(1).iushrn(1),Bt=this.m.bitLength();for(Bt=new tt(2*Bt*Bt).toRed(this);this.pow(Bt,$t).cmp(ht)!==0;)Bt.redIAdd(ht);for(var Dt=this.pow(Bt,At),Ht=this.pow(yt,At.addn(1).iushrn(1)),tr=this.pow(yt,At),Xt=Pt;tr.cmp(xt)!==0;){for(var Ut=tr,qt=0;Ut.cmp(xt)!==0;qt++)Ut=Ut.redSqr();et(qt=0;Pt--){for(var Dt=vt.words[Pt],Ht=Bt-1;Ht>=0;Ht--){var tr=Dt>>Ht&1;if(xt!==At[0]&&(xt=this.sqr(xt)),tr===0&&ht===0){$t=0;continue}ht<<=1,ht|=tr,$t++,!($t!==Et&&(Pt!==0||Ht!==0))&&(xt=this.mul(xt,At[ht]),$t=0,ht=0)}Bt=26}return xt},Ct.prototype.convertTo=function(yt){var vt=yt.umod(this.m);return vt===yt?vt.clone():vt},Ct.prototype.convertFrom=function(yt){var vt=yt.clone();return vt.red=null,vt},tt.mont=function(yt){return new dt(yt)};function dt(mt){Ct.call(this,mt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new tt(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)}nt(dt,Ct),dt.prototype.convertTo=function(yt){return this.imod(yt.ushln(this.shift))},dt.prototype.convertFrom=function(yt){var vt=this.imod(yt.mul(this.rinv));return vt.red=null,vt},dt.prototype.imul=function(yt,vt){if(yt.isZero()||vt.isZero())return yt.words[0]=0,yt.length=1,yt;var Et=yt.imul(vt),At=Et.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Pt=Et.isub(At).iushrn(this.shift),xt=Pt;return Pt.cmp(this.m)>=0?xt=Pt.isub(this.m):Pt.cmpn(0)<0&&(xt=Pt.iadd(this.m)),xt._forceRed(this)},dt.prototype.mul=function(yt,vt){if(yt.isZero()||vt.isZero())return new tt(0)._forceRed(this);var Et=yt.mul(vt),At=Et.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Pt=Et.isub(At).iushrn(this.shift),xt=Pt;return Pt.cmp(this.m)>=0?xt=Pt.isub(this.m):Pt.cmpn(0)<0&&(xt=Pt.iadd(this.m)),xt._forceRed(this)},dt.prototype.invm=function(yt){var vt=this.imod(yt._invmp(this.m).mul(this.r2));return vt._forceRed(this)}})(c,commonjsGlobal)})(bn$5);var bnExports$5=bn$5.exports,BN$h=bnExports$5,randomBytes$2=browserExports;function blind(c){var a=getr(c),d=a.toRed(BN$h.mont(c.modulus)).redPow(new BN$h(c.publicExponent)).fromRed();return{blinder:d,unblinder:a.invm(c.modulus)}}function getr(c){var a=c.modulus.byteLength(),d;do d=new BN$h(randomBytes$2(a));while(d.cmp(c.modulus)>=0||!d.umod(c.prime1)||!d.umod(c.prime2));return d}function crt$2(c,a){var d=blind(a),et=a.modulus.byteLength(),nt=new BN$h(c).mul(d.blinder).umod(a.modulus),tt=nt.toRed(BN$h.mont(a.prime1)),bt=nt.toRed(BN$h.mont(a.prime2)),gt=a.coefficient,wt=a.prime1,St=a.prime2,Mt=tt.redPow(a.exponent1).fromRed(),_t=bt.redPow(a.exponent2).fromRed(),Tt=Mt.isub(_t).imul(gt).umod(wt).imul(St);return _t.iadd(Tt).imul(d.unblinder).umod(a.modulus).toArrayLike(dist$2.Buffer,"be",et)}crt$2.getr=getr;var browserifyRsa=crt$2,elliptic$1={};const name$1="elliptic",version$3="6.5.5",description$1="EC cryptography",main$1="lib/elliptic.js",files$1=["lib"],scripts$1={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository$1={type:"git",url:"git@github.com:indutny/elliptic"},keywords$1=["EC","Elliptic","curve","Cryptography"],author$1="Fedor Indutny ",license$1="MIT",bugs$1={url:"https://github.com/indutny/elliptic/issues"},homepage$1="https://github.com/indutny/elliptic",devDependencies$1={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies$1={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},require$$0$1={name:name$1,version:version$3,description:description$1,main:main$1,files:files$1,scripts:scripts$1,repository:repository$1,keywords:keywords$1,author:author$1,license:license$1,bugs:bugs$1,homepage:homepage$1,devDependencies:devDependencies$1,dependencies:dependencies$1};var utils$y={},bn$4={exports:{}};bn$4.exports;(function(c){(function(a,d){function et(Ct,dt){if(!Ct)throw new Error(dt||"Assertion failed")}function nt(Ct,dt){Ct.super_=dt;var mt=function(){};mt.prototype=dt.prototype,Ct.prototype=new mt,Ct.prototype.constructor=Ct}function tt(Ct,dt,mt){if(tt.isBN(Ct))return Ct;this.negative=0,this.words=null,this.length=0,this.red=null,Ct!==null&&((dt==="le"||dt==="be")&&(mt=dt,dt=10),this._init(Ct||0,dt||10,mt||"be"))}typeof a=="object"?a.exports=tt:d.BN=tt,tt.BN=tt,tt.wordSize=26;var bt;try{typeof window<"u"&&typeof window.Buffer<"u"?bt=window.Buffer:bt=bufferPolyfill.Buffer}catch{}tt.isBN=function(dt){return dt instanceof tt?!0:dt!==null&&typeof dt=="object"&&dt.constructor.wordSize===tt.wordSize&&Array.isArray(dt.words)},tt.max=function(dt,mt){return dt.cmp(mt)>0?dt:mt},tt.min=function(dt,mt){return dt.cmp(mt)<0?dt:mt},tt.prototype._init=function(dt,mt,yt){if(typeof dt=="number")return this._initNumber(dt,mt,yt);if(typeof dt=="object")return this._initArray(dt,mt,yt);mt==="hex"&&(mt=16),et(mt===(mt|0)&&mt>=2&&mt<=36),dt=dt.toString().replace(/\s+/g,"");var vt=0;dt[0]==="-"&&(vt++,this.negative=1),vt=0;vt-=3)At=dt[vt]|dt[vt-1]<<8|dt[vt-2]<<16,this.words[Et]|=At<>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,Et++);else if(yt==="le")for(vt=0,Et=0;vt>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,Et++);return this.strip()};function gt(Ct,dt){var mt=Ct.charCodeAt(dt);return mt>=65&&mt<=70?mt-55:mt>=97&&mt<=102?mt-87:mt-48&15}function wt(Ct,dt,mt){var yt=gt(Ct,mt);return mt-1>=dt&&(yt|=gt(Ct,mt-1)<<4),yt}tt.prototype._parseHex=function(dt,mt,yt){this.length=Math.ceil((dt.length-mt)/6),this.words=new Array(this.length);for(var vt=0;vt=mt;vt-=2)Pt=wt(dt,mt,vt)<=18?(Et-=18,At+=1,this.words[At]|=Pt>>>26):Et+=8;else{var xt=dt.length-mt;for(vt=xt%2===0?mt+1:mt;vt=18?(Et-=18,At+=1,this.words[At]|=Pt>>>26):Et+=8}this.strip()};function St(Ct,dt,mt,yt){for(var vt=0,Et=Math.min(Ct.length,mt),At=dt;At=49?vt+=Pt-49+10:Pt>=17?vt+=Pt-17+10:vt+=Pt}return vt}tt.prototype._parseBase=function(dt,mt,yt){this.words=[0],this.length=1;for(var vt=0,Et=1;Et<=67108863;Et*=mt)vt++;vt--,Et=Et/mt|0;for(var At=dt.length-yt,Pt=At%vt,xt=Math.min(At,At-Pt)+yt,ht=0,$t=yt;$t1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},tt.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},tt.prototype.inspect=function(){return(this.red?""};var Mt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],_t=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Tt=[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];tt.prototype.toString=function(dt,mt){dt=dt||10,mt=mt|0||1;var yt;if(dt===16||dt==="hex"){yt="";for(var vt=0,Et=0,At=0;At>>24-vt&16777215,Et!==0||At!==this.length-1?yt=Mt[6-xt.length]+xt+yt:yt=xt+yt,vt+=2,vt>=26&&(vt-=26,At--)}for(Et!==0&&(yt=Et.toString(16)+yt);yt.length%mt!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}if(dt===(dt|0)&&dt>=2&&dt<=36){var ht=_t[dt],$t=Tt[dt];yt="";var Bt=this.clone();for(Bt.negative=0;!Bt.isZero();){var Dt=Bt.modn($t).toString(dt);Bt=Bt.idivn($t),Bt.isZero()?yt=Dt+yt:yt=Mt[ht-Dt.length]+Dt+yt}for(this.isZero()&&(yt="0"+yt);yt.length%mt!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}et(!1,"Base should be between 2 and 36")},tt.prototype.toNumber=function(){var dt=this.words[0];return this.length===2?dt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?dt+=4503599627370496+this.words[1]*67108864:this.length>2&&et(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-dt:dt},tt.prototype.toJSON=function(){return this.toString(16)},tt.prototype.toBuffer=function(dt,mt){return et(typeof bt<"u"),this.toArrayLike(bt,dt,mt)},tt.prototype.toArray=function(dt,mt){return this.toArrayLike(Array,dt,mt)},tt.prototype.toArrayLike=function(dt,mt,yt){var vt=this.byteLength(),Et=yt||Math.max(1,vt);et(vt<=Et,"byte array longer than desired length"),et(Et>0,"Requested array length <= 0"),this.strip();var At=mt==="le",Pt=new dt(Et),xt,ht,$t=this.clone();if(At){for(ht=0;!$t.isZero();ht++)xt=$t.andln(255),$t.iushrn(8),Pt[ht]=xt;for(;ht=4096&&(yt+=13,mt>>>=13),mt>=64&&(yt+=7,mt>>>=7),mt>=8&&(yt+=4,mt>>>=4),mt>=2&&(yt+=2,mt>>>=2),yt+mt},tt.prototype._zeroBits=function(dt){if(dt===0)return 26;var mt=dt,yt=0;return mt&8191||(yt+=13,mt>>>=13),mt&127||(yt+=7,mt>>>=7),mt&15||(yt+=4,mt>>>=4),mt&3||(yt+=2,mt>>>=2),mt&1||yt++,yt},tt.prototype.bitLength=function(){var dt=this.words[this.length-1],mt=this._countBits(dt);return(this.length-1)*26+mt};function Rt(Ct){for(var dt=new Array(Ct.bitLength()),mt=0;mt>>vt}return dt}tt.prototype.zeroBits=function(){if(this.isZero())return 0;for(var dt=0,mt=0;mtdt.length?this.clone().ior(dt):dt.clone().ior(this)},tt.prototype.uor=function(dt){return this.length>dt.length?this.clone().iuor(dt):dt.clone().iuor(this)},tt.prototype.iuand=function(dt){var mt;this.length>dt.length?mt=dt:mt=this;for(var yt=0;ytdt.length?this.clone().iand(dt):dt.clone().iand(this)},tt.prototype.uand=function(dt){return this.length>dt.length?this.clone().iuand(dt):dt.clone().iuand(this)},tt.prototype.iuxor=function(dt){var mt,yt;this.length>dt.length?(mt=this,yt=dt):(mt=dt,yt=this);for(var vt=0;vtdt.length?this.clone().ixor(dt):dt.clone().ixor(this)},tt.prototype.uxor=function(dt){return this.length>dt.length?this.clone().iuxor(dt):dt.clone().iuxor(this)},tt.prototype.inotn=function(dt){et(typeof dt=="number"&&dt>=0);var mt=Math.ceil(dt/26)|0,yt=dt%26;this._expand(mt),yt>0&&mt--;for(var vt=0;vt0&&(this.words[vt]=~this.words[vt]&67108863>>26-yt),this.strip()},tt.prototype.notn=function(dt){return this.clone().inotn(dt)},tt.prototype.setn=function(dt,mt){et(typeof dt=="number"&&dt>=0);var yt=dt/26|0,vt=dt%26;return this._expand(yt+1),mt?this.words[yt]=this.words[yt]|1<dt.length?(yt=this,vt=dt):(yt=dt,vt=this);for(var Et=0,At=0;At>>26;for(;Et!==0&&At>>26;if(this.length=yt.length,Et!==0)this.words[this.length]=Et,this.length++;else if(yt!==this)for(;Atdt.length?this.clone().iadd(dt):dt.clone().iadd(this)},tt.prototype.isub=function(dt){if(dt.negative!==0){dt.negative=0;var mt=this.iadd(dt);return dt.negative=1,mt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(dt),this.negative=1,this._normSign();var yt=this.cmp(dt);if(yt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var vt,Et;yt>0?(vt=this,Et=dt):(vt=dt,Et=this);for(var At=0,Pt=0;Pt>26,this.words[Pt]=mt&67108863;for(;At!==0&&Pt>26,this.words[Pt]=mt&67108863;if(At===0&&Pt>>26,Bt=xt&67108863,Dt=Math.min(ht,dt.length-1),Ht=Math.max(0,ht-Ct.length+1);Ht<=Dt;Ht++){var tr=ht-Ht|0;vt=Ct.words[tr]|0,Et=dt.words[Ht]|0,At=vt*Et+Bt,$t+=At/67108864|0,Bt=At&67108863}mt.words[ht]=Bt|0,xt=$t|0}return xt!==0?mt.words[ht]=xt|0:mt.length--,mt.strip()}var It=function(dt,mt,yt){var vt=dt.words,Et=mt.words,At=yt.words,Pt=0,xt,ht,$t,Bt=vt[0]|0,Dt=Bt&8191,Ht=Bt>>>13,tr=vt[1]|0,Xt=tr&8191,Ut=tr>>>13,qt=vt[2]|0,Gt=qt&8191,Zt=qt>>>13,Yt=vt[3]|0,Kt=Yt&8191,ar=Yt>>>13,gr=vt[4]|0,cr=gr&8191,ur=gr>>>13,Pr=vt[5]|0,br=Pr&8191,dr=Pr>>>13,Kr=vt[6]|0,xr=Kr&8191,Sr=Kr>>>13,Zr=vt[7]|0,$r=Zr&8191,Mr=Zr>>>13,Xr=vt[8]|0,Qt=Xr&8191,zt=Xr>>>13,Wt=vt[9]|0,nr=Wt&8191,fr=Wt>>>13,Er=Et[0]|0,pr=Er&8191,vr=Er>>>13,Jr=Et[1]|0,wr=Jr&8191,Ar=Jr>>>13,Yr=Et[2]|0,Cr=Yr&8191,Or=Yr>>>13,Qr=Et[3]|0,_r=Qr&8191,Dr=Qr>>>13,r0=Et[4]|0,Tr=r0&8191,Lr=r0>>>13,n0=Et[5]|0,Rr=n0&8191,Fr=n0>>>13,i0=Et[6]|0,Br=i0&8191,jr=i0>>>13,a0=Et[7]|0,kr=a0&8191,Ur=a0>>>13,s0=Et[8]|0,Ir=s0&8191,Hr=s0>>>13,o0=Et[9]|0,Nr=o0&8191,qr=o0>>>13;yt.negative=dt.negative^mt.negative,yt.length=19,xt=Math.imul(Dt,pr),ht=Math.imul(Dt,vr),ht=ht+Math.imul(Ht,pr)|0,$t=Math.imul(Ht,vr);var e0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(e0>>>26)|0,e0&=67108863,xt=Math.imul(Xt,pr),ht=Math.imul(Xt,vr),ht=ht+Math.imul(Ut,pr)|0,$t=Math.imul(Ut,vr),xt=xt+Math.imul(Dt,wr)|0,ht=ht+Math.imul(Dt,Ar)|0,ht=ht+Math.imul(Ht,wr)|0,$t=$t+Math.imul(Ht,Ar)|0;var t0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(t0>>>26)|0,t0&=67108863,xt=Math.imul(Gt,pr),ht=Math.imul(Gt,vr),ht=ht+Math.imul(Zt,pr)|0,$t=Math.imul(Zt,vr),xt=xt+Math.imul(Xt,wr)|0,ht=ht+Math.imul(Xt,Ar)|0,ht=ht+Math.imul(Ut,wr)|0,$t=$t+Math.imul(Ut,Ar)|0,xt=xt+Math.imul(Dt,Cr)|0,ht=ht+Math.imul(Dt,Or)|0,ht=ht+Math.imul(Ht,Cr)|0,$t=$t+Math.imul(Ht,Or)|0;var f0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(f0>>>26)|0,f0&=67108863,xt=Math.imul(Kt,pr),ht=Math.imul(Kt,vr),ht=ht+Math.imul(ar,pr)|0,$t=Math.imul(ar,vr),xt=xt+Math.imul(Gt,wr)|0,ht=ht+Math.imul(Gt,Ar)|0,ht=ht+Math.imul(Zt,wr)|0,$t=$t+Math.imul(Zt,Ar)|0,xt=xt+Math.imul(Xt,Cr)|0,ht=ht+Math.imul(Xt,Or)|0,ht=ht+Math.imul(Ut,Cr)|0,$t=$t+Math.imul(Ut,Or)|0,xt=xt+Math.imul(Dt,_r)|0,ht=ht+Math.imul(Dt,Dr)|0,ht=ht+Math.imul(Ht,_r)|0,$t=$t+Math.imul(Ht,Dr)|0;var c0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(c0>>>26)|0,c0&=67108863,xt=Math.imul(cr,pr),ht=Math.imul(cr,vr),ht=ht+Math.imul(ur,pr)|0,$t=Math.imul(ur,vr),xt=xt+Math.imul(Kt,wr)|0,ht=ht+Math.imul(Kt,Ar)|0,ht=ht+Math.imul(ar,wr)|0,$t=$t+Math.imul(ar,Ar)|0,xt=xt+Math.imul(Gt,Cr)|0,ht=ht+Math.imul(Gt,Or)|0,ht=ht+Math.imul(Zt,Cr)|0,$t=$t+Math.imul(Zt,Or)|0,xt=xt+Math.imul(Xt,_r)|0,ht=ht+Math.imul(Xt,Dr)|0,ht=ht+Math.imul(Ut,_r)|0,$t=$t+Math.imul(Ut,Dr)|0,xt=xt+Math.imul(Dt,Tr)|0,ht=ht+Math.imul(Dt,Lr)|0,ht=ht+Math.imul(Ht,Tr)|0,$t=$t+Math.imul(Ht,Lr)|0;var l0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(l0>>>26)|0,l0&=67108863,xt=Math.imul(br,pr),ht=Math.imul(br,vr),ht=ht+Math.imul(dr,pr)|0,$t=Math.imul(dr,vr),xt=xt+Math.imul(cr,wr)|0,ht=ht+Math.imul(cr,Ar)|0,ht=ht+Math.imul(ur,wr)|0,$t=$t+Math.imul(ur,Ar)|0,xt=xt+Math.imul(Kt,Cr)|0,ht=ht+Math.imul(Kt,Or)|0,ht=ht+Math.imul(ar,Cr)|0,$t=$t+Math.imul(ar,Or)|0,xt=xt+Math.imul(Gt,_r)|0,ht=ht+Math.imul(Gt,Dr)|0,ht=ht+Math.imul(Zt,_r)|0,$t=$t+Math.imul(Zt,Dr)|0,xt=xt+Math.imul(Xt,Tr)|0,ht=ht+Math.imul(Xt,Lr)|0,ht=ht+Math.imul(Ut,Tr)|0,$t=$t+Math.imul(Ut,Lr)|0,xt=xt+Math.imul(Dt,Rr)|0,ht=ht+Math.imul(Dt,Fr)|0,ht=ht+Math.imul(Ht,Rr)|0,$t=$t+Math.imul(Ht,Fr)|0;var u0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(u0>>>26)|0,u0&=67108863,xt=Math.imul(xr,pr),ht=Math.imul(xr,vr),ht=ht+Math.imul(Sr,pr)|0,$t=Math.imul(Sr,vr),xt=xt+Math.imul(br,wr)|0,ht=ht+Math.imul(br,Ar)|0,ht=ht+Math.imul(dr,wr)|0,$t=$t+Math.imul(dr,Ar)|0,xt=xt+Math.imul(cr,Cr)|0,ht=ht+Math.imul(cr,Or)|0,ht=ht+Math.imul(ur,Cr)|0,$t=$t+Math.imul(ur,Or)|0,xt=xt+Math.imul(Kt,_r)|0,ht=ht+Math.imul(Kt,Dr)|0,ht=ht+Math.imul(ar,_r)|0,$t=$t+Math.imul(ar,Dr)|0,xt=xt+Math.imul(Gt,Tr)|0,ht=ht+Math.imul(Gt,Lr)|0,ht=ht+Math.imul(Zt,Tr)|0,$t=$t+Math.imul(Zt,Lr)|0,xt=xt+Math.imul(Xt,Rr)|0,ht=ht+Math.imul(Xt,Fr)|0,ht=ht+Math.imul(Ut,Rr)|0,$t=$t+Math.imul(Ut,Fr)|0,xt=xt+Math.imul(Dt,Br)|0,ht=ht+Math.imul(Dt,jr)|0,ht=ht+Math.imul(Ht,Br)|0,$t=$t+Math.imul(Ht,jr)|0;var d0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(d0>>>26)|0,d0&=67108863,xt=Math.imul($r,pr),ht=Math.imul($r,vr),ht=ht+Math.imul(Mr,pr)|0,$t=Math.imul(Mr,vr),xt=xt+Math.imul(xr,wr)|0,ht=ht+Math.imul(xr,Ar)|0,ht=ht+Math.imul(Sr,wr)|0,$t=$t+Math.imul(Sr,Ar)|0,xt=xt+Math.imul(br,Cr)|0,ht=ht+Math.imul(br,Or)|0,ht=ht+Math.imul(dr,Cr)|0,$t=$t+Math.imul(dr,Or)|0,xt=xt+Math.imul(cr,_r)|0,ht=ht+Math.imul(cr,Dr)|0,ht=ht+Math.imul(ur,_r)|0,$t=$t+Math.imul(ur,Dr)|0,xt=xt+Math.imul(Kt,Tr)|0,ht=ht+Math.imul(Kt,Lr)|0,ht=ht+Math.imul(ar,Tr)|0,$t=$t+Math.imul(ar,Lr)|0,xt=xt+Math.imul(Gt,Rr)|0,ht=ht+Math.imul(Gt,Fr)|0,ht=ht+Math.imul(Zt,Rr)|0,$t=$t+Math.imul(Zt,Fr)|0,xt=xt+Math.imul(Xt,Br)|0,ht=ht+Math.imul(Xt,jr)|0,ht=ht+Math.imul(Ut,Br)|0,$t=$t+Math.imul(Ut,jr)|0,xt=xt+Math.imul(Dt,kr)|0,ht=ht+Math.imul(Dt,Ur)|0,ht=ht+Math.imul(Ht,kr)|0,$t=$t+Math.imul(Ht,Ur)|0;var h0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(h0>>>26)|0,h0&=67108863,xt=Math.imul(Qt,pr),ht=Math.imul(Qt,vr),ht=ht+Math.imul(zt,pr)|0,$t=Math.imul(zt,vr),xt=xt+Math.imul($r,wr)|0,ht=ht+Math.imul($r,Ar)|0,ht=ht+Math.imul(Mr,wr)|0,$t=$t+Math.imul(Mr,Ar)|0,xt=xt+Math.imul(xr,Cr)|0,ht=ht+Math.imul(xr,Or)|0,ht=ht+Math.imul(Sr,Cr)|0,$t=$t+Math.imul(Sr,Or)|0,xt=xt+Math.imul(br,_r)|0,ht=ht+Math.imul(br,Dr)|0,ht=ht+Math.imul(dr,_r)|0,$t=$t+Math.imul(dr,Dr)|0,xt=xt+Math.imul(cr,Tr)|0,ht=ht+Math.imul(cr,Lr)|0,ht=ht+Math.imul(ur,Tr)|0,$t=$t+Math.imul(ur,Lr)|0,xt=xt+Math.imul(Kt,Rr)|0,ht=ht+Math.imul(Kt,Fr)|0,ht=ht+Math.imul(ar,Rr)|0,$t=$t+Math.imul(ar,Fr)|0,xt=xt+Math.imul(Gt,Br)|0,ht=ht+Math.imul(Gt,jr)|0,ht=ht+Math.imul(Zt,Br)|0,$t=$t+Math.imul(Zt,jr)|0,xt=xt+Math.imul(Xt,kr)|0,ht=ht+Math.imul(Xt,Ur)|0,ht=ht+Math.imul(Ut,kr)|0,$t=$t+Math.imul(Ut,Ur)|0,xt=xt+Math.imul(Dt,Ir)|0,ht=ht+Math.imul(Dt,Hr)|0,ht=ht+Math.imul(Ht,Ir)|0,$t=$t+Math.imul(Ht,Hr)|0;var p0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(p0>>>26)|0,p0&=67108863,xt=Math.imul(nr,pr),ht=Math.imul(nr,vr),ht=ht+Math.imul(fr,pr)|0,$t=Math.imul(fr,vr),xt=xt+Math.imul(Qt,wr)|0,ht=ht+Math.imul(Qt,Ar)|0,ht=ht+Math.imul(zt,wr)|0,$t=$t+Math.imul(zt,Ar)|0,xt=xt+Math.imul($r,Cr)|0,ht=ht+Math.imul($r,Or)|0,ht=ht+Math.imul(Mr,Cr)|0,$t=$t+Math.imul(Mr,Or)|0,xt=xt+Math.imul(xr,_r)|0,ht=ht+Math.imul(xr,Dr)|0,ht=ht+Math.imul(Sr,_r)|0,$t=$t+Math.imul(Sr,Dr)|0,xt=xt+Math.imul(br,Tr)|0,ht=ht+Math.imul(br,Lr)|0,ht=ht+Math.imul(dr,Tr)|0,$t=$t+Math.imul(dr,Lr)|0,xt=xt+Math.imul(cr,Rr)|0,ht=ht+Math.imul(cr,Fr)|0,ht=ht+Math.imul(ur,Rr)|0,$t=$t+Math.imul(ur,Fr)|0,xt=xt+Math.imul(Kt,Br)|0,ht=ht+Math.imul(Kt,jr)|0,ht=ht+Math.imul(ar,Br)|0,$t=$t+Math.imul(ar,jr)|0,xt=xt+Math.imul(Gt,kr)|0,ht=ht+Math.imul(Gt,Ur)|0,ht=ht+Math.imul(Zt,kr)|0,$t=$t+Math.imul(Zt,Ur)|0,xt=xt+Math.imul(Xt,Ir)|0,ht=ht+Math.imul(Xt,Hr)|0,ht=ht+Math.imul(Ut,Ir)|0,$t=$t+Math.imul(Ut,Hr)|0,xt=xt+Math.imul(Dt,Nr)|0,ht=ht+Math.imul(Dt,qr)|0,ht=ht+Math.imul(Ht,Nr)|0,$t=$t+Math.imul(Ht,qr)|0;var b0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(b0>>>26)|0,b0&=67108863,xt=Math.imul(nr,wr),ht=Math.imul(nr,Ar),ht=ht+Math.imul(fr,wr)|0,$t=Math.imul(fr,Ar),xt=xt+Math.imul(Qt,Cr)|0,ht=ht+Math.imul(Qt,Or)|0,ht=ht+Math.imul(zt,Cr)|0,$t=$t+Math.imul(zt,Or)|0,xt=xt+Math.imul($r,_r)|0,ht=ht+Math.imul($r,Dr)|0,ht=ht+Math.imul(Mr,_r)|0,$t=$t+Math.imul(Mr,Dr)|0,xt=xt+Math.imul(xr,Tr)|0,ht=ht+Math.imul(xr,Lr)|0,ht=ht+Math.imul(Sr,Tr)|0,$t=$t+Math.imul(Sr,Lr)|0,xt=xt+Math.imul(br,Rr)|0,ht=ht+Math.imul(br,Fr)|0,ht=ht+Math.imul(dr,Rr)|0,$t=$t+Math.imul(dr,Fr)|0,xt=xt+Math.imul(cr,Br)|0,ht=ht+Math.imul(cr,jr)|0,ht=ht+Math.imul(ur,Br)|0,$t=$t+Math.imul(ur,jr)|0,xt=xt+Math.imul(Kt,kr)|0,ht=ht+Math.imul(Kt,Ur)|0,ht=ht+Math.imul(ar,kr)|0,$t=$t+Math.imul(ar,Ur)|0,xt=xt+Math.imul(Gt,Ir)|0,ht=ht+Math.imul(Gt,Hr)|0,ht=ht+Math.imul(Zt,Ir)|0,$t=$t+Math.imul(Zt,Hr)|0,xt=xt+Math.imul(Xt,Nr)|0,ht=ht+Math.imul(Xt,qr)|0,ht=ht+Math.imul(Ut,Nr)|0,$t=$t+Math.imul(Ut,qr)|0;var m0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(m0>>>26)|0,m0&=67108863,xt=Math.imul(nr,Cr),ht=Math.imul(nr,Or),ht=ht+Math.imul(fr,Cr)|0,$t=Math.imul(fr,Or),xt=xt+Math.imul(Qt,_r)|0,ht=ht+Math.imul(Qt,Dr)|0,ht=ht+Math.imul(zt,_r)|0,$t=$t+Math.imul(zt,Dr)|0,xt=xt+Math.imul($r,Tr)|0,ht=ht+Math.imul($r,Lr)|0,ht=ht+Math.imul(Mr,Tr)|0,$t=$t+Math.imul(Mr,Lr)|0,xt=xt+Math.imul(xr,Rr)|0,ht=ht+Math.imul(xr,Fr)|0,ht=ht+Math.imul(Sr,Rr)|0,$t=$t+Math.imul(Sr,Fr)|0,xt=xt+Math.imul(br,Br)|0,ht=ht+Math.imul(br,jr)|0,ht=ht+Math.imul(dr,Br)|0,$t=$t+Math.imul(dr,jr)|0,xt=xt+Math.imul(cr,kr)|0,ht=ht+Math.imul(cr,Ur)|0,ht=ht+Math.imul(ur,kr)|0,$t=$t+Math.imul(ur,Ur)|0,xt=xt+Math.imul(Kt,Ir)|0,ht=ht+Math.imul(Kt,Hr)|0,ht=ht+Math.imul(ar,Ir)|0,$t=$t+Math.imul(ar,Hr)|0,xt=xt+Math.imul(Gt,Nr)|0,ht=ht+Math.imul(Gt,qr)|0,ht=ht+Math.imul(Zt,Nr)|0,$t=$t+Math.imul(Zt,qr)|0;var g0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(g0>>>26)|0,g0&=67108863,xt=Math.imul(nr,_r),ht=Math.imul(nr,Dr),ht=ht+Math.imul(fr,_r)|0,$t=Math.imul(fr,Dr),xt=xt+Math.imul(Qt,Tr)|0,ht=ht+Math.imul(Qt,Lr)|0,ht=ht+Math.imul(zt,Tr)|0,$t=$t+Math.imul(zt,Lr)|0,xt=xt+Math.imul($r,Rr)|0,ht=ht+Math.imul($r,Fr)|0,ht=ht+Math.imul(Mr,Rr)|0,$t=$t+Math.imul(Mr,Fr)|0,xt=xt+Math.imul(xr,Br)|0,ht=ht+Math.imul(xr,jr)|0,ht=ht+Math.imul(Sr,Br)|0,$t=$t+Math.imul(Sr,jr)|0,xt=xt+Math.imul(br,kr)|0,ht=ht+Math.imul(br,Ur)|0,ht=ht+Math.imul(dr,kr)|0,$t=$t+Math.imul(dr,Ur)|0,xt=xt+Math.imul(cr,Ir)|0,ht=ht+Math.imul(cr,Hr)|0,ht=ht+Math.imul(ur,Ir)|0,$t=$t+Math.imul(ur,Hr)|0,xt=xt+Math.imul(Kt,Nr)|0,ht=ht+Math.imul(Kt,qr)|0,ht=ht+Math.imul(ar,Nr)|0,$t=$t+Math.imul(ar,qr)|0;var y0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(y0>>>26)|0,y0&=67108863,xt=Math.imul(nr,Tr),ht=Math.imul(nr,Lr),ht=ht+Math.imul(fr,Tr)|0,$t=Math.imul(fr,Lr),xt=xt+Math.imul(Qt,Rr)|0,ht=ht+Math.imul(Qt,Fr)|0,ht=ht+Math.imul(zt,Rr)|0,$t=$t+Math.imul(zt,Fr)|0,xt=xt+Math.imul($r,Br)|0,ht=ht+Math.imul($r,jr)|0,ht=ht+Math.imul(Mr,Br)|0,$t=$t+Math.imul(Mr,jr)|0,xt=xt+Math.imul(xr,kr)|0,ht=ht+Math.imul(xr,Ur)|0,ht=ht+Math.imul(Sr,kr)|0,$t=$t+Math.imul(Sr,Ur)|0,xt=xt+Math.imul(br,Ir)|0,ht=ht+Math.imul(br,Hr)|0,ht=ht+Math.imul(dr,Ir)|0,$t=$t+Math.imul(dr,Hr)|0,xt=xt+Math.imul(cr,Nr)|0,ht=ht+Math.imul(cr,qr)|0,ht=ht+Math.imul(ur,Nr)|0,$t=$t+Math.imul(ur,qr)|0;var v0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(v0>>>26)|0,v0&=67108863,xt=Math.imul(nr,Rr),ht=Math.imul(nr,Fr),ht=ht+Math.imul(fr,Rr)|0,$t=Math.imul(fr,Fr),xt=xt+Math.imul(Qt,Br)|0,ht=ht+Math.imul(Qt,jr)|0,ht=ht+Math.imul(zt,Br)|0,$t=$t+Math.imul(zt,jr)|0,xt=xt+Math.imul($r,kr)|0,ht=ht+Math.imul($r,Ur)|0,ht=ht+Math.imul(Mr,kr)|0,$t=$t+Math.imul(Mr,Ur)|0,xt=xt+Math.imul(xr,Ir)|0,ht=ht+Math.imul(xr,Hr)|0,ht=ht+Math.imul(Sr,Ir)|0,$t=$t+Math.imul(Sr,Hr)|0,xt=xt+Math.imul(br,Nr)|0,ht=ht+Math.imul(br,qr)|0,ht=ht+Math.imul(dr,Nr)|0,$t=$t+Math.imul(dr,qr)|0;var w0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(w0>>>26)|0,w0&=67108863,xt=Math.imul(nr,Br),ht=Math.imul(nr,jr),ht=ht+Math.imul(fr,Br)|0,$t=Math.imul(fr,jr),xt=xt+Math.imul(Qt,kr)|0,ht=ht+Math.imul(Qt,Ur)|0,ht=ht+Math.imul(zt,kr)|0,$t=$t+Math.imul(zt,Ur)|0,xt=xt+Math.imul($r,Ir)|0,ht=ht+Math.imul($r,Hr)|0,ht=ht+Math.imul(Mr,Ir)|0,$t=$t+Math.imul(Mr,Hr)|0,xt=xt+Math.imul(xr,Nr)|0,ht=ht+Math.imul(xr,qr)|0,ht=ht+Math.imul(Sr,Nr)|0,$t=$t+Math.imul(Sr,qr)|0;var x0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(x0>>>26)|0,x0&=67108863,xt=Math.imul(nr,kr),ht=Math.imul(nr,Ur),ht=ht+Math.imul(fr,kr)|0,$t=Math.imul(fr,Ur),xt=xt+Math.imul(Qt,Ir)|0,ht=ht+Math.imul(Qt,Hr)|0,ht=ht+Math.imul(zt,Ir)|0,$t=$t+Math.imul(zt,Hr)|0,xt=xt+Math.imul($r,Nr)|0,ht=ht+Math.imul($r,qr)|0,ht=ht+Math.imul(Mr,Nr)|0,$t=$t+Math.imul(Mr,qr)|0;var E0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(E0>>>26)|0,E0&=67108863,xt=Math.imul(nr,Ir),ht=Math.imul(nr,Hr),ht=ht+Math.imul(fr,Ir)|0,$t=Math.imul(fr,Hr),xt=xt+Math.imul(Qt,Nr)|0,ht=ht+Math.imul(Qt,qr)|0,ht=ht+Math.imul(zt,Nr)|0,$t=$t+Math.imul(zt,qr)|0;var $0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+($0>>>26)|0,$0&=67108863,xt=Math.imul(nr,Nr),ht=Math.imul(nr,qr),ht=ht+Math.imul(fr,Nr)|0,$t=Math.imul(fr,qr);var M0=(Pt+xt|0)+((ht&8191)<<13)|0;return Pt=($t+(ht>>>13)|0)+(M0>>>26)|0,M0&=67108863,At[0]=e0,At[1]=t0,At[2]=f0,At[3]=c0,At[4]=l0,At[5]=u0,At[6]=d0,At[7]=h0,At[8]=p0,At[9]=b0,At[10]=m0,At[11]=g0,At[12]=y0,At[13]=v0,At[14]=w0,At[15]=x0,At[16]=E0,At[17]=$0,At[18]=M0,Pt!==0&&(At[19]=Pt,yt.length++),yt};Math.imul||(It=kt);function Lt(Ct,dt,mt){mt.negative=dt.negative^Ct.negative,mt.length=Ct.length+dt.length;for(var yt=0,vt=0,Et=0;Et>>26)|0,vt+=At>>>26,At&=67108863}mt.words[Et]=Pt,yt=At,At=vt}return yt!==0?mt.words[Et]=yt:mt.length--,mt.strip()}function Ot(Ct,dt,mt){var yt=new Nt;return yt.mulp(Ct,dt,mt)}tt.prototype.mulTo=function(dt,mt){var yt,vt=this.length+dt.length;return this.length===10&&dt.length===10?yt=It(this,dt,mt):vt<63?yt=kt(this,dt,mt):vt<1024?yt=Lt(this,dt,mt):yt=Ot(this,dt,mt),yt};function Nt(Ct,dt){this.x=Ct,this.y=dt}Nt.prototype.makeRBT=function(dt){for(var mt=new Array(dt),yt=tt.prototype._countBits(dt)-1,vt=0;vt>=1;return vt},Nt.prototype.permute=function(dt,mt,yt,vt,Et,At){for(var Pt=0;Pt>>1)Et++;return 1<>>13,yt[2*At+1]=Et&8191,Et=Et>>>13;for(At=2*mt;At>=26,mt+=vt/67108864|0,mt+=Et>>>26,this.words[yt]=Et&67108863}return mt!==0&&(this.words[yt]=mt,this.length++),this},tt.prototype.muln=function(dt){return this.clone().imuln(dt)},tt.prototype.sqr=function(){return this.mul(this)},tt.prototype.isqr=function(){return this.imul(this.clone())},tt.prototype.pow=function(dt){var mt=Rt(dt);if(mt.length===0)return new tt(1);for(var yt=this,vt=0;vt=0);var mt=dt%26,yt=(dt-mt)/26,vt=67108863>>>26-mt<<26-mt,Et;if(mt!==0){var At=0;for(Et=0;Et>>26-mt}At&&(this.words[Et]=At,this.length++)}if(yt!==0){for(Et=this.length-1;Et>=0;Et--)this.words[Et+yt]=this.words[Et];for(Et=0;Et=0);var vt;mt?vt=(mt-mt%26)/26:vt=0;var Et=dt%26,At=Math.min((dt-Et)/26,this.length),Pt=67108863^67108863>>>Et<At)for(this.length-=At,ht=0;ht=0&&($t!==0||ht>=vt);ht--){var Bt=this.words[ht]|0;this.words[ht]=$t<<26-Et|Bt>>>Et,$t=Bt&Pt}return xt&&$t!==0&&(xt.words[xt.length++]=$t),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},tt.prototype.ishrn=function(dt,mt,yt){return et(this.negative===0),this.iushrn(dt,mt,yt)},tt.prototype.shln=function(dt){return this.clone().ishln(dt)},tt.prototype.ushln=function(dt){return this.clone().iushln(dt)},tt.prototype.shrn=function(dt){return this.clone().ishrn(dt)},tt.prototype.ushrn=function(dt){return this.clone().iushrn(dt)},tt.prototype.testn=function(dt){et(typeof dt=="number"&&dt>=0);var mt=dt%26,yt=(dt-mt)/26,vt=1<=0);var mt=dt%26,yt=(dt-mt)/26;if(et(this.negative===0,"imaskn works only with positive numbers"),this.length<=yt)return this;if(mt!==0&&yt++,this.length=Math.min(yt,this.length),mt!==0){var vt=67108863^67108863>>>mt<=67108864;mt++)this.words[mt]-=67108864,mt===this.length-1?this.words[mt+1]=1:this.words[mt+1]++;return this.length=Math.max(this.length,mt+1),this},tt.prototype.isubn=function(dt){if(et(typeof dt=="number"),et(dt<67108864),dt<0)return this.iaddn(-dt);if(this.negative!==0)return this.negative=0,this.iaddn(dt),this.negative=1,this;if(this.words[0]-=dt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var mt=0;mt>26)-(xt/67108864|0),this.words[Et+yt]=At&67108863}for(;Et>26,this.words[Et+yt]=At&67108863;if(Pt===0)return this.strip();for(et(Pt===-1),Pt=0,Et=0;Et>26,this.words[Et]=At&67108863;return this.negative=1,this.strip()},tt.prototype._wordDiv=function(dt,mt){var yt=this.length-dt.length,vt=this.clone(),Et=dt,At=Et.words[Et.length-1]|0,Pt=this._countBits(At);yt=26-Pt,yt!==0&&(Et=Et.ushln(yt),vt.iushln(yt),At=Et.words[Et.length-1]|0);var xt=vt.length-Et.length,ht;if(mt!=="mod"){ht=new tt(null),ht.length=xt+1,ht.words=new Array(ht.length);for(var $t=0;$t=0;Dt--){var Ht=(vt.words[Et.length+Dt]|0)*67108864+(vt.words[Et.length+Dt-1]|0);for(Ht=Math.min(Ht/At|0,67108863),vt._ishlnsubmul(Et,Ht,Dt);vt.negative!==0;)Ht--,vt.negative=0,vt._ishlnsubmul(Et,1,Dt),vt.isZero()||(vt.negative^=1);ht&&(ht.words[Dt]=Ht)}return ht&&ht.strip(),vt.strip(),mt!=="div"&&yt!==0&&vt.iushrn(yt),{div:ht||null,mod:vt}},tt.prototype.divmod=function(dt,mt,yt){if(et(!dt.isZero()),this.isZero())return{div:new tt(0),mod:new tt(0)};var vt,Et,At;return this.negative!==0&&dt.negative===0?(At=this.neg().divmod(dt,mt),mt!=="mod"&&(vt=At.div.neg()),mt!=="div"&&(Et=At.mod.neg(),yt&&Et.negative!==0&&Et.iadd(dt)),{div:vt,mod:Et}):this.negative===0&&dt.negative!==0?(At=this.divmod(dt.neg(),mt),mt!=="mod"&&(vt=At.div.neg()),{div:vt,mod:At.mod}):this.negative&dt.negative?(At=this.neg().divmod(dt.neg(),mt),mt!=="div"&&(Et=At.mod.neg(),yt&&Et.negative!==0&&Et.isub(dt)),{div:At.div,mod:Et}):dt.length>this.length||this.cmp(dt)<0?{div:new tt(0),mod:this}:dt.length===1?mt==="div"?{div:this.divn(dt.words[0]),mod:null}:mt==="mod"?{div:null,mod:new tt(this.modn(dt.words[0]))}:{div:this.divn(dt.words[0]),mod:new tt(this.modn(dt.words[0]))}:this._wordDiv(dt,mt)},tt.prototype.div=function(dt){return this.divmod(dt,"div",!1).div},tt.prototype.mod=function(dt){return this.divmod(dt,"mod",!1).mod},tt.prototype.umod=function(dt){return this.divmod(dt,"mod",!0).mod},tt.prototype.divRound=function(dt){var mt=this.divmod(dt);if(mt.mod.isZero())return mt.div;var yt=mt.div.negative!==0?mt.mod.isub(dt):mt.mod,vt=dt.ushrn(1),Et=dt.andln(1),At=yt.cmp(vt);return At<0||Et===1&&At===0?mt.div:mt.div.negative!==0?mt.div.isubn(1):mt.div.iaddn(1)},tt.prototype.modn=function(dt){et(dt<=67108863);for(var mt=(1<<26)%dt,yt=0,vt=this.length-1;vt>=0;vt--)yt=(mt*yt+(this.words[vt]|0))%dt;return yt},tt.prototype.idivn=function(dt){et(dt<=67108863);for(var mt=0,yt=this.length-1;yt>=0;yt--){var vt=(this.words[yt]|0)+mt*67108864;this.words[yt]=vt/dt|0,mt=vt%dt}return this.strip()},tt.prototype.divn=function(dt){return this.clone().idivn(dt)},tt.prototype.egcd=function(dt){et(dt.negative===0),et(!dt.isZero());var mt=this,yt=dt.clone();mt.negative!==0?mt=mt.umod(dt):mt=mt.clone();for(var vt=new tt(1),Et=new tt(0),At=new tt(0),Pt=new tt(1),xt=0;mt.isEven()&&yt.isEven();)mt.iushrn(1),yt.iushrn(1),++xt;for(var ht=yt.clone(),$t=mt.clone();!mt.isZero();){for(var Bt=0,Dt=1;!(mt.words[0]&Dt)&&Bt<26;++Bt,Dt<<=1);if(Bt>0)for(mt.iushrn(Bt);Bt-- >0;)(vt.isOdd()||Et.isOdd())&&(vt.iadd(ht),Et.isub($t)),vt.iushrn(1),Et.iushrn(1);for(var Ht=0,tr=1;!(yt.words[0]&tr)&&Ht<26;++Ht,tr<<=1);if(Ht>0)for(yt.iushrn(Ht);Ht-- >0;)(At.isOdd()||Pt.isOdd())&&(At.iadd(ht),Pt.isub($t)),At.iushrn(1),Pt.iushrn(1);mt.cmp(yt)>=0?(mt.isub(yt),vt.isub(At),Et.isub(Pt)):(yt.isub(mt),At.isub(vt),Pt.isub(Et))}return{a:At,b:Pt,gcd:yt.iushln(xt)}},tt.prototype._invmp=function(dt){et(dt.negative===0),et(!dt.isZero());var mt=this,yt=dt.clone();mt.negative!==0?mt=mt.umod(dt):mt=mt.clone();for(var vt=new tt(1),Et=new tt(0),At=yt.clone();mt.cmpn(1)>0&&yt.cmpn(1)>0;){for(var Pt=0,xt=1;!(mt.words[0]&xt)&&Pt<26;++Pt,xt<<=1);if(Pt>0)for(mt.iushrn(Pt);Pt-- >0;)vt.isOdd()&&vt.iadd(At),vt.iushrn(1);for(var ht=0,$t=1;!(yt.words[0]&$t)&&ht<26;++ht,$t<<=1);if(ht>0)for(yt.iushrn(ht);ht-- >0;)Et.isOdd()&&Et.iadd(At),Et.iushrn(1);mt.cmp(yt)>=0?(mt.isub(yt),vt.isub(Et)):(yt.isub(mt),Et.isub(vt))}var Bt;return mt.cmpn(1)===0?Bt=vt:Bt=Et,Bt.cmpn(0)<0&&Bt.iadd(dt),Bt},tt.prototype.gcd=function(dt){if(this.isZero())return dt.abs();if(dt.isZero())return this.abs();var mt=this.clone(),yt=dt.clone();mt.negative=0,yt.negative=0;for(var vt=0;mt.isEven()&&yt.isEven();vt++)mt.iushrn(1),yt.iushrn(1);do{for(;mt.isEven();)mt.iushrn(1);for(;yt.isEven();)yt.iushrn(1);var Et=mt.cmp(yt);if(Et<0){var At=mt;mt=yt,yt=At}else if(Et===0||yt.cmpn(1)===0)break;mt.isub(yt)}while(!0);return yt.iushln(vt)},tt.prototype.invm=function(dt){return this.egcd(dt).a.umod(dt)},tt.prototype.isEven=function(){return(this.words[0]&1)===0},tt.prototype.isOdd=function(){return(this.words[0]&1)===1},tt.prototype.andln=function(dt){return this.words[0]&dt},tt.prototype.bincn=function(dt){et(typeof dt=="number");var mt=dt%26,yt=(dt-mt)/26,vt=1<>>26,Pt&=67108863,this.words[At]=Pt}return Et!==0&&(this.words[At]=Et,this.length++),this},tt.prototype.isZero=function(){return this.length===1&&this.words[0]===0},tt.prototype.cmpn=function(dt){var mt=dt<0;if(this.negative!==0&&!mt)return-1;if(this.negative===0&&mt)return 1;this.strip();var yt;if(this.length>1)yt=1;else{mt&&(dt=-dt),et(dt<=67108863,"Number is too big");var vt=this.words[0]|0;yt=vt===dt?0:vtdt.length)return 1;if(this.length=0;yt--){var vt=this.words[yt]|0,Et=dt.words[yt]|0;if(vt!==Et){vtEt&&(mt=1);break}}return mt},tt.prototype.gtn=function(dt){return this.cmpn(dt)===1},tt.prototype.gt=function(dt){return this.cmp(dt)===1},tt.prototype.gten=function(dt){return this.cmpn(dt)>=0},tt.prototype.gte=function(dt){return this.cmp(dt)>=0},tt.prototype.ltn=function(dt){return this.cmpn(dt)===-1},tt.prototype.lt=function(dt){return this.cmp(dt)===-1},tt.prototype.lten=function(dt){return this.cmpn(dt)<=0},tt.prototype.lte=function(dt){return this.cmp(dt)<=0},tt.prototype.eqn=function(dt){return this.cmpn(dt)===0},tt.prototype.eq=function(dt){return this.cmp(dt)===0},tt.red=function(dt){return new er(dt)},tt.prototype.toRed=function(dt){return et(!this.red,"Already a number in reduction context"),et(this.negative===0,"red works only with positives"),dt.convertTo(this)._forceRed(dt)},tt.prototype.fromRed=function(){return et(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},tt.prototype._forceRed=function(dt){return this.red=dt,this},tt.prototype.forceRed=function(dt){return et(!this.red,"Already a number in reduction context"),this._forceRed(dt)},tt.prototype.redAdd=function(dt){return et(this.red,"redAdd works only with red numbers"),this.red.add(this,dt)},tt.prototype.redIAdd=function(dt){return et(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,dt)},tt.prototype.redSub=function(dt){return et(this.red,"redSub works only with red numbers"),this.red.sub(this,dt)},tt.prototype.redISub=function(dt){return et(this.red,"redISub works only with red numbers"),this.red.isub(this,dt)},tt.prototype.redShl=function(dt){return et(this.red,"redShl works only with red numbers"),this.red.shl(this,dt)},tt.prototype.redMul=function(dt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,dt),this.red.mul(this,dt)},tt.prototype.redIMul=function(dt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,dt),this.red.imul(this,dt)},tt.prototype.redSqr=function(){return et(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},tt.prototype.redISqr=function(){return et(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},tt.prototype.redSqrt=function(){return et(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},tt.prototype.redInvm=function(){return et(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},tt.prototype.redNeg=function(){return et(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},tt.prototype.redPow=function(dt){return et(this.red&&!dt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,dt)};var Ft={k256:null,p224:null,p192:null,p25519:null};function jt(Ct,dt){this.name=Ct,this.p=new tt(dt,16),this.n=this.p.bitLength(),this.k=new tt(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}jt.prototype._tmp=function(){var dt=new tt(null);return dt.words=new Array(Math.ceil(this.n/13)),dt},jt.prototype.ireduce=function(dt){var mt=dt,yt;do this.split(mt,this.tmp),mt=this.imulK(mt),mt=mt.iadd(this.tmp),yt=mt.bitLength();while(yt>this.n);var vt=yt0?mt.isub(this.p):mt.strip!==void 0?mt.strip():mt._strip(),mt},jt.prototype.split=function(dt,mt){dt.iushrn(this.n,0,mt)},jt.prototype.imulK=function(dt){return dt.imul(this.k)};function Vt(){jt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}nt(Vt,jt),Vt.prototype.split=function(dt,mt){for(var yt=4194303,vt=Math.min(dt.length,9),Et=0;Et>>22,At=Pt}At>>>=22,dt.words[Et-10]=At,At===0&&dt.length>10?dt.length-=10:dt.length-=9},Vt.prototype.imulK=function(dt){dt.words[dt.length]=0,dt.words[dt.length+1]=0,dt.length+=2;for(var mt=0,yt=0;yt>>=26,dt.words[yt]=Et,mt=vt}return mt!==0&&(dt.words[dt.length++]=mt),dt},tt._prime=function(dt){if(Ft[dt])return Ft[dt];var mt;if(dt==="k256")mt=new Vt;else if(dt==="p224")mt=new Jt;else if(dt==="p192")mt=new ir;else if(dt==="p25519")mt=new rr;else throw new Error("Unknown prime "+dt);return Ft[dt]=mt,mt};function er(Ct){if(typeof Ct=="string"){var dt=tt._prime(Ct);this.m=dt.p,this.prime=dt}else et(Ct.gtn(1),"modulus must be greater than 1"),this.m=Ct,this.prime=null}er.prototype._verify1=function(dt){et(dt.negative===0,"red works only with positives"),et(dt.red,"red works only with red numbers")},er.prototype._verify2=function(dt,mt){et((dt.negative|mt.negative)===0,"red works only with positives"),et(dt.red&&dt.red===mt.red,"red works only with red numbers")},er.prototype.imod=function(dt){return this.prime?this.prime.ireduce(dt)._forceRed(this):dt.umod(this.m)._forceRed(this)},er.prototype.neg=function(dt){return dt.isZero()?dt.clone():this.m.sub(dt)._forceRed(this)},er.prototype.add=function(dt,mt){this._verify2(dt,mt);var yt=dt.add(mt);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt._forceRed(this)},er.prototype.iadd=function(dt,mt){this._verify2(dt,mt);var yt=dt.iadd(mt);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt},er.prototype.sub=function(dt,mt){this._verify2(dt,mt);var yt=dt.sub(mt);return yt.cmpn(0)<0&&yt.iadd(this.m),yt._forceRed(this)},er.prototype.isub=function(dt,mt){this._verify2(dt,mt);var yt=dt.isub(mt);return yt.cmpn(0)<0&&yt.iadd(this.m),yt},er.prototype.shl=function(dt,mt){return this._verify1(dt),this.imod(dt.ushln(mt))},er.prototype.imul=function(dt,mt){return this._verify2(dt,mt),this.imod(dt.imul(mt))},er.prototype.mul=function(dt,mt){return this._verify2(dt,mt),this.imod(dt.mul(mt))},er.prototype.isqr=function(dt){return this.imul(dt,dt.clone())},er.prototype.sqr=function(dt){return this.mul(dt,dt)},er.prototype.sqrt=function(dt){if(dt.isZero())return dt.clone();var mt=this.m.andln(3);if(et(mt%2===1),mt===3){var yt=this.m.add(new tt(1)).iushrn(2);return this.pow(dt,yt)}for(var vt=this.m.subn(1),Et=0;!vt.isZero()&&vt.andln(1)===0;)Et++,vt.iushrn(1);et(!vt.isZero());var At=new tt(1).toRed(this),Pt=At.redNeg(),xt=this.m.subn(1).iushrn(1),ht=this.m.bitLength();for(ht=new tt(2*ht*ht).toRed(this);this.pow(ht,xt).cmp(Pt)!==0;)ht.redIAdd(Pt);for(var $t=this.pow(ht,vt),Bt=this.pow(dt,vt.addn(1).iushrn(1)),Dt=this.pow(dt,vt),Ht=Et;Dt.cmp(At)!==0;){for(var tr=Dt,Xt=0;tr.cmp(At)!==0;Xt++)tr=tr.redSqr();et(Xt=0;Et--){for(var $t=mt.words[Et],Bt=ht-1;Bt>=0;Bt--){var Dt=$t>>Bt&1;if(At!==vt[0]&&(At=this.sqr(At)),Dt===0&&Pt===0){xt=0;continue}Pt<<=1,Pt|=Dt,xt++,!(xt!==yt&&(Et!==0||Bt!==0))&&(At=this.mul(At,vt[Pt]),xt=0,Pt=0)}ht=26}return At},er.prototype.convertTo=function(dt){var mt=dt.umod(this.m);return mt===dt?mt.clone():mt},er.prototype.convertFrom=function(dt){var mt=dt.clone();return mt.red=null,mt},tt.mont=function(dt){return new lr(dt)};function lr(Ct){er.call(this,Ct),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new tt(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)}nt(lr,er),lr.prototype.convertTo=function(dt){return this.imod(dt.ushln(this.shift))},lr.prototype.convertFrom=function(dt){var mt=this.imod(dt.mul(this.rinv));return mt.red=null,mt},lr.prototype.imul=function(dt,mt){if(dt.isZero()||mt.isZero())return dt.words[0]=0,dt.length=1,dt;var yt=dt.imul(mt),vt=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Et=yt.isub(vt).iushrn(this.shift),At=Et;return Et.cmp(this.m)>=0?At=Et.isub(this.m):Et.cmpn(0)<0&&(At=Et.iadd(this.m)),At._forceRed(this)},lr.prototype.mul=function(dt,mt){if(dt.isZero()||mt.isZero())return new tt(0)._forceRed(this);var yt=dt.mul(mt),vt=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Et=yt.isub(vt).iushrn(this.shift),At=Et;return Et.cmp(this.m)>=0?At=Et.isub(this.m):Et.cmpn(0)<0&&(At=Et.iadd(this.m)),At._forceRed(this)},lr.prototype.invm=function(dt){var mt=this.imod(dt._invmp(this.m).mul(this.r2));return mt._forceRed(this)}})(c,commonjsGlobal)})(bn$4);var bnExports$4=bn$4.exports,utils$x={};(function(c){var a=c;function d(tt,bt){if(Array.isArray(tt))return tt.slice();if(!tt)return[];var gt=[];if(typeof tt!="string"){for(var wt=0;wt>8,_t=St&255;Mt?gt.push(Mt,_t):gt.push(_t)}return gt}a.toArray=d;function et(tt){return tt.length===1?"0"+tt:tt}a.zero2=et;function nt(tt){for(var bt="",gt=0;gt(It>>1)-1?Ot=(It>>1)-Nt:Ot=Nt,Lt.isubn(Ot)):Ot=0,Rt[kt]=Ot,Lt.iushrn(1)}return Rt}a.getNAF=tt;function bt(Mt,_t){var Tt=[[],[]];Mt=Mt.clone(),_t=_t.clone();for(var Rt=0,kt=0,It;Mt.cmpn(-Rt)>0||_t.cmpn(-kt)>0;){var Lt=Mt.andln(3)+Rt&3,Ot=_t.andln(3)+kt&3;Lt===3&&(Lt=-1),Ot===3&&(Ot=-1);var Nt;Lt&1?(It=Mt.andln(7)+Rt&7,(It===3||It===5)&&Ot===2?Nt=-Lt:Nt=Lt):Nt=0,Tt[0].push(Nt);var Ft;Ot&1?(It=_t.andln(7)+kt&7,(It===3||It===5)&&Lt===2?Ft=-Ot:Ft=Ot):Ft=0,Tt[1].push(Ft),2*Rt===Nt+1&&(Rt=1-Rt),2*kt===Ft+1&&(kt=1-kt),Mt.iushrn(1),_t.iushrn(1)}return Tt}a.getJSF=bt;function gt(Mt,_t,Tt){var Rt="_"+_t;Mt.prototype[_t]=function(){return this[Rt]!==void 0?this[Rt]:this[Rt]=Tt.call(this)}}a.cachedProperty=gt;function wt(Mt){return typeof Mt=="string"?a.toArray(Mt,"hex"):Mt}a.parseBytes=wt;function St(Mt){return new d(Mt,"hex","le")}a.intFromLE=St})(utils$y);var curve$1={},BN$g=bnExports$4,utils$w=utils$y,getNAF$1=utils$w.getNAF,getJSF$1=utils$w.getJSF,assert$l=utils$w.assert;function BaseCurve$1(c,a){this.type=c,this.p=new BN$g(a.p,16),this.red=a.prime?BN$g.red(a.prime):BN$g.mont(this.p),this.zero=new BN$g(0).toRed(this.red),this.one=new BN$g(1).toRed(this.red),this.two=new BN$g(2).toRed(this.red),this.n=a.n&&new BN$g(a.n,16),this.g=a.g&&this.pointFromJSON(a.g,a.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 d=this.n&&this.p.div(this.n);!d||d.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var base$3=BaseCurve$1;BaseCurve$1.prototype.point=function(){throw new Error("Not implemented")};BaseCurve$1.prototype.validate=function(){throw new Error("Not implemented")};BaseCurve$1.prototype._fixedNafMul=function(a,d){assert$l(a.precomputed);var et=a._getDoubles(),nt=getNAF$1(d,1,this._bitLength),tt=(1<=gt;St--)wt=(wt<<1)+nt[St];bt.push(wt)}for(var Mt=this.jpoint(null,null,null),_t=this.jpoint(null,null,null),Tt=tt;Tt>0;Tt--){for(gt=0;gt=0;wt--){for(var St=0;wt>=0&&bt[wt]===0;wt--)St++;if(wt>=0&&St++,gt=gt.dblp(St),wt<0)break;var Mt=bt[wt];assert$l(Mt!==0),a.type==="affine"?Mt>0?gt=gt.mixedAdd(tt[Mt-1>>1]):gt=gt.mixedAdd(tt[-Mt-1>>1].neg()):Mt>0?gt=gt.add(tt[Mt-1>>1]):gt=gt.add(tt[-Mt-1>>1].neg())}return a.type==="affine"?gt.toP():gt};BaseCurve$1.prototype._wnafMulAdd=function(a,d,et,nt,tt){var bt=this._wnafT1,gt=this._wnafT2,wt=this._wnafT3,St=0,Mt,_t,Tt;for(Mt=0;Mt=1;Mt-=2){var kt=Mt-1,It=Mt;if(bt[kt]!==1||bt[It]!==1){wt[kt]=getNAF$1(et[kt],bt[kt],this._bitLength),wt[It]=getNAF$1(et[It],bt[It],this._bitLength),St=Math.max(wt[kt].length,St),St=Math.max(wt[It].length,St);continue}var Lt=[d[kt],null,null,d[It]];d[kt].y.cmp(d[It].y)===0?(Lt[1]=d[kt].add(d[It]),Lt[2]=d[kt].toJ().mixedAdd(d[It].neg())):d[kt].y.cmp(d[It].y.redNeg())===0?(Lt[1]=d[kt].toJ().mixedAdd(d[It]),Lt[2]=d[kt].add(d[It].neg())):(Lt[1]=d[kt].toJ().mixedAdd(d[It]),Lt[2]=d[kt].toJ().mixedAdd(d[It].neg()));var Ot=[-3,-1,-5,-7,0,7,5,1,3],Nt=getJSF$1(et[kt],et[It]);for(St=Math.max(Nt[0].length,St),wt[kt]=new Array(St),wt[It]=new Array(St),_t=0;_t=0;Mt--){for(var ir=0;Mt>=0;){var rr=!0;for(_t=0;_t=0&&ir++,Vt=Vt.dblp(ir),Mt<0)break;for(_t=0;_t0?Tt=gt[_t][er-1>>1]:er<0&&(Tt=gt[_t][-er-1>>1].neg()),Tt.type==="affine"?Vt=Vt.mixedAdd(Tt):Vt=Vt.add(Tt))}}for(Mt=0;Mt=Math.ceil((a.bitLength()+1)/d.step):!1};BasePoint$1.prototype._getDoubles=function(a,d){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var et=[this],nt=this,tt=0;tt=0&&(Rt=St,kt=Mt),_t.negative&&(_t=_t.neg(),Tt=Tt.neg()),Rt.negative&&(Rt=Rt.neg(),kt=kt.neg()),[{a:_t,b:Tt},{a:Rt,b:kt}]};ShortCurve$1.prototype._endoSplit=function(a){var d=this.endo.basis,et=d[0],nt=d[1],tt=nt.b.mul(a).divRound(this.n),bt=et.b.neg().mul(a).divRound(this.n),gt=tt.mul(et.a),wt=bt.mul(nt.a),St=tt.mul(et.b),Mt=bt.mul(nt.b),_t=a.sub(gt).sub(wt),Tt=St.add(Mt).neg();return{k1:_t,k2:Tt}};ShortCurve$1.prototype.pointFromX=function(a,d){a=new BN$f(a,16),a.red||(a=a.toRed(this.red));var et=a.redSqr().redMul(a).redIAdd(a.redMul(this.a)).redIAdd(this.b),nt=et.redSqrt();if(nt.redSqr().redSub(et).cmp(this.zero)!==0)throw new Error("invalid point");var tt=nt.fromRed().isOdd();return(d&&!tt||!d&&tt)&&(nt=nt.redNeg()),this.point(a,nt)};ShortCurve$1.prototype.validate=function(a){if(a.inf)return!0;var d=a.x,et=a.y,nt=this.a.redMul(d),tt=d.redSqr().redMul(d).redIAdd(nt).redIAdd(this.b);return et.redSqr().redISub(tt).cmpn(0)===0};ShortCurve$1.prototype._endoWnafMulAdd=function(a,d,et){for(var nt=this._endoWnafT1,tt=this._endoWnafT2,bt=0;bt":""};Point$6.prototype.isInfinity=function(){return this.inf};Point$6.prototype.add=function(a){if(this.inf)return a;if(a.inf)return this;if(this.eq(a))return this.dbl();if(this.neg().eq(a))return this.curve.point(null,null);if(this.x.cmp(a.x)===0)return this.curve.point(null,null);var d=this.y.redSub(a.y);d.cmpn(0)!==0&&(d=d.redMul(this.x.redSub(a.x).redInvm()));var et=d.redSqr().redISub(this.x).redISub(a.x),nt=d.redMul(this.x.redSub(et)).redISub(this.y);return this.curve.point(et,nt)};Point$6.prototype.dbl=function(){if(this.inf)return this;var a=this.y.redAdd(this.y);if(a.cmpn(0)===0)return this.curve.point(null,null);var d=this.curve.a,et=this.x.redSqr(),nt=a.redInvm(),tt=et.redAdd(et).redIAdd(et).redIAdd(d).redMul(nt),bt=tt.redSqr().redISub(this.x.redAdd(this.x)),gt=tt.redMul(this.x.redSub(bt)).redISub(this.y);return this.curve.point(bt,gt)};Point$6.prototype.getX=function(){return this.x.fromRed()};Point$6.prototype.getY=function(){return this.y.fromRed()};Point$6.prototype.mul=function(a){return a=new BN$f(a,16),this.isInfinity()?this:this._hasDoubles(a)?this.curve._fixedNafMul(this,a):this.curve.endo?this.curve._endoWnafMulAdd([this],[a]):this.curve._wnafMul(this,a)};Point$6.prototype.mulAdd=function(a,d,et){var nt=[this,d],tt=[a,et];return this.curve.endo?this.curve._endoWnafMulAdd(nt,tt):this.curve._wnafMulAdd(1,nt,tt,2)};Point$6.prototype.jmulAdd=function(a,d,et){var nt=[this,d],tt=[a,et];return this.curve.endo?this.curve._endoWnafMulAdd(nt,tt,!0):this.curve._wnafMulAdd(1,nt,tt,2,!0)};Point$6.prototype.eq=function(a){return this===a||this.inf===a.inf&&(this.inf||this.x.cmp(a.x)===0&&this.y.cmp(a.y)===0)};Point$6.prototype.neg=function(a){if(this.inf)return this;var d=this.curve.point(this.x,this.y.redNeg());if(a&&this.precomputed){var et=this.precomputed,nt=function(tt){return tt.neg()};d.precomputed={naf:et.naf&&{wnd:et.naf.wnd,points:et.naf.points.map(nt)},doubles:et.doubles&&{step:et.doubles.step,points:et.doubles.points.map(nt)}}}return d};Point$6.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var a=this.curve.jpoint(this.x,this.y,this.curve.one);return a};function JPoint$1(c,a,d,et){Base$5.BasePoint.call(this,c,"jacobian"),a===null&&d===null&&et===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new BN$f(0)):(this.x=new BN$f(a,16),this.y=new BN$f(d,16),this.z=new BN$f(et,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}inherits$7(JPoint$1,Base$5.BasePoint);ShortCurve$1.prototype.jpoint=function(a,d,et){return new JPoint$1(this,a,d,et)};JPoint$1.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var a=this.z.redInvm(),d=a.redSqr(),et=this.x.redMul(d),nt=this.y.redMul(d).redMul(a);return this.curve.point(et,nt)};JPoint$1.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};JPoint$1.prototype.add=function(a){if(this.isInfinity())return a;if(a.isInfinity())return this;var d=a.z.redSqr(),et=this.z.redSqr(),nt=this.x.redMul(d),tt=a.x.redMul(et),bt=this.y.redMul(d.redMul(a.z)),gt=a.y.redMul(et.redMul(this.z)),wt=nt.redSub(tt),St=bt.redSub(gt);if(wt.cmpn(0)===0)return St.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var Mt=wt.redSqr(),_t=Mt.redMul(wt),Tt=nt.redMul(Mt),Rt=St.redSqr().redIAdd(_t).redISub(Tt).redISub(Tt),kt=St.redMul(Tt.redISub(Rt)).redISub(bt.redMul(_t)),It=this.z.redMul(a.z).redMul(wt);return this.curve.jpoint(Rt,kt,It)};JPoint$1.prototype.mixedAdd=function(a){if(this.isInfinity())return a.toJ();if(a.isInfinity())return this;var d=this.z.redSqr(),et=this.x,nt=a.x.redMul(d),tt=this.y,bt=a.y.redMul(d).redMul(this.z),gt=et.redSub(nt),wt=tt.redSub(bt);if(gt.cmpn(0)===0)return wt.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var St=gt.redSqr(),Mt=St.redMul(gt),_t=et.redMul(St),Tt=wt.redSqr().redIAdd(Mt).redISub(_t).redISub(_t),Rt=wt.redMul(_t.redISub(Tt)).redISub(tt.redMul(Mt)),kt=this.z.redMul(gt);return this.curve.jpoint(Tt,Rt,kt)};JPoint$1.prototype.dblp=function(a){if(a===0)return this;if(this.isInfinity())return this;if(!a)return this.dbl();var d;if(this.curve.zeroA||this.curve.threeA){var et=this;for(d=0;d=0)return!1;if(et.redIAdd(tt),this.x.cmp(et)===0)return!0}};JPoint$1.prototype.inspect=function(){return this.isInfinity()?"":""};JPoint$1.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var BN$e=bnExports$4,inherits$6=inherits_browserExports,Base$4=base$3,utils$u=utils$y;function MontCurve$1(c){Base$4.call(this,"mont",c),this.a=new BN$e(c.a,16).toRed(this.red),this.b=new BN$e(c.b,16).toRed(this.red),this.i4=new BN$e(4).toRed(this.red).redInvm(),this.two=new BN$e(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}inherits$6(MontCurve$1,Base$4);var mont$1=MontCurve$1;MontCurve$1.prototype.validate=function(a){var d=a.normalize().x,et=d.redSqr(),nt=et.redMul(d).redAdd(et.redMul(this.a)).redAdd(d),tt=nt.redSqrt();return tt.redSqr().cmp(nt)===0};function Point$5(c,a,d){Base$4.BasePoint.call(this,c,"projective"),a===null&&d===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new BN$e(a,16),this.z=new BN$e(d,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}inherits$6(Point$5,Base$4.BasePoint);MontCurve$1.prototype.decodePoint=function(a,d){return this.point(utils$u.toArray(a,d),1)};MontCurve$1.prototype.point=function(a,d){return new Point$5(this,a,d)};MontCurve$1.prototype.pointFromJSON=function(a){return Point$5.fromJSON(this,a)};Point$5.prototype.precompute=function(){};Point$5.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};Point$5.fromJSON=function(a,d){return new Point$5(a,d[0],d[1]||a.one)};Point$5.prototype.inspect=function(){return this.isInfinity()?"":""};Point$5.prototype.isInfinity=function(){return this.z.cmpn(0)===0};Point$5.prototype.dbl=function(){var a=this.x.redAdd(this.z),d=a.redSqr(),et=this.x.redSub(this.z),nt=et.redSqr(),tt=d.redSub(nt),bt=d.redMul(nt),gt=tt.redMul(nt.redAdd(this.curve.a24.redMul(tt)));return this.curve.point(bt,gt)};Point$5.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};Point$5.prototype.diffAdd=function(a,d){var et=this.x.redAdd(this.z),nt=this.x.redSub(this.z),tt=a.x.redAdd(a.z),bt=a.x.redSub(a.z),gt=bt.redMul(et),wt=tt.redMul(nt),St=d.z.redMul(gt.redAdd(wt).redSqr()),Mt=d.x.redMul(gt.redISub(wt).redSqr());return this.curve.point(St,Mt)};Point$5.prototype.mul=function(a){for(var d=a.clone(),et=this,nt=this.curve.point(null,null),tt=this,bt=[];d.cmpn(0)!==0;d.iushrn(1))bt.push(d.andln(1));for(var gt=bt.length-1;gt>=0;gt--)bt[gt]===0?(et=et.diffAdd(nt,tt),nt=nt.dbl()):(nt=et.diffAdd(nt,tt),et=et.dbl());return nt};Point$5.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};Point$5.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};Point$5.prototype.eq=function(a){return this.getX().cmp(a.getX())===0};Point$5.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Point$5.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var utils$t=utils$y,BN$d=bnExports$4,inherits$5=inherits_browserExports,Base$3=base$3,assert$j=utils$t.assert;function EdwardsCurve$1(c){this.twisted=(c.a|0)!==1,this.mOneA=this.twisted&&(c.a|0)===-1,this.extended=this.mOneA,Base$3.call(this,"edwards",c),this.a=new BN$d(c.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new BN$d(c.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new BN$d(c.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),assert$j(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(c.c|0)===1}inherits$5(EdwardsCurve$1,Base$3);var edwards$1=EdwardsCurve$1;EdwardsCurve$1.prototype._mulA=function(a){return this.mOneA?a.redNeg():this.a.redMul(a)};EdwardsCurve$1.prototype._mulC=function(a){return this.oneC?a:this.c.redMul(a)};EdwardsCurve$1.prototype.jpoint=function(a,d,et,nt){return this.point(a,d,et,nt)};EdwardsCurve$1.prototype.pointFromX=function(a,d){a=new BN$d(a,16),a.red||(a=a.toRed(this.red));var et=a.redSqr(),nt=this.c2.redSub(this.a.redMul(et)),tt=this.one.redSub(this.c2.redMul(this.d).redMul(et)),bt=nt.redMul(tt.redInvm()),gt=bt.redSqrt();if(gt.redSqr().redSub(bt).cmp(this.zero)!==0)throw new Error("invalid point");var wt=gt.fromRed().isOdd();return(d&&!wt||!d&&wt)&&(gt=gt.redNeg()),this.point(a,gt)};EdwardsCurve$1.prototype.pointFromY=function(a,d){a=new BN$d(a,16),a.red||(a=a.toRed(this.red));var et=a.redSqr(),nt=et.redSub(this.c2),tt=et.redMul(this.d).redMul(this.c2).redSub(this.a),bt=nt.redMul(tt.redInvm());if(bt.cmp(this.zero)===0){if(d)throw new Error("invalid point");return this.point(this.zero,a)}var gt=bt.redSqrt();if(gt.redSqr().redSub(bt).cmp(this.zero)!==0)throw new Error("invalid point");return gt.fromRed().isOdd()!==d&&(gt=gt.redNeg()),this.point(gt,a)};EdwardsCurve$1.prototype.validate=function(a){if(a.isInfinity())return!0;a.normalize();var d=a.x.redSqr(),et=a.y.redSqr(),nt=d.redMul(this.a).redAdd(et),tt=this.c2.redMul(this.one.redAdd(this.d.redMul(d).redMul(et)));return nt.cmp(tt)===0};function Point$4(c,a,d,et,nt){Base$3.BasePoint.call(this,c,"projective"),a===null&&d===null&&et===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new BN$d(a,16),this.y=new BN$d(d,16),this.z=et?new BN$d(et,16):this.curve.one,this.t=nt&&new BN$d(nt,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}inherits$5(Point$4,Base$3.BasePoint);EdwardsCurve$1.prototype.pointFromJSON=function(a){return Point$4.fromJSON(this,a)};EdwardsCurve$1.prototype.point=function(a,d,et,nt){return new Point$4(this,a,d,et,nt)};Point$4.fromJSON=function(a,d){return new Point$4(a,d[0],d[1],d[2])};Point$4.prototype.inspect=function(){return this.isInfinity()?"":""};Point$4.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Point$4.prototype._extDbl=function(){var a=this.x.redSqr(),d=this.y.redSqr(),et=this.z.redSqr();et=et.redIAdd(et);var nt=this.curve._mulA(a),tt=this.x.redAdd(this.y).redSqr().redISub(a).redISub(d),bt=nt.redAdd(d),gt=bt.redSub(et),wt=nt.redSub(d),St=tt.redMul(gt),Mt=bt.redMul(wt),_t=tt.redMul(wt),Tt=gt.redMul(bt);return this.curve.point(St,Mt,Tt,_t)};Point$4.prototype._projDbl=function(){var a=this.x.redAdd(this.y).redSqr(),d=this.x.redSqr(),et=this.y.redSqr(),nt,tt,bt,gt,wt,St;if(this.curve.twisted){gt=this.curve._mulA(d);var Mt=gt.redAdd(et);this.zOne?(nt=a.redSub(d).redSub(et).redMul(Mt.redSub(this.curve.two)),tt=Mt.redMul(gt.redSub(et)),bt=Mt.redSqr().redSub(Mt).redSub(Mt)):(wt=this.z.redSqr(),St=Mt.redSub(wt).redISub(wt),nt=a.redSub(d).redISub(et).redMul(St),tt=Mt.redMul(gt.redSub(et)),bt=Mt.redMul(St))}else gt=d.redAdd(et),wt=this.curve._mulC(this.z).redSqr(),St=gt.redSub(wt).redSub(wt),nt=this.curve._mulC(a.redISub(gt)).redMul(St),tt=this.curve._mulC(gt).redMul(d.redISub(et)),bt=gt.redMul(St);return this.curve.point(nt,tt,bt)};Point$4.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Point$4.prototype._extAdd=function(a){var d=this.y.redSub(this.x).redMul(a.y.redSub(a.x)),et=this.y.redAdd(this.x).redMul(a.y.redAdd(a.x)),nt=this.t.redMul(this.curve.dd).redMul(a.t),tt=this.z.redMul(a.z.redAdd(a.z)),bt=et.redSub(d),gt=tt.redSub(nt),wt=tt.redAdd(nt),St=et.redAdd(d),Mt=bt.redMul(gt),_t=wt.redMul(St),Tt=bt.redMul(St),Rt=gt.redMul(wt);return this.curve.point(Mt,_t,Rt,Tt)};Point$4.prototype._projAdd=function(a){var d=this.z.redMul(a.z),et=d.redSqr(),nt=this.x.redMul(a.x),tt=this.y.redMul(a.y),bt=this.curve.d.redMul(nt).redMul(tt),gt=et.redSub(bt),wt=et.redAdd(bt),St=this.x.redAdd(this.y).redMul(a.x.redAdd(a.y)).redISub(nt).redISub(tt),Mt=d.redMul(gt).redMul(St),_t,Tt;return this.curve.twisted?(_t=d.redMul(wt).redMul(tt.redSub(this.curve._mulA(nt))),Tt=gt.redMul(wt)):(_t=d.redMul(wt).redMul(tt.redSub(nt)),Tt=this.curve._mulC(gt).redMul(wt)),this.curve.point(Mt,_t,Tt)};Point$4.prototype.add=function(a){return this.isInfinity()?a:a.isInfinity()?this:this.curve.extended?this._extAdd(a):this._projAdd(a)};Point$4.prototype.mul=function(a){return this._hasDoubles(a)?this.curve._fixedNafMul(this,a):this.curve._wnafMul(this,a)};Point$4.prototype.mulAdd=function(a,d,et){return this.curve._wnafMulAdd(1,[this,d],[a,et],2,!1)};Point$4.prototype.jmulAdd=function(a,d,et){return this.curve._wnafMulAdd(1,[this,d],[a,et],2,!0)};Point$4.prototype.normalize=function(){if(this.zOne)return this;var a=this.z.redInvm();return this.x=this.x.redMul(a),this.y=this.y.redMul(a),this.t&&(this.t=this.t.redMul(a)),this.z=this.curve.one,this.zOne=!0,this};Point$4.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Point$4.prototype.getX=function(){return this.normalize(),this.x.fromRed()};Point$4.prototype.getY=function(){return this.normalize(),this.y.fromRed()};Point$4.prototype.eq=function(a){return this===a||this.getX().cmp(a.getX())===0&&this.getY().cmp(a.getY())===0};Point$4.prototype.eqXToP=function(a){var d=a.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(d)===0)return!0;for(var et=a.clone(),nt=this.curve.redN.redMul(this.z);;){if(et.iadd(this.curve.n),et.cmp(this.curve.p)>=0)return!1;if(d.redIAdd(nt),this.x.cmp(d)===0)return!0}};Point$4.prototype.toP=Point$4.prototype.normalize;Point$4.prototype.mixedAdd=Point$4.prototype.add;(function(c){var a=c;a.base=base$3,a.short=short$1,a.mont=mont$1,a.edwards=edwards$1})(curve$1);var curves$3={},hash$7={},utils$s={},assert$i=minimalisticAssert,inherits$4=inherits_browserExports;utils$s.inherits=inherits$4;function isSurrogatePair(c,a){return(c.charCodeAt(a)&64512)!==55296||a<0||a+1>=c.length?!1:(c.charCodeAt(a+1)&64512)===56320}function toArray(c,a){if(Array.isArray(c))return c.slice();if(!c)return[];var d=[];if(typeof c=="string")if(a){if(a==="hex")for(c=c.replace(/[^a-z0-9]+/ig,""),c.length%2!==0&&(c="0"+c),nt=0;nt>6|192,d[et++]=tt&63|128):isSurrogatePair(c,nt)?(tt=65536+((tt&1023)<<10)+(c.charCodeAt(++nt)&1023),d[et++]=tt>>18|240,d[et++]=tt>>12&63|128,d[et++]=tt>>6&63|128,d[et++]=tt&63|128):(d[et++]=tt>>12|224,d[et++]=tt>>6&63|128,d[et++]=tt&63|128)}else for(nt=0;nt>>24|c>>>8&65280|c<<8&16711680|(c&255)<<24;return a>>>0}utils$s.htonl=htonl;function toHex32(c,a){for(var d="",et=0;et>>0}return tt}utils$s.join32=join32;function split32(c,a){for(var d=new Array(c.length*4),et=0,nt=0;et>>24,d[nt+1]=tt>>>16&255,d[nt+2]=tt>>>8&255,d[nt+3]=tt&255):(d[nt+3]=tt>>>24,d[nt+2]=tt>>>16&255,d[nt+1]=tt>>>8&255,d[nt]=tt&255)}return d}utils$s.split32=split32;function rotr32$1(c,a){return c>>>a|c<<32-a}utils$s.rotr32=rotr32$1;function rotl32$2(c,a){return c<>>32-a}utils$s.rotl32=rotl32$2;function sum32$3(c,a){return c+a>>>0}utils$s.sum32=sum32$3;function sum32_3$1(c,a,d){return c+a+d>>>0}utils$s.sum32_3=sum32_3$1;function sum32_4$2(c,a,d,et){return c+a+d+et>>>0}utils$s.sum32_4=sum32_4$2;function sum32_5$2(c,a,d,et,nt){return c+a+d+et+nt>>>0}utils$s.sum32_5=sum32_5$2;function sum64$1(c,a,d,et){var nt=c[a],tt=c[a+1],bt=et+tt>>>0,gt=(bt>>0,c[a+1]=bt}utils$s.sum64=sum64$1;function sum64_hi$1(c,a,d,et){var nt=a+et>>>0,tt=(nt>>0}utils$s.sum64_hi=sum64_hi$1;function sum64_lo$1(c,a,d,et){var nt=a+et;return nt>>>0}utils$s.sum64_lo=sum64_lo$1;function sum64_4_hi$1(c,a,d,et,nt,tt,bt,gt){var wt=0,St=a;St=St+et>>>0,wt+=St>>0,wt+=St>>0,wt+=St>>0}utils$s.sum64_4_hi=sum64_4_hi$1;function sum64_4_lo$1(c,a,d,et,nt,tt,bt,gt){var wt=a+et+tt+gt;return wt>>>0}utils$s.sum64_4_lo=sum64_4_lo$1;function sum64_5_hi$1(c,a,d,et,nt,tt,bt,gt,wt,St){var Mt=0,_t=a;_t=_t+et>>>0,Mt+=_t>>0,Mt+=_t>>0,Mt+=_t>>0,Mt+=_t>>0}utils$s.sum64_5_hi=sum64_5_hi$1;function sum64_5_lo$1(c,a,d,et,nt,tt,bt,gt,wt,St){var Mt=a+et+tt+gt+St;return Mt>>>0}utils$s.sum64_5_lo=sum64_5_lo$1;function rotr64_hi$1(c,a,d){var et=a<<32-d|c>>>d;return et>>>0}utils$s.rotr64_hi=rotr64_hi$1;function rotr64_lo$1(c,a,d){var et=c<<32-d|a>>>d;return et>>>0}utils$s.rotr64_lo=rotr64_lo$1;function shr64_hi$1(c,a,d){return c>>>d}utils$s.shr64_hi=shr64_hi$1;function shr64_lo$1(c,a,d){var et=c<<32-d|a>>>d;return et>>>0}utils$s.shr64_lo=shr64_lo$1;var common$6={},utils$r=utils$s,assert$h=minimalisticAssert;function BlockHash$4(){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}common$6.BlockHash=BlockHash$4;BlockHash$4.prototype.update=function(a,d){if(a=utils$r.toArray(a,d),this.pending?this.pending=this.pending.concat(a):this.pending=a,this.pendingTotal+=a.length,this.pending.length>=this._delta8){a=this.pending;var et=a.length%this._delta8;this.pending=a.slice(a.length-et,a.length),this.pending.length===0&&(this.pending=null),a=utils$r.join32(a,0,a.length-et,this.endian);for(var nt=0;nt>>24&255,nt[tt++]=a>>>16&255,nt[tt++]=a>>>8&255,nt[tt++]=a&255}else for(nt[tt++]=a&255,nt[tt++]=a>>>8&255,nt[tt++]=a>>>16&255,nt[tt++]=a>>>24&255,nt[tt++]=0,nt[tt++]=0,nt[tt++]=0,nt[tt++]=0,bt=8;bt>>3}common$5.g0_256=g0_256$1;function g1_256$1(c){return rotr32(c,17)^rotr32(c,19)^c>>>10}common$5.g1_256=g1_256$1;var utils$p=utils$s,common$4=common$6,shaCommon$1=common$5,rotl32$1=utils$p.rotl32,sum32$2=utils$p.sum32,sum32_5$1=utils$p.sum32_5,ft_1=shaCommon$1.ft_1,BlockHash$3=common$4.BlockHash,sha1_K=[1518500249,1859775393,2400959708,3395469782];function SHA1(){if(!(this instanceof SHA1))return new SHA1;BlockHash$3.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}utils$p.inherits(SHA1,BlockHash$3);var _1=SHA1;SHA1.blockSize=512;SHA1.outSize=160;SHA1.hmacStrength=80;SHA1.padLength=64;SHA1.prototype._update=function(a,d){for(var et=this.W,nt=0;nt<16;nt++)et[nt]=a[d+nt];for(;ntthis.blockSize&&(a=new this.Hash().update(a).digest()),assert$e(a.length<=this.blockSize);for(var d=a.length;d=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(a,d,et)}var hmacDrbg=HmacDRBG;HmacDRBG.prototype._init=function(a,d,et){var nt=a.concat(d).concat(et);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var tt=0;tt=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(a.concat(et||[])),this._reseed=1};HmacDRBG.prototype.generate=function(a,d,et,nt){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof d!="string"&&(nt=et,et=d,d=null),et&&(et=utils$i.toArray(et,nt||"hex"),this._update(et));for(var tt=[];tt.length"};var BN$b=bnExports$4,utils$g=utils$y,assert$b=utils$g.assert;function Signature$7(c,a){if(c instanceof Signature$7)return c;this._importDER(c,a)||(assert$b(c.r&&c.s,"Signature without r or s"),this.r=new BN$b(c.r,16),this.s=new BN$b(c.s,16),c.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=c.recoveryParam)}var signature$3=Signature$7;function Position$1(){this.place=0}function getLength$1(c,a){var d=c[a.place++];if(!(d&128))return d;var et=d&15;if(et===0||et>4)return!1;for(var nt=0,tt=0,bt=a.place;tt>>=0;return nt<=127?!1:(a.place=bt,nt)}function rmPadding$1(c){for(var a=0,d=c.length-1;!c[a]&&!(c[a+1]&128)&&a>>3);for(c.push(d|128);--d;)c.push(a>>>(d<<3)&255);c.push(a)}Signature$7.prototype.toDER=function(a){var d=this.r.toArray(),et=this.s.toArray();for(d[0]&128&&(d=[0].concat(d)),et[0]&128&&(et=[0].concat(et)),d=rmPadding$1(d),et=rmPadding$1(et);!et[0]&&!(et[1]&128);)et=et.slice(1);var nt=[2];constructLength$1(nt,d.length),nt=nt.concat(d),nt.push(2),constructLength$1(nt,et.length);var tt=nt.concat(et),bt=[48];return constructLength$1(bt,tt.length),bt=bt.concat(tt),utils$g.encode(bt,a)};var ec$1,hasRequiredEc$1;function requireEc$1(){if(hasRequiredEc$1)return ec$1;hasRequiredEc$1=1;var c=bnExports$4,a=hmacDrbg,d=utils$y,et=curves$3,nt=requireBrorand(),tt=d.assert,bt=key$3,gt=signature$3;function wt(St){if(!(this instanceof wt))return new wt(St);typeof St=="string"&&(tt(Object.prototype.hasOwnProperty.call(et,St),"Unknown curve "+St),St=et[St]),St instanceof et.PresetCurve&&(St={curve:St}),this.curve=St.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=St.curve.g,this.g.precompute(St.curve.n.bitLength()+1),this.hash=St.hash||St.curve.hash}return ec$1=wt,wt.prototype.keyPair=function(Mt){return new bt(this,Mt)},wt.prototype.keyFromPrivate=function(Mt,_t){return bt.fromPrivate(this,Mt,_t)},wt.prototype.keyFromPublic=function(Mt,_t){return bt.fromPublic(this,Mt,_t)},wt.prototype.genKeyPair=function(Mt){Mt||(Mt={});for(var _t=new a({hash:this.hash,pers:Mt.pers,persEnc:Mt.persEnc||"utf8",entropy:Mt.entropy||nt(this.hash.hmacStrength),entropyEnc:Mt.entropy&&Mt.entropyEnc||"utf8",nonce:this.n.toArray()}),Tt=this.n.byteLength(),Rt=this.n.sub(new c(2));;){var kt=new c(_t.generate(Tt));if(!(kt.cmp(Rt)>0))return kt.iaddn(1),this.keyFromPrivate(kt)}},wt.prototype._truncateToN=function(Mt,_t){var Tt=Mt.byteLength()*8-this.n.bitLength();return Tt>0&&(Mt=Mt.ushrn(Tt)),!_t&&Mt.cmp(this.n)>=0?Mt.sub(this.n):Mt},wt.prototype.sign=function(Mt,_t,Tt,Rt){typeof Tt=="object"&&(Rt=Tt,Tt=null),Rt||(Rt={}),_t=this.keyFromPrivate(_t,Tt),Mt=this._truncateToN(new c(Mt,16));for(var kt=this.n.byteLength(),It=_t.getPrivate().toArray("be",kt),Lt=Mt.toArray("be",kt),Ot=new a({hash:this.hash,entropy:It,nonce:Lt,pers:Rt.pers,persEnc:Rt.persEnc||"utf8"}),Nt=this.n.sub(new c(1)),Ft=0;;Ft++){var jt=Rt.k?Rt.k(Ft):new c(Ot.generate(this.n.byteLength()));if(jt=this._truncateToN(jt,!0),!(jt.cmpn(1)<=0||jt.cmp(Nt)>=0)){var Vt=this.g.mul(jt);if(!Vt.isInfinity()){var Jt=Vt.getX(),ir=Jt.umod(this.n);if(ir.cmpn(0)!==0){var rr=jt.invm(this.n).mul(ir.mul(_t.getPrivate()).iadd(Mt));if(rr=rr.umod(this.n),rr.cmpn(0)!==0){var er=(Vt.getY().isOdd()?1:0)|(Jt.cmp(ir)!==0?2:0);return Rt.canonical&&rr.cmp(this.nh)>0&&(rr=this.n.sub(rr),er^=1),new gt({r:ir,s:rr,recoveryParam:er})}}}}}},wt.prototype.verify=function(Mt,_t,Tt,Rt){Mt=this._truncateToN(new c(Mt,16)),Tt=this.keyFromPublic(Tt,Rt),_t=new gt(_t,"hex");var kt=_t.r,It=_t.s;if(kt.cmpn(1)<0||kt.cmp(this.n)>=0||It.cmpn(1)<0||It.cmp(this.n)>=0)return!1;var Lt=It.invm(this.n),Ot=Lt.mul(Mt).umod(this.n),Nt=Lt.mul(kt).umod(this.n),Ft;return this.curve._maxwellTrick?(Ft=this.g.jmulAdd(Ot,Tt.getPublic(),Nt),Ft.isInfinity()?!1:Ft.eqXToP(kt)):(Ft=this.g.mulAdd(Ot,Tt.getPublic(),Nt),Ft.isInfinity()?!1:Ft.getX().umod(this.n).cmp(kt)===0)},wt.prototype.recoverPubKey=function(St,Mt,_t,Tt){tt((3&_t)===_t,"The recovery param is more than two bits"),Mt=new gt(Mt,Tt);var Rt=this.n,kt=new c(St),It=Mt.r,Lt=Mt.s,Ot=_t&1,Nt=_t>>1;if(It.cmp(this.curve.p.umod(this.curve.n))>=0&&Nt)throw new Error("Unable to find sencond key candinate");Nt?It=this.curve.pointFromX(It.add(this.curve.n),Ot):It=this.curve.pointFromX(It,Ot);var Ft=Mt.r.invm(Rt),jt=Rt.sub(kt).mul(Ft).umod(Rt),Vt=Lt.mul(Ft).umod(Rt);return this.g.mulAdd(jt,It,Vt)},wt.prototype.getKeyRecoveryParam=function(St,Mt,_t,Tt){if(Mt=new gt(Mt,Tt),Mt.recoveryParam!==null)return Mt.recoveryParam;for(var Rt=0;Rt<4;Rt++){var kt;try{kt=this.recoverPubKey(St,Mt,Rt)}catch{continue}if(kt.eq(_t))return Rt}throw new Error("Unable to find valid recovery factor")},ec$1}var utils$f=utils$y,assert$a=utils$f.assert,parseBytes$5=utils$f.parseBytes,cachedProperty$3=utils$f.cachedProperty;function KeyPair$4(c,a){this.eddsa=c,this._secret=parseBytes$5(a.secret),c.isPoint(a.pub)?this._pub=a.pub:this._pubBytes=parseBytes$5(a.pub)}KeyPair$4.fromPublic=function(a,d){return d instanceof KeyPair$4?d:new KeyPair$4(a,{pub:d})};KeyPair$4.fromSecret=function(a,d){return d instanceof KeyPair$4?d:new KeyPair$4(a,{secret:d})};KeyPair$4.prototype.secret=function(){return this._secret};cachedProperty$3(KeyPair$4,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});cachedProperty$3(KeyPair$4,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});cachedProperty$3(KeyPair$4,"privBytes",function(){var a=this.eddsa,d=this.hash(),et=a.encodingLength-1,nt=d.slice(0,a.encodingLength);return nt[0]&=248,nt[et]&=127,nt[et]|=64,nt});cachedProperty$3(KeyPair$4,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});cachedProperty$3(KeyPair$4,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});cachedProperty$3(KeyPair$4,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});KeyPair$4.prototype.sign=function(a){return assert$a(this._secret,"KeyPair can only verify"),this.eddsa.sign(a,this)};KeyPair$4.prototype.verify=function(a,d){return this.eddsa.verify(a,d,this)};KeyPair$4.prototype.getSecret=function(a){return assert$a(this._secret,"KeyPair is public only"),utils$f.encode(this.secret(),a)};KeyPair$4.prototype.getPublic=function(a){return utils$f.encode(this.pubBytes(),a)};var key$2=KeyPair$4,BN$a=bnExports$4,utils$e=utils$y,assert$9=utils$e.assert,cachedProperty$2=utils$e.cachedProperty,parseBytes$4=utils$e.parseBytes;function Signature$6(c,a){this.eddsa=c,typeof a!="object"&&(a=parseBytes$4(a)),Array.isArray(a)&&(a={R:a.slice(0,c.encodingLength),S:a.slice(c.encodingLength)}),assert$9(a.R&&a.S,"Signature without R or S"),c.isPoint(a.R)&&(this._R=a.R),a.S instanceof BN$a&&(this._S=a.S),this._Rencoded=Array.isArray(a.R)?a.R:a.Rencoded,this._Sencoded=Array.isArray(a.S)?a.S:a.Sencoded}cachedProperty$2(Signature$6,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});cachedProperty$2(Signature$6,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});cachedProperty$2(Signature$6,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});cachedProperty$2(Signature$6,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Signature$6.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Signature$6.prototype.toHex=function(){return utils$e.encode(this.toBytes(),"hex").toUpperCase()};var signature$2=Signature$6,hash$5=hash$7,curves$2=curves$3,utils$d=utils$y,assert$8=utils$d.assert,parseBytes$3=utils$d.parseBytes,KeyPair$3=key$2,Signature$5=signature$2;function EDDSA$1(c){if(assert$8(c==="ed25519","only tested with ed25519 so far"),!(this instanceof EDDSA$1))return new EDDSA$1(c);c=curves$2[c].curve,this.curve=c,this.g=c.g,this.g.precompute(c.n.bitLength()+1),this.pointClass=c.point().constructor,this.encodingLength=Math.ceil(c.n.bitLength()/8),this.hash=hash$5.sha512}var eddsa$1=EDDSA$1;EDDSA$1.prototype.sign=function(a,d){a=parseBytes$3(a);var et=this.keyFromSecret(d),nt=this.hashInt(et.messagePrefix(),a),tt=this.g.mul(nt),bt=this.encodePoint(tt),gt=this.hashInt(bt,et.pubBytes(),a).mul(et.priv()),wt=nt.add(gt).umod(this.curve.n);return this.makeSignature({R:tt,S:wt,Rencoded:bt})};EDDSA$1.prototype.verify=function(a,d,et){a=parseBytes$3(a),d=this.makeSignature(d);var nt=this.keyFromPublic(et),tt=this.hashInt(d.Rencoded(),nt.pubBytes(),a),bt=this.g.mul(d.S()),gt=d.R().add(nt.pub().mul(tt));return gt.eq(bt)};EDDSA$1.prototype.hashInt=function(){for(var a=this.hash(),d=0;d0?dt:mt},tt.min=function(dt,mt){return dt.cmp(mt)<0?dt:mt},tt.prototype._init=function(dt,mt,yt){if(typeof dt=="number")return this._initNumber(dt,mt,yt);if(typeof dt=="object")return this._initArray(dt,mt,yt);mt==="hex"&&(mt=16),et(mt===(mt|0)&&mt>=2&&mt<=36),dt=dt.toString().replace(/\s+/g,"");var vt=0;dt[0]==="-"&&(vt++,this.negative=1),vt=0;vt-=3)At=dt[vt]|dt[vt-1]<<8|dt[vt-2]<<16,this.words[Et]|=At<>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,Et++);else if(yt==="le")for(vt=0,Et=0;vt>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,Et++);return this.strip()};function gt(Ct,dt){var mt=Ct.charCodeAt(dt);return mt>=65&&mt<=70?mt-55:mt>=97&&mt<=102?mt-87:mt-48&15}function wt(Ct,dt,mt){var yt=gt(Ct,mt);return mt-1>=dt&&(yt|=gt(Ct,mt-1)<<4),yt}tt.prototype._parseHex=function(dt,mt,yt){this.length=Math.ceil((dt.length-mt)/6),this.words=new Array(this.length);for(var vt=0;vt=mt;vt-=2)Pt=wt(dt,mt,vt)<=18?(Et-=18,At+=1,this.words[At]|=Pt>>>26):Et+=8;else{var xt=dt.length-mt;for(vt=xt%2===0?mt+1:mt;vt=18?(Et-=18,At+=1,this.words[At]|=Pt>>>26):Et+=8}this.strip()};function St(Ct,dt,mt,yt){for(var vt=0,Et=Math.min(Ct.length,mt),At=dt;At=49?vt+=Pt-49+10:Pt>=17?vt+=Pt-17+10:vt+=Pt}return vt}tt.prototype._parseBase=function(dt,mt,yt){this.words=[0],this.length=1;for(var vt=0,Et=1;Et<=67108863;Et*=mt)vt++;vt--,Et=Et/mt|0;for(var At=dt.length-yt,Pt=At%vt,xt=Math.min(At,At-Pt)+yt,ht=0,$t=yt;$t1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},tt.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},tt.prototype.inspect=function(){return(this.red?""};var Mt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],_t=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Tt=[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];tt.prototype.toString=function(dt,mt){dt=dt||10,mt=mt|0||1;var yt;if(dt===16||dt==="hex"){yt="";for(var vt=0,Et=0,At=0;At>>24-vt&16777215,Et!==0||At!==this.length-1?yt=Mt[6-xt.length]+xt+yt:yt=xt+yt,vt+=2,vt>=26&&(vt-=26,At--)}for(Et!==0&&(yt=Et.toString(16)+yt);yt.length%mt!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}if(dt===(dt|0)&&dt>=2&&dt<=36){var ht=_t[dt],$t=Tt[dt];yt="";var Bt=this.clone();for(Bt.negative=0;!Bt.isZero();){var Dt=Bt.modn($t).toString(dt);Bt=Bt.idivn($t),Bt.isZero()?yt=Dt+yt:yt=Mt[ht-Dt.length]+Dt+yt}for(this.isZero()&&(yt="0"+yt);yt.length%mt!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}et(!1,"Base should be between 2 and 36")},tt.prototype.toNumber=function(){var dt=this.words[0];return this.length===2?dt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?dt+=4503599627370496+this.words[1]*67108864:this.length>2&&et(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-dt:dt},tt.prototype.toJSON=function(){return this.toString(16)},tt.prototype.toBuffer=function(dt,mt){return et(typeof bt<"u"),this.toArrayLike(bt,dt,mt)},tt.prototype.toArray=function(dt,mt){return this.toArrayLike(Array,dt,mt)},tt.prototype.toArrayLike=function(dt,mt,yt){var vt=this.byteLength(),Et=yt||Math.max(1,vt);et(vt<=Et,"byte array longer than desired length"),et(Et>0,"Requested array length <= 0"),this.strip();var At=mt==="le",Pt=new dt(Et),xt,ht,$t=this.clone();if(At){for(ht=0;!$t.isZero();ht++)xt=$t.andln(255),$t.iushrn(8),Pt[ht]=xt;for(;ht=4096&&(yt+=13,mt>>>=13),mt>=64&&(yt+=7,mt>>>=7),mt>=8&&(yt+=4,mt>>>=4),mt>=2&&(yt+=2,mt>>>=2),yt+mt},tt.prototype._zeroBits=function(dt){if(dt===0)return 26;var mt=dt,yt=0;return mt&8191||(yt+=13,mt>>>=13),mt&127||(yt+=7,mt>>>=7),mt&15||(yt+=4,mt>>>=4),mt&3||(yt+=2,mt>>>=2),mt&1||yt++,yt},tt.prototype.bitLength=function(){var dt=this.words[this.length-1],mt=this._countBits(dt);return(this.length-1)*26+mt};function Rt(Ct){for(var dt=new Array(Ct.bitLength()),mt=0;mt>>vt}return dt}tt.prototype.zeroBits=function(){if(this.isZero())return 0;for(var dt=0,mt=0;mtdt.length?this.clone().ior(dt):dt.clone().ior(this)},tt.prototype.uor=function(dt){return this.length>dt.length?this.clone().iuor(dt):dt.clone().iuor(this)},tt.prototype.iuand=function(dt){var mt;this.length>dt.length?mt=dt:mt=this;for(var yt=0;ytdt.length?this.clone().iand(dt):dt.clone().iand(this)},tt.prototype.uand=function(dt){return this.length>dt.length?this.clone().iuand(dt):dt.clone().iuand(this)},tt.prototype.iuxor=function(dt){var mt,yt;this.length>dt.length?(mt=this,yt=dt):(mt=dt,yt=this);for(var vt=0;vtdt.length?this.clone().ixor(dt):dt.clone().ixor(this)},tt.prototype.uxor=function(dt){return this.length>dt.length?this.clone().iuxor(dt):dt.clone().iuxor(this)},tt.prototype.inotn=function(dt){et(typeof dt=="number"&&dt>=0);var mt=Math.ceil(dt/26)|0,yt=dt%26;this._expand(mt),yt>0&&mt--;for(var vt=0;vt0&&(this.words[vt]=~this.words[vt]&67108863>>26-yt),this.strip()},tt.prototype.notn=function(dt){return this.clone().inotn(dt)},tt.prototype.setn=function(dt,mt){et(typeof dt=="number"&&dt>=0);var yt=dt/26|0,vt=dt%26;return this._expand(yt+1),mt?this.words[yt]=this.words[yt]|1<dt.length?(yt=this,vt=dt):(yt=dt,vt=this);for(var Et=0,At=0;At>>26;for(;Et!==0&&At>>26;if(this.length=yt.length,Et!==0)this.words[this.length]=Et,this.length++;else if(yt!==this)for(;Atdt.length?this.clone().iadd(dt):dt.clone().iadd(this)},tt.prototype.isub=function(dt){if(dt.negative!==0){dt.negative=0;var mt=this.iadd(dt);return dt.negative=1,mt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(dt),this.negative=1,this._normSign();var yt=this.cmp(dt);if(yt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var vt,Et;yt>0?(vt=this,Et=dt):(vt=dt,Et=this);for(var At=0,Pt=0;Pt>26,this.words[Pt]=mt&67108863;for(;At!==0&&Pt>26,this.words[Pt]=mt&67108863;if(At===0&&Pt>>26,Bt=xt&67108863,Dt=Math.min(ht,dt.length-1),Ht=Math.max(0,ht-Ct.length+1);Ht<=Dt;Ht++){var tr=ht-Ht|0;vt=Ct.words[tr]|0,Et=dt.words[Ht]|0,At=vt*Et+Bt,$t+=At/67108864|0,Bt=At&67108863}mt.words[ht]=Bt|0,xt=$t|0}return xt!==0?mt.words[ht]=xt|0:mt.length--,mt.strip()}var It=function(dt,mt,yt){var vt=dt.words,Et=mt.words,At=yt.words,Pt=0,xt,ht,$t,Bt=vt[0]|0,Dt=Bt&8191,Ht=Bt>>>13,tr=vt[1]|0,Xt=tr&8191,Ut=tr>>>13,qt=vt[2]|0,Gt=qt&8191,Zt=qt>>>13,Yt=vt[3]|0,Kt=Yt&8191,ar=Yt>>>13,gr=vt[4]|0,cr=gr&8191,ur=gr>>>13,Pr=vt[5]|0,br=Pr&8191,dr=Pr>>>13,Kr=vt[6]|0,xr=Kr&8191,Sr=Kr>>>13,Zr=vt[7]|0,$r=Zr&8191,Mr=Zr>>>13,Xr=vt[8]|0,Qt=Xr&8191,zt=Xr>>>13,Wt=vt[9]|0,nr=Wt&8191,fr=Wt>>>13,Er=Et[0]|0,pr=Er&8191,vr=Er>>>13,Jr=Et[1]|0,wr=Jr&8191,Ar=Jr>>>13,Yr=Et[2]|0,Cr=Yr&8191,Or=Yr>>>13,Qr=Et[3]|0,_r=Qr&8191,Dr=Qr>>>13,r0=Et[4]|0,Tr=r0&8191,Lr=r0>>>13,n0=Et[5]|0,Rr=n0&8191,Fr=n0>>>13,i0=Et[6]|0,Br=i0&8191,jr=i0>>>13,a0=Et[7]|0,kr=a0&8191,Ur=a0>>>13,s0=Et[8]|0,Ir=s0&8191,Hr=s0>>>13,o0=Et[9]|0,Nr=o0&8191,qr=o0>>>13;yt.negative=dt.negative^mt.negative,yt.length=19,xt=Math.imul(Dt,pr),ht=Math.imul(Dt,vr),ht=ht+Math.imul(Ht,pr)|0,$t=Math.imul(Ht,vr);var e0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(e0>>>26)|0,e0&=67108863,xt=Math.imul(Xt,pr),ht=Math.imul(Xt,vr),ht=ht+Math.imul(Ut,pr)|0,$t=Math.imul(Ut,vr),xt=xt+Math.imul(Dt,wr)|0,ht=ht+Math.imul(Dt,Ar)|0,ht=ht+Math.imul(Ht,wr)|0,$t=$t+Math.imul(Ht,Ar)|0;var t0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(t0>>>26)|0,t0&=67108863,xt=Math.imul(Gt,pr),ht=Math.imul(Gt,vr),ht=ht+Math.imul(Zt,pr)|0,$t=Math.imul(Zt,vr),xt=xt+Math.imul(Xt,wr)|0,ht=ht+Math.imul(Xt,Ar)|0,ht=ht+Math.imul(Ut,wr)|0,$t=$t+Math.imul(Ut,Ar)|0,xt=xt+Math.imul(Dt,Cr)|0,ht=ht+Math.imul(Dt,Or)|0,ht=ht+Math.imul(Ht,Cr)|0,$t=$t+Math.imul(Ht,Or)|0;var f0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(f0>>>26)|0,f0&=67108863,xt=Math.imul(Kt,pr),ht=Math.imul(Kt,vr),ht=ht+Math.imul(ar,pr)|0,$t=Math.imul(ar,vr),xt=xt+Math.imul(Gt,wr)|0,ht=ht+Math.imul(Gt,Ar)|0,ht=ht+Math.imul(Zt,wr)|0,$t=$t+Math.imul(Zt,Ar)|0,xt=xt+Math.imul(Xt,Cr)|0,ht=ht+Math.imul(Xt,Or)|0,ht=ht+Math.imul(Ut,Cr)|0,$t=$t+Math.imul(Ut,Or)|0,xt=xt+Math.imul(Dt,_r)|0,ht=ht+Math.imul(Dt,Dr)|0,ht=ht+Math.imul(Ht,_r)|0,$t=$t+Math.imul(Ht,Dr)|0;var c0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(c0>>>26)|0,c0&=67108863,xt=Math.imul(cr,pr),ht=Math.imul(cr,vr),ht=ht+Math.imul(ur,pr)|0,$t=Math.imul(ur,vr),xt=xt+Math.imul(Kt,wr)|0,ht=ht+Math.imul(Kt,Ar)|0,ht=ht+Math.imul(ar,wr)|0,$t=$t+Math.imul(ar,Ar)|0,xt=xt+Math.imul(Gt,Cr)|0,ht=ht+Math.imul(Gt,Or)|0,ht=ht+Math.imul(Zt,Cr)|0,$t=$t+Math.imul(Zt,Or)|0,xt=xt+Math.imul(Xt,_r)|0,ht=ht+Math.imul(Xt,Dr)|0,ht=ht+Math.imul(Ut,_r)|0,$t=$t+Math.imul(Ut,Dr)|0,xt=xt+Math.imul(Dt,Tr)|0,ht=ht+Math.imul(Dt,Lr)|0,ht=ht+Math.imul(Ht,Tr)|0,$t=$t+Math.imul(Ht,Lr)|0;var l0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(l0>>>26)|0,l0&=67108863,xt=Math.imul(br,pr),ht=Math.imul(br,vr),ht=ht+Math.imul(dr,pr)|0,$t=Math.imul(dr,vr),xt=xt+Math.imul(cr,wr)|0,ht=ht+Math.imul(cr,Ar)|0,ht=ht+Math.imul(ur,wr)|0,$t=$t+Math.imul(ur,Ar)|0,xt=xt+Math.imul(Kt,Cr)|0,ht=ht+Math.imul(Kt,Or)|0,ht=ht+Math.imul(ar,Cr)|0,$t=$t+Math.imul(ar,Or)|0,xt=xt+Math.imul(Gt,_r)|0,ht=ht+Math.imul(Gt,Dr)|0,ht=ht+Math.imul(Zt,_r)|0,$t=$t+Math.imul(Zt,Dr)|0,xt=xt+Math.imul(Xt,Tr)|0,ht=ht+Math.imul(Xt,Lr)|0,ht=ht+Math.imul(Ut,Tr)|0,$t=$t+Math.imul(Ut,Lr)|0,xt=xt+Math.imul(Dt,Rr)|0,ht=ht+Math.imul(Dt,Fr)|0,ht=ht+Math.imul(Ht,Rr)|0,$t=$t+Math.imul(Ht,Fr)|0;var u0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(u0>>>26)|0,u0&=67108863,xt=Math.imul(xr,pr),ht=Math.imul(xr,vr),ht=ht+Math.imul(Sr,pr)|0,$t=Math.imul(Sr,vr),xt=xt+Math.imul(br,wr)|0,ht=ht+Math.imul(br,Ar)|0,ht=ht+Math.imul(dr,wr)|0,$t=$t+Math.imul(dr,Ar)|0,xt=xt+Math.imul(cr,Cr)|0,ht=ht+Math.imul(cr,Or)|0,ht=ht+Math.imul(ur,Cr)|0,$t=$t+Math.imul(ur,Or)|0,xt=xt+Math.imul(Kt,_r)|0,ht=ht+Math.imul(Kt,Dr)|0,ht=ht+Math.imul(ar,_r)|0,$t=$t+Math.imul(ar,Dr)|0,xt=xt+Math.imul(Gt,Tr)|0,ht=ht+Math.imul(Gt,Lr)|0,ht=ht+Math.imul(Zt,Tr)|0,$t=$t+Math.imul(Zt,Lr)|0,xt=xt+Math.imul(Xt,Rr)|0,ht=ht+Math.imul(Xt,Fr)|0,ht=ht+Math.imul(Ut,Rr)|0,$t=$t+Math.imul(Ut,Fr)|0,xt=xt+Math.imul(Dt,Br)|0,ht=ht+Math.imul(Dt,jr)|0,ht=ht+Math.imul(Ht,Br)|0,$t=$t+Math.imul(Ht,jr)|0;var d0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(d0>>>26)|0,d0&=67108863,xt=Math.imul($r,pr),ht=Math.imul($r,vr),ht=ht+Math.imul(Mr,pr)|0,$t=Math.imul(Mr,vr),xt=xt+Math.imul(xr,wr)|0,ht=ht+Math.imul(xr,Ar)|0,ht=ht+Math.imul(Sr,wr)|0,$t=$t+Math.imul(Sr,Ar)|0,xt=xt+Math.imul(br,Cr)|0,ht=ht+Math.imul(br,Or)|0,ht=ht+Math.imul(dr,Cr)|0,$t=$t+Math.imul(dr,Or)|0,xt=xt+Math.imul(cr,_r)|0,ht=ht+Math.imul(cr,Dr)|0,ht=ht+Math.imul(ur,_r)|0,$t=$t+Math.imul(ur,Dr)|0,xt=xt+Math.imul(Kt,Tr)|0,ht=ht+Math.imul(Kt,Lr)|0,ht=ht+Math.imul(ar,Tr)|0,$t=$t+Math.imul(ar,Lr)|0,xt=xt+Math.imul(Gt,Rr)|0,ht=ht+Math.imul(Gt,Fr)|0,ht=ht+Math.imul(Zt,Rr)|0,$t=$t+Math.imul(Zt,Fr)|0,xt=xt+Math.imul(Xt,Br)|0,ht=ht+Math.imul(Xt,jr)|0,ht=ht+Math.imul(Ut,Br)|0,$t=$t+Math.imul(Ut,jr)|0,xt=xt+Math.imul(Dt,kr)|0,ht=ht+Math.imul(Dt,Ur)|0,ht=ht+Math.imul(Ht,kr)|0,$t=$t+Math.imul(Ht,Ur)|0;var h0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(h0>>>26)|0,h0&=67108863,xt=Math.imul(Qt,pr),ht=Math.imul(Qt,vr),ht=ht+Math.imul(zt,pr)|0,$t=Math.imul(zt,vr),xt=xt+Math.imul($r,wr)|0,ht=ht+Math.imul($r,Ar)|0,ht=ht+Math.imul(Mr,wr)|0,$t=$t+Math.imul(Mr,Ar)|0,xt=xt+Math.imul(xr,Cr)|0,ht=ht+Math.imul(xr,Or)|0,ht=ht+Math.imul(Sr,Cr)|0,$t=$t+Math.imul(Sr,Or)|0,xt=xt+Math.imul(br,_r)|0,ht=ht+Math.imul(br,Dr)|0,ht=ht+Math.imul(dr,_r)|0,$t=$t+Math.imul(dr,Dr)|0,xt=xt+Math.imul(cr,Tr)|0,ht=ht+Math.imul(cr,Lr)|0,ht=ht+Math.imul(ur,Tr)|0,$t=$t+Math.imul(ur,Lr)|0,xt=xt+Math.imul(Kt,Rr)|0,ht=ht+Math.imul(Kt,Fr)|0,ht=ht+Math.imul(ar,Rr)|0,$t=$t+Math.imul(ar,Fr)|0,xt=xt+Math.imul(Gt,Br)|0,ht=ht+Math.imul(Gt,jr)|0,ht=ht+Math.imul(Zt,Br)|0,$t=$t+Math.imul(Zt,jr)|0,xt=xt+Math.imul(Xt,kr)|0,ht=ht+Math.imul(Xt,Ur)|0,ht=ht+Math.imul(Ut,kr)|0,$t=$t+Math.imul(Ut,Ur)|0,xt=xt+Math.imul(Dt,Ir)|0,ht=ht+Math.imul(Dt,Hr)|0,ht=ht+Math.imul(Ht,Ir)|0,$t=$t+Math.imul(Ht,Hr)|0;var p0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(p0>>>26)|0,p0&=67108863,xt=Math.imul(nr,pr),ht=Math.imul(nr,vr),ht=ht+Math.imul(fr,pr)|0,$t=Math.imul(fr,vr),xt=xt+Math.imul(Qt,wr)|0,ht=ht+Math.imul(Qt,Ar)|0,ht=ht+Math.imul(zt,wr)|0,$t=$t+Math.imul(zt,Ar)|0,xt=xt+Math.imul($r,Cr)|0,ht=ht+Math.imul($r,Or)|0,ht=ht+Math.imul(Mr,Cr)|0,$t=$t+Math.imul(Mr,Or)|0,xt=xt+Math.imul(xr,_r)|0,ht=ht+Math.imul(xr,Dr)|0,ht=ht+Math.imul(Sr,_r)|0,$t=$t+Math.imul(Sr,Dr)|0,xt=xt+Math.imul(br,Tr)|0,ht=ht+Math.imul(br,Lr)|0,ht=ht+Math.imul(dr,Tr)|0,$t=$t+Math.imul(dr,Lr)|0,xt=xt+Math.imul(cr,Rr)|0,ht=ht+Math.imul(cr,Fr)|0,ht=ht+Math.imul(ur,Rr)|0,$t=$t+Math.imul(ur,Fr)|0,xt=xt+Math.imul(Kt,Br)|0,ht=ht+Math.imul(Kt,jr)|0,ht=ht+Math.imul(ar,Br)|0,$t=$t+Math.imul(ar,jr)|0,xt=xt+Math.imul(Gt,kr)|0,ht=ht+Math.imul(Gt,Ur)|0,ht=ht+Math.imul(Zt,kr)|0,$t=$t+Math.imul(Zt,Ur)|0,xt=xt+Math.imul(Xt,Ir)|0,ht=ht+Math.imul(Xt,Hr)|0,ht=ht+Math.imul(Ut,Ir)|0,$t=$t+Math.imul(Ut,Hr)|0,xt=xt+Math.imul(Dt,Nr)|0,ht=ht+Math.imul(Dt,qr)|0,ht=ht+Math.imul(Ht,Nr)|0,$t=$t+Math.imul(Ht,qr)|0;var b0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(b0>>>26)|0,b0&=67108863,xt=Math.imul(nr,wr),ht=Math.imul(nr,Ar),ht=ht+Math.imul(fr,wr)|0,$t=Math.imul(fr,Ar),xt=xt+Math.imul(Qt,Cr)|0,ht=ht+Math.imul(Qt,Or)|0,ht=ht+Math.imul(zt,Cr)|0,$t=$t+Math.imul(zt,Or)|0,xt=xt+Math.imul($r,_r)|0,ht=ht+Math.imul($r,Dr)|0,ht=ht+Math.imul(Mr,_r)|0,$t=$t+Math.imul(Mr,Dr)|0,xt=xt+Math.imul(xr,Tr)|0,ht=ht+Math.imul(xr,Lr)|0,ht=ht+Math.imul(Sr,Tr)|0,$t=$t+Math.imul(Sr,Lr)|0,xt=xt+Math.imul(br,Rr)|0,ht=ht+Math.imul(br,Fr)|0,ht=ht+Math.imul(dr,Rr)|0,$t=$t+Math.imul(dr,Fr)|0,xt=xt+Math.imul(cr,Br)|0,ht=ht+Math.imul(cr,jr)|0,ht=ht+Math.imul(ur,Br)|0,$t=$t+Math.imul(ur,jr)|0,xt=xt+Math.imul(Kt,kr)|0,ht=ht+Math.imul(Kt,Ur)|0,ht=ht+Math.imul(ar,kr)|0,$t=$t+Math.imul(ar,Ur)|0,xt=xt+Math.imul(Gt,Ir)|0,ht=ht+Math.imul(Gt,Hr)|0,ht=ht+Math.imul(Zt,Ir)|0,$t=$t+Math.imul(Zt,Hr)|0,xt=xt+Math.imul(Xt,Nr)|0,ht=ht+Math.imul(Xt,qr)|0,ht=ht+Math.imul(Ut,Nr)|0,$t=$t+Math.imul(Ut,qr)|0;var m0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(m0>>>26)|0,m0&=67108863,xt=Math.imul(nr,Cr),ht=Math.imul(nr,Or),ht=ht+Math.imul(fr,Cr)|0,$t=Math.imul(fr,Or),xt=xt+Math.imul(Qt,_r)|0,ht=ht+Math.imul(Qt,Dr)|0,ht=ht+Math.imul(zt,_r)|0,$t=$t+Math.imul(zt,Dr)|0,xt=xt+Math.imul($r,Tr)|0,ht=ht+Math.imul($r,Lr)|0,ht=ht+Math.imul(Mr,Tr)|0,$t=$t+Math.imul(Mr,Lr)|0,xt=xt+Math.imul(xr,Rr)|0,ht=ht+Math.imul(xr,Fr)|0,ht=ht+Math.imul(Sr,Rr)|0,$t=$t+Math.imul(Sr,Fr)|0,xt=xt+Math.imul(br,Br)|0,ht=ht+Math.imul(br,jr)|0,ht=ht+Math.imul(dr,Br)|0,$t=$t+Math.imul(dr,jr)|0,xt=xt+Math.imul(cr,kr)|0,ht=ht+Math.imul(cr,Ur)|0,ht=ht+Math.imul(ur,kr)|0,$t=$t+Math.imul(ur,Ur)|0,xt=xt+Math.imul(Kt,Ir)|0,ht=ht+Math.imul(Kt,Hr)|0,ht=ht+Math.imul(ar,Ir)|0,$t=$t+Math.imul(ar,Hr)|0,xt=xt+Math.imul(Gt,Nr)|0,ht=ht+Math.imul(Gt,qr)|0,ht=ht+Math.imul(Zt,Nr)|0,$t=$t+Math.imul(Zt,qr)|0;var g0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(g0>>>26)|0,g0&=67108863,xt=Math.imul(nr,_r),ht=Math.imul(nr,Dr),ht=ht+Math.imul(fr,_r)|0,$t=Math.imul(fr,Dr),xt=xt+Math.imul(Qt,Tr)|0,ht=ht+Math.imul(Qt,Lr)|0,ht=ht+Math.imul(zt,Tr)|0,$t=$t+Math.imul(zt,Lr)|0,xt=xt+Math.imul($r,Rr)|0,ht=ht+Math.imul($r,Fr)|0,ht=ht+Math.imul(Mr,Rr)|0,$t=$t+Math.imul(Mr,Fr)|0,xt=xt+Math.imul(xr,Br)|0,ht=ht+Math.imul(xr,jr)|0,ht=ht+Math.imul(Sr,Br)|0,$t=$t+Math.imul(Sr,jr)|0,xt=xt+Math.imul(br,kr)|0,ht=ht+Math.imul(br,Ur)|0,ht=ht+Math.imul(dr,kr)|0,$t=$t+Math.imul(dr,Ur)|0,xt=xt+Math.imul(cr,Ir)|0,ht=ht+Math.imul(cr,Hr)|0,ht=ht+Math.imul(ur,Ir)|0,$t=$t+Math.imul(ur,Hr)|0,xt=xt+Math.imul(Kt,Nr)|0,ht=ht+Math.imul(Kt,qr)|0,ht=ht+Math.imul(ar,Nr)|0,$t=$t+Math.imul(ar,qr)|0;var y0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(y0>>>26)|0,y0&=67108863,xt=Math.imul(nr,Tr),ht=Math.imul(nr,Lr),ht=ht+Math.imul(fr,Tr)|0,$t=Math.imul(fr,Lr),xt=xt+Math.imul(Qt,Rr)|0,ht=ht+Math.imul(Qt,Fr)|0,ht=ht+Math.imul(zt,Rr)|0,$t=$t+Math.imul(zt,Fr)|0,xt=xt+Math.imul($r,Br)|0,ht=ht+Math.imul($r,jr)|0,ht=ht+Math.imul(Mr,Br)|0,$t=$t+Math.imul(Mr,jr)|0,xt=xt+Math.imul(xr,kr)|0,ht=ht+Math.imul(xr,Ur)|0,ht=ht+Math.imul(Sr,kr)|0,$t=$t+Math.imul(Sr,Ur)|0,xt=xt+Math.imul(br,Ir)|0,ht=ht+Math.imul(br,Hr)|0,ht=ht+Math.imul(dr,Ir)|0,$t=$t+Math.imul(dr,Hr)|0,xt=xt+Math.imul(cr,Nr)|0,ht=ht+Math.imul(cr,qr)|0,ht=ht+Math.imul(ur,Nr)|0,$t=$t+Math.imul(ur,qr)|0;var v0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(v0>>>26)|0,v0&=67108863,xt=Math.imul(nr,Rr),ht=Math.imul(nr,Fr),ht=ht+Math.imul(fr,Rr)|0,$t=Math.imul(fr,Fr),xt=xt+Math.imul(Qt,Br)|0,ht=ht+Math.imul(Qt,jr)|0,ht=ht+Math.imul(zt,Br)|0,$t=$t+Math.imul(zt,jr)|0,xt=xt+Math.imul($r,kr)|0,ht=ht+Math.imul($r,Ur)|0,ht=ht+Math.imul(Mr,kr)|0,$t=$t+Math.imul(Mr,Ur)|0,xt=xt+Math.imul(xr,Ir)|0,ht=ht+Math.imul(xr,Hr)|0,ht=ht+Math.imul(Sr,Ir)|0,$t=$t+Math.imul(Sr,Hr)|0,xt=xt+Math.imul(br,Nr)|0,ht=ht+Math.imul(br,qr)|0,ht=ht+Math.imul(dr,Nr)|0,$t=$t+Math.imul(dr,qr)|0;var w0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(w0>>>26)|0,w0&=67108863,xt=Math.imul(nr,Br),ht=Math.imul(nr,jr),ht=ht+Math.imul(fr,Br)|0,$t=Math.imul(fr,jr),xt=xt+Math.imul(Qt,kr)|0,ht=ht+Math.imul(Qt,Ur)|0,ht=ht+Math.imul(zt,kr)|0,$t=$t+Math.imul(zt,Ur)|0,xt=xt+Math.imul($r,Ir)|0,ht=ht+Math.imul($r,Hr)|0,ht=ht+Math.imul(Mr,Ir)|0,$t=$t+Math.imul(Mr,Hr)|0,xt=xt+Math.imul(xr,Nr)|0,ht=ht+Math.imul(xr,qr)|0,ht=ht+Math.imul(Sr,Nr)|0,$t=$t+Math.imul(Sr,qr)|0;var x0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(x0>>>26)|0,x0&=67108863,xt=Math.imul(nr,kr),ht=Math.imul(nr,Ur),ht=ht+Math.imul(fr,kr)|0,$t=Math.imul(fr,Ur),xt=xt+Math.imul(Qt,Ir)|0,ht=ht+Math.imul(Qt,Hr)|0,ht=ht+Math.imul(zt,Ir)|0,$t=$t+Math.imul(zt,Hr)|0,xt=xt+Math.imul($r,Nr)|0,ht=ht+Math.imul($r,qr)|0,ht=ht+Math.imul(Mr,Nr)|0,$t=$t+Math.imul(Mr,qr)|0;var E0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(E0>>>26)|0,E0&=67108863,xt=Math.imul(nr,Ir),ht=Math.imul(nr,Hr),ht=ht+Math.imul(fr,Ir)|0,$t=Math.imul(fr,Hr),xt=xt+Math.imul(Qt,Nr)|0,ht=ht+Math.imul(Qt,qr)|0,ht=ht+Math.imul(zt,Nr)|0,$t=$t+Math.imul(zt,qr)|0;var $0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+($0>>>26)|0,$0&=67108863,xt=Math.imul(nr,Nr),ht=Math.imul(nr,qr),ht=ht+Math.imul(fr,Nr)|0,$t=Math.imul(fr,qr);var M0=(Pt+xt|0)+((ht&8191)<<13)|0;return Pt=($t+(ht>>>13)|0)+(M0>>>26)|0,M0&=67108863,At[0]=e0,At[1]=t0,At[2]=f0,At[3]=c0,At[4]=l0,At[5]=u0,At[6]=d0,At[7]=h0,At[8]=p0,At[9]=b0,At[10]=m0,At[11]=g0,At[12]=y0,At[13]=v0,At[14]=w0,At[15]=x0,At[16]=E0,At[17]=$0,At[18]=M0,Pt!==0&&(At[19]=Pt,yt.length++),yt};Math.imul||(It=kt);function Lt(Ct,dt,mt){mt.negative=dt.negative^Ct.negative,mt.length=Ct.length+dt.length;for(var yt=0,vt=0,Et=0;Et>>26)|0,vt+=At>>>26,At&=67108863}mt.words[Et]=Pt,yt=At,At=vt}return yt!==0?mt.words[Et]=yt:mt.length--,mt.strip()}function Ot(Ct,dt,mt){var yt=new Nt;return yt.mulp(Ct,dt,mt)}tt.prototype.mulTo=function(dt,mt){var yt,vt=this.length+dt.length;return this.length===10&&dt.length===10?yt=It(this,dt,mt):vt<63?yt=kt(this,dt,mt):vt<1024?yt=Lt(this,dt,mt):yt=Ot(this,dt,mt),yt};function Nt(Ct,dt){this.x=Ct,this.y=dt}Nt.prototype.makeRBT=function(dt){for(var mt=new Array(dt),yt=tt.prototype._countBits(dt)-1,vt=0;vt>=1;return vt},Nt.prototype.permute=function(dt,mt,yt,vt,Et,At){for(var Pt=0;Pt>>1)Et++;return 1<>>13,yt[2*At+1]=Et&8191,Et=Et>>>13;for(At=2*mt;At>=26,mt+=vt/67108864|0,mt+=Et>>>26,this.words[yt]=Et&67108863}return mt!==0&&(this.words[yt]=mt,this.length++),this},tt.prototype.muln=function(dt){return this.clone().imuln(dt)},tt.prototype.sqr=function(){return this.mul(this)},tt.prototype.isqr=function(){return this.imul(this.clone())},tt.prototype.pow=function(dt){var mt=Rt(dt);if(mt.length===0)return new tt(1);for(var yt=this,vt=0;vt=0);var mt=dt%26,yt=(dt-mt)/26,vt=67108863>>>26-mt<<26-mt,Et;if(mt!==0){var At=0;for(Et=0;Et>>26-mt}At&&(this.words[Et]=At,this.length++)}if(yt!==0){for(Et=this.length-1;Et>=0;Et--)this.words[Et+yt]=this.words[Et];for(Et=0;Et=0);var vt;mt?vt=(mt-mt%26)/26:vt=0;var Et=dt%26,At=Math.min((dt-Et)/26,this.length),Pt=67108863^67108863>>>Et<At)for(this.length-=At,ht=0;ht=0&&($t!==0||ht>=vt);ht--){var Bt=this.words[ht]|0;this.words[ht]=$t<<26-Et|Bt>>>Et,$t=Bt&Pt}return xt&&$t!==0&&(xt.words[xt.length++]=$t),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},tt.prototype.ishrn=function(dt,mt,yt){return et(this.negative===0),this.iushrn(dt,mt,yt)},tt.prototype.shln=function(dt){return this.clone().ishln(dt)},tt.prototype.ushln=function(dt){return this.clone().iushln(dt)},tt.prototype.shrn=function(dt){return this.clone().ishrn(dt)},tt.prototype.ushrn=function(dt){return this.clone().iushrn(dt)},tt.prototype.testn=function(dt){et(typeof dt=="number"&&dt>=0);var mt=dt%26,yt=(dt-mt)/26,vt=1<=0);var mt=dt%26,yt=(dt-mt)/26;if(et(this.negative===0,"imaskn works only with positive numbers"),this.length<=yt)return this;if(mt!==0&&yt++,this.length=Math.min(yt,this.length),mt!==0){var vt=67108863^67108863>>>mt<=67108864;mt++)this.words[mt]-=67108864,mt===this.length-1?this.words[mt+1]=1:this.words[mt+1]++;return this.length=Math.max(this.length,mt+1),this},tt.prototype.isubn=function(dt){if(et(typeof dt=="number"),et(dt<67108864),dt<0)return this.iaddn(-dt);if(this.negative!==0)return this.negative=0,this.iaddn(dt),this.negative=1,this;if(this.words[0]-=dt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var mt=0;mt>26)-(xt/67108864|0),this.words[Et+yt]=At&67108863}for(;Et>26,this.words[Et+yt]=At&67108863;if(Pt===0)return this.strip();for(et(Pt===-1),Pt=0,Et=0;Et>26,this.words[Et]=At&67108863;return this.negative=1,this.strip()},tt.prototype._wordDiv=function(dt,mt){var yt=this.length-dt.length,vt=this.clone(),Et=dt,At=Et.words[Et.length-1]|0,Pt=this._countBits(At);yt=26-Pt,yt!==0&&(Et=Et.ushln(yt),vt.iushln(yt),At=Et.words[Et.length-1]|0);var xt=vt.length-Et.length,ht;if(mt!=="mod"){ht=new tt(null),ht.length=xt+1,ht.words=new Array(ht.length);for(var $t=0;$t=0;Dt--){var Ht=(vt.words[Et.length+Dt]|0)*67108864+(vt.words[Et.length+Dt-1]|0);for(Ht=Math.min(Ht/At|0,67108863),vt._ishlnsubmul(Et,Ht,Dt);vt.negative!==0;)Ht--,vt.negative=0,vt._ishlnsubmul(Et,1,Dt),vt.isZero()||(vt.negative^=1);ht&&(ht.words[Dt]=Ht)}return ht&&ht.strip(),vt.strip(),mt!=="div"&&yt!==0&&vt.iushrn(yt),{div:ht||null,mod:vt}},tt.prototype.divmod=function(dt,mt,yt){if(et(!dt.isZero()),this.isZero())return{div:new tt(0),mod:new tt(0)};var vt,Et,At;return this.negative!==0&&dt.negative===0?(At=this.neg().divmod(dt,mt),mt!=="mod"&&(vt=At.div.neg()),mt!=="div"&&(Et=At.mod.neg(),yt&&Et.negative!==0&&Et.iadd(dt)),{div:vt,mod:Et}):this.negative===0&&dt.negative!==0?(At=this.divmod(dt.neg(),mt),mt!=="mod"&&(vt=At.div.neg()),{div:vt,mod:At.mod}):this.negative&dt.negative?(At=this.neg().divmod(dt.neg(),mt),mt!=="div"&&(Et=At.mod.neg(),yt&&Et.negative!==0&&Et.isub(dt)),{div:At.div,mod:Et}):dt.length>this.length||this.cmp(dt)<0?{div:new tt(0),mod:this}:dt.length===1?mt==="div"?{div:this.divn(dt.words[0]),mod:null}:mt==="mod"?{div:null,mod:new tt(this.modn(dt.words[0]))}:{div:this.divn(dt.words[0]),mod:new tt(this.modn(dt.words[0]))}:this._wordDiv(dt,mt)},tt.prototype.div=function(dt){return this.divmod(dt,"div",!1).div},tt.prototype.mod=function(dt){return this.divmod(dt,"mod",!1).mod},tt.prototype.umod=function(dt){return this.divmod(dt,"mod",!0).mod},tt.prototype.divRound=function(dt){var mt=this.divmod(dt);if(mt.mod.isZero())return mt.div;var yt=mt.div.negative!==0?mt.mod.isub(dt):mt.mod,vt=dt.ushrn(1),Et=dt.andln(1),At=yt.cmp(vt);return At<0||Et===1&&At===0?mt.div:mt.div.negative!==0?mt.div.isubn(1):mt.div.iaddn(1)},tt.prototype.modn=function(dt){et(dt<=67108863);for(var mt=(1<<26)%dt,yt=0,vt=this.length-1;vt>=0;vt--)yt=(mt*yt+(this.words[vt]|0))%dt;return yt},tt.prototype.idivn=function(dt){et(dt<=67108863);for(var mt=0,yt=this.length-1;yt>=0;yt--){var vt=(this.words[yt]|0)+mt*67108864;this.words[yt]=vt/dt|0,mt=vt%dt}return this.strip()},tt.prototype.divn=function(dt){return this.clone().idivn(dt)},tt.prototype.egcd=function(dt){et(dt.negative===0),et(!dt.isZero());var mt=this,yt=dt.clone();mt.negative!==0?mt=mt.umod(dt):mt=mt.clone();for(var vt=new tt(1),Et=new tt(0),At=new tt(0),Pt=new tt(1),xt=0;mt.isEven()&&yt.isEven();)mt.iushrn(1),yt.iushrn(1),++xt;for(var ht=yt.clone(),$t=mt.clone();!mt.isZero();){for(var Bt=0,Dt=1;!(mt.words[0]&Dt)&&Bt<26;++Bt,Dt<<=1);if(Bt>0)for(mt.iushrn(Bt);Bt-- >0;)(vt.isOdd()||Et.isOdd())&&(vt.iadd(ht),Et.isub($t)),vt.iushrn(1),Et.iushrn(1);for(var Ht=0,tr=1;!(yt.words[0]&tr)&&Ht<26;++Ht,tr<<=1);if(Ht>0)for(yt.iushrn(Ht);Ht-- >0;)(At.isOdd()||Pt.isOdd())&&(At.iadd(ht),Pt.isub($t)),At.iushrn(1),Pt.iushrn(1);mt.cmp(yt)>=0?(mt.isub(yt),vt.isub(At),Et.isub(Pt)):(yt.isub(mt),At.isub(vt),Pt.isub(Et))}return{a:At,b:Pt,gcd:yt.iushln(xt)}},tt.prototype._invmp=function(dt){et(dt.negative===0),et(!dt.isZero());var mt=this,yt=dt.clone();mt.negative!==0?mt=mt.umod(dt):mt=mt.clone();for(var vt=new tt(1),Et=new tt(0),At=yt.clone();mt.cmpn(1)>0&&yt.cmpn(1)>0;){for(var Pt=0,xt=1;!(mt.words[0]&xt)&&Pt<26;++Pt,xt<<=1);if(Pt>0)for(mt.iushrn(Pt);Pt-- >0;)vt.isOdd()&&vt.iadd(At),vt.iushrn(1);for(var ht=0,$t=1;!(yt.words[0]&$t)&&ht<26;++ht,$t<<=1);if(ht>0)for(yt.iushrn(ht);ht-- >0;)Et.isOdd()&&Et.iadd(At),Et.iushrn(1);mt.cmp(yt)>=0?(mt.isub(yt),vt.isub(Et)):(yt.isub(mt),Et.isub(vt))}var Bt;return mt.cmpn(1)===0?Bt=vt:Bt=Et,Bt.cmpn(0)<0&&Bt.iadd(dt),Bt},tt.prototype.gcd=function(dt){if(this.isZero())return dt.abs();if(dt.isZero())return this.abs();var mt=this.clone(),yt=dt.clone();mt.negative=0,yt.negative=0;for(var vt=0;mt.isEven()&&yt.isEven();vt++)mt.iushrn(1),yt.iushrn(1);do{for(;mt.isEven();)mt.iushrn(1);for(;yt.isEven();)yt.iushrn(1);var Et=mt.cmp(yt);if(Et<0){var At=mt;mt=yt,yt=At}else if(Et===0||yt.cmpn(1)===0)break;mt.isub(yt)}while(!0);return yt.iushln(vt)},tt.prototype.invm=function(dt){return this.egcd(dt).a.umod(dt)},tt.prototype.isEven=function(){return(this.words[0]&1)===0},tt.prototype.isOdd=function(){return(this.words[0]&1)===1},tt.prototype.andln=function(dt){return this.words[0]&dt},tt.prototype.bincn=function(dt){et(typeof dt=="number");var mt=dt%26,yt=(dt-mt)/26,vt=1<>>26,Pt&=67108863,this.words[At]=Pt}return Et!==0&&(this.words[At]=Et,this.length++),this},tt.prototype.isZero=function(){return this.length===1&&this.words[0]===0},tt.prototype.cmpn=function(dt){var mt=dt<0;if(this.negative!==0&&!mt)return-1;if(this.negative===0&&mt)return 1;this.strip();var yt;if(this.length>1)yt=1;else{mt&&(dt=-dt),et(dt<=67108863,"Number is too big");var vt=this.words[0]|0;yt=vt===dt?0:vtdt.length)return 1;if(this.length=0;yt--){var vt=this.words[yt]|0,Et=dt.words[yt]|0;if(vt!==Et){vtEt&&(mt=1);break}}return mt},tt.prototype.gtn=function(dt){return this.cmpn(dt)===1},tt.prototype.gt=function(dt){return this.cmp(dt)===1},tt.prototype.gten=function(dt){return this.cmpn(dt)>=0},tt.prototype.gte=function(dt){return this.cmp(dt)>=0},tt.prototype.ltn=function(dt){return this.cmpn(dt)===-1},tt.prototype.lt=function(dt){return this.cmp(dt)===-1},tt.prototype.lten=function(dt){return this.cmpn(dt)<=0},tt.prototype.lte=function(dt){return this.cmp(dt)<=0},tt.prototype.eqn=function(dt){return this.cmpn(dt)===0},tt.prototype.eq=function(dt){return this.cmp(dt)===0},tt.red=function(dt){return new er(dt)},tt.prototype.toRed=function(dt){return et(!this.red,"Already a number in reduction context"),et(this.negative===0,"red works only with positives"),dt.convertTo(this)._forceRed(dt)},tt.prototype.fromRed=function(){return et(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},tt.prototype._forceRed=function(dt){return this.red=dt,this},tt.prototype.forceRed=function(dt){return et(!this.red,"Already a number in reduction context"),this._forceRed(dt)},tt.prototype.redAdd=function(dt){return et(this.red,"redAdd works only with red numbers"),this.red.add(this,dt)},tt.prototype.redIAdd=function(dt){return et(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,dt)},tt.prototype.redSub=function(dt){return et(this.red,"redSub works only with red numbers"),this.red.sub(this,dt)},tt.prototype.redISub=function(dt){return et(this.red,"redISub works only with red numbers"),this.red.isub(this,dt)},tt.prototype.redShl=function(dt){return et(this.red,"redShl works only with red numbers"),this.red.shl(this,dt)},tt.prototype.redMul=function(dt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,dt),this.red.mul(this,dt)},tt.prototype.redIMul=function(dt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,dt),this.red.imul(this,dt)},tt.prototype.redSqr=function(){return et(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},tt.prototype.redISqr=function(){return et(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},tt.prototype.redSqrt=function(){return et(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},tt.prototype.redInvm=function(){return et(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},tt.prototype.redNeg=function(){return et(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},tt.prototype.redPow=function(dt){return et(this.red&&!dt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,dt)};var Ft={k256:null,p224:null,p192:null,p25519:null};function jt(Ct,dt){this.name=Ct,this.p=new tt(dt,16),this.n=this.p.bitLength(),this.k=new tt(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}jt.prototype._tmp=function(){var dt=new tt(null);return dt.words=new Array(Math.ceil(this.n/13)),dt},jt.prototype.ireduce=function(dt){var mt=dt,yt;do this.split(mt,this.tmp),mt=this.imulK(mt),mt=mt.iadd(this.tmp),yt=mt.bitLength();while(yt>this.n);var vt=yt0?mt.isub(this.p):mt.strip!==void 0?mt.strip():mt._strip(),mt},jt.prototype.split=function(dt,mt){dt.iushrn(this.n,0,mt)},jt.prototype.imulK=function(dt){return dt.imul(this.k)};function Vt(){jt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}nt(Vt,jt),Vt.prototype.split=function(dt,mt){for(var yt=4194303,vt=Math.min(dt.length,9),Et=0;Et>>22,At=Pt}At>>>=22,dt.words[Et-10]=At,At===0&&dt.length>10?dt.length-=10:dt.length-=9},Vt.prototype.imulK=function(dt){dt.words[dt.length]=0,dt.words[dt.length+1]=0,dt.length+=2;for(var mt=0,yt=0;yt>>=26,dt.words[yt]=Et,mt=vt}return mt!==0&&(dt.words[dt.length++]=mt),dt},tt._prime=function(dt){if(Ft[dt])return Ft[dt];var mt;if(dt==="k256")mt=new Vt;else if(dt==="p224")mt=new Jt;else if(dt==="p192")mt=new ir;else if(dt==="p25519")mt=new rr;else throw new Error("Unknown prime "+dt);return Ft[dt]=mt,mt};function er(Ct){if(typeof Ct=="string"){var dt=tt._prime(Ct);this.m=dt.p,this.prime=dt}else et(Ct.gtn(1),"modulus must be greater than 1"),this.m=Ct,this.prime=null}er.prototype._verify1=function(dt){et(dt.negative===0,"red works only with positives"),et(dt.red,"red works only with red numbers")},er.prototype._verify2=function(dt,mt){et((dt.negative|mt.negative)===0,"red works only with positives"),et(dt.red&&dt.red===mt.red,"red works only with red numbers")},er.prototype.imod=function(dt){return this.prime?this.prime.ireduce(dt)._forceRed(this):dt.umod(this.m)._forceRed(this)},er.prototype.neg=function(dt){return dt.isZero()?dt.clone():this.m.sub(dt)._forceRed(this)},er.prototype.add=function(dt,mt){this._verify2(dt,mt);var yt=dt.add(mt);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt._forceRed(this)},er.prototype.iadd=function(dt,mt){this._verify2(dt,mt);var yt=dt.iadd(mt);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt},er.prototype.sub=function(dt,mt){this._verify2(dt,mt);var yt=dt.sub(mt);return yt.cmpn(0)<0&&yt.iadd(this.m),yt._forceRed(this)},er.prototype.isub=function(dt,mt){this._verify2(dt,mt);var yt=dt.isub(mt);return yt.cmpn(0)<0&&yt.iadd(this.m),yt},er.prototype.shl=function(dt,mt){return this._verify1(dt),this.imod(dt.ushln(mt))},er.prototype.imul=function(dt,mt){return this._verify2(dt,mt),this.imod(dt.imul(mt))},er.prototype.mul=function(dt,mt){return this._verify2(dt,mt),this.imod(dt.mul(mt))},er.prototype.isqr=function(dt){return this.imul(dt,dt.clone())},er.prototype.sqr=function(dt){return this.mul(dt,dt)},er.prototype.sqrt=function(dt){if(dt.isZero())return dt.clone();var mt=this.m.andln(3);if(et(mt%2===1),mt===3){var yt=this.m.add(new tt(1)).iushrn(2);return this.pow(dt,yt)}for(var vt=this.m.subn(1),Et=0;!vt.isZero()&&vt.andln(1)===0;)Et++,vt.iushrn(1);et(!vt.isZero());var At=new tt(1).toRed(this),Pt=At.redNeg(),xt=this.m.subn(1).iushrn(1),ht=this.m.bitLength();for(ht=new tt(2*ht*ht).toRed(this);this.pow(ht,xt).cmp(Pt)!==0;)ht.redIAdd(Pt);for(var $t=this.pow(ht,vt),Bt=this.pow(dt,vt.addn(1).iushrn(1)),Dt=this.pow(dt,vt),Ht=Et;Dt.cmp(At)!==0;){for(var tr=Dt,Xt=0;tr.cmp(At)!==0;Xt++)tr=tr.redSqr();et(Xt=0;Et--){for(var $t=mt.words[Et],Bt=ht-1;Bt>=0;Bt--){var Dt=$t>>Bt&1;if(At!==vt[0]&&(At=this.sqr(At)),Dt===0&&Pt===0){xt=0;continue}Pt<<=1,Pt|=Dt,xt++,!(xt!==yt&&(Et!==0||Bt!==0))&&(At=this.mul(At,vt[Pt]),xt=0,Pt=0)}ht=26}return At},er.prototype.convertTo=function(dt){var mt=dt.umod(this.m);return mt===dt?mt.clone():mt},er.prototype.convertFrom=function(dt){var mt=dt.clone();return mt.red=null,mt},tt.mont=function(dt){return new lr(dt)};function lr(Ct){er.call(this,Ct),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new tt(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)}nt(lr,er),lr.prototype.convertTo=function(dt){return this.imod(dt.ushln(this.shift))},lr.prototype.convertFrom=function(dt){var mt=this.imod(dt.mul(this.rinv));return mt.red=null,mt},lr.prototype.imul=function(dt,mt){if(dt.isZero()||mt.isZero())return dt.words[0]=0,dt.length=1,dt;var yt=dt.imul(mt),vt=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Et=yt.isub(vt).iushrn(this.shift),At=Et;return Et.cmp(this.m)>=0?At=Et.isub(this.m):Et.cmpn(0)<0&&(At=Et.iadd(this.m)),At._forceRed(this)},lr.prototype.mul=function(dt,mt){if(dt.isZero()||mt.isZero())return new tt(0)._forceRed(this);var yt=dt.mul(mt),vt=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Et=yt.isub(vt).iushrn(this.shift),At=Et;return Et.cmp(this.m)>=0?At=Et.isub(this.m):Et.cmpn(0)<0&&(At=Et.iadd(this.m)),At._forceRed(this)},lr.prototype.invm=function(dt){var mt=this.imod(dt._invmp(this.m).mul(this.r2));return mt._forceRed(this)}})(c,commonjsGlobal)})(bn$3);var bnExports$3=bn$3.exports,api={},vmBrowserify={},hasRequiredVmBrowserify;function requireVmBrowserify(){return hasRequiredVmBrowserify||(hasRequiredVmBrowserify=1,function(exports){var indexOf=function(c,a){if(c.indexOf)return c.indexOf(a);for(var d=0;d>6],Bt=(_t&32)===0;if((_t&31)===31){var kt=_t;for(_t=0;(kt&128)===128;){if(kt=St.readUInt8(Mt),St.isError(kt))return kt;_t<<=7,_t|=kt&127}}else _t&=31;var It=nt.tag[_t];return{cls:Tt,primitive:Bt,tag:_t,tagStr:It}}function wt(St,Mt,_t){var Tt=St.readUInt8(_t);if(St.isError(Tt))return Tt;if(!Mt&&Tt===128)return null;if(!(Tt&128))return Tt;var Bt=Tt&127;if(Bt>4)return St.error("length octect is too long");Tt=0;for(var kt=0;kt=256;Lt>>=8)It++;var Ot=new a(1+1+It);Ot[0]=kt,Ot[1]=128|It;for(var Lt=1+It,Nt=Bt.length;Nt>0;Lt--,Nt>>=8)Ot[Lt]=Nt&255;return this._createEncoderBuffer([Ot,Bt])},bt.prototype._encodeStr=function(Mt,_t){if(_t==="bitstr")return this._createEncoderBuffer([Mt.unused|0,Mt.data]);if(_t==="bmpstr"){for(var Tt=new a(Mt.length*2),Bt=0;Bt=40)return this.reporter.error("Second objid identifier OOB");Mt.splice(0,2,Mt[0]*40+Mt[1])}for(var kt=0,Bt=0;Bt=128;It>>=7)kt++}for(var Lt=new a(kt),Ot=Lt.length-1,Bt=Mt.length-1;Bt>=0;Bt--){var It=Mt[Bt];for(Lt[Ot--]=It&127;(It>>=7)>0;)Lt[Ot--]=128|It&127}return this._createEncoderBuffer(Lt)};function gt(St){return St<10?"0"+St:St}bt.prototype._encodeTime=function(Mt,_t){var Tt,Bt=new Date(Mt);return _t==="gentime"?Tt=[gt(Bt.getFullYear()),gt(Bt.getUTCMonth()+1),gt(Bt.getUTCDate()),gt(Bt.getUTCHours()),gt(Bt.getUTCMinutes()),gt(Bt.getUTCSeconds()),"Z"].join(""):_t==="utctime"?Tt=[gt(Bt.getFullYear()%100),gt(Bt.getUTCMonth()+1),gt(Bt.getUTCDate()),gt(Bt.getUTCHours()),gt(Bt.getUTCMinutes()),gt(Bt.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+_t+" time is not supported yet"),this._encodeStr(Tt,"octstr")},bt.prototype._encodeNull=function(){return this._createEncoderBuffer("")},bt.prototype._encodeInt=function(Mt,_t){if(typeof Mt=="string"){if(!_t)return this.reporter.error("String int or enum given, but no values map");if(!_t.hasOwnProperty(Mt))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(Mt));Mt=_t[Mt]}if(typeof Mt!="number"&&!a.isBuffer(Mt)){var Tt=Mt.toArray();!Mt.sign&&Tt[0]&128&&Tt.unshift(0),Mt=new a(Tt)}if(a.isBuffer(Mt)){var Bt=Mt.length;Mt.length===0&&Bt++;var It=new a(Bt);return Mt.copy(It),Mt.length===0&&(It[0]=0),this._createEncoderBuffer(It)}if(Mt<128)return this._createEncoderBuffer(Mt);if(Mt<256)return this._createEncoderBuffer([0,Mt]);for(var Bt=1,kt=Mt;kt>=256;kt>>=8)Bt++;for(var It=new Array(Bt),kt=It.length-1;kt>=0;kt--)It[kt]=Mt&255,Mt>>=8;return It[0]&128&&It.unshift(0),this._createEncoderBuffer(new a(It))},bt.prototype._encodeBool=function(Mt){return this._createEncoderBuffer(Mt?255:0)},bt.prototype._use=function(Mt,_t){return typeof Mt=="function"&&(Mt=Mt(_t)),Mt._getEncoder("der").tree},bt.prototype._skipDefault=function(Mt,_t,Tt){var Bt=this._baseState,kt;if(Bt.default===null)return!1;var It=Mt.join();if(Bt.defaultBuffer===void 0&&(Bt.defaultBuffer=this._encodeValue(Bt.default,_t,Tt).join()),It.length!==Bt.defaultBuffer.length)return!1;for(kt=0;kt=31?Tt.error("Multi-octet tag encoding unsupported"):(Mt||(Bt|=32),Bt|=nt.tagClassByName[_t||"universal"]<<6,Bt)}return der_1}var pem,hasRequiredPem;function requirePem(){if(hasRequiredPem)return pem;hasRequiredPem=1;var c=inherits_browserExports,a=requireDer();function d(et){a.call(this,et),this.enc="pem"}return c(d,a),pem=d,d.prototype.encode=function(nt,tt){for(var bt=a.prototype.encode.call(this,nt),gt=bt.toString("base64"),wt=["-----BEGIN "+tt.label+"-----"],St=0;St0&&Ft.ishrn(zt),Ft}function kt(Ot,Nt){Ot=Bt(Ot,Nt),Ot=Ot.mod(Nt);var Ft=c.from(Ot.toArray());if(Ft.length=0)throw new Error("invalid sig")}return verify_1=tt,verify_1}var browser$3,hasRequiredBrowser$1;function requireBrowser$1(){if(hasRequiredBrowser$1)return browser$3;hasRequiredBrowser$1=1;var c=safeBufferExports$1.Buffer,a=browser$9,d=readableBrowserExports,et=inherits_browserExports,nt=requireSign(),tt=requireVerify(),bt=require$$6;Object.keys(bt).forEach(function(_t){bt[_t].id=c.from(bt[_t].id,"hex"),bt[_t.toLowerCase()]=bt[_t]});function gt(_t){d.Writable.call(this);var Tt=bt[_t];if(!Tt)throw new Error("Unknown message digest");this._hashType=Tt.hash,this._hash=a(Tt.hash),this._tag=Tt.id,this._signType=Tt.sign}et(gt,d.Writable),gt.prototype._write=function(Tt,Bt,kt){this._hash.update(Tt),kt()},gt.prototype.update=function(Tt,Bt){return this._hash.update(typeof Tt=="string"?c.from(Tt,Bt):Tt),this},gt.prototype.sign=function(Tt,Bt){this.end();var kt=this._hash.digest(),It=nt(kt,Tt,this._hashType,this._signType,this._tag);return Bt?It.toString(Bt):It};function wt(_t){d.Writable.call(this);var Tt=bt[_t];if(!Tt)throw new Error("Unknown message digest");this._hash=a(Tt.hash),this._tag=Tt.id,this._signType=Tt.sign}et(wt,d.Writable),wt.prototype._write=function(Tt,Bt,kt){this._hash.update(Tt),kt()},wt.prototype.update=function(Tt,Bt){return this._hash.update(typeof Tt=="string"?c.from(Tt,Bt):Tt),this},wt.prototype.verify=function(Tt,Bt,kt){var It=typeof Bt=="string"?c.from(Bt,kt):Bt;this.end();var Lt=this._hash.digest();return tt(It,Lt,Tt,this._signType,this._tag)};function St(_t){return new gt(_t)}function Mt(_t){return new wt(_t)}return browser$3={Sign:St,Verify:Mt,createSign:St,createVerify:Mt},browser$3}var elliptic={};const name="elliptic",version$2="6.5.4",description="EC cryptography",main="lib/elliptic.js",files=["lib"],scripts={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository={type:"git",url:"git@github.com:indutny/elliptic"},keywords=["EC","Elliptic","curve","Cryptography"],author="Fedor Indutny ",license="MIT",bugs={url:"https://github.com/indutny/elliptic/issues"},homepage="https://github.com/indutny/elliptic",devDependencies={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},require$$0={name,version:version$2,description,main,files,scripts,repository,keywords,author,license,bugs,homepage,devDependencies,dependencies};var utils$c={},bn$2={exports:{}};bn$2.exports;(function(c){(function(a,d){function et(Ct,dt){if(!Ct)throw new Error(dt||"Assertion failed")}function nt(Ct,dt){Ct.super_=dt;var mt=function(){};mt.prototype=dt.prototype,Ct.prototype=new mt,Ct.prototype.constructor=Ct}function tt(Ct,dt,mt){if(tt.isBN(Ct))return Ct;this.negative=0,this.words=null,this.length=0,this.red=null,Ct!==null&&((dt==="le"||dt==="be")&&(mt=dt,dt=10),this._init(Ct||0,dt||10,mt||"be"))}typeof a=="object"?a.exports=tt:d.BN=tt,tt.BN=tt,tt.wordSize=26;var bt;try{typeof window<"u"&&typeof window.Buffer<"u"?bt=window.Buffer:bt=bufferPolyfill.Buffer}catch{}tt.isBN=function(dt){return dt instanceof tt?!0:dt!==null&&typeof dt=="object"&&dt.constructor.wordSize===tt.wordSize&&Array.isArray(dt.words)},tt.max=function(dt,mt){return dt.cmp(mt)>0?dt:mt},tt.min=function(dt,mt){return dt.cmp(mt)<0?dt:mt},tt.prototype._init=function(dt,mt,yt){if(typeof dt=="number")return this._initNumber(dt,mt,yt);if(typeof dt=="object")return this._initArray(dt,mt,yt);mt==="hex"&&(mt=16),et(mt===(mt|0)&&mt>=2&&mt<=36),dt=dt.toString().replace(/\s+/g,"");var vt=0;dt[0]==="-"&&(vt++,this.negative=1),vt=0;vt-=3)At=dt[vt]|dt[vt-1]<<8|dt[vt-2]<<16,this.words[Et]|=At<>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,Et++);else if(yt==="le")for(vt=0,Et=0;vt>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,Et++);return this.strip()};function gt(Ct,dt){var mt=Ct.charCodeAt(dt);return mt>=65&&mt<=70?mt-55:mt>=97&&mt<=102?mt-87:mt-48&15}function wt(Ct,dt,mt){var yt=gt(Ct,mt);return mt-1>=dt&&(yt|=gt(Ct,mt-1)<<4),yt}tt.prototype._parseHex=function(dt,mt,yt){this.length=Math.ceil((dt.length-mt)/6),this.words=new Array(this.length);for(var vt=0;vt=mt;vt-=2)Pt=wt(dt,mt,vt)<=18?(Et-=18,At+=1,this.words[At]|=Pt>>>26):Et+=8;else{var xt=dt.length-mt;for(vt=xt%2===0?mt+1:mt;vt=18?(Et-=18,At+=1,this.words[At]|=Pt>>>26):Et+=8}this.strip()};function St(Ct,dt,mt,yt){for(var vt=0,Et=Math.min(Ct.length,mt),At=dt;At=49?vt+=Pt-49+10:Pt>=17?vt+=Pt-17+10:vt+=Pt}return vt}tt.prototype._parseBase=function(dt,mt,yt){this.words=[0],this.length=1;for(var vt=0,Et=1;Et<=67108863;Et*=mt)vt++;vt--,Et=Et/mt|0;for(var At=dt.length-yt,Pt=At%vt,xt=Math.min(At,At-Pt)+yt,ht=0,$t=yt;$t1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},tt.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},tt.prototype.inspect=function(){return(this.red?""};var Mt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],_t=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Tt=[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];tt.prototype.toString=function(dt,mt){dt=dt||10,mt=mt|0||1;var yt;if(dt===16||dt==="hex"){yt="";for(var vt=0,Et=0,At=0;At>>24-vt&16777215,Et!==0||At!==this.length-1?yt=Mt[6-xt.length]+xt+yt:yt=xt+yt,vt+=2,vt>=26&&(vt-=26,At--)}for(Et!==0&&(yt=Et.toString(16)+yt);yt.length%mt!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}if(dt===(dt|0)&&dt>=2&&dt<=36){var ht=_t[dt],$t=Tt[dt];yt="";var Rt=this.clone();for(Rt.negative=0;!Rt.isZero();){var Dt=Rt.modn($t).toString(dt);Rt=Rt.idivn($t),Rt.isZero()?yt=Dt+yt:yt=Mt[ht-Dt.length]+Dt+yt}for(this.isZero()&&(yt="0"+yt);yt.length%mt!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}et(!1,"Base should be between 2 and 36")},tt.prototype.toNumber=function(){var dt=this.words[0];return this.length===2?dt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?dt+=4503599627370496+this.words[1]*67108864:this.length>2&&et(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-dt:dt},tt.prototype.toJSON=function(){return this.toString(16)},tt.prototype.toBuffer=function(dt,mt){return et(typeof bt<"u"),this.toArrayLike(bt,dt,mt)},tt.prototype.toArray=function(dt,mt){return this.toArrayLike(Array,dt,mt)},tt.prototype.toArrayLike=function(dt,mt,yt){var vt=this.byteLength(),Et=yt||Math.max(1,vt);et(vt<=Et,"byte array longer than desired length"),et(Et>0,"Requested array length <= 0"),this.strip();var At=mt==="le",Pt=new dt(Et),xt,ht,$t=this.clone();if(At){for(ht=0;!$t.isZero();ht++)xt=$t.andln(255),$t.iushrn(8),Pt[ht]=xt;for(;ht=4096&&(yt+=13,mt>>>=13),mt>=64&&(yt+=7,mt>>>=7),mt>=8&&(yt+=4,mt>>>=4),mt>=2&&(yt+=2,mt>>>=2),yt+mt},tt.prototype._zeroBits=function(dt){if(dt===0)return 26;var mt=dt,yt=0;return mt&8191||(yt+=13,mt>>>=13),mt&127||(yt+=7,mt>>>=7),mt&15||(yt+=4,mt>>>=4),mt&3||(yt+=2,mt>>>=2),mt&1||yt++,yt},tt.prototype.bitLength=function(){var dt=this.words[this.length-1],mt=this._countBits(dt);return(this.length-1)*26+mt};function Bt(Ct){for(var dt=new Array(Ct.bitLength()),mt=0;mt>>vt}return dt}tt.prototype.zeroBits=function(){if(this.isZero())return 0;for(var dt=0,mt=0;mtdt.length?this.clone().ior(dt):dt.clone().ior(this)},tt.prototype.uor=function(dt){return this.length>dt.length?this.clone().iuor(dt):dt.clone().iuor(this)},tt.prototype.iuand=function(dt){var mt;this.length>dt.length?mt=dt:mt=this;for(var yt=0;ytdt.length?this.clone().iand(dt):dt.clone().iand(this)},tt.prototype.uand=function(dt){return this.length>dt.length?this.clone().iuand(dt):dt.clone().iuand(this)},tt.prototype.iuxor=function(dt){var mt,yt;this.length>dt.length?(mt=this,yt=dt):(mt=dt,yt=this);for(var vt=0;vtdt.length?this.clone().ixor(dt):dt.clone().ixor(this)},tt.prototype.uxor=function(dt){return this.length>dt.length?this.clone().iuxor(dt):dt.clone().iuxor(this)},tt.prototype.inotn=function(dt){et(typeof dt=="number"&&dt>=0);var mt=Math.ceil(dt/26)|0,yt=dt%26;this._expand(mt),yt>0&&mt--;for(var vt=0;vt0&&(this.words[vt]=~this.words[vt]&67108863>>26-yt),this.strip()},tt.prototype.notn=function(dt){return this.clone().inotn(dt)},tt.prototype.setn=function(dt,mt){et(typeof dt=="number"&&dt>=0);var yt=dt/26|0,vt=dt%26;return this._expand(yt+1),mt?this.words[yt]=this.words[yt]|1<dt.length?(yt=this,vt=dt):(yt=dt,vt=this);for(var Et=0,At=0;At>>26;for(;Et!==0&&At>>26;if(this.length=yt.length,Et!==0)this.words[this.length]=Et,this.length++;else if(yt!==this)for(;Atdt.length?this.clone().iadd(dt):dt.clone().iadd(this)},tt.prototype.isub=function(dt){if(dt.negative!==0){dt.negative=0;var mt=this.iadd(dt);return dt.negative=1,mt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(dt),this.negative=1,this._normSign();var yt=this.cmp(dt);if(yt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var vt,Et;yt>0?(vt=this,Et=dt):(vt=dt,Et=this);for(var At=0,Pt=0;Pt>26,this.words[Pt]=mt&67108863;for(;At!==0&&Pt>26,this.words[Pt]=mt&67108863;if(At===0&&Pt>>26,Rt=xt&67108863,Dt=Math.min(ht,dt.length-1),Ht=Math.max(0,ht-Ct.length+1);Ht<=Dt;Ht++){var tr=ht-Ht|0;vt=Ct.words[tr]|0,Et=dt.words[Ht]|0,At=vt*Et+Rt,$t+=At/67108864|0,Rt=At&67108863}mt.words[ht]=Rt|0,xt=$t|0}return xt!==0?mt.words[ht]=xt|0:mt.length--,mt.strip()}var It=function(dt,mt,yt){var vt=dt.words,Et=mt.words,At=yt.words,Pt=0,xt,ht,$t,Rt=vt[0]|0,Dt=Rt&8191,Ht=Rt>>>13,tr=vt[1]|0,Xt=tr&8191,Ut=tr>>>13,qt=vt[2]|0,Gt=qt&8191,Zt=qt>>>13,Yt=vt[3]|0,Kt=Yt&8191,ar=Yt>>>13,gr=vt[4]|0,cr=gr&8191,ur=gr>>>13,Pr=vt[5]|0,br=Pr&8191,dr=Pr>>>13,Kr=vt[6]|0,xr=Kr&8191,Sr=Kr>>>13,Zr=vt[7]|0,$r=Zr&8191,Mr=Zr>>>13,Xr=vt[8]|0,Qt=Xr&8191,jt=Xr>>>13,Wt=vt[9]|0,nr=Wt&8191,fr=Wt>>>13,Er=Et[0]|0,pr=Er&8191,vr=Er>>>13,Jr=Et[1]|0,wr=Jr&8191,Ar=Jr>>>13,Yr=Et[2]|0,Cr=Yr&8191,Or=Yr>>>13,Qr=Et[3]|0,_r=Qr&8191,Dr=Qr>>>13,r0=Et[4]|0,Tr=r0&8191,Lr=r0>>>13,n0=Et[5]|0,Br=n0&8191,Fr=n0>>>13,i0=Et[6]|0,Rr=i0&8191,jr=i0>>>13,a0=Et[7]|0,kr=a0&8191,Ur=a0>>>13,s0=Et[8]|0,Ir=s0&8191,Hr=s0>>>13,o0=Et[9]|0,Nr=o0&8191,qr=o0>>>13;yt.negative=dt.negative^mt.negative,yt.length=19,xt=Math.imul(Dt,pr),ht=Math.imul(Dt,vr),ht=ht+Math.imul(Ht,pr)|0,$t=Math.imul(Ht,vr);var e0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(e0>>>26)|0,e0&=67108863,xt=Math.imul(Xt,pr),ht=Math.imul(Xt,vr),ht=ht+Math.imul(Ut,pr)|0,$t=Math.imul(Ut,vr),xt=xt+Math.imul(Dt,wr)|0,ht=ht+Math.imul(Dt,Ar)|0,ht=ht+Math.imul(Ht,wr)|0,$t=$t+Math.imul(Ht,Ar)|0;var t0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(t0>>>26)|0,t0&=67108863,xt=Math.imul(Gt,pr),ht=Math.imul(Gt,vr),ht=ht+Math.imul(Zt,pr)|0,$t=Math.imul(Zt,vr),xt=xt+Math.imul(Xt,wr)|0,ht=ht+Math.imul(Xt,Ar)|0,ht=ht+Math.imul(Ut,wr)|0,$t=$t+Math.imul(Ut,Ar)|0,xt=xt+Math.imul(Dt,Cr)|0,ht=ht+Math.imul(Dt,Or)|0,ht=ht+Math.imul(Ht,Cr)|0,$t=$t+Math.imul(Ht,Or)|0;var f0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(f0>>>26)|0,f0&=67108863,xt=Math.imul(Kt,pr),ht=Math.imul(Kt,vr),ht=ht+Math.imul(ar,pr)|0,$t=Math.imul(ar,vr),xt=xt+Math.imul(Gt,wr)|0,ht=ht+Math.imul(Gt,Ar)|0,ht=ht+Math.imul(Zt,wr)|0,$t=$t+Math.imul(Zt,Ar)|0,xt=xt+Math.imul(Xt,Cr)|0,ht=ht+Math.imul(Xt,Or)|0,ht=ht+Math.imul(Ut,Cr)|0,$t=$t+Math.imul(Ut,Or)|0,xt=xt+Math.imul(Dt,_r)|0,ht=ht+Math.imul(Dt,Dr)|0,ht=ht+Math.imul(Ht,_r)|0,$t=$t+Math.imul(Ht,Dr)|0;var c0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(c0>>>26)|0,c0&=67108863,xt=Math.imul(cr,pr),ht=Math.imul(cr,vr),ht=ht+Math.imul(ur,pr)|0,$t=Math.imul(ur,vr),xt=xt+Math.imul(Kt,wr)|0,ht=ht+Math.imul(Kt,Ar)|0,ht=ht+Math.imul(ar,wr)|0,$t=$t+Math.imul(ar,Ar)|0,xt=xt+Math.imul(Gt,Cr)|0,ht=ht+Math.imul(Gt,Or)|0,ht=ht+Math.imul(Zt,Cr)|0,$t=$t+Math.imul(Zt,Or)|0,xt=xt+Math.imul(Xt,_r)|0,ht=ht+Math.imul(Xt,Dr)|0,ht=ht+Math.imul(Ut,_r)|0,$t=$t+Math.imul(Ut,Dr)|0,xt=xt+Math.imul(Dt,Tr)|0,ht=ht+Math.imul(Dt,Lr)|0,ht=ht+Math.imul(Ht,Tr)|0,$t=$t+Math.imul(Ht,Lr)|0;var l0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(l0>>>26)|0,l0&=67108863,xt=Math.imul(br,pr),ht=Math.imul(br,vr),ht=ht+Math.imul(dr,pr)|0,$t=Math.imul(dr,vr),xt=xt+Math.imul(cr,wr)|0,ht=ht+Math.imul(cr,Ar)|0,ht=ht+Math.imul(ur,wr)|0,$t=$t+Math.imul(ur,Ar)|0,xt=xt+Math.imul(Kt,Cr)|0,ht=ht+Math.imul(Kt,Or)|0,ht=ht+Math.imul(ar,Cr)|0,$t=$t+Math.imul(ar,Or)|0,xt=xt+Math.imul(Gt,_r)|0,ht=ht+Math.imul(Gt,Dr)|0,ht=ht+Math.imul(Zt,_r)|0,$t=$t+Math.imul(Zt,Dr)|0,xt=xt+Math.imul(Xt,Tr)|0,ht=ht+Math.imul(Xt,Lr)|0,ht=ht+Math.imul(Ut,Tr)|0,$t=$t+Math.imul(Ut,Lr)|0,xt=xt+Math.imul(Dt,Br)|0,ht=ht+Math.imul(Dt,Fr)|0,ht=ht+Math.imul(Ht,Br)|0,$t=$t+Math.imul(Ht,Fr)|0;var u0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(u0>>>26)|0,u0&=67108863,xt=Math.imul(xr,pr),ht=Math.imul(xr,vr),ht=ht+Math.imul(Sr,pr)|0,$t=Math.imul(Sr,vr),xt=xt+Math.imul(br,wr)|0,ht=ht+Math.imul(br,Ar)|0,ht=ht+Math.imul(dr,wr)|0,$t=$t+Math.imul(dr,Ar)|0,xt=xt+Math.imul(cr,Cr)|0,ht=ht+Math.imul(cr,Or)|0,ht=ht+Math.imul(ur,Cr)|0,$t=$t+Math.imul(ur,Or)|0,xt=xt+Math.imul(Kt,_r)|0,ht=ht+Math.imul(Kt,Dr)|0,ht=ht+Math.imul(ar,_r)|0,$t=$t+Math.imul(ar,Dr)|0,xt=xt+Math.imul(Gt,Tr)|0,ht=ht+Math.imul(Gt,Lr)|0,ht=ht+Math.imul(Zt,Tr)|0,$t=$t+Math.imul(Zt,Lr)|0,xt=xt+Math.imul(Xt,Br)|0,ht=ht+Math.imul(Xt,Fr)|0,ht=ht+Math.imul(Ut,Br)|0,$t=$t+Math.imul(Ut,Fr)|0,xt=xt+Math.imul(Dt,Rr)|0,ht=ht+Math.imul(Dt,jr)|0,ht=ht+Math.imul(Ht,Rr)|0,$t=$t+Math.imul(Ht,jr)|0;var d0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(d0>>>26)|0,d0&=67108863,xt=Math.imul($r,pr),ht=Math.imul($r,vr),ht=ht+Math.imul(Mr,pr)|0,$t=Math.imul(Mr,vr),xt=xt+Math.imul(xr,wr)|0,ht=ht+Math.imul(xr,Ar)|0,ht=ht+Math.imul(Sr,wr)|0,$t=$t+Math.imul(Sr,Ar)|0,xt=xt+Math.imul(br,Cr)|0,ht=ht+Math.imul(br,Or)|0,ht=ht+Math.imul(dr,Cr)|0,$t=$t+Math.imul(dr,Or)|0,xt=xt+Math.imul(cr,_r)|0,ht=ht+Math.imul(cr,Dr)|0,ht=ht+Math.imul(ur,_r)|0,$t=$t+Math.imul(ur,Dr)|0,xt=xt+Math.imul(Kt,Tr)|0,ht=ht+Math.imul(Kt,Lr)|0,ht=ht+Math.imul(ar,Tr)|0,$t=$t+Math.imul(ar,Lr)|0,xt=xt+Math.imul(Gt,Br)|0,ht=ht+Math.imul(Gt,Fr)|0,ht=ht+Math.imul(Zt,Br)|0,$t=$t+Math.imul(Zt,Fr)|0,xt=xt+Math.imul(Xt,Rr)|0,ht=ht+Math.imul(Xt,jr)|0,ht=ht+Math.imul(Ut,Rr)|0,$t=$t+Math.imul(Ut,jr)|0,xt=xt+Math.imul(Dt,kr)|0,ht=ht+Math.imul(Dt,Ur)|0,ht=ht+Math.imul(Ht,kr)|0,$t=$t+Math.imul(Ht,Ur)|0;var h0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(h0>>>26)|0,h0&=67108863,xt=Math.imul(Qt,pr),ht=Math.imul(Qt,vr),ht=ht+Math.imul(jt,pr)|0,$t=Math.imul(jt,vr),xt=xt+Math.imul($r,wr)|0,ht=ht+Math.imul($r,Ar)|0,ht=ht+Math.imul(Mr,wr)|0,$t=$t+Math.imul(Mr,Ar)|0,xt=xt+Math.imul(xr,Cr)|0,ht=ht+Math.imul(xr,Or)|0,ht=ht+Math.imul(Sr,Cr)|0,$t=$t+Math.imul(Sr,Or)|0,xt=xt+Math.imul(br,_r)|0,ht=ht+Math.imul(br,Dr)|0,ht=ht+Math.imul(dr,_r)|0,$t=$t+Math.imul(dr,Dr)|0,xt=xt+Math.imul(cr,Tr)|0,ht=ht+Math.imul(cr,Lr)|0,ht=ht+Math.imul(ur,Tr)|0,$t=$t+Math.imul(ur,Lr)|0,xt=xt+Math.imul(Kt,Br)|0,ht=ht+Math.imul(Kt,Fr)|0,ht=ht+Math.imul(ar,Br)|0,$t=$t+Math.imul(ar,Fr)|0,xt=xt+Math.imul(Gt,Rr)|0,ht=ht+Math.imul(Gt,jr)|0,ht=ht+Math.imul(Zt,Rr)|0,$t=$t+Math.imul(Zt,jr)|0,xt=xt+Math.imul(Xt,kr)|0,ht=ht+Math.imul(Xt,Ur)|0,ht=ht+Math.imul(Ut,kr)|0,$t=$t+Math.imul(Ut,Ur)|0,xt=xt+Math.imul(Dt,Ir)|0,ht=ht+Math.imul(Dt,Hr)|0,ht=ht+Math.imul(Ht,Ir)|0,$t=$t+Math.imul(Ht,Hr)|0;var p0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(p0>>>26)|0,p0&=67108863,xt=Math.imul(nr,pr),ht=Math.imul(nr,vr),ht=ht+Math.imul(fr,pr)|0,$t=Math.imul(fr,vr),xt=xt+Math.imul(Qt,wr)|0,ht=ht+Math.imul(Qt,Ar)|0,ht=ht+Math.imul(jt,wr)|0,$t=$t+Math.imul(jt,Ar)|0,xt=xt+Math.imul($r,Cr)|0,ht=ht+Math.imul($r,Or)|0,ht=ht+Math.imul(Mr,Cr)|0,$t=$t+Math.imul(Mr,Or)|0,xt=xt+Math.imul(xr,_r)|0,ht=ht+Math.imul(xr,Dr)|0,ht=ht+Math.imul(Sr,_r)|0,$t=$t+Math.imul(Sr,Dr)|0,xt=xt+Math.imul(br,Tr)|0,ht=ht+Math.imul(br,Lr)|0,ht=ht+Math.imul(dr,Tr)|0,$t=$t+Math.imul(dr,Lr)|0,xt=xt+Math.imul(cr,Br)|0,ht=ht+Math.imul(cr,Fr)|0,ht=ht+Math.imul(ur,Br)|0,$t=$t+Math.imul(ur,Fr)|0,xt=xt+Math.imul(Kt,Rr)|0,ht=ht+Math.imul(Kt,jr)|0,ht=ht+Math.imul(ar,Rr)|0,$t=$t+Math.imul(ar,jr)|0,xt=xt+Math.imul(Gt,kr)|0,ht=ht+Math.imul(Gt,Ur)|0,ht=ht+Math.imul(Zt,kr)|0,$t=$t+Math.imul(Zt,Ur)|0,xt=xt+Math.imul(Xt,Ir)|0,ht=ht+Math.imul(Xt,Hr)|0,ht=ht+Math.imul(Ut,Ir)|0,$t=$t+Math.imul(Ut,Hr)|0,xt=xt+Math.imul(Dt,Nr)|0,ht=ht+Math.imul(Dt,qr)|0,ht=ht+Math.imul(Ht,Nr)|0,$t=$t+Math.imul(Ht,qr)|0;var b0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(b0>>>26)|0,b0&=67108863,xt=Math.imul(nr,wr),ht=Math.imul(nr,Ar),ht=ht+Math.imul(fr,wr)|0,$t=Math.imul(fr,Ar),xt=xt+Math.imul(Qt,Cr)|0,ht=ht+Math.imul(Qt,Or)|0,ht=ht+Math.imul(jt,Cr)|0,$t=$t+Math.imul(jt,Or)|0,xt=xt+Math.imul($r,_r)|0,ht=ht+Math.imul($r,Dr)|0,ht=ht+Math.imul(Mr,_r)|0,$t=$t+Math.imul(Mr,Dr)|0,xt=xt+Math.imul(xr,Tr)|0,ht=ht+Math.imul(xr,Lr)|0,ht=ht+Math.imul(Sr,Tr)|0,$t=$t+Math.imul(Sr,Lr)|0,xt=xt+Math.imul(br,Br)|0,ht=ht+Math.imul(br,Fr)|0,ht=ht+Math.imul(dr,Br)|0,$t=$t+Math.imul(dr,Fr)|0,xt=xt+Math.imul(cr,Rr)|0,ht=ht+Math.imul(cr,jr)|0,ht=ht+Math.imul(ur,Rr)|0,$t=$t+Math.imul(ur,jr)|0,xt=xt+Math.imul(Kt,kr)|0,ht=ht+Math.imul(Kt,Ur)|0,ht=ht+Math.imul(ar,kr)|0,$t=$t+Math.imul(ar,Ur)|0,xt=xt+Math.imul(Gt,Ir)|0,ht=ht+Math.imul(Gt,Hr)|0,ht=ht+Math.imul(Zt,Ir)|0,$t=$t+Math.imul(Zt,Hr)|0,xt=xt+Math.imul(Xt,Nr)|0,ht=ht+Math.imul(Xt,qr)|0,ht=ht+Math.imul(Ut,Nr)|0,$t=$t+Math.imul(Ut,qr)|0;var m0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(m0>>>26)|0,m0&=67108863,xt=Math.imul(nr,Cr),ht=Math.imul(nr,Or),ht=ht+Math.imul(fr,Cr)|0,$t=Math.imul(fr,Or),xt=xt+Math.imul(Qt,_r)|0,ht=ht+Math.imul(Qt,Dr)|0,ht=ht+Math.imul(jt,_r)|0,$t=$t+Math.imul(jt,Dr)|0,xt=xt+Math.imul($r,Tr)|0,ht=ht+Math.imul($r,Lr)|0,ht=ht+Math.imul(Mr,Tr)|0,$t=$t+Math.imul(Mr,Lr)|0,xt=xt+Math.imul(xr,Br)|0,ht=ht+Math.imul(xr,Fr)|0,ht=ht+Math.imul(Sr,Br)|0,$t=$t+Math.imul(Sr,Fr)|0,xt=xt+Math.imul(br,Rr)|0,ht=ht+Math.imul(br,jr)|0,ht=ht+Math.imul(dr,Rr)|0,$t=$t+Math.imul(dr,jr)|0,xt=xt+Math.imul(cr,kr)|0,ht=ht+Math.imul(cr,Ur)|0,ht=ht+Math.imul(ur,kr)|0,$t=$t+Math.imul(ur,Ur)|0,xt=xt+Math.imul(Kt,Ir)|0,ht=ht+Math.imul(Kt,Hr)|0,ht=ht+Math.imul(ar,Ir)|0,$t=$t+Math.imul(ar,Hr)|0,xt=xt+Math.imul(Gt,Nr)|0,ht=ht+Math.imul(Gt,qr)|0,ht=ht+Math.imul(Zt,Nr)|0,$t=$t+Math.imul(Zt,qr)|0;var g0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(g0>>>26)|0,g0&=67108863,xt=Math.imul(nr,_r),ht=Math.imul(nr,Dr),ht=ht+Math.imul(fr,_r)|0,$t=Math.imul(fr,Dr),xt=xt+Math.imul(Qt,Tr)|0,ht=ht+Math.imul(Qt,Lr)|0,ht=ht+Math.imul(jt,Tr)|0,$t=$t+Math.imul(jt,Lr)|0,xt=xt+Math.imul($r,Br)|0,ht=ht+Math.imul($r,Fr)|0,ht=ht+Math.imul(Mr,Br)|0,$t=$t+Math.imul(Mr,Fr)|0,xt=xt+Math.imul(xr,Rr)|0,ht=ht+Math.imul(xr,jr)|0,ht=ht+Math.imul(Sr,Rr)|0,$t=$t+Math.imul(Sr,jr)|0,xt=xt+Math.imul(br,kr)|0,ht=ht+Math.imul(br,Ur)|0,ht=ht+Math.imul(dr,kr)|0,$t=$t+Math.imul(dr,Ur)|0,xt=xt+Math.imul(cr,Ir)|0,ht=ht+Math.imul(cr,Hr)|0,ht=ht+Math.imul(ur,Ir)|0,$t=$t+Math.imul(ur,Hr)|0,xt=xt+Math.imul(Kt,Nr)|0,ht=ht+Math.imul(Kt,qr)|0,ht=ht+Math.imul(ar,Nr)|0,$t=$t+Math.imul(ar,qr)|0;var y0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(y0>>>26)|0,y0&=67108863,xt=Math.imul(nr,Tr),ht=Math.imul(nr,Lr),ht=ht+Math.imul(fr,Tr)|0,$t=Math.imul(fr,Lr),xt=xt+Math.imul(Qt,Br)|0,ht=ht+Math.imul(Qt,Fr)|0,ht=ht+Math.imul(jt,Br)|0,$t=$t+Math.imul(jt,Fr)|0,xt=xt+Math.imul($r,Rr)|0,ht=ht+Math.imul($r,jr)|0,ht=ht+Math.imul(Mr,Rr)|0,$t=$t+Math.imul(Mr,jr)|0,xt=xt+Math.imul(xr,kr)|0,ht=ht+Math.imul(xr,Ur)|0,ht=ht+Math.imul(Sr,kr)|0,$t=$t+Math.imul(Sr,Ur)|0,xt=xt+Math.imul(br,Ir)|0,ht=ht+Math.imul(br,Hr)|0,ht=ht+Math.imul(dr,Ir)|0,$t=$t+Math.imul(dr,Hr)|0,xt=xt+Math.imul(cr,Nr)|0,ht=ht+Math.imul(cr,qr)|0,ht=ht+Math.imul(ur,Nr)|0,$t=$t+Math.imul(ur,qr)|0;var v0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(v0>>>26)|0,v0&=67108863,xt=Math.imul(nr,Br),ht=Math.imul(nr,Fr),ht=ht+Math.imul(fr,Br)|0,$t=Math.imul(fr,Fr),xt=xt+Math.imul(Qt,Rr)|0,ht=ht+Math.imul(Qt,jr)|0,ht=ht+Math.imul(jt,Rr)|0,$t=$t+Math.imul(jt,jr)|0,xt=xt+Math.imul($r,kr)|0,ht=ht+Math.imul($r,Ur)|0,ht=ht+Math.imul(Mr,kr)|0,$t=$t+Math.imul(Mr,Ur)|0,xt=xt+Math.imul(xr,Ir)|0,ht=ht+Math.imul(xr,Hr)|0,ht=ht+Math.imul(Sr,Ir)|0,$t=$t+Math.imul(Sr,Hr)|0,xt=xt+Math.imul(br,Nr)|0,ht=ht+Math.imul(br,qr)|0,ht=ht+Math.imul(dr,Nr)|0,$t=$t+Math.imul(dr,qr)|0;var w0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(w0>>>26)|0,w0&=67108863,xt=Math.imul(nr,Rr),ht=Math.imul(nr,jr),ht=ht+Math.imul(fr,Rr)|0,$t=Math.imul(fr,jr),xt=xt+Math.imul(Qt,kr)|0,ht=ht+Math.imul(Qt,Ur)|0,ht=ht+Math.imul(jt,kr)|0,$t=$t+Math.imul(jt,Ur)|0,xt=xt+Math.imul($r,Ir)|0,ht=ht+Math.imul($r,Hr)|0,ht=ht+Math.imul(Mr,Ir)|0,$t=$t+Math.imul(Mr,Hr)|0,xt=xt+Math.imul(xr,Nr)|0,ht=ht+Math.imul(xr,qr)|0,ht=ht+Math.imul(Sr,Nr)|0,$t=$t+Math.imul(Sr,qr)|0;var x0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(x0>>>26)|0,x0&=67108863,xt=Math.imul(nr,kr),ht=Math.imul(nr,Ur),ht=ht+Math.imul(fr,kr)|0,$t=Math.imul(fr,Ur),xt=xt+Math.imul(Qt,Ir)|0,ht=ht+Math.imul(Qt,Hr)|0,ht=ht+Math.imul(jt,Ir)|0,$t=$t+Math.imul(jt,Hr)|0,xt=xt+Math.imul($r,Nr)|0,ht=ht+Math.imul($r,qr)|0,ht=ht+Math.imul(Mr,Nr)|0,$t=$t+Math.imul(Mr,qr)|0;var E0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(E0>>>26)|0,E0&=67108863,xt=Math.imul(nr,Ir),ht=Math.imul(nr,Hr),ht=ht+Math.imul(fr,Ir)|0,$t=Math.imul(fr,Hr),xt=xt+Math.imul(Qt,Nr)|0,ht=ht+Math.imul(Qt,qr)|0,ht=ht+Math.imul(jt,Nr)|0,$t=$t+Math.imul(jt,qr)|0;var $0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+($0>>>26)|0,$0&=67108863,xt=Math.imul(nr,Nr),ht=Math.imul(nr,qr),ht=ht+Math.imul(fr,Nr)|0,$t=Math.imul(fr,qr);var M0=(Pt+xt|0)+((ht&8191)<<13)|0;return Pt=($t+(ht>>>13)|0)+(M0>>>26)|0,M0&=67108863,At[0]=e0,At[1]=t0,At[2]=f0,At[3]=c0,At[4]=l0,At[5]=u0,At[6]=d0,At[7]=h0,At[8]=p0,At[9]=b0,At[10]=m0,At[11]=g0,At[12]=y0,At[13]=v0,At[14]=w0,At[15]=x0,At[16]=E0,At[17]=$0,At[18]=M0,Pt!==0&&(At[19]=Pt,yt.length++),yt};Math.imul||(It=kt);function Lt(Ct,dt,mt){mt.negative=dt.negative^Ct.negative,mt.length=Ct.length+dt.length;for(var yt=0,vt=0,Et=0;Et>>26)|0,vt+=At>>>26,At&=67108863}mt.words[Et]=Pt,yt=At,At=vt}return yt!==0?mt.words[Et]=yt:mt.length--,mt.strip()}function Ot(Ct,dt,mt){var yt=new Nt;return yt.mulp(Ct,dt,mt)}tt.prototype.mulTo=function(dt,mt){var yt,vt=this.length+dt.length;return this.length===10&&dt.length===10?yt=It(this,dt,mt):vt<63?yt=kt(this,dt,mt):vt<1024?yt=Lt(this,dt,mt):yt=Ot(this,dt,mt),yt};function Nt(Ct,dt){this.x=Ct,this.y=dt}Nt.prototype.makeRBT=function(dt){for(var mt=new Array(dt),yt=tt.prototype._countBits(dt)-1,vt=0;vt>=1;return vt},Nt.prototype.permute=function(dt,mt,yt,vt,Et,At){for(var Pt=0;Pt>>1)Et++;return 1<>>13,yt[2*At+1]=Et&8191,Et=Et>>>13;for(At=2*mt;At>=26,mt+=vt/67108864|0,mt+=Et>>>26,this.words[yt]=Et&67108863}return mt!==0&&(this.words[yt]=mt,this.length++),this},tt.prototype.muln=function(dt){return this.clone().imuln(dt)},tt.prototype.sqr=function(){return this.mul(this)},tt.prototype.isqr=function(){return this.imul(this.clone())},tt.prototype.pow=function(dt){var mt=Bt(dt);if(mt.length===0)return new tt(1);for(var yt=this,vt=0;vt=0);var mt=dt%26,yt=(dt-mt)/26,vt=67108863>>>26-mt<<26-mt,Et;if(mt!==0){var At=0;for(Et=0;Et>>26-mt}At&&(this.words[Et]=At,this.length++)}if(yt!==0){for(Et=this.length-1;Et>=0;Et--)this.words[Et+yt]=this.words[Et];for(Et=0;Et=0);var vt;mt?vt=(mt-mt%26)/26:vt=0;var Et=dt%26,At=Math.min((dt-Et)/26,this.length),Pt=67108863^67108863>>>Et<At)for(this.length-=At,ht=0;ht=0&&($t!==0||ht>=vt);ht--){var Rt=this.words[ht]|0;this.words[ht]=$t<<26-Et|Rt>>>Et,$t=Rt&Pt}return xt&&$t!==0&&(xt.words[xt.length++]=$t),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},tt.prototype.ishrn=function(dt,mt,yt){return et(this.negative===0),this.iushrn(dt,mt,yt)},tt.prototype.shln=function(dt){return this.clone().ishln(dt)},tt.prototype.ushln=function(dt){return this.clone().iushln(dt)},tt.prototype.shrn=function(dt){return this.clone().ishrn(dt)},tt.prototype.ushrn=function(dt){return this.clone().iushrn(dt)},tt.prototype.testn=function(dt){et(typeof dt=="number"&&dt>=0);var mt=dt%26,yt=(dt-mt)/26,vt=1<=0);var mt=dt%26,yt=(dt-mt)/26;if(et(this.negative===0,"imaskn works only with positive numbers"),this.length<=yt)return this;if(mt!==0&&yt++,this.length=Math.min(yt,this.length),mt!==0){var vt=67108863^67108863>>>mt<=67108864;mt++)this.words[mt]-=67108864,mt===this.length-1?this.words[mt+1]=1:this.words[mt+1]++;return this.length=Math.max(this.length,mt+1),this},tt.prototype.isubn=function(dt){if(et(typeof dt=="number"),et(dt<67108864),dt<0)return this.iaddn(-dt);if(this.negative!==0)return this.negative=0,this.iaddn(dt),this.negative=1,this;if(this.words[0]-=dt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var mt=0;mt>26)-(xt/67108864|0),this.words[Et+yt]=At&67108863}for(;Et>26,this.words[Et+yt]=At&67108863;if(Pt===0)return this.strip();for(et(Pt===-1),Pt=0,Et=0;Et>26,this.words[Et]=At&67108863;return this.negative=1,this.strip()},tt.prototype._wordDiv=function(dt,mt){var yt=this.length-dt.length,vt=this.clone(),Et=dt,At=Et.words[Et.length-1]|0,Pt=this._countBits(At);yt=26-Pt,yt!==0&&(Et=Et.ushln(yt),vt.iushln(yt),At=Et.words[Et.length-1]|0);var xt=vt.length-Et.length,ht;if(mt!=="mod"){ht=new tt(null),ht.length=xt+1,ht.words=new Array(ht.length);for(var $t=0;$t=0;Dt--){var Ht=(vt.words[Et.length+Dt]|0)*67108864+(vt.words[Et.length+Dt-1]|0);for(Ht=Math.min(Ht/At|0,67108863),vt._ishlnsubmul(Et,Ht,Dt);vt.negative!==0;)Ht--,vt.negative=0,vt._ishlnsubmul(Et,1,Dt),vt.isZero()||(vt.negative^=1);ht&&(ht.words[Dt]=Ht)}return ht&&ht.strip(),vt.strip(),mt!=="div"&&yt!==0&&vt.iushrn(yt),{div:ht||null,mod:vt}},tt.prototype.divmod=function(dt,mt,yt){if(et(!dt.isZero()),this.isZero())return{div:new tt(0),mod:new tt(0)};var vt,Et,At;return this.negative!==0&&dt.negative===0?(At=this.neg().divmod(dt,mt),mt!=="mod"&&(vt=At.div.neg()),mt!=="div"&&(Et=At.mod.neg(),yt&&Et.negative!==0&&Et.iadd(dt)),{div:vt,mod:Et}):this.negative===0&&dt.negative!==0?(At=this.divmod(dt.neg(),mt),mt!=="mod"&&(vt=At.div.neg()),{div:vt,mod:At.mod}):this.negative&dt.negative?(At=this.neg().divmod(dt.neg(),mt),mt!=="div"&&(Et=At.mod.neg(),yt&&Et.negative!==0&&Et.isub(dt)),{div:At.div,mod:Et}):dt.length>this.length||this.cmp(dt)<0?{div:new tt(0),mod:this}:dt.length===1?mt==="div"?{div:this.divn(dt.words[0]),mod:null}:mt==="mod"?{div:null,mod:new tt(this.modn(dt.words[0]))}:{div:this.divn(dt.words[0]),mod:new tt(this.modn(dt.words[0]))}:this._wordDiv(dt,mt)},tt.prototype.div=function(dt){return this.divmod(dt,"div",!1).div},tt.prototype.mod=function(dt){return this.divmod(dt,"mod",!1).mod},tt.prototype.umod=function(dt){return this.divmod(dt,"mod",!0).mod},tt.prototype.divRound=function(dt){var mt=this.divmod(dt);if(mt.mod.isZero())return mt.div;var yt=mt.div.negative!==0?mt.mod.isub(dt):mt.mod,vt=dt.ushrn(1),Et=dt.andln(1),At=yt.cmp(vt);return At<0||Et===1&&At===0?mt.div:mt.div.negative!==0?mt.div.isubn(1):mt.div.iaddn(1)},tt.prototype.modn=function(dt){et(dt<=67108863);for(var mt=(1<<26)%dt,yt=0,vt=this.length-1;vt>=0;vt--)yt=(mt*yt+(this.words[vt]|0))%dt;return yt},tt.prototype.idivn=function(dt){et(dt<=67108863);for(var mt=0,yt=this.length-1;yt>=0;yt--){var vt=(this.words[yt]|0)+mt*67108864;this.words[yt]=vt/dt|0,mt=vt%dt}return this.strip()},tt.prototype.divn=function(dt){return this.clone().idivn(dt)},tt.prototype.egcd=function(dt){et(dt.negative===0),et(!dt.isZero());var mt=this,yt=dt.clone();mt.negative!==0?mt=mt.umod(dt):mt=mt.clone();for(var vt=new tt(1),Et=new tt(0),At=new tt(0),Pt=new tt(1),xt=0;mt.isEven()&&yt.isEven();)mt.iushrn(1),yt.iushrn(1),++xt;for(var ht=yt.clone(),$t=mt.clone();!mt.isZero();){for(var Rt=0,Dt=1;!(mt.words[0]&Dt)&&Rt<26;++Rt,Dt<<=1);if(Rt>0)for(mt.iushrn(Rt);Rt-- >0;)(vt.isOdd()||Et.isOdd())&&(vt.iadd(ht),Et.isub($t)),vt.iushrn(1),Et.iushrn(1);for(var Ht=0,tr=1;!(yt.words[0]&tr)&&Ht<26;++Ht,tr<<=1);if(Ht>0)for(yt.iushrn(Ht);Ht-- >0;)(At.isOdd()||Pt.isOdd())&&(At.iadd(ht),Pt.isub($t)),At.iushrn(1),Pt.iushrn(1);mt.cmp(yt)>=0?(mt.isub(yt),vt.isub(At),Et.isub(Pt)):(yt.isub(mt),At.isub(vt),Pt.isub(Et))}return{a:At,b:Pt,gcd:yt.iushln(xt)}},tt.prototype._invmp=function(dt){et(dt.negative===0),et(!dt.isZero());var mt=this,yt=dt.clone();mt.negative!==0?mt=mt.umod(dt):mt=mt.clone();for(var vt=new tt(1),Et=new tt(0),At=yt.clone();mt.cmpn(1)>0&&yt.cmpn(1)>0;){for(var Pt=0,xt=1;!(mt.words[0]&xt)&&Pt<26;++Pt,xt<<=1);if(Pt>0)for(mt.iushrn(Pt);Pt-- >0;)vt.isOdd()&&vt.iadd(At),vt.iushrn(1);for(var ht=0,$t=1;!(yt.words[0]&$t)&&ht<26;++ht,$t<<=1);if(ht>0)for(yt.iushrn(ht);ht-- >0;)Et.isOdd()&&Et.iadd(At),Et.iushrn(1);mt.cmp(yt)>=0?(mt.isub(yt),vt.isub(Et)):(yt.isub(mt),Et.isub(vt))}var Rt;return mt.cmpn(1)===0?Rt=vt:Rt=Et,Rt.cmpn(0)<0&&Rt.iadd(dt),Rt},tt.prototype.gcd=function(dt){if(this.isZero())return dt.abs();if(dt.isZero())return this.abs();var mt=this.clone(),yt=dt.clone();mt.negative=0,yt.negative=0;for(var vt=0;mt.isEven()&&yt.isEven();vt++)mt.iushrn(1),yt.iushrn(1);do{for(;mt.isEven();)mt.iushrn(1);for(;yt.isEven();)yt.iushrn(1);var Et=mt.cmp(yt);if(Et<0){var At=mt;mt=yt,yt=At}else if(Et===0||yt.cmpn(1)===0)break;mt.isub(yt)}while(!0);return yt.iushln(vt)},tt.prototype.invm=function(dt){return this.egcd(dt).a.umod(dt)},tt.prototype.isEven=function(){return(this.words[0]&1)===0},tt.prototype.isOdd=function(){return(this.words[0]&1)===1},tt.prototype.andln=function(dt){return this.words[0]&dt},tt.prototype.bincn=function(dt){et(typeof dt=="number");var mt=dt%26,yt=(dt-mt)/26,vt=1<>>26,Pt&=67108863,this.words[At]=Pt}return Et!==0&&(this.words[At]=Et,this.length++),this},tt.prototype.isZero=function(){return this.length===1&&this.words[0]===0},tt.prototype.cmpn=function(dt){var mt=dt<0;if(this.negative!==0&&!mt)return-1;if(this.negative===0&&mt)return 1;this.strip();var yt;if(this.length>1)yt=1;else{mt&&(dt=-dt),et(dt<=67108863,"Number is too big");var vt=this.words[0]|0;yt=vt===dt?0:vtdt.length)return 1;if(this.length=0;yt--){var vt=this.words[yt]|0,Et=dt.words[yt]|0;if(vt!==Et){vtEt&&(mt=1);break}}return mt},tt.prototype.gtn=function(dt){return this.cmpn(dt)===1},tt.prototype.gt=function(dt){return this.cmp(dt)===1},tt.prototype.gten=function(dt){return this.cmpn(dt)>=0},tt.prototype.gte=function(dt){return this.cmp(dt)>=0},tt.prototype.ltn=function(dt){return this.cmpn(dt)===-1},tt.prototype.lt=function(dt){return this.cmp(dt)===-1},tt.prototype.lten=function(dt){return this.cmpn(dt)<=0},tt.prototype.lte=function(dt){return this.cmp(dt)<=0},tt.prototype.eqn=function(dt){return this.cmpn(dt)===0},tt.prototype.eq=function(dt){return this.cmp(dt)===0},tt.red=function(dt){return new er(dt)},tt.prototype.toRed=function(dt){return et(!this.red,"Already a number in reduction context"),et(this.negative===0,"red works only with positives"),dt.convertTo(this)._forceRed(dt)},tt.prototype.fromRed=function(){return et(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},tt.prototype._forceRed=function(dt){return this.red=dt,this},tt.prototype.forceRed=function(dt){return et(!this.red,"Already a number in reduction context"),this._forceRed(dt)},tt.prototype.redAdd=function(dt){return et(this.red,"redAdd works only with red numbers"),this.red.add(this,dt)},tt.prototype.redIAdd=function(dt){return et(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,dt)},tt.prototype.redSub=function(dt){return et(this.red,"redSub works only with red numbers"),this.red.sub(this,dt)},tt.prototype.redISub=function(dt){return et(this.red,"redISub works only with red numbers"),this.red.isub(this,dt)},tt.prototype.redShl=function(dt){return et(this.red,"redShl works only with red numbers"),this.red.shl(this,dt)},tt.prototype.redMul=function(dt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,dt),this.red.mul(this,dt)},tt.prototype.redIMul=function(dt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,dt),this.red.imul(this,dt)},tt.prototype.redSqr=function(){return et(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},tt.prototype.redISqr=function(){return et(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},tt.prototype.redSqrt=function(){return et(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},tt.prototype.redInvm=function(){return et(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},tt.prototype.redNeg=function(){return et(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},tt.prototype.redPow=function(dt){return et(this.red&&!dt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,dt)};var Ft={k256:null,p224:null,p192:null,p25519:null};function zt(Ct,dt){this.name=Ct,this.p=new tt(dt,16),this.n=this.p.bitLength(),this.k=new tt(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}zt.prototype._tmp=function(){var dt=new tt(null);return dt.words=new Array(Math.ceil(this.n/13)),dt},zt.prototype.ireduce=function(dt){var mt=dt,yt;do this.split(mt,this.tmp),mt=this.imulK(mt),mt=mt.iadd(this.tmp),yt=mt.bitLength();while(yt>this.n);var vt=yt0?mt.isub(this.p):mt.strip!==void 0?mt.strip():mt._strip(),mt},zt.prototype.split=function(dt,mt){dt.iushrn(this.n,0,mt)},zt.prototype.imulK=function(dt){return dt.imul(this.k)};function Vt(){zt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}nt(Vt,zt),Vt.prototype.split=function(dt,mt){for(var yt=4194303,vt=Math.min(dt.length,9),Et=0;Et>>22,At=Pt}At>>>=22,dt.words[Et-10]=At,At===0&&dt.length>10?dt.length-=10:dt.length-=9},Vt.prototype.imulK=function(dt){dt.words[dt.length]=0,dt.words[dt.length+1]=0,dt.length+=2;for(var mt=0,yt=0;yt>>=26,dt.words[yt]=Et,mt=vt}return mt!==0&&(dt.words[dt.length++]=mt),dt},tt._prime=function(dt){if(Ft[dt])return Ft[dt];var mt;if(dt==="k256")mt=new Vt;else if(dt==="p224")mt=new Jt;else if(dt==="p192")mt=new ir;else if(dt==="p25519")mt=new rr;else throw new Error("Unknown prime "+dt);return Ft[dt]=mt,mt};function er(Ct){if(typeof Ct=="string"){var dt=tt._prime(Ct);this.m=dt.p,this.prime=dt}else et(Ct.gtn(1),"modulus must be greater than 1"),this.m=Ct,this.prime=null}er.prototype._verify1=function(dt){et(dt.negative===0,"red works only with positives"),et(dt.red,"red works only with red numbers")},er.prototype._verify2=function(dt,mt){et((dt.negative|mt.negative)===0,"red works only with positives"),et(dt.red&&dt.red===mt.red,"red works only with red numbers")},er.prototype.imod=function(dt){return this.prime?this.prime.ireduce(dt)._forceRed(this):dt.umod(this.m)._forceRed(this)},er.prototype.neg=function(dt){return dt.isZero()?dt.clone():this.m.sub(dt)._forceRed(this)},er.prototype.add=function(dt,mt){this._verify2(dt,mt);var yt=dt.add(mt);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt._forceRed(this)},er.prototype.iadd=function(dt,mt){this._verify2(dt,mt);var yt=dt.iadd(mt);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt},er.prototype.sub=function(dt,mt){this._verify2(dt,mt);var yt=dt.sub(mt);return yt.cmpn(0)<0&&yt.iadd(this.m),yt._forceRed(this)},er.prototype.isub=function(dt,mt){this._verify2(dt,mt);var yt=dt.isub(mt);return yt.cmpn(0)<0&&yt.iadd(this.m),yt},er.prototype.shl=function(dt,mt){return this._verify1(dt),this.imod(dt.ushln(mt))},er.prototype.imul=function(dt,mt){return this._verify2(dt,mt),this.imod(dt.imul(mt))},er.prototype.mul=function(dt,mt){return this._verify2(dt,mt),this.imod(dt.mul(mt))},er.prototype.isqr=function(dt){return this.imul(dt,dt.clone())},er.prototype.sqr=function(dt){return this.mul(dt,dt)},er.prototype.sqrt=function(dt){if(dt.isZero())return dt.clone();var mt=this.m.andln(3);if(et(mt%2===1),mt===3){var yt=this.m.add(new tt(1)).iushrn(2);return this.pow(dt,yt)}for(var vt=this.m.subn(1),Et=0;!vt.isZero()&&vt.andln(1)===0;)Et++,vt.iushrn(1);et(!vt.isZero());var At=new tt(1).toRed(this),Pt=At.redNeg(),xt=this.m.subn(1).iushrn(1),ht=this.m.bitLength();for(ht=new tt(2*ht*ht).toRed(this);this.pow(ht,xt).cmp(Pt)!==0;)ht.redIAdd(Pt);for(var $t=this.pow(ht,vt),Rt=this.pow(dt,vt.addn(1).iushrn(1)),Dt=this.pow(dt,vt),Ht=Et;Dt.cmp(At)!==0;){for(var tr=Dt,Xt=0;tr.cmp(At)!==0;Xt++)tr=tr.redSqr();et(Xt=0;Et--){for(var $t=mt.words[Et],Rt=ht-1;Rt>=0;Rt--){var Dt=$t>>Rt&1;if(At!==vt[0]&&(At=this.sqr(At)),Dt===0&&Pt===0){xt=0;continue}Pt<<=1,Pt|=Dt,xt++,!(xt!==yt&&(Et!==0||Rt!==0))&&(At=this.mul(At,vt[Pt]),xt=0,Pt=0)}ht=26}return At},er.prototype.convertTo=function(dt){var mt=dt.umod(this.m);return mt===dt?mt.clone():mt},er.prototype.convertFrom=function(dt){var mt=dt.clone();return mt.red=null,mt},tt.mont=function(dt){return new lr(dt)};function lr(Ct){er.call(this,Ct),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new tt(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)}nt(lr,er),lr.prototype.convertTo=function(dt){return this.imod(dt.ushln(this.shift))},lr.prototype.convertFrom=function(dt){var mt=this.imod(dt.mul(this.rinv));return mt.red=null,mt},lr.prototype.imul=function(dt,mt){if(dt.isZero()||mt.isZero())return dt.words[0]=0,dt.length=1,dt;var yt=dt.imul(mt),vt=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Et=yt.isub(vt).iushrn(this.shift),At=Et;return Et.cmp(this.m)>=0?At=Et.isub(this.m):Et.cmpn(0)<0&&(At=Et.iadd(this.m)),At._forceRed(this)},lr.prototype.mul=function(dt,mt){if(dt.isZero()||mt.isZero())return new tt(0)._forceRed(this);var yt=dt.mul(mt),vt=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Et=yt.isub(vt).iushrn(this.shift),At=Et;return Et.cmp(this.m)>=0?At=Et.isub(this.m):Et.cmpn(0)<0&&(At=Et.iadd(this.m)),At._forceRed(this)},lr.prototype.invm=function(dt){var mt=this.imod(dt._invmp(this.m).mul(this.r2));return mt._forceRed(this)}})(c,commonjsGlobal)})(bn$2);var bnExports$2=bn$2.exports;(function(c){var a=c,d=bnExports$2,et=minimalisticAssert,nt=utils$x;a.assert=et,a.toArray=nt.toArray,a.zero2=nt.zero2,a.toHex=nt.toHex,a.encode=nt.encode;function tt(Mt,_t,Tt){var Bt=new Array(Math.max(Mt.bitLength(),Tt)+1);Bt.fill(0);for(var kt=1<<_t+1,It=Mt.clone(),Lt=0;Lt(kt>>1)-1?Ot=(kt>>1)-Nt:Ot=Nt,It.isubn(Ot)):Ot=0,Bt[Lt]=Ot,It.iushrn(1)}return Bt}a.getNAF=tt;function bt(Mt,_t){var Tt=[[],[]];Mt=Mt.clone(),_t=_t.clone();for(var Bt=0,kt=0,It;Mt.cmpn(-Bt)>0||_t.cmpn(-kt)>0;){var Lt=Mt.andln(3)+Bt&3,Ot=_t.andln(3)+kt&3;Lt===3&&(Lt=-1),Ot===3&&(Ot=-1);var Nt;Lt&1?(It=Mt.andln(7)+Bt&7,(It===3||It===5)&&Ot===2?Nt=-Lt:Nt=Lt):Nt=0,Tt[0].push(Nt);var Ft;Ot&1?(It=_t.andln(7)+kt&7,(It===3||It===5)&&Lt===2?Ft=-Ot:Ft=Ot):Ft=0,Tt[1].push(Ft),2*Bt===Nt+1&&(Bt=1-Bt),2*kt===Ft+1&&(kt=1-kt),Mt.iushrn(1),_t.iushrn(1)}return Tt}a.getJSF=bt;function gt(Mt,_t,Tt){var Bt="_"+_t;Mt.prototype[_t]=function(){return this[Bt]!==void 0?this[Bt]:this[Bt]=Tt.call(this)}}a.cachedProperty=gt;function wt(Mt){return typeof Mt=="string"?a.toArray(Mt,"hex"):Mt}a.parseBytes=wt;function St(Mt){return new d(Mt,"hex","le")}a.intFromLE=St})(utils$c);var curve={},BN$9=bnExports$2,utils$b=utils$c,getNAF=utils$b.getNAF,getJSF=utils$b.getJSF,assert$7=utils$b.assert;function BaseCurve(c,a){this.type=c,this.p=new BN$9(a.p,16),this.red=a.prime?BN$9.red(a.prime):BN$9.mont(this.p),this.zero=new BN$9(0).toRed(this.red),this.one=new BN$9(1).toRed(this.red),this.two=new BN$9(2).toRed(this.red),this.n=a.n&&new BN$9(a.n,16),this.g=a.g&&this.pointFromJSON(a.g,a.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 d=this.n&&this.p.div(this.n);!d||d.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var base$1=BaseCurve;BaseCurve.prototype.point=function c(){throw new Error("Not implemented")};BaseCurve.prototype.validate=function c(){throw new Error("Not implemented")};BaseCurve.prototype._fixedNafMul=function c(a,d){assert$7(a.precomputed);var et=a._getDoubles(),nt=getNAF(d,1,this._bitLength),tt=(1<=gt;St--)wt=(wt<<1)+nt[St];bt.push(wt)}for(var Mt=this.jpoint(null,null,null),_t=this.jpoint(null,null,null),Tt=tt;Tt>0;Tt--){for(gt=0;gt=0;wt--){for(var St=0;wt>=0&&bt[wt]===0;wt--)St++;if(wt>=0&&St++,gt=gt.dblp(St),wt<0)break;var Mt=bt[wt];assert$7(Mt!==0),a.type==="affine"?Mt>0?gt=gt.mixedAdd(tt[Mt-1>>1]):gt=gt.mixedAdd(tt[-Mt-1>>1].neg()):Mt>0?gt=gt.add(tt[Mt-1>>1]):gt=gt.add(tt[-Mt-1>>1].neg())}return a.type==="affine"?gt.toP():gt};BaseCurve.prototype._wnafMulAdd=function c(a,d,et,nt,tt){var bt=this._wnafT1,gt=this._wnafT2,wt=this._wnafT3,St=0,Mt,_t,Tt;for(Mt=0;Mt=1;Mt-=2){var kt=Mt-1,It=Mt;if(bt[kt]!==1||bt[It]!==1){wt[kt]=getNAF(et[kt],bt[kt],this._bitLength),wt[It]=getNAF(et[It],bt[It],this._bitLength),St=Math.max(wt[kt].length,St),St=Math.max(wt[It].length,St);continue}var Lt=[d[kt],null,null,d[It]];d[kt].y.cmp(d[It].y)===0?(Lt[1]=d[kt].add(d[It]),Lt[2]=d[kt].toJ().mixedAdd(d[It].neg())):d[kt].y.cmp(d[It].y.redNeg())===0?(Lt[1]=d[kt].toJ().mixedAdd(d[It]),Lt[2]=d[kt].add(d[It].neg())):(Lt[1]=d[kt].toJ().mixedAdd(d[It]),Lt[2]=d[kt].toJ().mixedAdd(d[It].neg()));var Ot=[-3,-1,-5,-7,0,7,5,1,3],Nt=getJSF(et[kt],et[It]);for(St=Math.max(Nt[0].length,St),wt[kt]=new Array(St),wt[It]=new Array(St),_t=0;_t=0;Mt--){for(var ir=0;Mt>=0;){var rr=!0;for(_t=0;_t=0&&ir++,Vt=Vt.dblp(ir),Mt<0)break;for(_t=0;_t0?Tt=gt[_t][er-1>>1]:er<0&&(Tt=gt[_t][-er-1>>1].neg()),Tt.type==="affine"?Vt=Vt.mixedAdd(Tt):Vt=Vt.add(Tt))}}for(Mt=0;Mt=Math.ceil((a.bitLength()+1)/d.step):!1};BasePoint.prototype._getDoubles=function c(a,d){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var et=[this],nt=this,tt=0;tt=0&&(Bt=St,kt=Mt),_t.negative&&(_t=_t.neg(),Tt=Tt.neg()),Bt.negative&&(Bt=Bt.neg(),kt=kt.neg()),[{a:_t,b:Tt},{a:Bt,b:kt}]};ShortCurve.prototype._endoSplit=function c(a){var d=this.endo.basis,et=d[0],nt=d[1],tt=nt.b.mul(a).divRound(this.n),bt=et.b.neg().mul(a).divRound(this.n),gt=tt.mul(et.a),wt=bt.mul(nt.a),St=tt.mul(et.b),Mt=bt.mul(nt.b),_t=a.sub(gt).sub(wt),Tt=St.add(Mt).neg();return{k1:_t,k2:Tt}};ShortCurve.prototype.pointFromX=function c(a,d){a=new BN$8(a,16),a.red||(a=a.toRed(this.red));var et=a.redSqr().redMul(a).redIAdd(a.redMul(this.a)).redIAdd(this.b),nt=et.redSqrt();if(nt.redSqr().redSub(et).cmp(this.zero)!==0)throw new Error("invalid point");var tt=nt.fromRed().isOdd();return(d&&!tt||!d&&tt)&&(nt=nt.redNeg()),this.point(a,nt)};ShortCurve.prototype.validate=function c(a){if(a.inf)return!0;var d=a.x,et=a.y,nt=this.a.redMul(d),tt=d.redSqr().redMul(d).redIAdd(nt).redIAdd(this.b);return et.redSqr().redISub(tt).cmpn(0)===0};ShortCurve.prototype._endoWnafMulAdd=function c(a,d,et){for(var nt=this._endoWnafT1,tt=this._endoWnafT2,bt=0;bt":""};Point$3.prototype.isInfinity=function c(){return this.inf};Point$3.prototype.add=function c(a){if(this.inf)return a;if(a.inf)return this;if(this.eq(a))return this.dbl();if(this.neg().eq(a))return this.curve.point(null,null);if(this.x.cmp(a.x)===0)return this.curve.point(null,null);var d=this.y.redSub(a.y);d.cmpn(0)!==0&&(d=d.redMul(this.x.redSub(a.x).redInvm()));var et=d.redSqr().redISub(this.x).redISub(a.x),nt=d.redMul(this.x.redSub(et)).redISub(this.y);return this.curve.point(et,nt)};Point$3.prototype.dbl=function c(){if(this.inf)return this;var a=this.y.redAdd(this.y);if(a.cmpn(0)===0)return this.curve.point(null,null);var d=this.curve.a,et=this.x.redSqr(),nt=a.redInvm(),tt=et.redAdd(et).redIAdd(et).redIAdd(d).redMul(nt),bt=tt.redSqr().redISub(this.x.redAdd(this.x)),gt=tt.redMul(this.x.redSub(bt)).redISub(this.y);return this.curve.point(bt,gt)};Point$3.prototype.getX=function c(){return this.x.fromRed()};Point$3.prototype.getY=function c(){return this.y.fromRed()};Point$3.prototype.mul=function c(a){return a=new BN$8(a,16),this.isInfinity()?this:this._hasDoubles(a)?this.curve._fixedNafMul(this,a):this.curve.endo?this.curve._endoWnafMulAdd([this],[a]):this.curve._wnafMul(this,a)};Point$3.prototype.mulAdd=function c(a,d,et){var nt=[this,d],tt=[a,et];return this.curve.endo?this.curve._endoWnafMulAdd(nt,tt):this.curve._wnafMulAdd(1,nt,tt,2)};Point$3.prototype.jmulAdd=function c(a,d,et){var nt=[this,d],tt=[a,et];return this.curve.endo?this.curve._endoWnafMulAdd(nt,tt,!0):this.curve._wnafMulAdd(1,nt,tt,2,!0)};Point$3.prototype.eq=function c(a){return this===a||this.inf===a.inf&&(this.inf||this.x.cmp(a.x)===0&&this.y.cmp(a.y)===0)};Point$3.prototype.neg=function c(a){if(this.inf)return this;var d=this.curve.point(this.x,this.y.redNeg());if(a&&this.precomputed){var et=this.precomputed,nt=function(tt){return tt.neg()};d.precomputed={naf:et.naf&&{wnd:et.naf.wnd,points:et.naf.points.map(nt)},doubles:et.doubles&&{step:et.doubles.step,points:et.doubles.points.map(nt)}}}return d};Point$3.prototype.toJ=function c(){if(this.inf)return this.curve.jpoint(null,null,null);var a=this.curve.jpoint(this.x,this.y,this.curve.one);return a};function JPoint(c,a,d,et){Base$2.BasePoint.call(this,c,"jacobian"),a===null&&d===null&&et===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new BN$8(0)):(this.x=new BN$8(a,16),this.y=new BN$8(d,16),this.z=new BN$8(et,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}inherits$2(JPoint,Base$2.BasePoint);ShortCurve.prototype.jpoint=function c(a,d,et){return new JPoint(this,a,d,et)};JPoint.prototype.toP=function c(){if(this.isInfinity())return this.curve.point(null,null);var a=this.z.redInvm(),d=a.redSqr(),et=this.x.redMul(d),nt=this.y.redMul(d).redMul(a);return this.curve.point(et,nt)};JPoint.prototype.neg=function c(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};JPoint.prototype.add=function c(a){if(this.isInfinity())return a;if(a.isInfinity())return this;var d=a.z.redSqr(),et=this.z.redSqr(),nt=this.x.redMul(d),tt=a.x.redMul(et),bt=this.y.redMul(d.redMul(a.z)),gt=a.y.redMul(et.redMul(this.z)),wt=nt.redSub(tt),St=bt.redSub(gt);if(wt.cmpn(0)===0)return St.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var Mt=wt.redSqr(),_t=Mt.redMul(wt),Tt=nt.redMul(Mt),Bt=St.redSqr().redIAdd(_t).redISub(Tt).redISub(Tt),kt=St.redMul(Tt.redISub(Bt)).redISub(bt.redMul(_t)),It=this.z.redMul(a.z).redMul(wt);return this.curve.jpoint(Bt,kt,It)};JPoint.prototype.mixedAdd=function c(a){if(this.isInfinity())return a.toJ();if(a.isInfinity())return this;var d=this.z.redSqr(),et=this.x,nt=a.x.redMul(d),tt=this.y,bt=a.y.redMul(d).redMul(this.z),gt=et.redSub(nt),wt=tt.redSub(bt);if(gt.cmpn(0)===0)return wt.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var St=gt.redSqr(),Mt=St.redMul(gt),_t=et.redMul(St),Tt=wt.redSqr().redIAdd(Mt).redISub(_t).redISub(_t),Bt=wt.redMul(_t.redISub(Tt)).redISub(tt.redMul(Mt)),kt=this.z.redMul(gt);return this.curve.jpoint(Tt,Bt,kt)};JPoint.prototype.dblp=function c(a){if(a===0)return this;if(this.isInfinity())return this;if(!a)return this.dbl();var d;if(this.curve.zeroA||this.curve.threeA){var et=this;for(d=0;d=0)return!1;if(et.redIAdd(tt),this.x.cmp(et)===0)return!0}};JPoint.prototype.inspect=function c(){return this.isInfinity()?"":""};JPoint.prototype.isInfinity=function c(){return this.z.cmpn(0)===0};var BN$7=bnExports$2,inherits$1=inherits_browserExports,Base$1=base$1,utils$9=utils$c;function MontCurve(c){Base$1.call(this,"mont",c),this.a=new BN$7(c.a,16).toRed(this.red),this.b=new BN$7(c.b,16).toRed(this.red),this.i4=new BN$7(4).toRed(this.red).redInvm(),this.two=new BN$7(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}inherits$1(MontCurve,Base$1);var mont=MontCurve;MontCurve.prototype.validate=function c(a){var d=a.normalize().x,et=d.redSqr(),nt=et.redMul(d).redAdd(et.redMul(this.a)).redAdd(d),tt=nt.redSqrt();return tt.redSqr().cmp(nt)===0};function Point$2(c,a,d){Base$1.BasePoint.call(this,c,"projective"),a===null&&d===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new BN$7(a,16),this.z=new BN$7(d,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}inherits$1(Point$2,Base$1.BasePoint);MontCurve.prototype.decodePoint=function c(a,d){return this.point(utils$9.toArray(a,d),1)};MontCurve.prototype.point=function c(a,d){return new Point$2(this,a,d)};MontCurve.prototype.pointFromJSON=function c(a){return Point$2.fromJSON(this,a)};Point$2.prototype.precompute=function c(){};Point$2.prototype._encode=function c(){return this.getX().toArray("be",this.curve.p.byteLength())};Point$2.fromJSON=function c(a,d){return new Point$2(a,d[0],d[1]||a.one)};Point$2.prototype.inspect=function c(){return this.isInfinity()?"":""};Point$2.prototype.isInfinity=function c(){return this.z.cmpn(0)===0};Point$2.prototype.dbl=function c(){var a=this.x.redAdd(this.z),d=a.redSqr(),et=this.x.redSub(this.z),nt=et.redSqr(),tt=d.redSub(nt),bt=d.redMul(nt),gt=tt.redMul(nt.redAdd(this.curve.a24.redMul(tt)));return this.curve.point(bt,gt)};Point$2.prototype.add=function c(){throw new Error("Not supported on Montgomery curve")};Point$2.prototype.diffAdd=function c(a,d){var et=this.x.redAdd(this.z),nt=this.x.redSub(this.z),tt=a.x.redAdd(a.z),bt=a.x.redSub(a.z),gt=bt.redMul(et),wt=tt.redMul(nt),St=d.z.redMul(gt.redAdd(wt).redSqr()),Mt=d.x.redMul(gt.redISub(wt).redSqr());return this.curve.point(St,Mt)};Point$2.prototype.mul=function c(a){for(var d=a.clone(),et=this,nt=this.curve.point(null,null),tt=this,bt=[];d.cmpn(0)!==0;d.iushrn(1))bt.push(d.andln(1));for(var gt=bt.length-1;gt>=0;gt--)bt[gt]===0?(et=et.diffAdd(nt,tt),nt=nt.dbl()):(nt=et.diffAdd(nt,tt),et=et.dbl());return nt};Point$2.prototype.mulAdd=function c(){throw new Error("Not supported on Montgomery curve")};Point$2.prototype.jumlAdd=function c(){throw new Error("Not supported on Montgomery curve")};Point$2.prototype.eq=function c(a){return this.getX().cmp(a.getX())===0};Point$2.prototype.normalize=function c(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Point$2.prototype.getX=function c(){return this.normalize(),this.x.fromRed()};var utils$8=utils$c,BN$6=bnExports$2,inherits=inherits_browserExports,Base=base$1,assert$5=utils$8.assert;function EdwardsCurve(c){this.twisted=(c.a|0)!==1,this.mOneA=this.twisted&&(c.a|0)===-1,this.extended=this.mOneA,Base.call(this,"edwards",c),this.a=new BN$6(c.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new BN$6(c.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new BN$6(c.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),assert$5(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(c.c|0)===1}inherits(EdwardsCurve,Base);var edwards=EdwardsCurve;EdwardsCurve.prototype._mulA=function c(a){return this.mOneA?a.redNeg():this.a.redMul(a)};EdwardsCurve.prototype._mulC=function c(a){return this.oneC?a:this.c.redMul(a)};EdwardsCurve.prototype.jpoint=function c(a,d,et,nt){return this.point(a,d,et,nt)};EdwardsCurve.prototype.pointFromX=function c(a,d){a=new BN$6(a,16),a.red||(a=a.toRed(this.red));var et=a.redSqr(),nt=this.c2.redSub(this.a.redMul(et)),tt=this.one.redSub(this.c2.redMul(this.d).redMul(et)),bt=nt.redMul(tt.redInvm()),gt=bt.redSqrt();if(gt.redSqr().redSub(bt).cmp(this.zero)!==0)throw new Error("invalid point");var wt=gt.fromRed().isOdd();return(d&&!wt||!d&&wt)&&(gt=gt.redNeg()),this.point(a,gt)};EdwardsCurve.prototype.pointFromY=function c(a,d){a=new BN$6(a,16),a.red||(a=a.toRed(this.red));var et=a.redSqr(),nt=et.redSub(this.c2),tt=et.redMul(this.d).redMul(this.c2).redSub(this.a),bt=nt.redMul(tt.redInvm());if(bt.cmp(this.zero)===0){if(d)throw new Error("invalid point");return this.point(this.zero,a)}var gt=bt.redSqrt();if(gt.redSqr().redSub(bt).cmp(this.zero)!==0)throw new Error("invalid point");return gt.fromRed().isOdd()!==d&&(gt=gt.redNeg()),this.point(gt,a)};EdwardsCurve.prototype.validate=function c(a){if(a.isInfinity())return!0;a.normalize();var d=a.x.redSqr(),et=a.y.redSqr(),nt=d.redMul(this.a).redAdd(et),tt=this.c2.redMul(this.one.redAdd(this.d.redMul(d).redMul(et)));return nt.cmp(tt)===0};function Point$1(c,a,d,et,nt){Base.BasePoint.call(this,c,"projective"),a===null&&d===null&&et===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new BN$6(a,16),this.y=new BN$6(d,16),this.z=et?new BN$6(et,16):this.curve.one,this.t=nt&&new BN$6(nt,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}inherits(Point$1,Base.BasePoint);EdwardsCurve.prototype.pointFromJSON=function c(a){return Point$1.fromJSON(this,a)};EdwardsCurve.prototype.point=function c(a,d,et,nt){return new Point$1(this,a,d,et,nt)};Point$1.fromJSON=function c(a,d){return new Point$1(a,d[0],d[1],d[2])};Point$1.prototype.inspect=function c(){return this.isInfinity()?"":""};Point$1.prototype.isInfinity=function c(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Point$1.prototype._extDbl=function c(){var a=this.x.redSqr(),d=this.y.redSqr(),et=this.z.redSqr();et=et.redIAdd(et);var nt=this.curve._mulA(a),tt=this.x.redAdd(this.y).redSqr().redISub(a).redISub(d),bt=nt.redAdd(d),gt=bt.redSub(et),wt=nt.redSub(d),St=tt.redMul(gt),Mt=bt.redMul(wt),_t=tt.redMul(wt),Tt=gt.redMul(bt);return this.curve.point(St,Mt,Tt,_t)};Point$1.prototype._projDbl=function c(){var a=this.x.redAdd(this.y).redSqr(),d=this.x.redSqr(),et=this.y.redSqr(),nt,tt,bt,gt,wt,St;if(this.curve.twisted){gt=this.curve._mulA(d);var Mt=gt.redAdd(et);this.zOne?(nt=a.redSub(d).redSub(et).redMul(Mt.redSub(this.curve.two)),tt=Mt.redMul(gt.redSub(et)),bt=Mt.redSqr().redSub(Mt).redSub(Mt)):(wt=this.z.redSqr(),St=Mt.redSub(wt).redISub(wt),nt=a.redSub(d).redISub(et).redMul(St),tt=Mt.redMul(gt.redSub(et)),bt=Mt.redMul(St))}else gt=d.redAdd(et),wt=this.curve._mulC(this.z).redSqr(),St=gt.redSub(wt).redSub(wt),nt=this.curve._mulC(a.redISub(gt)).redMul(St),tt=this.curve._mulC(gt).redMul(d.redISub(et)),bt=gt.redMul(St);return this.curve.point(nt,tt,bt)};Point$1.prototype.dbl=function c(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Point$1.prototype._extAdd=function c(a){var d=this.y.redSub(this.x).redMul(a.y.redSub(a.x)),et=this.y.redAdd(this.x).redMul(a.y.redAdd(a.x)),nt=this.t.redMul(this.curve.dd).redMul(a.t),tt=this.z.redMul(a.z.redAdd(a.z)),bt=et.redSub(d),gt=tt.redSub(nt),wt=tt.redAdd(nt),St=et.redAdd(d),Mt=bt.redMul(gt),_t=wt.redMul(St),Tt=bt.redMul(St),Bt=gt.redMul(wt);return this.curve.point(Mt,_t,Bt,Tt)};Point$1.prototype._projAdd=function c(a){var d=this.z.redMul(a.z),et=d.redSqr(),nt=this.x.redMul(a.x),tt=this.y.redMul(a.y),bt=this.curve.d.redMul(nt).redMul(tt),gt=et.redSub(bt),wt=et.redAdd(bt),St=this.x.redAdd(this.y).redMul(a.x.redAdd(a.y)).redISub(nt).redISub(tt),Mt=d.redMul(gt).redMul(St),_t,Tt;return this.curve.twisted?(_t=d.redMul(wt).redMul(tt.redSub(this.curve._mulA(nt))),Tt=gt.redMul(wt)):(_t=d.redMul(wt).redMul(tt.redSub(nt)),Tt=this.curve._mulC(gt).redMul(wt)),this.curve.point(Mt,_t,Tt)};Point$1.prototype.add=function c(a){return this.isInfinity()?a:a.isInfinity()?this:this.curve.extended?this._extAdd(a):this._projAdd(a)};Point$1.prototype.mul=function c(a){return this._hasDoubles(a)?this.curve._fixedNafMul(this,a):this.curve._wnafMul(this,a)};Point$1.prototype.mulAdd=function c(a,d,et){return this.curve._wnafMulAdd(1,[this,d],[a,et],2,!1)};Point$1.prototype.jmulAdd=function c(a,d,et){return this.curve._wnafMulAdd(1,[this,d],[a,et],2,!0)};Point$1.prototype.normalize=function c(){if(this.zOne)return this;var a=this.z.redInvm();return this.x=this.x.redMul(a),this.y=this.y.redMul(a),this.t&&(this.t=this.t.redMul(a)),this.z=this.curve.one,this.zOne=!0,this};Point$1.prototype.neg=function c(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Point$1.prototype.getX=function c(){return this.normalize(),this.x.fromRed()};Point$1.prototype.getY=function c(){return this.normalize(),this.y.fromRed()};Point$1.prototype.eq=function c(a){return this===a||this.getX().cmp(a.getX())===0&&this.getY().cmp(a.getY())===0};Point$1.prototype.eqXToP=function c(a){var d=a.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(d)===0)return!0;for(var et=a.clone(),nt=this.curve.redN.redMul(this.z);;){if(et.iadd(this.curve.n),et.cmp(this.curve.p)>=0)return!1;if(d.redIAdd(nt),this.x.cmp(d)===0)return!0}};Point$1.prototype.toP=Point$1.prototype.normalize;Point$1.prototype.mixedAdd=Point$1.prototype.add;(function(c){var a=c;a.base=base$1,a.short=short,a.mont=mont,a.edwards=edwards})(curve);var curves$1={},secp256k1$1,hasRequiredSecp256k1;function requireSecp256k1(){return hasRequiredSecp256k1||(hasRequiredSecp256k1=1,secp256k1$1={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}),secp256k1$1}(function(c){var a=c,d=hash$7,et=curve,nt=utils$c,tt=nt.assert;function bt(St){St.type==="short"?this.curve=new et.short(St):St.type==="edwards"?this.curve=new et.edwards(St):this.curve=new et.mont(St),this.g=this.curve.g,this.n=this.curve.n,this.hash=St.hash,tt(this.g.validate(),"Invalid curve"),tt(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}a.PresetCurve=bt;function gt(St,Mt){Object.defineProperty(a,St,{configurable:!0,enumerable:!0,get:function(){var _t=new bt(Mt);return Object.defineProperty(a,St,{configurable:!0,enumerable:!0,value:_t}),_t}})}gt("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:d.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),gt("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:d.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),gt("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:d.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),gt("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:d.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"]}),gt("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:d.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"]}),gt("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:d.sha256,gRed:!1,g:["9"]}),gt("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:d.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var wt;try{wt=requireSecp256k1()}catch{wt=void 0}gt("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:d.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",wt]})})(curves$1);var BN$5=bnExports$2,utils$7=utils$c,assert$4=utils$7.assert;function KeyPair$2(c,a){this.ec=c,this.priv=null,this.pub=null,a.priv&&this._importPrivate(a.priv,a.privEnc),a.pub&&this._importPublic(a.pub,a.pubEnc)}var key$1=KeyPair$2;KeyPair$2.fromPublic=function c(a,d,et){return d instanceof KeyPair$2?d:new KeyPair$2(a,{pub:d,pubEnc:et})};KeyPair$2.fromPrivate=function c(a,d,et){return d instanceof KeyPair$2?d:new KeyPair$2(a,{priv:d,privEnc:et})};KeyPair$2.prototype.validate=function c(){var a=this.getPublic();return a.isInfinity()?{result:!1,reason:"Invalid public key"}:a.validate()?a.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}};KeyPair$2.prototype.getPublic=function c(a,d){return typeof a=="string"&&(d=a,a=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),d?this.pub.encode(d,a):this.pub};KeyPair$2.prototype.getPrivate=function c(a){return a==="hex"?this.priv.toString(16,2):this.priv};KeyPair$2.prototype._importPrivate=function c(a,d){this.priv=new BN$5(a,d||16),this.priv=this.priv.umod(this.ec.curve.n)};KeyPair$2.prototype._importPublic=function c(a,d){if(a.x||a.y){this.ec.curve.type==="mont"?assert$4(a.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&assert$4(a.x&&a.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(a.x,a.y);return}this.pub=this.ec.curve.decodePoint(a,d)};KeyPair$2.prototype.derive=function c(a){return a.validate()||assert$4(a.validate(),"public point not validated"),a.mul(this.priv).getX()};KeyPair$2.prototype.sign=function c(a,d,et){return this.ec.sign(a,this,d,et)};KeyPair$2.prototype.verify=function c(a,d){return this.ec.verify(a,d,this)};KeyPair$2.prototype.inspect=function c(){return""};var BN$4=bnExports$2,utils$6=utils$c,assert$3=utils$6.assert;function Signature$4(c,a){if(c instanceof Signature$4)return c;this._importDER(c,a)||(assert$3(c.r&&c.s,"Signature without r or s"),this.r=new BN$4(c.r,16),this.s=new BN$4(c.s,16),c.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=c.recoveryParam)}var signature$1=Signature$4;function Position(){this.place=0}function getLength(c,a){var d=c[a.place++];if(!(d&128))return d;var et=d&15;if(et===0||et>4)return!1;for(var nt=0,tt=0,bt=a.place;tt>>=0;return nt<=127?!1:(a.place=bt,nt)}function rmPadding(c){for(var a=0,d=c.length-1;!c[a]&&!(c[a+1]&128)&&a>>3);for(c.push(d|128);--d;)c.push(a>>>(d<<3)&255);c.push(a)}Signature$4.prototype.toDER=function c(a){var d=this.r.toArray(),et=this.s.toArray();for(d[0]&128&&(d=[0].concat(d)),et[0]&128&&(et=[0].concat(et)),d=rmPadding(d),et=rmPadding(et);!et[0]&&!(et[1]&128);)et=et.slice(1);var nt=[2];constructLength(nt,d.length),nt=nt.concat(d),nt.push(2),constructLength(nt,et.length);var tt=nt.concat(et),bt=[48];return constructLength(bt,tt.length),bt=bt.concat(tt),utils$6.encode(bt,a)};var ec,hasRequiredEc;function requireEc(){if(hasRequiredEc)return ec;hasRequiredEc=1;var c=bnExports$2,a=hmacDrbg,d=utils$c,et=curves$1,nt=requireBrorand(),tt=d.assert,bt=key$1,gt=signature$1;function wt(St){if(!(this instanceof wt))return new wt(St);typeof St=="string"&&(tt(Object.prototype.hasOwnProperty.call(et,St),"Unknown curve "+St),St=et[St]),St instanceof et.PresetCurve&&(St={curve:St}),this.curve=St.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=St.curve.g,this.g.precompute(St.curve.n.bitLength()+1),this.hash=St.hash||St.curve.hash}return ec=wt,wt.prototype.keyPair=function(Mt){return new bt(this,Mt)},wt.prototype.keyFromPrivate=function(Mt,_t){return bt.fromPrivate(this,Mt,_t)},wt.prototype.keyFromPublic=function(Mt,_t){return bt.fromPublic(this,Mt,_t)},wt.prototype.genKeyPair=function(Mt){Mt||(Mt={});for(var _t=new a({hash:this.hash,pers:Mt.pers,persEnc:Mt.persEnc||"utf8",entropy:Mt.entropy||nt(this.hash.hmacStrength),entropyEnc:Mt.entropy&&Mt.entropyEnc||"utf8",nonce:this.n.toArray()}),Tt=this.n.byteLength(),Bt=this.n.sub(new c(2));;){var kt=new c(_t.generate(Tt));if(!(kt.cmp(Bt)>0))return kt.iaddn(1),this.keyFromPrivate(kt)}},wt.prototype._truncateToN=function(Mt,_t){var Tt=Mt.byteLength()*8-this.n.bitLength();return Tt>0&&(Mt=Mt.ushrn(Tt)),!_t&&Mt.cmp(this.n)>=0?Mt.sub(this.n):Mt},wt.prototype.sign=function(Mt,_t,Tt,Bt){typeof Tt=="object"&&(Bt=Tt,Tt=null),Bt||(Bt={}),_t=this.keyFromPrivate(_t,Tt),Mt=this._truncateToN(new c(Mt,16));for(var kt=this.n.byteLength(),It=_t.getPrivate().toArray("be",kt),Lt=Mt.toArray("be",kt),Ot=new a({hash:this.hash,entropy:It,nonce:Lt,pers:Bt.pers,persEnc:Bt.persEnc||"utf8"}),Nt=this.n.sub(new c(1)),Ft=0;;Ft++){var zt=Bt.k?Bt.k(Ft):new c(Ot.generate(this.n.byteLength()));if(zt=this._truncateToN(zt,!0),!(zt.cmpn(1)<=0||zt.cmp(Nt)>=0)){var Vt=this.g.mul(zt);if(!Vt.isInfinity()){var Jt=Vt.getX(),ir=Jt.umod(this.n);if(ir.cmpn(0)!==0){var rr=zt.invm(this.n).mul(ir.mul(_t.getPrivate()).iadd(Mt));if(rr=rr.umod(this.n),rr.cmpn(0)!==0){var er=(Vt.getY().isOdd()?1:0)|(Jt.cmp(ir)!==0?2:0);return Bt.canonical&&rr.cmp(this.nh)>0&&(rr=this.n.sub(rr),er^=1),new gt({r:ir,s:rr,recoveryParam:er})}}}}}},wt.prototype.verify=function(Mt,_t,Tt,Bt){Mt=this._truncateToN(new c(Mt,16)),Tt=this.keyFromPublic(Tt,Bt),_t=new gt(_t,"hex");var kt=_t.r,It=_t.s;if(kt.cmpn(1)<0||kt.cmp(this.n)>=0||It.cmpn(1)<0||It.cmp(this.n)>=0)return!1;var Lt=It.invm(this.n),Ot=Lt.mul(Mt).umod(this.n),Nt=Lt.mul(kt).umod(this.n),Ft;return this.curve._maxwellTrick?(Ft=this.g.jmulAdd(Ot,Tt.getPublic(),Nt),Ft.isInfinity()?!1:Ft.eqXToP(kt)):(Ft=this.g.mulAdd(Ot,Tt.getPublic(),Nt),Ft.isInfinity()?!1:Ft.getX().umod(this.n).cmp(kt)===0)},wt.prototype.recoverPubKey=function(St,Mt,_t,Tt){tt((3&_t)===_t,"The recovery param is more than two bits"),Mt=new gt(Mt,Tt);var Bt=this.n,kt=new c(St),It=Mt.r,Lt=Mt.s,Ot=_t&1,Nt=_t>>1;if(It.cmp(this.curve.p.umod(this.curve.n))>=0&&Nt)throw new Error("Unable to find sencond key candinate");Nt?It=this.curve.pointFromX(It.add(this.curve.n),Ot):It=this.curve.pointFromX(It,Ot);var Ft=Mt.r.invm(Bt),zt=Bt.sub(kt).mul(Ft).umod(Bt),Vt=Lt.mul(Ft).umod(Bt);return this.g.mulAdd(zt,It,Vt)},wt.prototype.getKeyRecoveryParam=function(St,Mt,_t,Tt){if(Mt=new gt(Mt,Tt),Mt.recoveryParam!==null)return Mt.recoveryParam;for(var Bt=0;Bt<4;Bt++){var kt;try{kt=this.recoverPubKey(St,Mt,Bt)}catch{continue}if(kt.eq(_t))return Bt}throw new Error("Unable to find valid recovery factor")},ec}var utils$5=utils$c,assert$2=utils$5.assert,parseBytes$2=utils$5.parseBytes,cachedProperty$1=utils$5.cachedProperty;function KeyPair$1(c,a){this.eddsa=c,this._secret=parseBytes$2(a.secret),c.isPoint(a.pub)?this._pub=a.pub:this._pubBytes=parseBytes$2(a.pub)}KeyPair$1.fromPublic=function c(a,d){return d instanceof KeyPair$1?d:new KeyPair$1(a,{pub:d})};KeyPair$1.fromSecret=function c(a,d){return d instanceof KeyPair$1?d:new KeyPair$1(a,{secret:d})};KeyPair$1.prototype.secret=function c(){return this._secret};cachedProperty$1(KeyPair$1,"pubBytes",function c(){return this.eddsa.encodePoint(this.pub())});cachedProperty$1(KeyPair$1,"pub",function c(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});cachedProperty$1(KeyPair$1,"privBytes",function c(){var a=this.eddsa,d=this.hash(),et=a.encodingLength-1,nt=d.slice(0,a.encodingLength);return nt[0]&=248,nt[et]&=127,nt[et]|=64,nt});cachedProperty$1(KeyPair$1,"priv",function c(){return this.eddsa.decodeInt(this.privBytes())});cachedProperty$1(KeyPair$1,"hash",function c(){return this.eddsa.hash().update(this.secret()).digest()});cachedProperty$1(KeyPair$1,"messagePrefix",function c(){return this.hash().slice(this.eddsa.encodingLength)});KeyPair$1.prototype.sign=function c(a){return assert$2(this._secret,"KeyPair can only verify"),this.eddsa.sign(a,this)};KeyPair$1.prototype.verify=function c(a,d){return this.eddsa.verify(a,d,this)};KeyPair$1.prototype.getSecret=function c(a){return assert$2(this._secret,"KeyPair is public only"),utils$5.encode(this.secret(),a)};KeyPair$1.prototype.getPublic=function c(a){return utils$5.encode(this.pubBytes(),a)};var key=KeyPair$1,BN$3=bnExports$2,utils$4=utils$c,assert$1=utils$4.assert,cachedProperty=utils$4.cachedProperty,parseBytes$1=utils$4.parseBytes;function Signature$3(c,a){this.eddsa=c,typeof a!="object"&&(a=parseBytes$1(a)),Array.isArray(a)&&(a={R:a.slice(0,c.encodingLength),S:a.slice(c.encodingLength)}),assert$1(a.R&&a.S,"Signature without R or S"),c.isPoint(a.R)&&(this._R=a.R),a.S instanceof BN$3&&(this._S=a.S),this._Rencoded=Array.isArray(a.R)?a.R:a.Rencoded,this._Sencoded=Array.isArray(a.S)?a.S:a.Sencoded}cachedProperty(Signature$3,"S",function c(){return this.eddsa.decodeInt(this.Sencoded())});cachedProperty(Signature$3,"R",function c(){return this.eddsa.decodePoint(this.Rencoded())});cachedProperty(Signature$3,"Rencoded",function c(){return this.eddsa.encodePoint(this.R())});cachedProperty(Signature$3,"Sencoded",function c(){return this.eddsa.encodeInt(this.S())});Signature$3.prototype.toBytes=function c(){return this.Rencoded().concat(this.Sencoded())};Signature$3.prototype.toHex=function c(){return utils$4.encode(this.toBytes(),"hex").toUpperCase()};var signature=Signature$3,hash$4=hash$7,curves=curves$1,utils$3=utils$c,assert=utils$3.assert,parseBytes=utils$3.parseBytes,KeyPair=key,Signature$2=signature;function EDDSA(c){if(assert(c==="ed25519","only tested with ed25519 so far"),!(this instanceof EDDSA))return new EDDSA(c);c=curves[c].curve,this.curve=c,this.g=c.g,this.g.precompute(c.n.bitLength()+1),this.pointClass=c.point().constructor,this.encodingLength=Math.ceil(c.n.bitLength()/8),this.hash=hash$4.sha512}var eddsa=EDDSA;EDDSA.prototype.sign=function c(a,d){a=parseBytes(a);var et=this.keyFromSecret(d),nt=this.hashInt(et.messagePrefix(),a),tt=this.g.mul(nt),bt=this.encodePoint(tt),gt=this.hashInt(bt,et.pubBytes(),a).mul(et.priv()),wt=nt.add(gt).umod(this.curve.n);return this.makeSignature({R:tt,S:wt,Rencoded:bt})};EDDSA.prototype.verify=function c(a,d,et){a=parseBytes(a),d=this.makeSignature(d);var nt=this.keyFromPublic(et),tt=this.hashInt(d.Rencoded(),nt.pubBytes(),a),bt=this.g.mul(d.S()),gt=d.R().add(nt.pub().mul(tt));return gt.eq(bt)};EDDSA.prototype.hashInt=function c(){for(var a=this.hash(),d=0;d0?dt:mt},tt.min=function(dt,mt){return dt.cmp(mt)<0?dt:mt},tt.prototype._init=function(dt,mt,yt){if(typeof dt=="number")return this._initNumber(dt,mt,yt);if(typeof dt=="object")return this._initArray(dt,mt,yt);mt==="hex"&&(mt=16),et(mt===(mt|0)&&mt>=2&&mt<=36),dt=dt.toString().replace(/\s+/g,"");var vt=0;dt[0]==="-"&&(vt++,this.negative=1),vt=0;vt-=3)At=dt[vt]|dt[vt-1]<<8|dt[vt-2]<<16,this.words[Et]|=At<>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,Et++);else if(yt==="le")for(vt=0,Et=0;vt>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,Et++);return this.strip()};function gt(Ct,dt){var mt=Ct.charCodeAt(dt);return mt>=65&&mt<=70?mt-55:mt>=97&&mt<=102?mt-87:mt-48&15}function wt(Ct,dt,mt){var yt=gt(Ct,mt);return mt-1>=dt&&(yt|=gt(Ct,mt-1)<<4),yt}tt.prototype._parseHex=function(dt,mt,yt){this.length=Math.ceil((dt.length-mt)/6),this.words=new Array(this.length);for(var vt=0;vt=mt;vt-=2)Pt=wt(dt,mt,vt)<=18?(Et-=18,At+=1,this.words[At]|=Pt>>>26):Et+=8;else{var xt=dt.length-mt;for(vt=xt%2===0?mt+1:mt;vt=18?(Et-=18,At+=1,this.words[At]|=Pt>>>26):Et+=8}this.strip()};function St(Ct,dt,mt,yt){for(var vt=0,Et=Math.min(Ct.length,mt),At=dt;At=49?vt+=Pt-49+10:Pt>=17?vt+=Pt-17+10:vt+=Pt}return vt}tt.prototype._parseBase=function(dt,mt,yt){this.words=[0],this.length=1;for(var vt=0,Et=1;Et<=67108863;Et*=mt)vt++;vt--,Et=Et/mt|0;for(var At=dt.length-yt,Pt=At%vt,xt=Math.min(At,At-Pt)+yt,ht=0,$t=yt;$t1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},tt.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},tt.prototype.inspect=function(){return(this.red?""};var Mt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],_t=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Tt=[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];tt.prototype.toString=function(dt,mt){dt=dt||10,mt=mt|0||1;var yt;if(dt===16||dt==="hex"){yt="";for(var vt=0,Et=0,At=0;At>>24-vt&16777215,Et!==0||At!==this.length-1?yt=Mt[6-xt.length]+xt+yt:yt=xt+yt,vt+=2,vt>=26&&(vt-=26,At--)}for(Et!==0&&(yt=Et.toString(16)+yt);yt.length%mt!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}if(dt===(dt|0)&&dt>=2&&dt<=36){var ht=_t[dt],$t=Tt[dt];yt="";var Rt=this.clone();for(Rt.negative=0;!Rt.isZero();){var Dt=Rt.modn($t).toString(dt);Rt=Rt.idivn($t),Rt.isZero()?yt=Dt+yt:yt=Mt[ht-Dt.length]+Dt+yt}for(this.isZero()&&(yt="0"+yt);yt.length%mt!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}et(!1,"Base should be between 2 and 36")},tt.prototype.toNumber=function(){var dt=this.words[0];return this.length===2?dt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?dt+=4503599627370496+this.words[1]*67108864:this.length>2&&et(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-dt:dt},tt.prototype.toJSON=function(){return this.toString(16)},tt.prototype.toBuffer=function(dt,mt){return et(typeof bt<"u"),this.toArrayLike(bt,dt,mt)},tt.prototype.toArray=function(dt,mt){return this.toArrayLike(Array,dt,mt)},tt.prototype.toArrayLike=function(dt,mt,yt){var vt=this.byteLength(),Et=yt||Math.max(1,vt);et(vt<=Et,"byte array longer than desired length"),et(Et>0,"Requested array length <= 0"),this.strip();var At=mt==="le",Pt=new dt(Et),xt,ht,$t=this.clone();if(At){for(ht=0;!$t.isZero();ht++)xt=$t.andln(255),$t.iushrn(8),Pt[ht]=xt;for(;ht=4096&&(yt+=13,mt>>>=13),mt>=64&&(yt+=7,mt>>>=7),mt>=8&&(yt+=4,mt>>>=4),mt>=2&&(yt+=2,mt>>>=2),yt+mt},tt.prototype._zeroBits=function(dt){if(dt===0)return 26;var mt=dt,yt=0;return mt&8191||(yt+=13,mt>>>=13),mt&127||(yt+=7,mt>>>=7),mt&15||(yt+=4,mt>>>=4),mt&3||(yt+=2,mt>>>=2),mt&1||yt++,yt},tt.prototype.bitLength=function(){var dt=this.words[this.length-1],mt=this._countBits(dt);return(this.length-1)*26+mt};function Bt(Ct){for(var dt=new Array(Ct.bitLength()),mt=0;mt>>vt}return dt}tt.prototype.zeroBits=function(){if(this.isZero())return 0;for(var dt=0,mt=0;mtdt.length?this.clone().ior(dt):dt.clone().ior(this)},tt.prototype.uor=function(dt){return this.length>dt.length?this.clone().iuor(dt):dt.clone().iuor(this)},tt.prototype.iuand=function(dt){var mt;this.length>dt.length?mt=dt:mt=this;for(var yt=0;ytdt.length?this.clone().iand(dt):dt.clone().iand(this)},tt.prototype.uand=function(dt){return this.length>dt.length?this.clone().iuand(dt):dt.clone().iuand(this)},tt.prototype.iuxor=function(dt){var mt,yt;this.length>dt.length?(mt=this,yt=dt):(mt=dt,yt=this);for(var vt=0;vtdt.length?this.clone().ixor(dt):dt.clone().ixor(this)},tt.prototype.uxor=function(dt){return this.length>dt.length?this.clone().iuxor(dt):dt.clone().iuxor(this)},tt.prototype.inotn=function(dt){et(typeof dt=="number"&&dt>=0);var mt=Math.ceil(dt/26)|0,yt=dt%26;this._expand(mt),yt>0&&mt--;for(var vt=0;vt0&&(this.words[vt]=~this.words[vt]&67108863>>26-yt),this.strip()},tt.prototype.notn=function(dt){return this.clone().inotn(dt)},tt.prototype.setn=function(dt,mt){et(typeof dt=="number"&&dt>=0);var yt=dt/26|0,vt=dt%26;return this._expand(yt+1),mt?this.words[yt]=this.words[yt]|1<dt.length?(yt=this,vt=dt):(yt=dt,vt=this);for(var Et=0,At=0;At>>26;for(;Et!==0&&At>>26;if(this.length=yt.length,Et!==0)this.words[this.length]=Et,this.length++;else if(yt!==this)for(;Atdt.length?this.clone().iadd(dt):dt.clone().iadd(this)},tt.prototype.isub=function(dt){if(dt.negative!==0){dt.negative=0;var mt=this.iadd(dt);return dt.negative=1,mt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(dt),this.negative=1,this._normSign();var yt=this.cmp(dt);if(yt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var vt,Et;yt>0?(vt=this,Et=dt):(vt=dt,Et=this);for(var At=0,Pt=0;Pt>26,this.words[Pt]=mt&67108863;for(;At!==0&&Pt>26,this.words[Pt]=mt&67108863;if(At===0&&Pt>>26,Rt=xt&67108863,Dt=Math.min(ht,dt.length-1),Ht=Math.max(0,ht-Ct.length+1);Ht<=Dt;Ht++){var tr=ht-Ht|0;vt=Ct.words[tr]|0,Et=dt.words[Ht]|0,At=vt*Et+Rt,$t+=At/67108864|0,Rt=At&67108863}mt.words[ht]=Rt|0,xt=$t|0}return xt!==0?mt.words[ht]=xt|0:mt.length--,mt.strip()}var It=function(dt,mt,yt){var vt=dt.words,Et=mt.words,At=yt.words,Pt=0,xt,ht,$t,Rt=vt[0]|0,Dt=Rt&8191,Ht=Rt>>>13,tr=vt[1]|0,Xt=tr&8191,Ut=tr>>>13,qt=vt[2]|0,Gt=qt&8191,Zt=qt>>>13,Yt=vt[3]|0,Kt=Yt&8191,ar=Yt>>>13,gr=vt[4]|0,cr=gr&8191,ur=gr>>>13,Pr=vt[5]|0,br=Pr&8191,dr=Pr>>>13,Kr=vt[6]|0,xr=Kr&8191,Sr=Kr>>>13,Zr=vt[7]|0,$r=Zr&8191,Mr=Zr>>>13,Xr=vt[8]|0,Qt=Xr&8191,jt=Xr>>>13,Wt=vt[9]|0,nr=Wt&8191,fr=Wt>>>13,Er=Et[0]|0,pr=Er&8191,vr=Er>>>13,Jr=Et[1]|0,wr=Jr&8191,Ar=Jr>>>13,Yr=Et[2]|0,Cr=Yr&8191,Or=Yr>>>13,Qr=Et[3]|0,_r=Qr&8191,Dr=Qr>>>13,r0=Et[4]|0,Tr=r0&8191,Lr=r0>>>13,n0=Et[5]|0,Br=n0&8191,Fr=n0>>>13,i0=Et[6]|0,Rr=i0&8191,jr=i0>>>13,a0=Et[7]|0,kr=a0&8191,Ur=a0>>>13,s0=Et[8]|0,Ir=s0&8191,Hr=s0>>>13,o0=Et[9]|0,Nr=o0&8191,qr=o0>>>13;yt.negative=dt.negative^mt.negative,yt.length=19,xt=Math.imul(Dt,pr),ht=Math.imul(Dt,vr),ht=ht+Math.imul(Ht,pr)|0,$t=Math.imul(Ht,vr);var e0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(e0>>>26)|0,e0&=67108863,xt=Math.imul(Xt,pr),ht=Math.imul(Xt,vr),ht=ht+Math.imul(Ut,pr)|0,$t=Math.imul(Ut,vr),xt=xt+Math.imul(Dt,wr)|0,ht=ht+Math.imul(Dt,Ar)|0,ht=ht+Math.imul(Ht,wr)|0,$t=$t+Math.imul(Ht,Ar)|0;var t0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(t0>>>26)|0,t0&=67108863,xt=Math.imul(Gt,pr),ht=Math.imul(Gt,vr),ht=ht+Math.imul(Zt,pr)|0,$t=Math.imul(Zt,vr),xt=xt+Math.imul(Xt,wr)|0,ht=ht+Math.imul(Xt,Ar)|0,ht=ht+Math.imul(Ut,wr)|0,$t=$t+Math.imul(Ut,Ar)|0,xt=xt+Math.imul(Dt,Cr)|0,ht=ht+Math.imul(Dt,Or)|0,ht=ht+Math.imul(Ht,Cr)|0,$t=$t+Math.imul(Ht,Or)|0;var f0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(f0>>>26)|0,f0&=67108863,xt=Math.imul(Kt,pr),ht=Math.imul(Kt,vr),ht=ht+Math.imul(ar,pr)|0,$t=Math.imul(ar,vr),xt=xt+Math.imul(Gt,wr)|0,ht=ht+Math.imul(Gt,Ar)|0,ht=ht+Math.imul(Zt,wr)|0,$t=$t+Math.imul(Zt,Ar)|0,xt=xt+Math.imul(Xt,Cr)|0,ht=ht+Math.imul(Xt,Or)|0,ht=ht+Math.imul(Ut,Cr)|0,$t=$t+Math.imul(Ut,Or)|0,xt=xt+Math.imul(Dt,_r)|0,ht=ht+Math.imul(Dt,Dr)|0,ht=ht+Math.imul(Ht,_r)|0,$t=$t+Math.imul(Ht,Dr)|0;var c0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(c0>>>26)|0,c0&=67108863,xt=Math.imul(cr,pr),ht=Math.imul(cr,vr),ht=ht+Math.imul(ur,pr)|0,$t=Math.imul(ur,vr),xt=xt+Math.imul(Kt,wr)|0,ht=ht+Math.imul(Kt,Ar)|0,ht=ht+Math.imul(ar,wr)|0,$t=$t+Math.imul(ar,Ar)|0,xt=xt+Math.imul(Gt,Cr)|0,ht=ht+Math.imul(Gt,Or)|0,ht=ht+Math.imul(Zt,Cr)|0,$t=$t+Math.imul(Zt,Or)|0,xt=xt+Math.imul(Xt,_r)|0,ht=ht+Math.imul(Xt,Dr)|0,ht=ht+Math.imul(Ut,_r)|0,$t=$t+Math.imul(Ut,Dr)|0,xt=xt+Math.imul(Dt,Tr)|0,ht=ht+Math.imul(Dt,Lr)|0,ht=ht+Math.imul(Ht,Tr)|0,$t=$t+Math.imul(Ht,Lr)|0;var l0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(l0>>>26)|0,l0&=67108863,xt=Math.imul(br,pr),ht=Math.imul(br,vr),ht=ht+Math.imul(dr,pr)|0,$t=Math.imul(dr,vr),xt=xt+Math.imul(cr,wr)|0,ht=ht+Math.imul(cr,Ar)|0,ht=ht+Math.imul(ur,wr)|0,$t=$t+Math.imul(ur,Ar)|0,xt=xt+Math.imul(Kt,Cr)|0,ht=ht+Math.imul(Kt,Or)|0,ht=ht+Math.imul(ar,Cr)|0,$t=$t+Math.imul(ar,Or)|0,xt=xt+Math.imul(Gt,_r)|0,ht=ht+Math.imul(Gt,Dr)|0,ht=ht+Math.imul(Zt,_r)|0,$t=$t+Math.imul(Zt,Dr)|0,xt=xt+Math.imul(Xt,Tr)|0,ht=ht+Math.imul(Xt,Lr)|0,ht=ht+Math.imul(Ut,Tr)|0,$t=$t+Math.imul(Ut,Lr)|0,xt=xt+Math.imul(Dt,Br)|0,ht=ht+Math.imul(Dt,Fr)|0,ht=ht+Math.imul(Ht,Br)|0,$t=$t+Math.imul(Ht,Fr)|0;var u0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(u0>>>26)|0,u0&=67108863,xt=Math.imul(xr,pr),ht=Math.imul(xr,vr),ht=ht+Math.imul(Sr,pr)|0,$t=Math.imul(Sr,vr),xt=xt+Math.imul(br,wr)|0,ht=ht+Math.imul(br,Ar)|0,ht=ht+Math.imul(dr,wr)|0,$t=$t+Math.imul(dr,Ar)|0,xt=xt+Math.imul(cr,Cr)|0,ht=ht+Math.imul(cr,Or)|0,ht=ht+Math.imul(ur,Cr)|0,$t=$t+Math.imul(ur,Or)|0,xt=xt+Math.imul(Kt,_r)|0,ht=ht+Math.imul(Kt,Dr)|0,ht=ht+Math.imul(ar,_r)|0,$t=$t+Math.imul(ar,Dr)|0,xt=xt+Math.imul(Gt,Tr)|0,ht=ht+Math.imul(Gt,Lr)|0,ht=ht+Math.imul(Zt,Tr)|0,$t=$t+Math.imul(Zt,Lr)|0,xt=xt+Math.imul(Xt,Br)|0,ht=ht+Math.imul(Xt,Fr)|0,ht=ht+Math.imul(Ut,Br)|0,$t=$t+Math.imul(Ut,Fr)|0,xt=xt+Math.imul(Dt,Rr)|0,ht=ht+Math.imul(Dt,jr)|0,ht=ht+Math.imul(Ht,Rr)|0,$t=$t+Math.imul(Ht,jr)|0;var d0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(d0>>>26)|0,d0&=67108863,xt=Math.imul($r,pr),ht=Math.imul($r,vr),ht=ht+Math.imul(Mr,pr)|0,$t=Math.imul(Mr,vr),xt=xt+Math.imul(xr,wr)|0,ht=ht+Math.imul(xr,Ar)|0,ht=ht+Math.imul(Sr,wr)|0,$t=$t+Math.imul(Sr,Ar)|0,xt=xt+Math.imul(br,Cr)|0,ht=ht+Math.imul(br,Or)|0,ht=ht+Math.imul(dr,Cr)|0,$t=$t+Math.imul(dr,Or)|0,xt=xt+Math.imul(cr,_r)|0,ht=ht+Math.imul(cr,Dr)|0,ht=ht+Math.imul(ur,_r)|0,$t=$t+Math.imul(ur,Dr)|0,xt=xt+Math.imul(Kt,Tr)|0,ht=ht+Math.imul(Kt,Lr)|0,ht=ht+Math.imul(ar,Tr)|0,$t=$t+Math.imul(ar,Lr)|0,xt=xt+Math.imul(Gt,Br)|0,ht=ht+Math.imul(Gt,Fr)|0,ht=ht+Math.imul(Zt,Br)|0,$t=$t+Math.imul(Zt,Fr)|0,xt=xt+Math.imul(Xt,Rr)|0,ht=ht+Math.imul(Xt,jr)|0,ht=ht+Math.imul(Ut,Rr)|0,$t=$t+Math.imul(Ut,jr)|0,xt=xt+Math.imul(Dt,kr)|0,ht=ht+Math.imul(Dt,Ur)|0,ht=ht+Math.imul(Ht,kr)|0,$t=$t+Math.imul(Ht,Ur)|0;var h0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(h0>>>26)|0,h0&=67108863,xt=Math.imul(Qt,pr),ht=Math.imul(Qt,vr),ht=ht+Math.imul(jt,pr)|0,$t=Math.imul(jt,vr),xt=xt+Math.imul($r,wr)|0,ht=ht+Math.imul($r,Ar)|0,ht=ht+Math.imul(Mr,wr)|0,$t=$t+Math.imul(Mr,Ar)|0,xt=xt+Math.imul(xr,Cr)|0,ht=ht+Math.imul(xr,Or)|0,ht=ht+Math.imul(Sr,Cr)|0,$t=$t+Math.imul(Sr,Or)|0,xt=xt+Math.imul(br,_r)|0,ht=ht+Math.imul(br,Dr)|0,ht=ht+Math.imul(dr,_r)|0,$t=$t+Math.imul(dr,Dr)|0,xt=xt+Math.imul(cr,Tr)|0,ht=ht+Math.imul(cr,Lr)|0,ht=ht+Math.imul(ur,Tr)|0,$t=$t+Math.imul(ur,Lr)|0,xt=xt+Math.imul(Kt,Br)|0,ht=ht+Math.imul(Kt,Fr)|0,ht=ht+Math.imul(ar,Br)|0,$t=$t+Math.imul(ar,Fr)|0,xt=xt+Math.imul(Gt,Rr)|0,ht=ht+Math.imul(Gt,jr)|0,ht=ht+Math.imul(Zt,Rr)|0,$t=$t+Math.imul(Zt,jr)|0,xt=xt+Math.imul(Xt,kr)|0,ht=ht+Math.imul(Xt,Ur)|0,ht=ht+Math.imul(Ut,kr)|0,$t=$t+Math.imul(Ut,Ur)|0,xt=xt+Math.imul(Dt,Ir)|0,ht=ht+Math.imul(Dt,Hr)|0,ht=ht+Math.imul(Ht,Ir)|0,$t=$t+Math.imul(Ht,Hr)|0;var p0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(p0>>>26)|0,p0&=67108863,xt=Math.imul(nr,pr),ht=Math.imul(nr,vr),ht=ht+Math.imul(fr,pr)|0,$t=Math.imul(fr,vr),xt=xt+Math.imul(Qt,wr)|0,ht=ht+Math.imul(Qt,Ar)|0,ht=ht+Math.imul(jt,wr)|0,$t=$t+Math.imul(jt,Ar)|0,xt=xt+Math.imul($r,Cr)|0,ht=ht+Math.imul($r,Or)|0,ht=ht+Math.imul(Mr,Cr)|0,$t=$t+Math.imul(Mr,Or)|0,xt=xt+Math.imul(xr,_r)|0,ht=ht+Math.imul(xr,Dr)|0,ht=ht+Math.imul(Sr,_r)|0,$t=$t+Math.imul(Sr,Dr)|0,xt=xt+Math.imul(br,Tr)|0,ht=ht+Math.imul(br,Lr)|0,ht=ht+Math.imul(dr,Tr)|0,$t=$t+Math.imul(dr,Lr)|0,xt=xt+Math.imul(cr,Br)|0,ht=ht+Math.imul(cr,Fr)|0,ht=ht+Math.imul(ur,Br)|0,$t=$t+Math.imul(ur,Fr)|0,xt=xt+Math.imul(Kt,Rr)|0,ht=ht+Math.imul(Kt,jr)|0,ht=ht+Math.imul(ar,Rr)|0,$t=$t+Math.imul(ar,jr)|0,xt=xt+Math.imul(Gt,kr)|0,ht=ht+Math.imul(Gt,Ur)|0,ht=ht+Math.imul(Zt,kr)|0,$t=$t+Math.imul(Zt,Ur)|0,xt=xt+Math.imul(Xt,Ir)|0,ht=ht+Math.imul(Xt,Hr)|0,ht=ht+Math.imul(Ut,Ir)|0,$t=$t+Math.imul(Ut,Hr)|0,xt=xt+Math.imul(Dt,Nr)|0,ht=ht+Math.imul(Dt,qr)|0,ht=ht+Math.imul(Ht,Nr)|0,$t=$t+Math.imul(Ht,qr)|0;var b0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(b0>>>26)|0,b0&=67108863,xt=Math.imul(nr,wr),ht=Math.imul(nr,Ar),ht=ht+Math.imul(fr,wr)|0,$t=Math.imul(fr,Ar),xt=xt+Math.imul(Qt,Cr)|0,ht=ht+Math.imul(Qt,Or)|0,ht=ht+Math.imul(jt,Cr)|0,$t=$t+Math.imul(jt,Or)|0,xt=xt+Math.imul($r,_r)|0,ht=ht+Math.imul($r,Dr)|0,ht=ht+Math.imul(Mr,_r)|0,$t=$t+Math.imul(Mr,Dr)|0,xt=xt+Math.imul(xr,Tr)|0,ht=ht+Math.imul(xr,Lr)|0,ht=ht+Math.imul(Sr,Tr)|0,$t=$t+Math.imul(Sr,Lr)|0,xt=xt+Math.imul(br,Br)|0,ht=ht+Math.imul(br,Fr)|0,ht=ht+Math.imul(dr,Br)|0,$t=$t+Math.imul(dr,Fr)|0,xt=xt+Math.imul(cr,Rr)|0,ht=ht+Math.imul(cr,jr)|0,ht=ht+Math.imul(ur,Rr)|0,$t=$t+Math.imul(ur,jr)|0,xt=xt+Math.imul(Kt,kr)|0,ht=ht+Math.imul(Kt,Ur)|0,ht=ht+Math.imul(ar,kr)|0,$t=$t+Math.imul(ar,Ur)|0,xt=xt+Math.imul(Gt,Ir)|0,ht=ht+Math.imul(Gt,Hr)|0,ht=ht+Math.imul(Zt,Ir)|0,$t=$t+Math.imul(Zt,Hr)|0,xt=xt+Math.imul(Xt,Nr)|0,ht=ht+Math.imul(Xt,qr)|0,ht=ht+Math.imul(Ut,Nr)|0,$t=$t+Math.imul(Ut,qr)|0;var m0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(m0>>>26)|0,m0&=67108863,xt=Math.imul(nr,Cr),ht=Math.imul(nr,Or),ht=ht+Math.imul(fr,Cr)|0,$t=Math.imul(fr,Or),xt=xt+Math.imul(Qt,_r)|0,ht=ht+Math.imul(Qt,Dr)|0,ht=ht+Math.imul(jt,_r)|0,$t=$t+Math.imul(jt,Dr)|0,xt=xt+Math.imul($r,Tr)|0,ht=ht+Math.imul($r,Lr)|0,ht=ht+Math.imul(Mr,Tr)|0,$t=$t+Math.imul(Mr,Lr)|0,xt=xt+Math.imul(xr,Br)|0,ht=ht+Math.imul(xr,Fr)|0,ht=ht+Math.imul(Sr,Br)|0,$t=$t+Math.imul(Sr,Fr)|0,xt=xt+Math.imul(br,Rr)|0,ht=ht+Math.imul(br,jr)|0,ht=ht+Math.imul(dr,Rr)|0,$t=$t+Math.imul(dr,jr)|0,xt=xt+Math.imul(cr,kr)|0,ht=ht+Math.imul(cr,Ur)|0,ht=ht+Math.imul(ur,kr)|0,$t=$t+Math.imul(ur,Ur)|0,xt=xt+Math.imul(Kt,Ir)|0,ht=ht+Math.imul(Kt,Hr)|0,ht=ht+Math.imul(ar,Ir)|0,$t=$t+Math.imul(ar,Hr)|0,xt=xt+Math.imul(Gt,Nr)|0,ht=ht+Math.imul(Gt,qr)|0,ht=ht+Math.imul(Zt,Nr)|0,$t=$t+Math.imul(Zt,qr)|0;var g0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(g0>>>26)|0,g0&=67108863,xt=Math.imul(nr,_r),ht=Math.imul(nr,Dr),ht=ht+Math.imul(fr,_r)|0,$t=Math.imul(fr,Dr),xt=xt+Math.imul(Qt,Tr)|0,ht=ht+Math.imul(Qt,Lr)|0,ht=ht+Math.imul(jt,Tr)|0,$t=$t+Math.imul(jt,Lr)|0,xt=xt+Math.imul($r,Br)|0,ht=ht+Math.imul($r,Fr)|0,ht=ht+Math.imul(Mr,Br)|0,$t=$t+Math.imul(Mr,Fr)|0,xt=xt+Math.imul(xr,Rr)|0,ht=ht+Math.imul(xr,jr)|0,ht=ht+Math.imul(Sr,Rr)|0,$t=$t+Math.imul(Sr,jr)|0,xt=xt+Math.imul(br,kr)|0,ht=ht+Math.imul(br,Ur)|0,ht=ht+Math.imul(dr,kr)|0,$t=$t+Math.imul(dr,Ur)|0,xt=xt+Math.imul(cr,Ir)|0,ht=ht+Math.imul(cr,Hr)|0,ht=ht+Math.imul(ur,Ir)|0,$t=$t+Math.imul(ur,Hr)|0,xt=xt+Math.imul(Kt,Nr)|0,ht=ht+Math.imul(Kt,qr)|0,ht=ht+Math.imul(ar,Nr)|0,$t=$t+Math.imul(ar,qr)|0;var y0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(y0>>>26)|0,y0&=67108863,xt=Math.imul(nr,Tr),ht=Math.imul(nr,Lr),ht=ht+Math.imul(fr,Tr)|0,$t=Math.imul(fr,Lr),xt=xt+Math.imul(Qt,Br)|0,ht=ht+Math.imul(Qt,Fr)|0,ht=ht+Math.imul(jt,Br)|0,$t=$t+Math.imul(jt,Fr)|0,xt=xt+Math.imul($r,Rr)|0,ht=ht+Math.imul($r,jr)|0,ht=ht+Math.imul(Mr,Rr)|0,$t=$t+Math.imul(Mr,jr)|0,xt=xt+Math.imul(xr,kr)|0,ht=ht+Math.imul(xr,Ur)|0,ht=ht+Math.imul(Sr,kr)|0,$t=$t+Math.imul(Sr,Ur)|0,xt=xt+Math.imul(br,Ir)|0,ht=ht+Math.imul(br,Hr)|0,ht=ht+Math.imul(dr,Ir)|0,$t=$t+Math.imul(dr,Hr)|0,xt=xt+Math.imul(cr,Nr)|0,ht=ht+Math.imul(cr,qr)|0,ht=ht+Math.imul(ur,Nr)|0,$t=$t+Math.imul(ur,qr)|0;var v0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(v0>>>26)|0,v0&=67108863,xt=Math.imul(nr,Br),ht=Math.imul(nr,Fr),ht=ht+Math.imul(fr,Br)|0,$t=Math.imul(fr,Fr),xt=xt+Math.imul(Qt,Rr)|0,ht=ht+Math.imul(Qt,jr)|0,ht=ht+Math.imul(jt,Rr)|0,$t=$t+Math.imul(jt,jr)|0,xt=xt+Math.imul($r,kr)|0,ht=ht+Math.imul($r,Ur)|0,ht=ht+Math.imul(Mr,kr)|0,$t=$t+Math.imul(Mr,Ur)|0,xt=xt+Math.imul(xr,Ir)|0,ht=ht+Math.imul(xr,Hr)|0,ht=ht+Math.imul(Sr,Ir)|0,$t=$t+Math.imul(Sr,Hr)|0,xt=xt+Math.imul(br,Nr)|0,ht=ht+Math.imul(br,qr)|0,ht=ht+Math.imul(dr,Nr)|0,$t=$t+Math.imul(dr,qr)|0;var w0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(w0>>>26)|0,w0&=67108863,xt=Math.imul(nr,Rr),ht=Math.imul(nr,jr),ht=ht+Math.imul(fr,Rr)|0,$t=Math.imul(fr,jr),xt=xt+Math.imul(Qt,kr)|0,ht=ht+Math.imul(Qt,Ur)|0,ht=ht+Math.imul(jt,kr)|0,$t=$t+Math.imul(jt,Ur)|0,xt=xt+Math.imul($r,Ir)|0,ht=ht+Math.imul($r,Hr)|0,ht=ht+Math.imul(Mr,Ir)|0,$t=$t+Math.imul(Mr,Hr)|0,xt=xt+Math.imul(xr,Nr)|0,ht=ht+Math.imul(xr,qr)|0,ht=ht+Math.imul(Sr,Nr)|0,$t=$t+Math.imul(Sr,qr)|0;var x0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(x0>>>26)|0,x0&=67108863,xt=Math.imul(nr,kr),ht=Math.imul(nr,Ur),ht=ht+Math.imul(fr,kr)|0,$t=Math.imul(fr,Ur),xt=xt+Math.imul(Qt,Ir)|0,ht=ht+Math.imul(Qt,Hr)|0,ht=ht+Math.imul(jt,Ir)|0,$t=$t+Math.imul(jt,Hr)|0,xt=xt+Math.imul($r,Nr)|0,ht=ht+Math.imul($r,qr)|0,ht=ht+Math.imul(Mr,Nr)|0,$t=$t+Math.imul(Mr,qr)|0;var E0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(E0>>>26)|0,E0&=67108863,xt=Math.imul(nr,Ir),ht=Math.imul(nr,Hr),ht=ht+Math.imul(fr,Ir)|0,$t=Math.imul(fr,Hr),xt=xt+Math.imul(Qt,Nr)|0,ht=ht+Math.imul(Qt,qr)|0,ht=ht+Math.imul(jt,Nr)|0,$t=$t+Math.imul(jt,qr)|0;var $0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+($0>>>26)|0,$0&=67108863,xt=Math.imul(nr,Nr),ht=Math.imul(nr,qr),ht=ht+Math.imul(fr,Nr)|0,$t=Math.imul(fr,qr);var M0=(Pt+xt|0)+((ht&8191)<<13)|0;return Pt=($t+(ht>>>13)|0)+(M0>>>26)|0,M0&=67108863,At[0]=e0,At[1]=t0,At[2]=f0,At[3]=c0,At[4]=l0,At[5]=u0,At[6]=d0,At[7]=h0,At[8]=p0,At[9]=b0,At[10]=m0,At[11]=g0,At[12]=y0,At[13]=v0,At[14]=w0,At[15]=x0,At[16]=E0,At[17]=$0,At[18]=M0,Pt!==0&&(At[19]=Pt,yt.length++),yt};Math.imul||(It=kt);function Lt(Ct,dt,mt){mt.negative=dt.negative^Ct.negative,mt.length=Ct.length+dt.length;for(var yt=0,vt=0,Et=0;Et>>26)|0,vt+=At>>>26,At&=67108863}mt.words[Et]=Pt,yt=At,At=vt}return yt!==0?mt.words[Et]=yt:mt.length--,mt.strip()}function Ot(Ct,dt,mt){var yt=new Nt;return yt.mulp(Ct,dt,mt)}tt.prototype.mulTo=function(dt,mt){var yt,vt=this.length+dt.length;return this.length===10&&dt.length===10?yt=It(this,dt,mt):vt<63?yt=kt(this,dt,mt):vt<1024?yt=Lt(this,dt,mt):yt=Ot(this,dt,mt),yt};function Nt(Ct,dt){this.x=Ct,this.y=dt}Nt.prototype.makeRBT=function(dt){for(var mt=new Array(dt),yt=tt.prototype._countBits(dt)-1,vt=0;vt>=1;return vt},Nt.prototype.permute=function(dt,mt,yt,vt,Et,At){for(var Pt=0;Pt>>1)Et++;return 1<>>13,yt[2*At+1]=Et&8191,Et=Et>>>13;for(At=2*mt;At>=26,mt+=vt/67108864|0,mt+=Et>>>26,this.words[yt]=Et&67108863}return mt!==0&&(this.words[yt]=mt,this.length++),this},tt.prototype.muln=function(dt){return this.clone().imuln(dt)},tt.prototype.sqr=function(){return this.mul(this)},tt.prototype.isqr=function(){return this.imul(this.clone())},tt.prototype.pow=function(dt){var mt=Bt(dt);if(mt.length===0)return new tt(1);for(var yt=this,vt=0;vt=0);var mt=dt%26,yt=(dt-mt)/26,vt=67108863>>>26-mt<<26-mt,Et;if(mt!==0){var At=0;for(Et=0;Et>>26-mt}At&&(this.words[Et]=At,this.length++)}if(yt!==0){for(Et=this.length-1;Et>=0;Et--)this.words[Et+yt]=this.words[Et];for(Et=0;Et=0);var vt;mt?vt=(mt-mt%26)/26:vt=0;var Et=dt%26,At=Math.min((dt-Et)/26,this.length),Pt=67108863^67108863>>>Et<At)for(this.length-=At,ht=0;ht=0&&($t!==0||ht>=vt);ht--){var Rt=this.words[ht]|0;this.words[ht]=$t<<26-Et|Rt>>>Et,$t=Rt&Pt}return xt&&$t!==0&&(xt.words[xt.length++]=$t),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},tt.prototype.ishrn=function(dt,mt,yt){return et(this.negative===0),this.iushrn(dt,mt,yt)},tt.prototype.shln=function(dt){return this.clone().ishln(dt)},tt.prototype.ushln=function(dt){return this.clone().iushln(dt)},tt.prototype.shrn=function(dt){return this.clone().ishrn(dt)},tt.prototype.ushrn=function(dt){return this.clone().iushrn(dt)},tt.prototype.testn=function(dt){et(typeof dt=="number"&&dt>=0);var mt=dt%26,yt=(dt-mt)/26,vt=1<=0);var mt=dt%26,yt=(dt-mt)/26;if(et(this.negative===0,"imaskn works only with positive numbers"),this.length<=yt)return this;if(mt!==0&&yt++,this.length=Math.min(yt,this.length),mt!==0){var vt=67108863^67108863>>>mt<=67108864;mt++)this.words[mt]-=67108864,mt===this.length-1?this.words[mt+1]=1:this.words[mt+1]++;return this.length=Math.max(this.length,mt+1),this},tt.prototype.isubn=function(dt){if(et(typeof dt=="number"),et(dt<67108864),dt<0)return this.iaddn(-dt);if(this.negative!==0)return this.negative=0,this.iaddn(dt),this.negative=1,this;if(this.words[0]-=dt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var mt=0;mt>26)-(xt/67108864|0),this.words[Et+yt]=At&67108863}for(;Et>26,this.words[Et+yt]=At&67108863;if(Pt===0)return this.strip();for(et(Pt===-1),Pt=0,Et=0;Et>26,this.words[Et]=At&67108863;return this.negative=1,this.strip()},tt.prototype._wordDiv=function(dt,mt){var yt=this.length-dt.length,vt=this.clone(),Et=dt,At=Et.words[Et.length-1]|0,Pt=this._countBits(At);yt=26-Pt,yt!==0&&(Et=Et.ushln(yt),vt.iushln(yt),At=Et.words[Et.length-1]|0);var xt=vt.length-Et.length,ht;if(mt!=="mod"){ht=new tt(null),ht.length=xt+1,ht.words=new Array(ht.length);for(var $t=0;$t=0;Dt--){var Ht=(vt.words[Et.length+Dt]|0)*67108864+(vt.words[Et.length+Dt-1]|0);for(Ht=Math.min(Ht/At|0,67108863),vt._ishlnsubmul(Et,Ht,Dt);vt.negative!==0;)Ht--,vt.negative=0,vt._ishlnsubmul(Et,1,Dt),vt.isZero()||(vt.negative^=1);ht&&(ht.words[Dt]=Ht)}return ht&&ht.strip(),vt.strip(),mt!=="div"&&yt!==0&&vt.iushrn(yt),{div:ht||null,mod:vt}},tt.prototype.divmod=function(dt,mt,yt){if(et(!dt.isZero()),this.isZero())return{div:new tt(0),mod:new tt(0)};var vt,Et,At;return this.negative!==0&&dt.negative===0?(At=this.neg().divmod(dt,mt),mt!=="mod"&&(vt=At.div.neg()),mt!=="div"&&(Et=At.mod.neg(),yt&&Et.negative!==0&&Et.iadd(dt)),{div:vt,mod:Et}):this.negative===0&&dt.negative!==0?(At=this.divmod(dt.neg(),mt),mt!=="mod"&&(vt=At.div.neg()),{div:vt,mod:At.mod}):this.negative&dt.negative?(At=this.neg().divmod(dt.neg(),mt),mt!=="div"&&(Et=At.mod.neg(),yt&&Et.negative!==0&&Et.isub(dt)),{div:At.div,mod:Et}):dt.length>this.length||this.cmp(dt)<0?{div:new tt(0),mod:this}:dt.length===1?mt==="div"?{div:this.divn(dt.words[0]),mod:null}:mt==="mod"?{div:null,mod:new tt(this.modn(dt.words[0]))}:{div:this.divn(dt.words[0]),mod:new tt(this.modn(dt.words[0]))}:this._wordDiv(dt,mt)},tt.prototype.div=function(dt){return this.divmod(dt,"div",!1).div},tt.prototype.mod=function(dt){return this.divmod(dt,"mod",!1).mod},tt.prototype.umod=function(dt){return this.divmod(dt,"mod",!0).mod},tt.prototype.divRound=function(dt){var mt=this.divmod(dt);if(mt.mod.isZero())return mt.div;var yt=mt.div.negative!==0?mt.mod.isub(dt):mt.mod,vt=dt.ushrn(1),Et=dt.andln(1),At=yt.cmp(vt);return At<0||Et===1&&At===0?mt.div:mt.div.negative!==0?mt.div.isubn(1):mt.div.iaddn(1)},tt.prototype.modn=function(dt){et(dt<=67108863);for(var mt=(1<<26)%dt,yt=0,vt=this.length-1;vt>=0;vt--)yt=(mt*yt+(this.words[vt]|0))%dt;return yt},tt.prototype.idivn=function(dt){et(dt<=67108863);for(var mt=0,yt=this.length-1;yt>=0;yt--){var vt=(this.words[yt]|0)+mt*67108864;this.words[yt]=vt/dt|0,mt=vt%dt}return this.strip()},tt.prototype.divn=function(dt){return this.clone().idivn(dt)},tt.prototype.egcd=function(dt){et(dt.negative===0),et(!dt.isZero());var mt=this,yt=dt.clone();mt.negative!==0?mt=mt.umod(dt):mt=mt.clone();for(var vt=new tt(1),Et=new tt(0),At=new tt(0),Pt=new tt(1),xt=0;mt.isEven()&&yt.isEven();)mt.iushrn(1),yt.iushrn(1),++xt;for(var ht=yt.clone(),$t=mt.clone();!mt.isZero();){for(var Rt=0,Dt=1;!(mt.words[0]&Dt)&&Rt<26;++Rt,Dt<<=1);if(Rt>0)for(mt.iushrn(Rt);Rt-- >0;)(vt.isOdd()||Et.isOdd())&&(vt.iadd(ht),Et.isub($t)),vt.iushrn(1),Et.iushrn(1);for(var Ht=0,tr=1;!(yt.words[0]&tr)&&Ht<26;++Ht,tr<<=1);if(Ht>0)for(yt.iushrn(Ht);Ht-- >0;)(At.isOdd()||Pt.isOdd())&&(At.iadd(ht),Pt.isub($t)),At.iushrn(1),Pt.iushrn(1);mt.cmp(yt)>=0?(mt.isub(yt),vt.isub(At),Et.isub(Pt)):(yt.isub(mt),At.isub(vt),Pt.isub(Et))}return{a:At,b:Pt,gcd:yt.iushln(xt)}},tt.prototype._invmp=function(dt){et(dt.negative===0),et(!dt.isZero());var mt=this,yt=dt.clone();mt.negative!==0?mt=mt.umod(dt):mt=mt.clone();for(var vt=new tt(1),Et=new tt(0),At=yt.clone();mt.cmpn(1)>0&&yt.cmpn(1)>0;){for(var Pt=0,xt=1;!(mt.words[0]&xt)&&Pt<26;++Pt,xt<<=1);if(Pt>0)for(mt.iushrn(Pt);Pt-- >0;)vt.isOdd()&&vt.iadd(At),vt.iushrn(1);for(var ht=0,$t=1;!(yt.words[0]&$t)&&ht<26;++ht,$t<<=1);if(ht>0)for(yt.iushrn(ht);ht-- >0;)Et.isOdd()&&Et.iadd(At),Et.iushrn(1);mt.cmp(yt)>=0?(mt.isub(yt),vt.isub(Et)):(yt.isub(mt),Et.isub(vt))}var Rt;return mt.cmpn(1)===0?Rt=vt:Rt=Et,Rt.cmpn(0)<0&&Rt.iadd(dt),Rt},tt.prototype.gcd=function(dt){if(this.isZero())return dt.abs();if(dt.isZero())return this.abs();var mt=this.clone(),yt=dt.clone();mt.negative=0,yt.negative=0;for(var vt=0;mt.isEven()&&yt.isEven();vt++)mt.iushrn(1),yt.iushrn(1);do{for(;mt.isEven();)mt.iushrn(1);for(;yt.isEven();)yt.iushrn(1);var Et=mt.cmp(yt);if(Et<0){var At=mt;mt=yt,yt=At}else if(Et===0||yt.cmpn(1)===0)break;mt.isub(yt)}while(!0);return yt.iushln(vt)},tt.prototype.invm=function(dt){return this.egcd(dt).a.umod(dt)},tt.prototype.isEven=function(){return(this.words[0]&1)===0},tt.prototype.isOdd=function(){return(this.words[0]&1)===1},tt.prototype.andln=function(dt){return this.words[0]&dt},tt.prototype.bincn=function(dt){et(typeof dt=="number");var mt=dt%26,yt=(dt-mt)/26,vt=1<>>26,Pt&=67108863,this.words[At]=Pt}return Et!==0&&(this.words[At]=Et,this.length++),this},tt.prototype.isZero=function(){return this.length===1&&this.words[0]===0},tt.prototype.cmpn=function(dt){var mt=dt<0;if(this.negative!==0&&!mt)return-1;if(this.negative===0&&mt)return 1;this.strip();var yt;if(this.length>1)yt=1;else{mt&&(dt=-dt),et(dt<=67108863,"Number is too big");var vt=this.words[0]|0;yt=vt===dt?0:vtdt.length)return 1;if(this.length=0;yt--){var vt=this.words[yt]|0,Et=dt.words[yt]|0;if(vt!==Et){vtEt&&(mt=1);break}}return mt},tt.prototype.gtn=function(dt){return this.cmpn(dt)===1},tt.prototype.gt=function(dt){return this.cmp(dt)===1},tt.prototype.gten=function(dt){return this.cmpn(dt)>=0},tt.prototype.gte=function(dt){return this.cmp(dt)>=0},tt.prototype.ltn=function(dt){return this.cmpn(dt)===-1},tt.prototype.lt=function(dt){return this.cmp(dt)===-1},tt.prototype.lten=function(dt){return this.cmpn(dt)<=0},tt.prototype.lte=function(dt){return this.cmp(dt)<=0},tt.prototype.eqn=function(dt){return this.cmpn(dt)===0},tt.prototype.eq=function(dt){return this.cmp(dt)===0},tt.red=function(dt){return new er(dt)},tt.prototype.toRed=function(dt){return et(!this.red,"Already a number in reduction context"),et(this.negative===0,"red works only with positives"),dt.convertTo(this)._forceRed(dt)},tt.prototype.fromRed=function(){return et(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},tt.prototype._forceRed=function(dt){return this.red=dt,this},tt.prototype.forceRed=function(dt){return et(!this.red,"Already a number in reduction context"),this._forceRed(dt)},tt.prototype.redAdd=function(dt){return et(this.red,"redAdd works only with red numbers"),this.red.add(this,dt)},tt.prototype.redIAdd=function(dt){return et(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,dt)},tt.prototype.redSub=function(dt){return et(this.red,"redSub works only with red numbers"),this.red.sub(this,dt)},tt.prototype.redISub=function(dt){return et(this.red,"redISub works only with red numbers"),this.red.isub(this,dt)},tt.prototype.redShl=function(dt){return et(this.red,"redShl works only with red numbers"),this.red.shl(this,dt)},tt.prototype.redMul=function(dt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,dt),this.red.mul(this,dt)},tt.prototype.redIMul=function(dt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,dt),this.red.imul(this,dt)},tt.prototype.redSqr=function(){return et(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},tt.prototype.redISqr=function(){return et(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},tt.prototype.redSqrt=function(){return et(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},tt.prototype.redInvm=function(){return et(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},tt.prototype.redNeg=function(){return et(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},tt.prototype.redPow=function(dt){return et(this.red&&!dt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,dt)};var Ft={k256:null,p224:null,p192:null,p25519:null};function zt(Ct,dt){this.name=Ct,this.p=new tt(dt,16),this.n=this.p.bitLength(),this.k=new tt(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}zt.prototype._tmp=function(){var dt=new tt(null);return dt.words=new Array(Math.ceil(this.n/13)),dt},zt.prototype.ireduce=function(dt){var mt=dt,yt;do this.split(mt,this.tmp),mt=this.imulK(mt),mt=mt.iadd(this.tmp),yt=mt.bitLength();while(yt>this.n);var vt=yt0?mt.isub(this.p):mt.strip!==void 0?mt.strip():mt._strip(),mt},zt.prototype.split=function(dt,mt){dt.iushrn(this.n,0,mt)},zt.prototype.imulK=function(dt){return dt.imul(this.k)};function Vt(){zt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}nt(Vt,zt),Vt.prototype.split=function(dt,mt){for(var yt=4194303,vt=Math.min(dt.length,9),Et=0;Et>>22,At=Pt}At>>>=22,dt.words[Et-10]=At,At===0&&dt.length>10?dt.length-=10:dt.length-=9},Vt.prototype.imulK=function(dt){dt.words[dt.length]=0,dt.words[dt.length+1]=0,dt.length+=2;for(var mt=0,yt=0;yt>>=26,dt.words[yt]=Et,mt=vt}return mt!==0&&(dt.words[dt.length++]=mt),dt},tt._prime=function(dt){if(Ft[dt])return Ft[dt];var mt;if(dt==="k256")mt=new Vt;else if(dt==="p224")mt=new Jt;else if(dt==="p192")mt=new ir;else if(dt==="p25519")mt=new rr;else throw new Error("Unknown prime "+dt);return Ft[dt]=mt,mt};function er(Ct){if(typeof Ct=="string"){var dt=tt._prime(Ct);this.m=dt.p,this.prime=dt}else et(Ct.gtn(1),"modulus must be greater than 1"),this.m=Ct,this.prime=null}er.prototype._verify1=function(dt){et(dt.negative===0,"red works only with positives"),et(dt.red,"red works only with red numbers")},er.prototype._verify2=function(dt,mt){et((dt.negative|mt.negative)===0,"red works only with positives"),et(dt.red&&dt.red===mt.red,"red works only with red numbers")},er.prototype.imod=function(dt){return this.prime?this.prime.ireduce(dt)._forceRed(this):dt.umod(this.m)._forceRed(this)},er.prototype.neg=function(dt){return dt.isZero()?dt.clone():this.m.sub(dt)._forceRed(this)},er.prototype.add=function(dt,mt){this._verify2(dt,mt);var yt=dt.add(mt);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt._forceRed(this)},er.prototype.iadd=function(dt,mt){this._verify2(dt,mt);var yt=dt.iadd(mt);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt},er.prototype.sub=function(dt,mt){this._verify2(dt,mt);var yt=dt.sub(mt);return yt.cmpn(0)<0&&yt.iadd(this.m),yt._forceRed(this)},er.prototype.isub=function(dt,mt){this._verify2(dt,mt);var yt=dt.isub(mt);return yt.cmpn(0)<0&&yt.iadd(this.m),yt},er.prototype.shl=function(dt,mt){return this._verify1(dt),this.imod(dt.ushln(mt))},er.prototype.imul=function(dt,mt){return this._verify2(dt,mt),this.imod(dt.imul(mt))},er.prototype.mul=function(dt,mt){return this._verify2(dt,mt),this.imod(dt.mul(mt))},er.prototype.isqr=function(dt){return this.imul(dt,dt.clone())},er.prototype.sqr=function(dt){return this.mul(dt,dt)},er.prototype.sqrt=function(dt){if(dt.isZero())return dt.clone();var mt=this.m.andln(3);if(et(mt%2===1),mt===3){var yt=this.m.add(new tt(1)).iushrn(2);return this.pow(dt,yt)}for(var vt=this.m.subn(1),Et=0;!vt.isZero()&&vt.andln(1)===0;)Et++,vt.iushrn(1);et(!vt.isZero());var At=new tt(1).toRed(this),Pt=At.redNeg(),xt=this.m.subn(1).iushrn(1),ht=this.m.bitLength();for(ht=new tt(2*ht*ht).toRed(this);this.pow(ht,xt).cmp(Pt)!==0;)ht.redIAdd(Pt);for(var $t=this.pow(ht,vt),Rt=this.pow(dt,vt.addn(1).iushrn(1)),Dt=this.pow(dt,vt),Ht=Et;Dt.cmp(At)!==0;){for(var tr=Dt,Xt=0;tr.cmp(At)!==0;Xt++)tr=tr.redSqr();et(Xt=0;Et--){for(var $t=mt.words[Et],Rt=ht-1;Rt>=0;Rt--){var Dt=$t>>Rt&1;if(At!==vt[0]&&(At=this.sqr(At)),Dt===0&&Pt===0){xt=0;continue}Pt<<=1,Pt|=Dt,xt++,!(xt!==yt&&(Et!==0||Rt!==0))&&(At=this.mul(At,vt[Pt]),xt=0,Pt=0)}ht=26}return At},er.prototype.convertTo=function(dt){var mt=dt.umod(this.m);return mt===dt?mt.clone():mt},er.prototype.convertFrom=function(dt){var mt=dt.clone();return mt.red=null,mt},tt.mont=function(dt){return new lr(dt)};function lr(Ct){er.call(this,Ct),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new tt(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)}nt(lr,er),lr.prototype.convertTo=function(dt){return this.imod(dt.ushln(this.shift))},lr.prototype.convertFrom=function(dt){var mt=this.imod(dt.mul(this.rinv));return mt.red=null,mt},lr.prototype.imul=function(dt,mt){if(dt.isZero()||mt.isZero())return dt.words[0]=0,dt.length=1,dt;var yt=dt.imul(mt),vt=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Et=yt.isub(vt).iushrn(this.shift),At=Et;return Et.cmp(this.m)>=0?At=Et.isub(this.m):Et.cmpn(0)<0&&(At=Et.iadd(this.m)),At._forceRed(this)},lr.prototype.mul=function(dt,mt){if(dt.isZero()||mt.isZero())return new tt(0)._forceRed(this);var yt=dt.mul(mt),vt=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Et=yt.isub(vt).iushrn(this.shift),At=Et;return Et.cmp(this.m)>=0?At=Et.isub(this.m):Et.cmpn(0)<0&&(At=Et.iadd(this.m)),At._forceRed(this)},lr.prototype.invm=function(dt){var mt=this.imod(dt._invmp(this.m).mul(this.r2));return mt._forceRed(this)}})(c,commonjsGlobal)})(bn$1);var bnExports$1=bn$1.exports,browser$2,hasRequiredBrowser;function requireBrowser(){if(hasRequiredBrowser)return browser$2;hasRequiredBrowser=1;var c=requireElliptic(),a=bnExports$1;browser$2=function(bt){return new et(bt)};var d={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};d.p224=d.secp224r1,d.p256=d.secp256r1=d.prime256v1,d.p192=d.secp192r1=d.prime192v1,d.p384=d.secp384r1,d.p521=d.secp521r1;function et(tt){this.curveType=d[tt],this.curveType||(this.curveType={name:tt}),this.curve=new c.ec(this.curveType.name),this.keys=void 0}et.prototype.generateKeys=function(tt,bt){return this.keys=this.curve.genKeyPair(),this.getPublicKey(tt,bt)},et.prototype.computeSecret=function(tt,bt,gt){bt=bt||"utf8",dist$2.Buffer.isBuffer(tt)||(tt=new dist$2.Buffer(tt,bt));var wt=this.curve.keyFromPublic(tt).getPublic(),St=wt.mul(this.keys.getPrivate()).getX();return nt(St,gt,this.curveType.byteLength)},et.prototype.getPublicKey=function(tt,bt){var gt=this.keys.getPublic(bt==="compressed",!0);return bt==="hybrid"&&(gt[gt.length-1]%2?gt[0]=7:gt[0]=6),nt(gt,tt)},et.prototype.getPrivateKey=function(tt){return nt(this.keys.getPrivate(),tt)},et.prototype.setPublicKey=function(tt,bt){return bt=bt||"utf8",dist$2.Buffer.isBuffer(tt)||(tt=new dist$2.Buffer(tt,bt)),this.keys._importPublic(tt),this},et.prototype.setPrivateKey=function(tt,bt){bt=bt||"utf8",dist$2.Buffer.isBuffer(tt)||(tt=new dist$2.Buffer(tt,bt));var gt=new a(tt);return gt=gt.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(gt),this};function nt(tt,bt,gt){Array.isArray(tt)||(tt=tt.toArray());var wt=new dist$2.Buffer(tt);if(gt&&wt.length0?dt:mt},tt.min=function(dt,mt){return dt.cmp(mt)<0?dt:mt},tt.prototype._init=function(dt,mt,yt){if(typeof dt=="number")return this._initNumber(dt,mt,yt);if(typeof dt=="object")return this._initArray(dt,mt,yt);mt==="hex"&&(mt=16),et(mt===(mt|0)&&mt>=2&&mt<=36),dt=dt.toString().replace(/\s+/g,"");var vt=0;dt[0]==="-"&&(vt++,this.negative=1),vt=0;vt-=3)At=dt[vt]|dt[vt-1]<<8|dt[vt-2]<<16,this.words[Et]|=At<>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,Et++);else if(yt==="le")for(vt=0,Et=0;vt>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,Et++);return this.strip()};function gt(Ct,dt){var mt=Ct.charCodeAt(dt);return mt>=65&&mt<=70?mt-55:mt>=97&&mt<=102?mt-87:mt-48&15}function wt(Ct,dt,mt){var yt=gt(Ct,mt);return mt-1>=dt&&(yt|=gt(Ct,mt-1)<<4),yt}tt.prototype._parseHex=function(dt,mt,yt){this.length=Math.ceil((dt.length-mt)/6),this.words=new Array(this.length);for(var vt=0;vt=mt;vt-=2)Pt=wt(dt,mt,vt)<=18?(Et-=18,At+=1,this.words[At]|=Pt>>>26):Et+=8;else{var xt=dt.length-mt;for(vt=xt%2===0?mt+1:mt;vt=18?(Et-=18,At+=1,this.words[At]|=Pt>>>26):Et+=8}this.strip()};function St(Ct,dt,mt,yt){for(var vt=0,Et=Math.min(Ct.length,mt),At=dt;At=49?vt+=Pt-49+10:Pt>=17?vt+=Pt-17+10:vt+=Pt}return vt}tt.prototype._parseBase=function(dt,mt,yt){this.words=[0],this.length=1;for(var vt=0,Et=1;Et<=67108863;Et*=mt)vt++;vt--,Et=Et/mt|0;for(var At=dt.length-yt,Pt=At%vt,xt=Math.min(At,At-Pt)+yt,ht=0,$t=yt;$t1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},tt.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},tt.prototype.inspect=function(){return(this.red?""};var Mt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],_t=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Tt=[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];tt.prototype.toString=function(dt,mt){dt=dt||10,mt=mt|0||1;var yt;if(dt===16||dt==="hex"){yt="";for(var vt=0,Et=0,At=0;At>>24-vt&16777215,Et!==0||At!==this.length-1?yt=Mt[6-xt.length]+xt+yt:yt=xt+yt,vt+=2,vt>=26&&(vt-=26,At--)}for(Et!==0&&(yt=Et.toString(16)+yt);yt.length%mt!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}if(dt===(dt|0)&&dt>=2&&dt<=36){var ht=_t[dt],$t=Tt[dt];yt="";var Rt=this.clone();for(Rt.negative=0;!Rt.isZero();){var Dt=Rt.modn($t).toString(dt);Rt=Rt.idivn($t),Rt.isZero()?yt=Dt+yt:yt=Mt[ht-Dt.length]+Dt+yt}for(this.isZero()&&(yt="0"+yt);yt.length%mt!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}et(!1,"Base should be between 2 and 36")},tt.prototype.toNumber=function(){var dt=this.words[0];return this.length===2?dt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?dt+=4503599627370496+this.words[1]*67108864:this.length>2&&et(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-dt:dt},tt.prototype.toJSON=function(){return this.toString(16)},tt.prototype.toBuffer=function(dt,mt){return et(typeof bt<"u"),this.toArrayLike(bt,dt,mt)},tt.prototype.toArray=function(dt,mt){return this.toArrayLike(Array,dt,mt)},tt.prototype.toArrayLike=function(dt,mt,yt){var vt=this.byteLength(),Et=yt||Math.max(1,vt);et(vt<=Et,"byte array longer than desired length"),et(Et>0,"Requested array length <= 0"),this.strip();var At=mt==="le",Pt=new dt(Et),xt,ht,$t=this.clone();if(At){for(ht=0;!$t.isZero();ht++)xt=$t.andln(255),$t.iushrn(8),Pt[ht]=xt;for(;ht=4096&&(yt+=13,mt>>>=13),mt>=64&&(yt+=7,mt>>>=7),mt>=8&&(yt+=4,mt>>>=4),mt>=2&&(yt+=2,mt>>>=2),yt+mt},tt.prototype._zeroBits=function(dt){if(dt===0)return 26;var mt=dt,yt=0;return mt&8191||(yt+=13,mt>>>=13),mt&127||(yt+=7,mt>>>=7),mt&15||(yt+=4,mt>>>=4),mt&3||(yt+=2,mt>>>=2),mt&1||yt++,yt},tt.prototype.bitLength=function(){var dt=this.words[this.length-1],mt=this._countBits(dt);return(this.length-1)*26+mt};function Bt(Ct){for(var dt=new Array(Ct.bitLength()),mt=0;mt>>vt}return dt}tt.prototype.zeroBits=function(){if(this.isZero())return 0;for(var dt=0,mt=0;mtdt.length?this.clone().ior(dt):dt.clone().ior(this)},tt.prototype.uor=function(dt){return this.length>dt.length?this.clone().iuor(dt):dt.clone().iuor(this)},tt.prototype.iuand=function(dt){var mt;this.length>dt.length?mt=dt:mt=this;for(var yt=0;ytdt.length?this.clone().iand(dt):dt.clone().iand(this)},tt.prototype.uand=function(dt){return this.length>dt.length?this.clone().iuand(dt):dt.clone().iuand(this)},tt.prototype.iuxor=function(dt){var mt,yt;this.length>dt.length?(mt=this,yt=dt):(mt=dt,yt=this);for(var vt=0;vtdt.length?this.clone().ixor(dt):dt.clone().ixor(this)},tt.prototype.uxor=function(dt){return this.length>dt.length?this.clone().iuxor(dt):dt.clone().iuxor(this)},tt.prototype.inotn=function(dt){et(typeof dt=="number"&&dt>=0);var mt=Math.ceil(dt/26)|0,yt=dt%26;this._expand(mt),yt>0&&mt--;for(var vt=0;vt0&&(this.words[vt]=~this.words[vt]&67108863>>26-yt),this.strip()},tt.prototype.notn=function(dt){return this.clone().inotn(dt)},tt.prototype.setn=function(dt,mt){et(typeof dt=="number"&&dt>=0);var yt=dt/26|0,vt=dt%26;return this._expand(yt+1),mt?this.words[yt]=this.words[yt]|1<dt.length?(yt=this,vt=dt):(yt=dt,vt=this);for(var Et=0,At=0;At>>26;for(;Et!==0&&At>>26;if(this.length=yt.length,Et!==0)this.words[this.length]=Et,this.length++;else if(yt!==this)for(;Atdt.length?this.clone().iadd(dt):dt.clone().iadd(this)},tt.prototype.isub=function(dt){if(dt.negative!==0){dt.negative=0;var mt=this.iadd(dt);return dt.negative=1,mt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(dt),this.negative=1,this._normSign();var yt=this.cmp(dt);if(yt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var vt,Et;yt>0?(vt=this,Et=dt):(vt=dt,Et=this);for(var At=0,Pt=0;Pt>26,this.words[Pt]=mt&67108863;for(;At!==0&&Pt>26,this.words[Pt]=mt&67108863;if(At===0&&Pt>>26,Rt=xt&67108863,Dt=Math.min(ht,dt.length-1),Ht=Math.max(0,ht-Ct.length+1);Ht<=Dt;Ht++){var tr=ht-Ht|0;vt=Ct.words[tr]|0,Et=dt.words[Ht]|0,At=vt*Et+Rt,$t+=At/67108864|0,Rt=At&67108863}mt.words[ht]=Rt|0,xt=$t|0}return xt!==0?mt.words[ht]=xt|0:mt.length--,mt.strip()}var It=function(dt,mt,yt){var vt=dt.words,Et=mt.words,At=yt.words,Pt=0,xt,ht,$t,Rt=vt[0]|0,Dt=Rt&8191,Ht=Rt>>>13,tr=vt[1]|0,Xt=tr&8191,Ut=tr>>>13,qt=vt[2]|0,Gt=qt&8191,Zt=qt>>>13,Yt=vt[3]|0,Kt=Yt&8191,ar=Yt>>>13,gr=vt[4]|0,cr=gr&8191,ur=gr>>>13,Pr=vt[5]|0,br=Pr&8191,dr=Pr>>>13,Kr=vt[6]|0,xr=Kr&8191,Sr=Kr>>>13,Zr=vt[7]|0,$r=Zr&8191,Mr=Zr>>>13,Xr=vt[8]|0,Qt=Xr&8191,jt=Xr>>>13,Wt=vt[9]|0,nr=Wt&8191,fr=Wt>>>13,Er=Et[0]|0,pr=Er&8191,vr=Er>>>13,Jr=Et[1]|0,wr=Jr&8191,Ar=Jr>>>13,Yr=Et[2]|0,Cr=Yr&8191,Or=Yr>>>13,Qr=Et[3]|0,_r=Qr&8191,Dr=Qr>>>13,r0=Et[4]|0,Tr=r0&8191,Lr=r0>>>13,n0=Et[5]|0,Br=n0&8191,Fr=n0>>>13,i0=Et[6]|0,Rr=i0&8191,jr=i0>>>13,a0=Et[7]|0,kr=a0&8191,Ur=a0>>>13,s0=Et[8]|0,Ir=s0&8191,Hr=s0>>>13,o0=Et[9]|0,Nr=o0&8191,qr=o0>>>13;yt.negative=dt.negative^mt.negative,yt.length=19,xt=Math.imul(Dt,pr),ht=Math.imul(Dt,vr),ht=ht+Math.imul(Ht,pr)|0,$t=Math.imul(Ht,vr);var e0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(e0>>>26)|0,e0&=67108863,xt=Math.imul(Xt,pr),ht=Math.imul(Xt,vr),ht=ht+Math.imul(Ut,pr)|0,$t=Math.imul(Ut,vr),xt=xt+Math.imul(Dt,wr)|0,ht=ht+Math.imul(Dt,Ar)|0,ht=ht+Math.imul(Ht,wr)|0,$t=$t+Math.imul(Ht,Ar)|0;var t0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(t0>>>26)|0,t0&=67108863,xt=Math.imul(Gt,pr),ht=Math.imul(Gt,vr),ht=ht+Math.imul(Zt,pr)|0,$t=Math.imul(Zt,vr),xt=xt+Math.imul(Xt,wr)|0,ht=ht+Math.imul(Xt,Ar)|0,ht=ht+Math.imul(Ut,wr)|0,$t=$t+Math.imul(Ut,Ar)|0,xt=xt+Math.imul(Dt,Cr)|0,ht=ht+Math.imul(Dt,Or)|0,ht=ht+Math.imul(Ht,Cr)|0,$t=$t+Math.imul(Ht,Or)|0;var f0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(f0>>>26)|0,f0&=67108863,xt=Math.imul(Kt,pr),ht=Math.imul(Kt,vr),ht=ht+Math.imul(ar,pr)|0,$t=Math.imul(ar,vr),xt=xt+Math.imul(Gt,wr)|0,ht=ht+Math.imul(Gt,Ar)|0,ht=ht+Math.imul(Zt,wr)|0,$t=$t+Math.imul(Zt,Ar)|0,xt=xt+Math.imul(Xt,Cr)|0,ht=ht+Math.imul(Xt,Or)|0,ht=ht+Math.imul(Ut,Cr)|0,$t=$t+Math.imul(Ut,Or)|0,xt=xt+Math.imul(Dt,_r)|0,ht=ht+Math.imul(Dt,Dr)|0,ht=ht+Math.imul(Ht,_r)|0,$t=$t+Math.imul(Ht,Dr)|0;var c0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(c0>>>26)|0,c0&=67108863,xt=Math.imul(cr,pr),ht=Math.imul(cr,vr),ht=ht+Math.imul(ur,pr)|0,$t=Math.imul(ur,vr),xt=xt+Math.imul(Kt,wr)|0,ht=ht+Math.imul(Kt,Ar)|0,ht=ht+Math.imul(ar,wr)|0,$t=$t+Math.imul(ar,Ar)|0,xt=xt+Math.imul(Gt,Cr)|0,ht=ht+Math.imul(Gt,Or)|0,ht=ht+Math.imul(Zt,Cr)|0,$t=$t+Math.imul(Zt,Or)|0,xt=xt+Math.imul(Xt,_r)|0,ht=ht+Math.imul(Xt,Dr)|0,ht=ht+Math.imul(Ut,_r)|0,$t=$t+Math.imul(Ut,Dr)|0,xt=xt+Math.imul(Dt,Tr)|0,ht=ht+Math.imul(Dt,Lr)|0,ht=ht+Math.imul(Ht,Tr)|0,$t=$t+Math.imul(Ht,Lr)|0;var l0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(l0>>>26)|0,l0&=67108863,xt=Math.imul(br,pr),ht=Math.imul(br,vr),ht=ht+Math.imul(dr,pr)|0,$t=Math.imul(dr,vr),xt=xt+Math.imul(cr,wr)|0,ht=ht+Math.imul(cr,Ar)|0,ht=ht+Math.imul(ur,wr)|0,$t=$t+Math.imul(ur,Ar)|0,xt=xt+Math.imul(Kt,Cr)|0,ht=ht+Math.imul(Kt,Or)|0,ht=ht+Math.imul(ar,Cr)|0,$t=$t+Math.imul(ar,Or)|0,xt=xt+Math.imul(Gt,_r)|0,ht=ht+Math.imul(Gt,Dr)|0,ht=ht+Math.imul(Zt,_r)|0,$t=$t+Math.imul(Zt,Dr)|0,xt=xt+Math.imul(Xt,Tr)|0,ht=ht+Math.imul(Xt,Lr)|0,ht=ht+Math.imul(Ut,Tr)|0,$t=$t+Math.imul(Ut,Lr)|0,xt=xt+Math.imul(Dt,Br)|0,ht=ht+Math.imul(Dt,Fr)|0,ht=ht+Math.imul(Ht,Br)|0,$t=$t+Math.imul(Ht,Fr)|0;var u0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(u0>>>26)|0,u0&=67108863,xt=Math.imul(xr,pr),ht=Math.imul(xr,vr),ht=ht+Math.imul(Sr,pr)|0,$t=Math.imul(Sr,vr),xt=xt+Math.imul(br,wr)|0,ht=ht+Math.imul(br,Ar)|0,ht=ht+Math.imul(dr,wr)|0,$t=$t+Math.imul(dr,Ar)|0,xt=xt+Math.imul(cr,Cr)|0,ht=ht+Math.imul(cr,Or)|0,ht=ht+Math.imul(ur,Cr)|0,$t=$t+Math.imul(ur,Or)|0,xt=xt+Math.imul(Kt,_r)|0,ht=ht+Math.imul(Kt,Dr)|0,ht=ht+Math.imul(ar,_r)|0,$t=$t+Math.imul(ar,Dr)|0,xt=xt+Math.imul(Gt,Tr)|0,ht=ht+Math.imul(Gt,Lr)|0,ht=ht+Math.imul(Zt,Tr)|0,$t=$t+Math.imul(Zt,Lr)|0,xt=xt+Math.imul(Xt,Br)|0,ht=ht+Math.imul(Xt,Fr)|0,ht=ht+Math.imul(Ut,Br)|0,$t=$t+Math.imul(Ut,Fr)|0,xt=xt+Math.imul(Dt,Rr)|0,ht=ht+Math.imul(Dt,jr)|0,ht=ht+Math.imul(Ht,Rr)|0,$t=$t+Math.imul(Ht,jr)|0;var d0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(d0>>>26)|0,d0&=67108863,xt=Math.imul($r,pr),ht=Math.imul($r,vr),ht=ht+Math.imul(Mr,pr)|0,$t=Math.imul(Mr,vr),xt=xt+Math.imul(xr,wr)|0,ht=ht+Math.imul(xr,Ar)|0,ht=ht+Math.imul(Sr,wr)|0,$t=$t+Math.imul(Sr,Ar)|0,xt=xt+Math.imul(br,Cr)|0,ht=ht+Math.imul(br,Or)|0,ht=ht+Math.imul(dr,Cr)|0,$t=$t+Math.imul(dr,Or)|0,xt=xt+Math.imul(cr,_r)|0,ht=ht+Math.imul(cr,Dr)|0,ht=ht+Math.imul(ur,_r)|0,$t=$t+Math.imul(ur,Dr)|0,xt=xt+Math.imul(Kt,Tr)|0,ht=ht+Math.imul(Kt,Lr)|0,ht=ht+Math.imul(ar,Tr)|0,$t=$t+Math.imul(ar,Lr)|0,xt=xt+Math.imul(Gt,Br)|0,ht=ht+Math.imul(Gt,Fr)|0,ht=ht+Math.imul(Zt,Br)|0,$t=$t+Math.imul(Zt,Fr)|0,xt=xt+Math.imul(Xt,Rr)|0,ht=ht+Math.imul(Xt,jr)|0,ht=ht+Math.imul(Ut,Rr)|0,$t=$t+Math.imul(Ut,jr)|0,xt=xt+Math.imul(Dt,kr)|0,ht=ht+Math.imul(Dt,Ur)|0,ht=ht+Math.imul(Ht,kr)|0,$t=$t+Math.imul(Ht,Ur)|0;var h0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(h0>>>26)|0,h0&=67108863,xt=Math.imul(Qt,pr),ht=Math.imul(Qt,vr),ht=ht+Math.imul(jt,pr)|0,$t=Math.imul(jt,vr),xt=xt+Math.imul($r,wr)|0,ht=ht+Math.imul($r,Ar)|0,ht=ht+Math.imul(Mr,wr)|0,$t=$t+Math.imul(Mr,Ar)|0,xt=xt+Math.imul(xr,Cr)|0,ht=ht+Math.imul(xr,Or)|0,ht=ht+Math.imul(Sr,Cr)|0,$t=$t+Math.imul(Sr,Or)|0,xt=xt+Math.imul(br,_r)|0,ht=ht+Math.imul(br,Dr)|0,ht=ht+Math.imul(dr,_r)|0,$t=$t+Math.imul(dr,Dr)|0,xt=xt+Math.imul(cr,Tr)|0,ht=ht+Math.imul(cr,Lr)|0,ht=ht+Math.imul(ur,Tr)|0,$t=$t+Math.imul(ur,Lr)|0,xt=xt+Math.imul(Kt,Br)|0,ht=ht+Math.imul(Kt,Fr)|0,ht=ht+Math.imul(ar,Br)|0,$t=$t+Math.imul(ar,Fr)|0,xt=xt+Math.imul(Gt,Rr)|0,ht=ht+Math.imul(Gt,jr)|0,ht=ht+Math.imul(Zt,Rr)|0,$t=$t+Math.imul(Zt,jr)|0,xt=xt+Math.imul(Xt,kr)|0,ht=ht+Math.imul(Xt,Ur)|0,ht=ht+Math.imul(Ut,kr)|0,$t=$t+Math.imul(Ut,Ur)|0,xt=xt+Math.imul(Dt,Ir)|0,ht=ht+Math.imul(Dt,Hr)|0,ht=ht+Math.imul(Ht,Ir)|0,$t=$t+Math.imul(Ht,Hr)|0;var p0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(p0>>>26)|0,p0&=67108863,xt=Math.imul(nr,pr),ht=Math.imul(nr,vr),ht=ht+Math.imul(fr,pr)|0,$t=Math.imul(fr,vr),xt=xt+Math.imul(Qt,wr)|0,ht=ht+Math.imul(Qt,Ar)|0,ht=ht+Math.imul(jt,wr)|0,$t=$t+Math.imul(jt,Ar)|0,xt=xt+Math.imul($r,Cr)|0,ht=ht+Math.imul($r,Or)|0,ht=ht+Math.imul(Mr,Cr)|0,$t=$t+Math.imul(Mr,Or)|0,xt=xt+Math.imul(xr,_r)|0,ht=ht+Math.imul(xr,Dr)|0,ht=ht+Math.imul(Sr,_r)|0,$t=$t+Math.imul(Sr,Dr)|0,xt=xt+Math.imul(br,Tr)|0,ht=ht+Math.imul(br,Lr)|0,ht=ht+Math.imul(dr,Tr)|0,$t=$t+Math.imul(dr,Lr)|0,xt=xt+Math.imul(cr,Br)|0,ht=ht+Math.imul(cr,Fr)|0,ht=ht+Math.imul(ur,Br)|0,$t=$t+Math.imul(ur,Fr)|0,xt=xt+Math.imul(Kt,Rr)|0,ht=ht+Math.imul(Kt,jr)|0,ht=ht+Math.imul(ar,Rr)|0,$t=$t+Math.imul(ar,jr)|0,xt=xt+Math.imul(Gt,kr)|0,ht=ht+Math.imul(Gt,Ur)|0,ht=ht+Math.imul(Zt,kr)|0,$t=$t+Math.imul(Zt,Ur)|0,xt=xt+Math.imul(Xt,Ir)|0,ht=ht+Math.imul(Xt,Hr)|0,ht=ht+Math.imul(Ut,Ir)|0,$t=$t+Math.imul(Ut,Hr)|0,xt=xt+Math.imul(Dt,Nr)|0,ht=ht+Math.imul(Dt,qr)|0,ht=ht+Math.imul(Ht,Nr)|0,$t=$t+Math.imul(Ht,qr)|0;var b0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(b0>>>26)|0,b0&=67108863,xt=Math.imul(nr,wr),ht=Math.imul(nr,Ar),ht=ht+Math.imul(fr,wr)|0,$t=Math.imul(fr,Ar),xt=xt+Math.imul(Qt,Cr)|0,ht=ht+Math.imul(Qt,Or)|0,ht=ht+Math.imul(jt,Cr)|0,$t=$t+Math.imul(jt,Or)|0,xt=xt+Math.imul($r,_r)|0,ht=ht+Math.imul($r,Dr)|0,ht=ht+Math.imul(Mr,_r)|0,$t=$t+Math.imul(Mr,Dr)|0,xt=xt+Math.imul(xr,Tr)|0,ht=ht+Math.imul(xr,Lr)|0,ht=ht+Math.imul(Sr,Tr)|0,$t=$t+Math.imul(Sr,Lr)|0,xt=xt+Math.imul(br,Br)|0,ht=ht+Math.imul(br,Fr)|0,ht=ht+Math.imul(dr,Br)|0,$t=$t+Math.imul(dr,Fr)|0,xt=xt+Math.imul(cr,Rr)|0,ht=ht+Math.imul(cr,jr)|0,ht=ht+Math.imul(ur,Rr)|0,$t=$t+Math.imul(ur,jr)|0,xt=xt+Math.imul(Kt,kr)|0,ht=ht+Math.imul(Kt,Ur)|0,ht=ht+Math.imul(ar,kr)|0,$t=$t+Math.imul(ar,Ur)|0,xt=xt+Math.imul(Gt,Ir)|0,ht=ht+Math.imul(Gt,Hr)|0,ht=ht+Math.imul(Zt,Ir)|0,$t=$t+Math.imul(Zt,Hr)|0,xt=xt+Math.imul(Xt,Nr)|0,ht=ht+Math.imul(Xt,qr)|0,ht=ht+Math.imul(Ut,Nr)|0,$t=$t+Math.imul(Ut,qr)|0;var m0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(m0>>>26)|0,m0&=67108863,xt=Math.imul(nr,Cr),ht=Math.imul(nr,Or),ht=ht+Math.imul(fr,Cr)|0,$t=Math.imul(fr,Or),xt=xt+Math.imul(Qt,_r)|0,ht=ht+Math.imul(Qt,Dr)|0,ht=ht+Math.imul(jt,_r)|0,$t=$t+Math.imul(jt,Dr)|0,xt=xt+Math.imul($r,Tr)|0,ht=ht+Math.imul($r,Lr)|0,ht=ht+Math.imul(Mr,Tr)|0,$t=$t+Math.imul(Mr,Lr)|0,xt=xt+Math.imul(xr,Br)|0,ht=ht+Math.imul(xr,Fr)|0,ht=ht+Math.imul(Sr,Br)|0,$t=$t+Math.imul(Sr,Fr)|0,xt=xt+Math.imul(br,Rr)|0,ht=ht+Math.imul(br,jr)|0,ht=ht+Math.imul(dr,Rr)|0,$t=$t+Math.imul(dr,jr)|0,xt=xt+Math.imul(cr,kr)|0,ht=ht+Math.imul(cr,Ur)|0,ht=ht+Math.imul(ur,kr)|0,$t=$t+Math.imul(ur,Ur)|0,xt=xt+Math.imul(Kt,Ir)|0,ht=ht+Math.imul(Kt,Hr)|0,ht=ht+Math.imul(ar,Ir)|0,$t=$t+Math.imul(ar,Hr)|0,xt=xt+Math.imul(Gt,Nr)|0,ht=ht+Math.imul(Gt,qr)|0,ht=ht+Math.imul(Zt,Nr)|0,$t=$t+Math.imul(Zt,qr)|0;var g0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(g0>>>26)|0,g0&=67108863,xt=Math.imul(nr,_r),ht=Math.imul(nr,Dr),ht=ht+Math.imul(fr,_r)|0,$t=Math.imul(fr,Dr),xt=xt+Math.imul(Qt,Tr)|0,ht=ht+Math.imul(Qt,Lr)|0,ht=ht+Math.imul(jt,Tr)|0,$t=$t+Math.imul(jt,Lr)|0,xt=xt+Math.imul($r,Br)|0,ht=ht+Math.imul($r,Fr)|0,ht=ht+Math.imul(Mr,Br)|0,$t=$t+Math.imul(Mr,Fr)|0,xt=xt+Math.imul(xr,Rr)|0,ht=ht+Math.imul(xr,jr)|0,ht=ht+Math.imul(Sr,Rr)|0,$t=$t+Math.imul(Sr,jr)|0,xt=xt+Math.imul(br,kr)|0,ht=ht+Math.imul(br,Ur)|0,ht=ht+Math.imul(dr,kr)|0,$t=$t+Math.imul(dr,Ur)|0,xt=xt+Math.imul(cr,Ir)|0,ht=ht+Math.imul(cr,Hr)|0,ht=ht+Math.imul(ur,Ir)|0,$t=$t+Math.imul(ur,Hr)|0,xt=xt+Math.imul(Kt,Nr)|0,ht=ht+Math.imul(Kt,qr)|0,ht=ht+Math.imul(ar,Nr)|0,$t=$t+Math.imul(ar,qr)|0;var y0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(y0>>>26)|0,y0&=67108863,xt=Math.imul(nr,Tr),ht=Math.imul(nr,Lr),ht=ht+Math.imul(fr,Tr)|0,$t=Math.imul(fr,Lr),xt=xt+Math.imul(Qt,Br)|0,ht=ht+Math.imul(Qt,Fr)|0,ht=ht+Math.imul(jt,Br)|0,$t=$t+Math.imul(jt,Fr)|0,xt=xt+Math.imul($r,Rr)|0,ht=ht+Math.imul($r,jr)|0,ht=ht+Math.imul(Mr,Rr)|0,$t=$t+Math.imul(Mr,jr)|0,xt=xt+Math.imul(xr,kr)|0,ht=ht+Math.imul(xr,Ur)|0,ht=ht+Math.imul(Sr,kr)|0,$t=$t+Math.imul(Sr,Ur)|0,xt=xt+Math.imul(br,Ir)|0,ht=ht+Math.imul(br,Hr)|0,ht=ht+Math.imul(dr,Ir)|0,$t=$t+Math.imul(dr,Hr)|0,xt=xt+Math.imul(cr,Nr)|0,ht=ht+Math.imul(cr,qr)|0,ht=ht+Math.imul(ur,Nr)|0,$t=$t+Math.imul(ur,qr)|0;var v0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(v0>>>26)|0,v0&=67108863,xt=Math.imul(nr,Br),ht=Math.imul(nr,Fr),ht=ht+Math.imul(fr,Br)|0,$t=Math.imul(fr,Fr),xt=xt+Math.imul(Qt,Rr)|0,ht=ht+Math.imul(Qt,jr)|0,ht=ht+Math.imul(jt,Rr)|0,$t=$t+Math.imul(jt,jr)|0,xt=xt+Math.imul($r,kr)|0,ht=ht+Math.imul($r,Ur)|0,ht=ht+Math.imul(Mr,kr)|0,$t=$t+Math.imul(Mr,Ur)|0,xt=xt+Math.imul(xr,Ir)|0,ht=ht+Math.imul(xr,Hr)|0,ht=ht+Math.imul(Sr,Ir)|0,$t=$t+Math.imul(Sr,Hr)|0,xt=xt+Math.imul(br,Nr)|0,ht=ht+Math.imul(br,qr)|0,ht=ht+Math.imul(dr,Nr)|0,$t=$t+Math.imul(dr,qr)|0;var w0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(w0>>>26)|0,w0&=67108863,xt=Math.imul(nr,Rr),ht=Math.imul(nr,jr),ht=ht+Math.imul(fr,Rr)|0,$t=Math.imul(fr,jr),xt=xt+Math.imul(Qt,kr)|0,ht=ht+Math.imul(Qt,Ur)|0,ht=ht+Math.imul(jt,kr)|0,$t=$t+Math.imul(jt,Ur)|0,xt=xt+Math.imul($r,Ir)|0,ht=ht+Math.imul($r,Hr)|0,ht=ht+Math.imul(Mr,Ir)|0,$t=$t+Math.imul(Mr,Hr)|0,xt=xt+Math.imul(xr,Nr)|0,ht=ht+Math.imul(xr,qr)|0,ht=ht+Math.imul(Sr,Nr)|0,$t=$t+Math.imul(Sr,qr)|0;var x0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(x0>>>26)|0,x0&=67108863,xt=Math.imul(nr,kr),ht=Math.imul(nr,Ur),ht=ht+Math.imul(fr,kr)|0,$t=Math.imul(fr,Ur),xt=xt+Math.imul(Qt,Ir)|0,ht=ht+Math.imul(Qt,Hr)|0,ht=ht+Math.imul(jt,Ir)|0,$t=$t+Math.imul(jt,Hr)|0,xt=xt+Math.imul($r,Nr)|0,ht=ht+Math.imul($r,qr)|0,ht=ht+Math.imul(Mr,Nr)|0,$t=$t+Math.imul(Mr,qr)|0;var E0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(E0>>>26)|0,E0&=67108863,xt=Math.imul(nr,Ir),ht=Math.imul(nr,Hr),ht=ht+Math.imul(fr,Ir)|0,$t=Math.imul(fr,Hr),xt=xt+Math.imul(Qt,Nr)|0,ht=ht+Math.imul(Qt,qr)|0,ht=ht+Math.imul(jt,Nr)|0,$t=$t+Math.imul(jt,qr)|0;var $0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+($0>>>26)|0,$0&=67108863,xt=Math.imul(nr,Nr),ht=Math.imul(nr,qr),ht=ht+Math.imul(fr,Nr)|0,$t=Math.imul(fr,qr);var M0=(Pt+xt|0)+((ht&8191)<<13)|0;return Pt=($t+(ht>>>13)|0)+(M0>>>26)|0,M0&=67108863,At[0]=e0,At[1]=t0,At[2]=f0,At[3]=c0,At[4]=l0,At[5]=u0,At[6]=d0,At[7]=h0,At[8]=p0,At[9]=b0,At[10]=m0,At[11]=g0,At[12]=y0,At[13]=v0,At[14]=w0,At[15]=x0,At[16]=E0,At[17]=$0,At[18]=M0,Pt!==0&&(At[19]=Pt,yt.length++),yt};Math.imul||(It=kt);function Lt(Ct,dt,mt){mt.negative=dt.negative^Ct.negative,mt.length=Ct.length+dt.length;for(var yt=0,vt=0,Et=0;Et>>26)|0,vt+=At>>>26,At&=67108863}mt.words[Et]=Pt,yt=At,At=vt}return yt!==0?mt.words[Et]=yt:mt.length--,mt.strip()}function Ot(Ct,dt,mt){var yt=new Nt;return yt.mulp(Ct,dt,mt)}tt.prototype.mulTo=function(dt,mt){var yt,vt=this.length+dt.length;return this.length===10&&dt.length===10?yt=It(this,dt,mt):vt<63?yt=kt(this,dt,mt):vt<1024?yt=Lt(this,dt,mt):yt=Ot(this,dt,mt),yt};function Nt(Ct,dt){this.x=Ct,this.y=dt}Nt.prototype.makeRBT=function(dt){for(var mt=new Array(dt),yt=tt.prototype._countBits(dt)-1,vt=0;vt>=1;return vt},Nt.prototype.permute=function(dt,mt,yt,vt,Et,At){for(var Pt=0;Pt>>1)Et++;return 1<>>13,yt[2*At+1]=Et&8191,Et=Et>>>13;for(At=2*mt;At>=26,mt+=vt/67108864|0,mt+=Et>>>26,this.words[yt]=Et&67108863}return mt!==0&&(this.words[yt]=mt,this.length++),this},tt.prototype.muln=function(dt){return this.clone().imuln(dt)},tt.prototype.sqr=function(){return this.mul(this)},tt.prototype.isqr=function(){return this.imul(this.clone())},tt.prototype.pow=function(dt){var mt=Bt(dt);if(mt.length===0)return new tt(1);for(var yt=this,vt=0;vt=0);var mt=dt%26,yt=(dt-mt)/26,vt=67108863>>>26-mt<<26-mt,Et;if(mt!==0){var At=0;for(Et=0;Et>>26-mt}At&&(this.words[Et]=At,this.length++)}if(yt!==0){for(Et=this.length-1;Et>=0;Et--)this.words[Et+yt]=this.words[Et];for(Et=0;Et=0);var vt;mt?vt=(mt-mt%26)/26:vt=0;var Et=dt%26,At=Math.min((dt-Et)/26,this.length),Pt=67108863^67108863>>>Et<At)for(this.length-=At,ht=0;ht=0&&($t!==0||ht>=vt);ht--){var Rt=this.words[ht]|0;this.words[ht]=$t<<26-Et|Rt>>>Et,$t=Rt&Pt}return xt&&$t!==0&&(xt.words[xt.length++]=$t),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},tt.prototype.ishrn=function(dt,mt,yt){return et(this.negative===0),this.iushrn(dt,mt,yt)},tt.prototype.shln=function(dt){return this.clone().ishln(dt)},tt.prototype.ushln=function(dt){return this.clone().iushln(dt)},tt.prototype.shrn=function(dt){return this.clone().ishrn(dt)},tt.prototype.ushrn=function(dt){return this.clone().iushrn(dt)},tt.prototype.testn=function(dt){et(typeof dt=="number"&&dt>=0);var mt=dt%26,yt=(dt-mt)/26,vt=1<=0);var mt=dt%26,yt=(dt-mt)/26;if(et(this.negative===0,"imaskn works only with positive numbers"),this.length<=yt)return this;if(mt!==0&&yt++,this.length=Math.min(yt,this.length),mt!==0){var vt=67108863^67108863>>>mt<=67108864;mt++)this.words[mt]-=67108864,mt===this.length-1?this.words[mt+1]=1:this.words[mt+1]++;return this.length=Math.max(this.length,mt+1),this},tt.prototype.isubn=function(dt){if(et(typeof dt=="number"),et(dt<67108864),dt<0)return this.iaddn(-dt);if(this.negative!==0)return this.negative=0,this.iaddn(dt),this.negative=1,this;if(this.words[0]-=dt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var mt=0;mt>26)-(xt/67108864|0),this.words[Et+yt]=At&67108863}for(;Et>26,this.words[Et+yt]=At&67108863;if(Pt===0)return this.strip();for(et(Pt===-1),Pt=0,Et=0;Et>26,this.words[Et]=At&67108863;return this.negative=1,this.strip()},tt.prototype._wordDiv=function(dt,mt){var yt=this.length-dt.length,vt=this.clone(),Et=dt,At=Et.words[Et.length-1]|0,Pt=this._countBits(At);yt=26-Pt,yt!==0&&(Et=Et.ushln(yt),vt.iushln(yt),At=Et.words[Et.length-1]|0);var xt=vt.length-Et.length,ht;if(mt!=="mod"){ht=new tt(null),ht.length=xt+1,ht.words=new Array(ht.length);for(var $t=0;$t=0;Dt--){var Ht=(vt.words[Et.length+Dt]|0)*67108864+(vt.words[Et.length+Dt-1]|0);for(Ht=Math.min(Ht/At|0,67108863),vt._ishlnsubmul(Et,Ht,Dt);vt.negative!==0;)Ht--,vt.negative=0,vt._ishlnsubmul(Et,1,Dt),vt.isZero()||(vt.negative^=1);ht&&(ht.words[Dt]=Ht)}return ht&&ht.strip(),vt.strip(),mt!=="div"&&yt!==0&&vt.iushrn(yt),{div:ht||null,mod:vt}},tt.prototype.divmod=function(dt,mt,yt){if(et(!dt.isZero()),this.isZero())return{div:new tt(0),mod:new tt(0)};var vt,Et,At;return this.negative!==0&&dt.negative===0?(At=this.neg().divmod(dt,mt),mt!=="mod"&&(vt=At.div.neg()),mt!=="div"&&(Et=At.mod.neg(),yt&&Et.negative!==0&&Et.iadd(dt)),{div:vt,mod:Et}):this.negative===0&&dt.negative!==0?(At=this.divmod(dt.neg(),mt),mt!=="mod"&&(vt=At.div.neg()),{div:vt,mod:At.mod}):this.negative&dt.negative?(At=this.neg().divmod(dt.neg(),mt),mt!=="div"&&(Et=At.mod.neg(),yt&&Et.negative!==0&&Et.isub(dt)),{div:At.div,mod:Et}):dt.length>this.length||this.cmp(dt)<0?{div:new tt(0),mod:this}:dt.length===1?mt==="div"?{div:this.divn(dt.words[0]),mod:null}:mt==="mod"?{div:null,mod:new tt(this.modn(dt.words[0]))}:{div:this.divn(dt.words[0]),mod:new tt(this.modn(dt.words[0]))}:this._wordDiv(dt,mt)},tt.prototype.div=function(dt){return this.divmod(dt,"div",!1).div},tt.prototype.mod=function(dt){return this.divmod(dt,"mod",!1).mod},tt.prototype.umod=function(dt){return this.divmod(dt,"mod",!0).mod},tt.prototype.divRound=function(dt){var mt=this.divmod(dt);if(mt.mod.isZero())return mt.div;var yt=mt.div.negative!==0?mt.mod.isub(dt):mt.mod,vt=dt.ushrn(1),Et=dt.andln(1),At=yt.cmp(vt);return At<0||Et===1&&At===0?mt.div:mt.div.negative!==0?mt.div.isubn(1):mt.div.iaddn(1)},tt.prototype.modn=function(dt){et(dt<=67108863);for(var mt=(1<<26)%dt,yt=0,vt=this.length-1;vt>=0;vt--)yt=(mt*yt+(this.words[vt]|0))%dt;return yt},tt.prototype.idivn=function(dt){et(dt<=67108863);for(var mt=0,yt=this.length-1;yt>=0;yt--){var vt=(this.words[yt]|0)+mt*67108864;this.words[yt]=vt/dt|0,mt=vt%dt}return this.strip()},tt.prototype.divn=function(dt){return this.clone().idivn(dt)},tt.prototype.egcd=function(dt){et(dt.negative===0),et(!dt.isZero());var mt=this,yt=dt.clone();mt.negative!==0?mt=mt.umod(dt):mt=mt.clone();for(var vt=new tt(1),Et=new tt(0),At=new tt(0),Pt=new tt(1),xt=0;mt.isEven()&&yt.isEven();)mt.iushrn(1),yt.iushrn(1),++xt;for(var ht=yt.clone(),$t=mt.clone();!mt.isZero();){for(var Rt=0,Dt=1;!(mt.words[0]&Dt)&&Rt<26;++Rt,Dt<<=1);if(Rt>0)for(mt.iushrn(Rt);Rt-- >0;)(vt.isOdd()||Et.isOdd())&&(vt.iadd(ht),Et.isub($t)),vt.iushrn(1),Et.iushrn(1);for(var Ht=0,tr=1;!(yt.words[0]&tr)&&Ht<26;++Ht,tr<<=1);if(Ht>0)for(yt.iushrn(Ht);Ht-- >0;)(At.isOdd()||Pt.isOdd())&&(At.iadd(ht),Pt.isub($t)),At.iushrn(1),Pt.iushrn(1);mt.cmp(yt)>=0?(mt.isub(yt),vt.isub(At),Et.isub(Pt)):(yt.isub(mt),At.isub(vt),Pt.isub(Et))}return{a:At,b:Pt,gcd:yt.iushln(xt)}},tt.prototype._invmp=function(dt){et(dt.negative===0),et(!dt.isZero());var mt=this,yt=dt.clone();mt.negative!==0?mt=mt.umod(dt):mt=mt.clone();for(var vt=new tt(1),Et=new tt(0),At=yt.clone();mt.cmpn(1)>0&&yt.cmpn(1)>0;){for(var Pt=0,xt=1;!(mt.words[0]&xt)&&Pt<26;++Pt,xt<<=1);if(Pt>0)for(mt.iushrn(Pt);Pt-- >0;)vt.isOdd()&&vt.iadd(At),vt.iushrn(1);for(var ht=0,$t=1;!(yt.words[0]&$t)&&ht<26;++ht,$t<<=1);if(ht>0)for(yt.iushrn(ht);ht-- >0;)Et.isOdd()&&Et.iadd(At),Et.iushrn(1);mt.cmp(yt)>=0?(mt.isub(yt),vt.isub(Et)):(yt.isub(mt),Et.isub(vt))}var Rt;return mt.cmpn(1)===0?Rt=vt:Rt=Et,Rt.cmpn(0)<0&&Rt.iadd(dt),Rt},tt.prototype.gcd=function(dt){if(this.isZero())return dt.abs();if(dt.isZero())return this.abs();var mt=this.clone(),yt=dt.clone();mt.negative=0,yt.negative=0;for(var vt=0;mt.isEven()&&yt.isEven();vt++)mt.iushrn(1),yt.iushrn(1);do{for(;mt.isEven();)mt.iushrn(1);for(;yt.isEven();)yt.iushrn(1);var Et=mt.cmp(yt);if(Et<0){var At=mt;mt=yt,yt=At}else if(Et===0||yt.cmpn(1)===0)break;mt.isub(yt)}while(!0);return yt.iushln(vt)},tt.prototype.invm=function(dt){return this.egcd(dt).a.umod(dt)},tt.prototype.isEven=function(){return(this.words[0]&1)===0},tt.prototype.isOdd=function(){return(this.words[0]&1)===1},tt.prototype.andln=function(dt){return this.words[0]&dt},tt.prototype.bincn=function(dt){et(typeof dt=="number");var mt=dt%26,yt=(dt-mt)/26,vt=1<>>26,Pt&=67108863,this.words[At]=Pt}return Et!==0&&(this.words[At]=Et,this.length++),this},tt.prototype.isZero=function(){return this.length===1&&this.words[0]===0},tt.prototype.cmpn=function(dt){var mt=dt<0;if(this.negative!==0&&!mt)return-1;if(this.negative===0&&mt)return 1;this.strip();var yt;if(this.length>1)yt=1;else{mt&&(dt=-dt),et(dt<=67108863,"Number is too big");var vt=this.words[0]|0;yt=vt===dt?0:vtdt.length)return 1;if(this.length=0;yt--){var vt=this.words[yt]|0,Et=dt.words[yt]|0;if(vt!==Et){vtEt&&(mt=1);break}}return mt},tt.prototype.gtn=function(dt){return this.cmpn(dt)===1},tt.prototype.gt=function(dt){return this.cmp(dt)===1},tt.prototype.gten=function(dt){return this.cmpn(dt)>=0},tt.prototype.gte=function(dt){return this.cmp(dt)>=0},tt.prototype.ltn=function(dt){return this.cmpn(dt)===-1},tt.prototype.lt=function(dt){return this.cmp(dt)===-1},tt.prototype.lten=function(dt){return this.cmpn(dt)<=0},tt.prototype.lte=function(dt){return this.cmp(dt)<=0},tt.prototype.eqn=function(dt){return this.cmpn(dt)===0},tt.prototype.eq=function(dt){return this.cmp(dt)===0},tt.red=function(dt){return new er(dt)},tt.prototype.toRed=function(dt){return et(!this.red,"Already a number in reduction context"),et(this.negative===0,"red works only with positives"),dt.convertTo(this)._forceRed(dt)},tt.prototype.fromRed=function(){return et(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},tt.prototype._forceRed=function(dt){return this.red=dt,this},tt.prototype.forceRed=function(dt){return et(!this.red,"Already a number in reduction context"),this._forceRed(dt)},tt.prototype.redAdd=function(dt){return et(this.red,"redAdd works only with red numbers"),this.red.add(this,dt)},tt.prototype.redIAdd=function(dt){return et(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,dt)},tt.prototype.redSub=function(dt){return et(this.red,"redSub works only with red numbers"),this.red.sub(this,dt)},tt.prototype.redISub=function(dt){return et(this.red,"redISub works only with red numbers"),this.red.isub(this,dt)},tt.prototype.redShl=function(dt){return et(this.red,"redShl works only with red numbers"),this.red.shl(this,dt)},tt.prototype.redMul=function(dt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,dt),this.red.mul(this,dt)},tt.prototype.redIMul=function(dt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,dt),this.red.imul(this,dt)},tt.prototype.redSqr=function(){return et(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},tt.prototype.redISqr=function(){return et(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},tt.prototype.redSqrt=function(){return et(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},tt.prototype.redInvm=function(){return et(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},tt.prototype.redNeg=function(){return et(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},tt.prototype.redPow=function(dt){return et(this.red&&!dt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,dt)};var Ft={k256:null,p224:null,p192:null,p25519:null};function zt(Ct,dt){this.name=Ct,this.p=new tt(dt,16),this.n=this.p.bitLength(),this.k=new tt(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}zt.prototype._tmp=function(){var dt=new tt(null);return dt.words=new Array(Math.ceil(this.n/13)),dt},zt.prototype.ireduce=function(dt){var mt=dt,yt;do this.split(mt,this.tmp),mt=this.imulK(mt),mt=mt.iadd(this.tmp),yt=mt.bitLength();while(yt>this.n);var vt=yt0?mt.isub(this.p):mt.strip!==void 0?mt.strip():mt._strip(),mt},zt.prototype.split=function(dt,mt){dt.iushrn(this.n,0,mt)},zt.prototype.imulK=function(dt){return dt.imul(this.k)};function Vt(){zt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}nt(Vt,zt),Vt.prototype.split=function(dt,mt){for(var yt=4194303,vt=Math.min(dt.length,9),Et=0;Et>>22,At=Pt}At>>>=22,dt.words[Et-10]=At,At===0&&dt.length>10?dt.length-=10:dt.length-=9},Vt.prototype.imulK=function(dt){dt.words[dt.length]=0,dt.words[dt.length+1]=0,dt.length+=2;for(var mt=0,yt=0;yt>>=26,dt.words[yt]=Et,mt=vt}return mt!==0&&(dt.words[dt.length++]=mt),dt},tt._prime=function(dt){if(Ft[dt])return Ft[dt];var mt;if(dt==="k256")mt=new Vt;else if(dt==="p224")mt=new Jt;else if(dt==="p192")mt=new ir;else if(dt==="p25519")mt=new rr;else throw new Error("Unknown prime "+dt);return Ft[dt]=mt,mt};function er(Ct){if(typeof Ct=="string"){var dt=tt._prime(Ct);this.m=dt.p,this.prime=dt}else et(Ct.gtn(1),"modulus must be greater than 1"),this.m=Ct,this.prime=null}er.prototype._verify1=function(dt){et(dt.negative===0,"red works only with positives"),et(dt.red,"red works only with red numbers")},er.prototype._verify2=function(dt,mt){et((dt.negative|mt.negative)===0,"red works only with positives"),et(dt.red&&dt.red===mt.red,"red works only with red numbers")},er.prototype.imod=function(dt){return this.prime?this.prime.ireduce(dt)._forceRed(this):dt.umod(this.m)._forceRed(this)},er.prototype.neg=function(dt){return dt.isZero()?dt.clone():this.m.sub(dt)._forceRed(this)},er.prototype.add=function(dt,mt){this._verify2(dt,mt);var yt=dt.add(mt);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt._forceRed(this)},er.prototype.iadd=function(dt,mt){this._verify2(dt,mt);var yt=dt.iadd(mt);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt},er.prototype.sub=function(dt,mt){this._verify2(dt,mt);var yt=dt.sub(mt);return yt.cmpn(0)<0&&yt.iadd(this.m),yt._forceRed(this)},er.prototype.isub=function(dt,mt){this._verify2(dt,mt);var yt=dt.isub(mt);return yt.cmpn(0)<0&&yt.iadd(this.m),yt},er.prototype.shl=function(dt,mt){return this._verify1(dt),this.imod(dt.ushln(mt))},er.prototype.imul=function(dt,mt){return this._verify2(dt,mt),this.imod(dt.imul(mt))},er.prototype.mul=function(dt,mt){return this._verify2(dt,mt),this.imod(dt.mul(mt))},er.prototype.isqr=function(dt){return this.imul(dt,dt.clone())},er.prototype.sqr=function(dt){return this.mul(dt,dt)},er.prototype.sqrt=function(dt){if(dt.isZero())return dt.clone();var mt=this.m.andln(3);if(et(mt%2===1),mt===3){var yt=this.m.add(new tt(1)).iushrn(2);return this.pow(dt,yt)}for(var vt=this.m.subn(1),Et=0;!vt.isZero()&&vt.andln(1)===0;)Et++,vt.iushrn(1);et(!vt.isZero());var At=new tt(1).toRed(this),Pt=At.redNeg(),xt=this.m.subn(1).iushrn(1),ht=this.m.bitLength();for(ht=new tt(2*ht*ht).toRed(this);this.pow(ht,xt).cmp(Pt)!==0;)ht.redIAdd(Pt);for(var $t=this.pow(ht,vt),Rt=this.pow(dt,vt.addn(1).iushrn(1)),Dt=this.pow(dt,vt),Ht=Et;Dt.cmp(At)!==0;){for(var tr=Dt,Xt=0;tr.cmp(At)!==0;Xt++)tr=tr.redSqr();et(Xt=0;Et--){for(var $t=mt.words[Et],Rt=ht-1;Rt>=0;Rt--){var Dt=$t>>Rt&1;if(At!==vt[0]&&(At=this.sqr(At)),Dt===0&&Pt===0){xt=0;continue}Pt<<=1,Pt|=Dt,xt++,!(xt!==yt&&(Et!==0||Rt!==0))&&(At=this.mul(At,vt[Pt]),xt=0,Pt=0)}ht=26}return At},er.prototype.convertTo=function(dt){var mt=dt.umod(this.m);return mt===dt?mt.clone():mt},er.prototype.convertFrom=function(dt){var mt=dt.clone();return mt.red=null,mt},tt.mont=function(dt){return new lr(dt)};function lr(Ct){er.call(this,Ct),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new tt(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)}nt(lr,er),lr.prototype.convertTo=function(dt){return this.imod(dt.ushln(this.shift))},lr.prototype.convertFrom=function(dt){var mt=this.imod(dt.mul(this.rinv));return mt.red=null,mt},lr.prototype.imul=function(dt,mt){if(dt.isZero()||mt.isZero())return dt.words[0]=0,dt.length=1,dt;var yt=dt.imul(mt),vt=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Et=yt.isub(vt).iushrn(this.shift),At=Et;return Et.cmp(this.m)>=0?At=Et.isub(this.m):Et.cmpn(0)<0&&(At=Et.iadd(this.m)),At._forceRed(this)},lr.prototype.mul=function(dt,mt){if(dt.isZero()||mt.isZero())return new tt(0)._forceRed(this);var yt=dt.mul(mt),vt=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Et=yt.isub(vt).iushrn(this.shift),At=Et;return Et.cmp(this.m)>=0?At=Et.isub(this.m):Et.cmpn(0)<0&&(At=Et.iadd(this.m)),At._forceRed(this)},lr.prototype.invm=function(dt){var mt=this.imod(dt._invmp(this.m).mul(this.r2));return mt._forceRed(this)}})(c,commonjsGlobal)})(bn);var bnExports=bn.exports,BN$2=bnExports,Buffer$3=safeBufferExports$1.Buffer;function withPublic$2(c,a){return Buffer$3.from(c.toRed(BN$2.mont(a.modulus)).redPow(new BN$2(a.publicExponent)).fromRed().toArray())}var withPublic_1=withPublic$2,parseKeys$1=parseAsn1,randomBytes$1=browserExports,createHash$1=browser$9,mgf$1=mgf$2,xor$1=xor$2,BN$1=bnExports,withPublic$1=withPublic_1,crt$1=browserifyRsa,Buffer$2=safeBufferExports$1.Buffer,publicEncrypt=function c(a,d,et){var nt;a.padding?nt=a.padding:et?nt=1:nt=4;var tt=parseKeys$1(a),bt;if(nt===4)bt=oaep$1(tt,d);else if(nt===1)bt=pkcs1$1(tt,d,et);else if(nt===3){if(bt=new BN$1(d),bt.cmp(tt.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return et?crt$1(bt,tt):withPublic$1(bt,tt)};function oaep$1(c,a){var d=c.modulus.byteLength(),et=a.length,nt=createHash$1("sha1").update(Buffer$2.alloc(0)).digest(),tt=nt.length,bt=2*tt;if(et>d-bt-2)throw new Error("message too long");var gt=Buffer$2.alloc(d-et-bt-2),wt=d-tt-1,St=randomBytes$1(tt),Mt=xor$1(Buffer$2.concat([nt,gt,Buffer$2.alloc(1,1),a],wt),mgf$1(St,wt)),_t=xor$1(St,mgf$1(Mt,tt));return new BN$1(Buffer$2.concat([Buffer$2.alloc(1),_t,Mt],d))}function pkcs1$1(c,a,d){var et=a.length,nt=c.modulus.byteLength();if(et>nt-11)throw new Error("message too long");var tt;return d?tt=Buffer$2.alloc(nt-et-3,255):tt=nonZero(nt-et-3),new BN$1(Buffer$2.concat([Buffer$2.from([0,d?1:2]),tt,Buffer$2.alloc(1),a],nt))}function nonZero(c){for(var a=Buffer$2.allocUnsafe(c),d=0,et=randomBytes$1(c*2),nt=0,tt;dbt||new BN(d).cmp(tt.modulus)>=0)throw new Error("decryption error");var gt;et?gt=withPublic(new BN(d),tt):gt=crt(d,tt);var wt=Buffer$1.alloc(bt-gt.length);if(gt=Buffer$1.concat([wt,gt],bt),nt===4)return oaep(tt,gt);if(nt===1)return pkcs1(tt,gt,et);if(nt===3)return gt;throw new Error("unknown padding")};function oaep(c,a){var d=c.modulus.byteLength(),et=createHash("sha1").update(Buffer$1.alloc(0)).digest(),nt=et.length;if(a[0]!==0)throw new Error("decryption error");var tt=a.slice(1,nt+1),bt=a.slice(nt+1),gt=xor(tt,mgf(bt,nt)),wt=xor(bt,mgf(gt,d-nt-1));if(compare(et,wt.slice(0,nt)))throw new Error("decryption error");for(var St=nt;wt[St]===0;)St++;if(wt[St++]!==1)throw new Error("decryption error");return wt.slice(St)}function pkcs1(c,a,d){for(var et=a.slice(0,2),nt=2,tt=0;a[nt++]!==0;)if(nt>=a.length){tt++;break}var bt=a.slice(2,nt-1);if((et.toString("hex")!=="0002"&&!d||et.toString("hex")!=="0001"&&d)&&tt++,bt.length<8&&tt++,tt)throw new Error("decryption error");return a.slice(nt)}function compare(c,a){c=Buffer$1.from(c),a=Buffer$1.from(a);var d=0,et=c.length;c.length!==a.length&&(d++,et=Math.min(c.length,a.length));for(var nt=-1;++nt>6],Rt=(_t&32)===0;if((_t&31)===31){var kt=_t;for(_t=0;(kt&128)===128;){if(kt=St.readUInt8(Mt),St.isError(kt))return kt;_t<<=7,_t|=kt&127}}else _t&=31;var It=nt.tag[_t];return{cls:Tt,primitive:Rt,tag:_t,tagStr:It}}function wt(St,Mt,_t){var Tt=St.readUInt8(_t);if(St.isError(Tt))return Tt;if(!Mt&&Tt===128)return null;if(!(Tt&128))return Tt;var Rt=Tt&127;if(Rt>4)return St.error("length octect is too long");Tt=0;for(var kt=0;kt=256;Lt>>=8)It++;var Ot=new a(1+1+It);Ot[0]=kt,Ot[1]=128|It;for(var Lt=1+It,Nt=Rt.length;Nt>0;Lt--,Nt>>=8)Ot[Lt]=Nt&255;return this._createEncoderBuffer([Ot,Rt])},bt.prototype._encodeStr=function(Mt,_t){if(_t==="bitstr")return this._createEncoderBuffer([Mt.unused|0,Mt.data]);if(_t==="bmpstr"){for(var Tt=new a(Mt.length*2),Rt=0;Rt=40)return this.reporter.error("Second objid identifier OOB");Mt.splice(0,2,Mt[0]*40+Mt[1])}for(var kt=0,Rt=0;Rt=128;It>>=7)kt++}for(var Lt=new a(kt),Ot=Lt.length-1,Rt=Mt.length-1;Rt>=0;Rt--){var It=Mt[Rt];for(Lt[Ot--]=It&127;(It>>=7)>0;)Lt[Ot--]=128|It&127}return this._createEncoderBuffer(Lt)};function gt(St){return St<10?"0"+St:St}bt.prototype._encodeTime=function(Mt,_t){var Tt,Rt=new Date(Mt);return _t==="gentime"?Tt=[gt(Rt.getFullYear()),gt(Rt.getUTCMonth()+1),gt(Rt.getUTCDate()),gt(Rt.getUTCHours()),gt(Rt.getUTCMinutes()),gt(Rt.getUTCSeconds()),"Z"].join(""):_t==="utctime"?Tt=[gt(Rt.getFullYear()%100),gt(Rt.getUTCMonth()+1),gt(Rt.getUTCDate()),gt(Rt.getUTCHours()),gt(Rt.getUTCMinutes()),gt(Rt.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+_t+" time is not supported yet"),this._encodeStr(Tt,"octstr")},bt.prototype._encodeNull=function(){return this._createEncoderBuffer("")},bt.prototype._encodeInt=function(Mt,_t){if(typeof Mt=="string"){if(!_t)return this.reporter.error("String int or enum given, but no values map");if(!_t.hasOwnProperty(Mt))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(Mt));Mt=_t[Mt]}if(typeof Mt!="number"&&!a.isBuffer(Mt)){var Tt=Mt.toArray();!Mt.sign&&Tt[0]&128&&Tt.unshift(0),Mt=new a(Tt)}if(a.isBuffer(Mt)){var Rt=Mt.length;Mt.length===0&&Rt++;var It=new a(Rt);return Mt.copy(It),Mt.length===0&&(It[0]=0),this._createEncoderBuffer(It)}if(Mt<128)return this._createEncoderBuffer(Mt);if(Mt<256)return this._createEncoderBuffer([0,Mt]);for(var Rt=1,kt=Mt;kt>=256;kt>>=8)Rt++;for(var It=new Array(Rt),kt=It.length-1;kt>=0;kt--)It[kt]=Mt&255,Mt>>=8;return It[0]&128&&It.unshift(0),this._createEncoderBuffer(new a(It))},bt.prototype._encodeBool=function(Mt){return this._createEncoderBuffer(Mt?255:0)},bt.prototype._use=function(Mt,_t){return typeof Mt=="function"&&(Mt=Mt(_t)),Mt._getEncoder("der").tree},bt.prototype._skipDefault=function(Mt,_t,Tt){var Rt=this._baseState,kt;if(Rt.default===null)return!1;var It=Mt.join();if(Rt.defaultBuffer===void 0&&(Rt.defaultBuffer=this._encodeValue(Rt.default,_t,Tt).join()),It.length!==Rt.defaultBuffer.length)return!1;for(kt=0;kt=31?Tt.error("Multi-octet tag encoding unsupported"):(Mt||(Rt|=32),Rt|=nt.tagClassByName[_t||"universal"]<<6,Rt)}return der_1}var pem,hasRequiredPem;function requirePem(){if(hasRequiredPem)return pem;hasRequiredPem=1;var c=inherits_browserExports,a=requireDer();function d(et){a.call(this,et),this.enc="pem"}return c(d,a),pem=d,d.prototype.encode=function(nt,tt){for(var bt=a.prototype.encode.call(this,nt),gt=bt.toString("base64"),wt=["-----BEGIN "+tt.label+"-----"],St=0;St0&&Ft.ishrn(jt),Ft}function kt(Ot,Nt){Ot=Rt(Ot,Nt),Ot=Ot.mod(Nt);var Ft=c.from(Ot.toArray());if(Ft.length=0)throw new Error("invalid sig")}return verify_1=tt,verify_1}var browser$3,hasRequiredBrowser$1;function requireBrowser$1(){if(hasRequiredBrowser$1)return browser$3;hasRequiredBrowser$1=1;var c=safeBufferExports$1.Buffer,a=browser$9,d=readableBrowserExports,et=inherits_browserExports,nt=requireSign(),tt=requireVerify(),bt=require$$6;Object.keys(bt).forEach(function(_t){bt[_t].id=c.from(bt[_t].id,"hex"),bt[_t.toLowerCase()]=bt[_t]});function gt(_t){d.Writable.call(this);var Tt=bt[_t];if(!Tt)throw new Error("Unknown message digest");this._hashType=Tt.hash,this._hash=a(Tt.hash),this._tag=Tt.id,this._signType=Tt.sign}et(gt,d.Writable),gt.prototype._write=function(Tt,Rt,kt){this._hash.update(Tt),kt()},gt.prototype.update=function(Tt,Rt){return this._hash.update(typeof Tt=="string"?c.from(Tt,Rt):Tt),this},gt.prototype.sign=function(Tt,Rt){this.end();var kt=this._hash.digest(),It=nt(kt,Tt,this._hashType,this._signType,this._tag);return Rt?It.toString(Rt):It};function wt(_t){d.Writable.call(this);var Tt=bt[_t];if(!Tt)throw new Error("Unknown message digest");this._hash=a(Tt.hash),this._tag=Tt.id,this._signType=Tt.sign}et(wt,d.Writable),wt.prototype._write=function(Tt,Rt,kt){this._hash.update(Tt),kt()},wt.prototype.update=function(Tt,Rt){return this._hash.update(typeof Tt=="string"?c.from(Tt,Rt):Tt),this},wt.prototype.verify=function(Tt,Rt,kt){var It=typeof Rt=="string"?c.from(Rt,kt):Rt;this.end();var Lt=this._hash.digest();return tt(It,Lt,Tt,this._signType,this._tag)};function St(_t){return new gt(_t)}function Mt(_t){return new wt(_t)}return browser$3={Sign:St,Verify:Mt,createSign:St,createVerify:Mt},browser$3}var elliptic={};const name="elliptic",version$2="6.5.4",description="EC cryptography",main="lib/elliptic.js",files=["lib"],scripts={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository={type:"git",url:"git@github.com:indutny/elliptic"},keywords=["EC","Elliptic","curve","Cryptography"],author="Fedor Indutny ",license="MIT",bugs={url:"https://github.com/indutny/elliptic/issues"},homepage="https://github.com/indutny/elliptic",devDependencies={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},require$$0={name,version:version$2,description,main,files,scripts,repository,keywords,author,license,bugs,homepage,devDependencies,dependencies};var utils$c={},bn$2={exports:{}};bn$2.exports;(function(c){(function(a,d){function et(Ct,dt){if(!Ct)throw new Error(dt||"Assertion failed")}function nt(Ct,dt){Ct.super_=dt;var mt=function(){};mt.prototype=dt.prototype,Ct.prototype=new mt,Ct.prototype.constructor=Ct}function tt(Ct,dt,mt){if(tt.isBN(Ct))return Ct;this.negative=0,this.words=null,this.length=0,this.red=null,Ct!==null&&((dt==="le"||dt==="be")&&(mt=dt,dt=10),this._init(Ct||0,dt||10,mt||"be"))}typeof a=="object"?a.exports=tt:d.BN=tt,tt.BN=tt,tt.wordSize=26;var bt;try{typeof window<"u"&&typeof window.Buffer<"u"?bt=window.Buffer:bt=bufferPolyfill.Buffer}catch{}tt.isBN=function(dt){return dt instanceof tt?!0:dt!==null&&typeof dt=="object"&&dt.constructor.wordSize===tt.wordSize&&Array.isArray(dt.words)},tt.max=function(dt,mt){return dt.cmp(mt)>0?dt:mt},tt.min=function(dt,mt){return dt.cmp(mt)<0?dt:mt},tt.prototype._init=function(dt,mt,yt){if(typeof dt=="number")return this._initNumber(dt,mt,yt);if(typeof dt=="object")return this._initArray(dt,mt,yt);mt==="hex"&&(mt=16),et(mt===(mt|0)&&mt>=2&&mt<=36),dt=dt.toString().replace(/\s+/g,"");var vt=0;dt[0]==="-"&&(vt++,this.negative=1),vt=0;vt-=3)At=dt[vt]|dt[vt-1]<<8|dt[vt-2]<<16,this.words[Et]|=At<>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,Et++);else if(yt==="le")for(vt=0,Et=0;vt>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,Et++);return this.strip()};function gt(Ct,dt){var mt=Ct.charCodeAt(dt);return mt>=65&&mt<=70?mt-55:mt>=97&&mt<=102?mt-87:mt-48&15}function wt(Ct,dt,mt){var yt=gt(Ct,mt);return mt-1>=dt&&(yt|=gt(Ct,mt-1)<<4),yt}tt.prototype._parseHex=function(dt,mt,yt){this.length=Math.ceil((dt.length-mt)/6),this.words=new Array(this.length);for(var vt=0;vt=mt;vt-=2)Pt=wt(dt,mt,vt)<=18?(Et-=18,At+=1,this.words[At]|=Pt>>>26):Et+=8;else{var xt=dt.length-mt;for(vt=xt%2===0?mt+1:mt;vt=18?(Et-=18,At+=1,this.words[At]|=Pt>>>26):Et+=8}this.strip()};function St(Ct,dt,mt,yt){for(var vt=0,Et=Math.min(Ct.length,mt),At=dt;At=49?vt+=Pt-49+10:Pt>=17?vt+=Pt-17+10:vt+=Pt}return vt}tt.prototype._parseBase=function(dt,mt,yt){this.words=[0],this.length=1;for(var vt=0,Et=1;Et<=67108863;Et*=mt)vt++;vt--,Et=Et/mt|0;for(var At=dt.length-yt,Pt=At%vt,xt=Math.min(At,At-Pt)+yt,ht=0,$t=yt;$t1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},tt.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},tt.prototype.inspect=function(){return(this.red?""};var Mt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],_t=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Tt=[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];tt.prototype.toString=function(dt,mt){dt=dt||10,mt=mt|0||1;var yt;if(dt===16||dt==="hex"){yt="";for(var vt=0,Et=0,At=0;At>>24-vt&16777215,Et!==0||At!==this.length-1?yt=Mt[6-xt.length]+xt+yt:yt=xt+yt,vt+=2,vt>=26&&(vt-=26,At--)}for(Et!==0&&(yt=Et.toString(16)+yt);yt.length%mt!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}if(dt===(dt|0)&&dt>=2&&dt<=36){var ht=_t[dt],$t=Tt[dt];yt="";var Bt=this.clone();for(Bt.negative=0;!Bt.isZero();){var Dt=Bt.modn($t).toString(dt);Bt=Bt.idivn($t),Bt.isZero()?yt=Dt+yt:yt=Mt[ht-Dt.length]+Dt+yt}for(this.isZero()&&(yt="0"+yt);yt.length%mt!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}et(!1,"Base should be between 2 and 36")},tt.prototype.toNumber=function(){var dt=this.words[0];return this.length===2?dt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?dt+=4503599627370496+this.words[1]*67108864:this.length>2&&et(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-dt:dt},tt.prototype.toJSON=function(){return this.toString(16)},tt.prototype.toBuffer=function(dt,mt){return et(typeof bt<"u"),this.toArrayLike(bt,dt,mt)},tt.prototype.toArray=function(dt,mt){return this.toArrayLike(Array,dt,mt)},tt.prototype.toArrayLike=function(dt,mt,yt){var vt=this.byteLength(),Et=yt||Math.max(1,vt);et(vt<=Et,"byte array longer than desired length"),et(Et>0,"Requested array length <= 0"),this.strip();var At=mt==="le",Pt=new dt(Et),xt,ht,$t=this.clone();if(At){for(ht=0;!$t.isZero();ht++)xt=$t.andln(255),$t.iushrn(8),Pt[ht]=xt;for(;ht=4096&&(yt+=13,mt>>>=13),mt>=64&&(yt+=7,mt>>>=7),mt>=8&&(yt+=4,mt>>>=4),mt>=2&&(yt+=2,mt>>>=2),yt+mt},tt.prototype._zeroBits=function(dt){if(dt===0)return 26;var mt=dt,yt=0;return mt&8191||(yt+=13,mt>>>=13),mt&127||(yt+=7,mt>>>=7),mt&15||(yt+=4,mt>>>=4),mt&3||(yt+=2,mt>>>=2),mt&1||yt++,yt},tt.prototype.bitLength=function(){var dt=this.words[this.length-1],mt=this._countBits(dt);return(this.length-1)*26+mt};function Rt(Ct){for(var dt=new Array(Ct.bitLength()),mt=0;mt>>vt}return dt}tt.prototype.zeroBits=function(){if(this.isZero())return 0;for(var dt=0,mt=0;mtdt.length?this.clone().ior(dt):dt.clone().ior(this)},tt.prototype.uor=function(dt){return this.length>dt.length?this.clone().iuor(dt):dt.clone().iuor(this)},tt.prototype.iuand=function(dt){var mt;this.length>dt.length?mt=dt:mt=this;for(var yt=0;ytdt.length?this.clone().iand(dt):dt.clone().iand(this)},tt.prototype.uand=function(dt){return this.length>dt.length?this.clone().iuand(dt):dt.clone().iuand(this)},tt.prototype.iuxor=function(dt){var mt,yt;this.length>dt.length?(mt=this,yt=dt):(mt=dt,yt=this);for(var vt=0;vtdt.length?this.clone().ixor(dt):dt.clone().ixor(this)},tt.prototype.uxor=function(dt){return this.length>dt.length?this.clone().iuxor(dt):dt.clone().iuxor(this)},tt.prototype.inotn=function(dt){et(typeof dt=="number"&&dt>=0);var mt=Math.ceil(dt/26)|0,yt=dt%26;this._expand(mt),yt>0&&mt--;for(var vt=0;vt0&&(this.words[vt]=~this.words[vt]&67108863>>26-yt),this.strip()},tt.prototype.notn=function(dt){return this.clone().inotn(dt)},tt.prototype.setn=function(dt,mt){et(typeof dt=="number"&&dt>=0);var yt=dt/26|0,vt=dt%26;return this._expand(yt+1),mt?this.words[yt]=this.words[yt]|1<dt.length?(yt=this,vt=dt):(yt=dt,vt=this);for(var Et=0,At=0;At>>26;for(;Et!==0&&At>>26;if(this.length=yt.length,Et!==0)this.words[this.length]=Et,this.length++;else if(yt!==this)for(;Atdt.length?this.clone().iadd(dt):dt.clone().iadd(this)},tt.prototype.isub=function(dt){if(dt.negative!==0){dt.negative=0;var mt=this.iadd(dt);return dt.negative=1,mt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(dt),this.negative=1,this._normSign();var yt=this.cmp(dt);if(yt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var vt,Et;yt>0?(vt=this,Et=dt):(vt=dt,Et=this);for(var At=0,Pt=0;Pt>26,this.words[Pt]=mt&67108863;for(;At!==0&&Pt>26,this.words[Pt]=mt&67108863;if(At===0&&Pt>>26,Bt=xt&67108863,Dt=Math.min(ht,dt.length-1),Ht=Math.max(0,ht-Ct.length+1);Ht<=Dt;Ht++){var tr=ht-Ht|0;vt=Ct.words[tr]|0,Et=dt.words[Ht]|0,At=vt*Et+Bt,$t+=At/67108864|0,Bt=At&67108863}mt.words[ht]=Bt|0,xt=$t|0}return xt!==0?mt.words[ht]=xt|0:mt.length--,mt.strip()}var It=function(dt,mt,yt){var vt=dt.words,Et=mt.words,At=yt.words,Pt=0,xt,ht,$t,Bt=vt[0]|0,Dt=Bt&8191,Ht=Bt>>>13,tr=vt[1]|0,Xt=tr&8191,Ut=tr>>>13,qt=vt[2]|0,Gt=qt&8191,Zt=qt>>>13,Yt=vt[3]|0,Kt=Yt&8191,ar=Yt>>>13,gr=vt[4]|0,cr=gr&8191,ur=gr>>>13,Pr=vt[5]|0,br=Pr&8191,dr=Pr>>>13,Kr=vt[6]|0,xr=Kr&8191,Sr=Kr>>>13,Zr=vt[7]|0,$r=Zr&8191,Mr=Zr>>>13,Xr=vt[8]|0,Qt=Xr&8191,zt=Xr>>>13,Wt=vt[9]|0,nr=Wt&8191,fr=Wt>>>13,Er=Et[0]|0,pr=Er&8191,vr=Er>>>13,Jr=Et[1]|0,wr=Jr&8191,Ar=Jr>>>13,Yr=Et[2]|0,Cr=Yr&8191,Or=Yr>>>13,Qr=Et[3]|0,_r=Qr&8191,Dr=Qr>>>13,r0=Et[4]|0,Tr=r0&8191,Lr=r0>>>13,n0=Et[5]|0,Rr=n0&8191,Fr=n0>>>13,i0=Et[6]|0,Br=i0&8191,jr=i0>>>13,a0=Et[7]|0,kr=a0&8191,Ur=a0>>>13,s0=Et[8]|0,Ir=s0&8191,Hr=s0>>>13,o0=Et[9]|0,Nr=o0&8191,qr=o0>>>13;yt.negative=dt.negative^mt.negative,yt.length=19,xt=Math.imul(Dt,pr),ht=Math.imul(Dt,vr),ht=ht+Math.imul(Ht,pr)|0,$t=Math.imul(Ht,vr);var e0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(e0>>>26)|0,e0&=67108863,xt=Math.imul(Xt,pr),ht=Math.imul(Xt,vr),ht=ht+Math.imul(Ut,pr)|0,$t=Math.imul(Ut,vr),xt=xt+Math.imul(Dt,wr)|0,ht=ht+Math.imul(Dt,Ar)|0,ht=ht+Math.imul(Ht,wr)|0,$t=$t+Math.imul(Ht,Ar)|0;var t0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(t0>>>26)|0,t0&=67108863,xt=Math.imul(Gt,pr),ht=Math.imul(Gt,vr),ht=ht+Math.imul(Zt,pr)|0,$t=Math.imul(Zt,vr),xt=xt+Math.imul(Xt,wr)|0,ht=ht+Math.imul(Xt,Ar)|0,ht=ht+Math.imul(Ut,wr)|0,$t=$t+Math.imul(Ut,Ar)|0,xt=xt+Math.imul(Dt,Cr)|0,ht=ht+Math.imul(Dt,Or)|0,ht=ht+Math.imul(Ht,Cr)|0,$t=$t+Math.imul(Ht,Or)|0;var f0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(f0>>>26)|0,f0&=67108863,xt=Math.imul(Kt,pr),ht=Math.imul(Kt,vr),ht=ht+Math.imul(ar,pr)|0,$t=Math.imul(ar,vr),xt=xt+Math.imul(Gt,wr)|0,ht=ht+Math.imul(Gt,Ar)|0,ht=ht+Math.imul(Zt,wr)|0,$t=$t+Math.imul(Zt,Ar)|0,xt=xt+Math.imul(Xt,Cr)|0,ht=ht+Math.imul(Xt,Or)|0,ht=ht+Math.imul(Ut,Cr)|0,$t=$t+Math.imul(Ut,Or)|0,xt=xt+Math.imul(Dt,_r)|0,ht=ht+Math.imul(Dt,Dr)|0,ht=ht+Math.imul(Ht,_r)|0,$t=$t+Math.imul(Ht,Dr)|0;var c0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(c0>>>26)|0,c0&=67108863,xt=Math.imul(cr,pr),ht=Math.imul(cr,vr),ht=ht+Math.imul(ur,pr)|0,$t=Math.imul(ur,vr),xt=xt+Math.imul(Kt,wr)|0,ht=ht+Math.imul(Kt,Ar)|0,ht=ht+Math.imul(ar,wr)|0,$t=$t+Math.imul(ar,Ar)|0,xt=xt+Math.imul(Gt,Cr)|0,ht=ht+Math.imul(Gt,Or)|0,ht=ht+Math.imul(Zt,Cr)|0,$t=$t+Math.imul(Zt,Or)|0,xt=xt+Math.imul(Xt,_r)|0,ht=ht+Math.imul(Xt,Dr)|0,ht=ht+Math.imul(Ut,_r)|0,$t=$t+Math.imul(Ut,Dr)|0,xt=xt+Math.imul(Dt,Tr)|0,ht=ht+Math.imul(Dt,Lr)|0,ht=ht+Math.imul(Ht,Tr)|0,$t=$t+Math.imul(Ht,Lr)|0;var l0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(l0>>>26)|0,l0&=67108863,xt=Math.imul(br,pr),ht=Math.imul(br,vr),ht=ht+Math.imul(dr,pr)|0,$t=Math.imul(dr,vr),xt=xt+Math.imul(cr,wr)|0,ht=ht+Math.imul(cr,Ar)|0,ht=ht+Math.imul(ur,wr)|0,$t=$t+Math.imul(ur,Ar)|0,xt=xt+Math.imul(Kt,Cr)|0,ht=ht+Math.imul(Kt,Or)|0,ht=ht+Math.imul(ar,Cr)|0,$t=$t+Math.imul(ar,Or)|0,xt=xt+Math.imul(Gt,_r)|0,ht=ht+Math.imul(Gt,Dr)|0,ht=ht+Math.imul(Zt,_r)|0,$t=$t+Math.imul(Zt,Dr)|0,xt=xt+Math.imul(Xt,Tr)|0,ht=ht+Math.imul(Xt,Lr)|0,ht=ht+Math.imul(Ut,Tr)|0,$t=$t+Math.imul(Ut,Lr)|0,xt=xt+Math.imul(Dt,Rr)|0,ht=ht+Math.imul(Dt,Fr)|0,ht=ht+Math.imul(Ht,Rr)|0,$t=$t+Math.imul(Ht,Fr)|0;var u0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(u0>>>26)|0,u0&=67108863,xt=Math.imul(xr,pr),ht=Math.imul(xr,vr),ht=ht+Math.imul(Sr,pr)|0,$t=Math.imul(Sr,vr),xt=xt+Math.imul(br,wr)|0,ht=ht+Math.imul(br,Ar)|0,ht=ht+Math.imul(dr,wr)|0,$t=$t+Math.imul(dr,Ar)|0,xt=xt+Math.imul(cr,Cr)|0,ht=ht+Math.imul(cr,Or)|0,ht=ht+Math.imul(ur,Cr)|0,$t=$t+Math.imul(ur,Or)|0,xt=xt+Math.imul(Kt,_r)|0,ht=ht+Math.imul(Kt,Dr)|0,ht=ht+Math.imul(ar,_r)|0,$t=$t+Math.imul(ar,Dr)|0,xt=xt+Math.imul(Gt,Tr)|0,ht=ht+Math.imul(Gt,Lr)|0,ht=ht+Math.imul(Zt,Tr)|0,$t=$t+Math.imul(Zt,Lr)|0,xt=xt+Math.imul(Xt,Rr)|0,ht=ht+Math.imul(Xt,Fr)|0,ht=ht+Math.imul(Ut,Rr)|0,$t=$t+Math.imul(Ut,Fr)|0,xt=xt+Math.imul(Dt,Br)|0,ht=ht+Math.imul(Dt,jr)|0,ht=ht+Math.imul(Ht,Br)|0,$t=$t+Math.imul(Ht,jr)|0;var d0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(d0>>>26)|0,d0&=67108863,xt=Math.imul($r,pr),ht=Math.imul($r,vr),ht=ht+Math.imul(Mr,pr)|0,$t=Math.imul(Mr,vr),xt=xt+Math.imul(xr,wr)|0,ht=ht+Math.imul(xr,Ar)|0,ht=ht+Math.imul(Sr,wr)|0,$t=$t+Math.imul(Sr,Ar)|0,xt=xt+Math.imul(br,Cr)|0,ht=ht+Math.imul(br,Or)|0,ht=ht+Math.imul(dr,Cr)|0,$t=$t+Math.imul(dr,Or)|0,xt=xt+Math.imul(cr,_r)|0,ht=ht+Math.imul(cr,Dr)|0,ht=ht+Math.imul(ur,_r)|0,$t=$t+Math.imul(ur,Dr)|0,xt=xt+Math.imul(Kt,Tr)|0,ht=ht+Math.imul(Kt,Lr)|0,ht=ht+Math.imul(ar,Tr)|0,$t=$t+Math.imul(ar,Lr)|0,xt=xt+Math.imul(Gt,Rr)|0,ht=ht+Math.imul(Gt,Fr)|0,ht=ht+Math.imul(Zt,Rr)|0,$t=$t+Math.imul(Zt,Fr)|0,xt=xt+Math.imul(Xt,Br)|0,ht=ht+Math.imul(Xt,jr)|0,ht=ht+Math.imul(Ut,Br)|0,$t=$t+Math.imul(Ut,jr)|0,xt=xt+Math.imul(Dt,kr)|0,ht=ht+Math.imul(Dt,Ur)|0,ht=ht+Math.imul(Ht,kr)|0,$t=$t+Math.imul(Ht,Ur)|0;var h0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(h0>>>26)|0,h0&=67108863,xt=Math.imul(Qt,pr),ht=Math.imul(Qt,vr),ht=ht+Math.imul(zt,pr)|0,$t=Math.imul(zt,vr),xt=xt+Math.imul($r,wr)|0,ht=ht+Math.imul($r,Ar)|0,ht=ht+Math.imul(Mr,wr)|0,$t=$t+Math.imul(Mr,Ar)|0,xt=xt+Math.imul(xr,Cr)|0,ht=ht+Math.imul(xr,Or)|0,ht=ht+Math.imul(Sr,Cr)|0,$t=$t+Math.imul(Sr,Or)|0,xt=xt+Math.imul(br,_r)|0,ht=ht+Math.imul(br,Dr)|0,ht=ht+Math.imul(dr,_r)|0,$t=$t+Math.imul(dr,Dr)|0,xt=xt+Math.imul(cr,Tr)|0,ht=ht+Math.imul(cr,Lr)|0,ht=ht+Math.imul(ur,Tr)|0,$t=$t+Math.imul(ur,Lr)|0,xt=xt+Math.imul(Kt,Rr)|0,ht=ht+Math.imul(Kt,Fr)|0,ht=ht+Math.imul(ar,Rr)|0,$t=$t+Math.imul(ar,Fr)|0,xt=xt+Math.imul(Gt,Br)|0,ht=ht+Math.imul(Gt,jr)|0,ht=ht+Math.imul(Zt,Br)|0,$t=$t+Math.imul(Zt,jr)|0,xt=xt+Math.imul(Xt,kr)|0,ht=ht+Math.imul(Xt,Ur)|0,ht=ht+Math.imul(Ut,kr)|0,$t=$t+Math.imul(Ut,Ur)|0,xt=xt+Math.imul(Dt,Ir)|0,ht=ht+Math.imul(Dt,Hr)|0,ht=ht+Math.imul(Ht,Ir)|0,$t=$t+Math.imul(Ht,Hr)|0;var p0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(p0>>>26)|0,p0&=67108863,xt=Math.imul(nr,pr),ht=Math.imul(nr,vr),ht=ht+Math.imul(fr,pr)|0,$t=Math.imul(fr,vr),xt=xt+Math.imul(Qt,wr)|0,ht=ht+Math.imul(Qt,Ar)|0,ht=ht+Math.imul(zt,wr)|0,$t=$t+Math.imul(zt,Ar)|0,xt=xt+Math.imul($r,Cr)|0,ht=ht+Math.imul($r,Or)|0,ht=ht+Math.imul(Mr,Cr)|0,$t=$t+Math.imul(Mr,Or)|0,xt=xt+Math.imul(xr,_r)|0,ht=ht+Math.imul(xr,Dr)|0,ht=ht+Math.imul(Sr,_r)|0,$t=$t+Math.imul(Sr,Dr)|0,xt=xt+Math.imul(br,Tr)|0,ht=ht+Math.imul(br,Lr)|0,ht=ht+Math.imul(dr,Tr)|0,$t=$t+Math.imul(dr,Lr)|0,xt=xt+Math.imul(cr,Rr)|0,ht=ht+Math.imul(cr,Fr)|0,ht=ht+Math.imul(ur,Rr)|0,$t=$t+Math.imul(ur,Fr)|0,xt=xt+Math.imul(Kt,Br)|0,ht=ht+Math.imul(Kt,jr)|0,ht=ht+Math.imul(ar,Br)|0,$t=$t+Math.imul(ar,jr)|0,xt=xt+Math.imul(Gt,kr)|0,ht=ht+Math.imul(Gt,Ur)|0,ht=ht+Math.imul(Zt,kr)|0,$t=$t+Math.imul(Zt,Ur)|0,xt=xt+Math.imul(Xt,Ir)|0,ht=ht+Math.imul(Xt,Hr)|0,ht=ht+Math.imul(Ut,Ir)|0,$t=$t+Math.imul(Ut,Hr)|0,xt=xt+Math.imul(Dt,Nr)|0,ht=ht+Math.imul(Dt,qr)|0,ht=ht+Math.imul(Ht,Nr)|0,$t=$t+Math.imul(Ht,qr)|0;var b0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(b0>>>26)|0,b0&=67108863,xt=Math.imul(nr,wr),ht=Math.imul(nr,Ar),ht=ht+Math.imul(fr,wr)|0,$t=Math.imul(fr,Ar),xt=xt+Math.imul(Qt,Cr)|0,ht=ht+Math.imul(Qt,Or)|0,ht=ht+Math.imul(zt,Cr)|0,$t=$t+Math.imul(zt,Or)|0,xt=xt+Math.imul($r,_r)|0,ht=ht+Math.imul($r,Dr)|0,ht=ht+Math.imul(Mr,_r)|0,$t=$t+Math.imul(Mr,Dr)|0,xt=xt+Math.imul(xr,Tr)|0,ht=ht+Math.imul(xr,Lr)|0,ht=ht+Math.imul(Sr,Tr)|0,$t=$t+Math.imul(Sr,Lr)|0,xt=xt+Math.imul(br,Rr)|0,ht=ht+Math.imul(br,Fr)|0,ht=ht+Math.imul(dr,Rr)|0,$t=$t+Math.imul(dr,Fr)|0,xt=xt+Math.imul(cr,Br)|0,ht=ht+Math.imul(cr,jr)|0,ht=ht+Math.imul(ur,Br)|0,$t=$t+Math.imul(ur,jr)|0,xt=xt+Math.imul(Kt,kr)|0,ht=ht+Math.imul(Kt,Ur)|0,ht=ht+Math.imul(ar,kr)|0,$t=$t+Math.imul(ar,Ur)|0,xt=xt+Math.imul(Gt,Ir)|0,ht=ht+Math.imul(Gt,Hr)|0,ht=ht+Math.imul(Zt,Ir)|0,$t=$t+Math.imul(Zt,Hr)|0,xt=xt+Math.imul(Xt,Nr)|0,ht=ht+Math.imul(Xt,qr)|0,ht=ht+Math.imul(Ut,Nr)|0,$t=$t+Math.imul(Ut,qr)|0;var m0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(m0>>>26)|0,m0&=67108863,xt=Math.imul(nr,Cr),ht=Math.imul(nr,Or),ht=ht+Math.imul(fr,Cr)|0,$t=Math.imul(fr,Or),xt=xt+Math.imul(Qt,_r)|0,ht=ht+Math.imul(Qt,Dr)|0,ht=ht+Math.imul(zt,_r)|0,$t=$t+Math.imul(zt,Dr)|0,xt=xt+Math.imul($r,Tr)|0,ht=ht+Math.imul($r,Lr)|0,ht=ht+Math.imul(Mr,Tr)|0,$t=$t+Math.imul(Mr,Lr)|0,xt=xt+Math.imul(xr,Rr)|0,ht=ht+Math.imul(xr,Fr)|0,ht=ht+Math.imul(Sr,Rr)|0,$t=$t+Math.imul(Sr,Fr)|0,xt=xt+Math.imul(br,Br)|0,ht=ht+Math.imul(br,jr)|0,ht=ht+Math.imul(dr,Br)|0,$t=$t+Math.imul(dr,jr)|0,xt=xt+Math.imul(cr,kr)|0,ht=ht+Math.imul(cr,Ur)|0,ht=ht+Math.imul(ur,kr)|0,$t=$t+Math.imul(ur,Ur)|0,xt=xt+Math.imul(Kt,Ir)|0,ht=ht+Math.imul(Kt,Hr)|0,ht=ht+Math.imul(ar,Ir)|0,$t=$t+Math.imul(ar,Hr)|0,xt=xt+Math.imul(Gt,Nr)|0,ht=ht+Math.imul(Gt,qr)|0,ht=ht+Math.imul(Zt,Nr)|0,$t=$t+Math.imul(Zt,qr)|0;var g0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(g0>>>26)|0,g0&=67108863,xt=Math.imul(nr,_r),ht=Math.imul(nr,Dr),ht=ht+Math.imul(fr,_r)|0,$t=Math.imul(fr,Dr),xt=xt+Math.imul(Qt,Tr)|0,ht=ht+Math.imul(Qt,Lr)|0,ht=ht+Math.imul(zt,Tr)|0,$t=$t+Math.imul(zt,Lr)|0,xt=xt+Math.imul($r,Rr)|0,ht=ht+Math.imul($r,Fr)|0,ht=ht+Math.imul(Mr,Rr)|0,$t=$t+Math.imul(Mr,Fr)|0,xt=xt+Math.imul(xr,Br)|0,ht=ht+Math.imul(xr,jr)|0,ht=ht+Math.imul(Sr,Br)|0,$t=$t+Math.imul(Sr,jr)|0,xt=xt+Math.imul(br,kr)|0,ht=ht+Math.imul(br,Ur)|0,ht=ht+Math.imul(dr,kr)|0,$t=$t+Math.imul(dr,Ur)|0,xt=xt+Math.imul(cr,Ir)|0,ht=ht+Math.imul(cr,Hr)|0,ht=ht+Math.imul(ur,Ir)|0,$t=$t+Math.imul(ur,Hr)|0,xt=xt+Math.imul(Kt,Nr)|0,ht=ht+Math.imul(Kt,qr)|0,ht=ht+Math.imul(ar,Nr)|0,$t=$t+Math.imul(ar,qr)|0;var y0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(y0>>>26)|0,y0&=67108863,xt=Math.imul(nr,Tr),ht=Math.imul(nr,Lr),ht=ht+Math.imul(fr,Tr)|0,$t=Math.imul(fr,Lr),xt=xt+Math.imul(Qt,Rr)|0,ht=ht+Math.imul(Qt,Fr)|0,ht=ht+Math.imul(zt,Rr)|0,$t=$t+Math.imul(zt,Fr)|0,xt=xt+Math.imul($r,Br)|0,ht=ht+Math.imul($r,jr)|0,ht=ht+Math.imul(Mr,Br)|0,$t=$t+Math.imul(Mr,jr)|0,xt=xt+Math.imul(xr,kr)|0,ht=ht+Math.imul(xr,Ur)|0,ht=ht+Math.imul(Sr,kr)|0,$t=$t+Math.imul(Sr,Ur)|0,xt=xt+Math.imul(br,Ir)|0,ht=ht+Math.imul(br,Hr)|0,ht=ht+Math.imul(dr,Ir)|0,$t=$t+Math.imul(dr,Hr)|0,xt=xt+Math.imul(cr,Nr)|0,ht=ht+Math.imul(cr,qr)|0,ht=ht+Math.imul(ur,Nr)|0,$t=$t+Math.imul(ur,qr)|0;var v0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(v0>>>26)|0,v0&=67108863,xt=Math.imul(nr,Rr),ht=Math.imul(nr,Fr),ht=ht+Math.imul(fr,Rr)|0,$t=Math.imul(fr,Fr),xt=xt+Math.imul(Qt,Br)|0,ht=ht+Math.imul(Qt,jr)|0,ht=ht+Math.imul(zt,Br)|0,$t=$t+Math.imul(zt,jr)|0,xt=xt+Math.imul($r,kr)|0,ht=ht+Math.imul($r,Ur)|0,ht=ht+Math.imul(Mr,kr)|0,$t=$t+Math.imul(Mr,Ur)|0,xt=xt+Math.imul(xr,Ir)|0,ht=ht+Math.imul(xr,Hr)|0,ht=ht+Math.imul(Sr,Ir)|0,$t=$t+Math.imul(Sr,Hr)|0,xt=xt+Math.imul(br,Nr)|0,ht=ht+Math.imul(br,qr)|0,ht=ht+Math.imul(dr,Nr)|0,$t=$t+Math.imul(dr,qr)|0;var w0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(w0>>>26)|0,w0&=67108863,xt=Math.imul(nr,Br),ht=Math.imul(nr,jr),ht=ht+Math.imul(fr,Br)|0,$t=Math.imul(fr,jr),xt=xt+Math.imul(Qt,kr)|0,ht=ht+Math.imul(Qt,Ur)|0,ht=ht+Math.imul(zt,kr)|0,$t=$t+Math.imul(zt,Ur)|0,xt=xt+Math.imul($r,Ir)|0,ht=ht+Math.imul($r,Hr)|0,ht=ht+Math.imul(Mr,Ir)|0,$t=$t+Math.imul(Mr,Hr)|0,xt=xt+Math.imul(xr,Nr)|0,ht=ht+Math.imul(xr,qr)|0,ht=ht+Math.imul(Sr,Nr)|0,$t=$t+Math.imul(Sr,qr)|0;var x0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(x0>>>26)|0,x0&=67108863,xt=Math.imul(nr,kr),ht=Math.imul(nr,Ur),ht=ht+Math.imul(fr,kr)|0,$t=Math.imul(fr,Ur),xt=xt+Math.imul(Qt,Ir)|0,ht=ht+Math.imul(Qt,Hr)|0,ht=ht+Math.imul(zt,Ir)|0,$t=$t+Math.imul(zt,Hr)|0,xt=xt+Math.imul($r,Nr)|0,ht=ht+Math.imul($r,qr)|0,ht=ht+Math.imul(Mr,Nr)|0,$t=$t+Math.imul(Mr,qr)|0;var E0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(E0>>>26)|0,E0&=67108863,xt=Math.imul(nr,Ir),ht=Math.imul(nr,Hr),ht=ht+Math.imul(fr,Ir)|0,$t=Math.imul(fr,Hr),xt=xt+Math.imul(Qt,Nr)|0,ht=ht+Math.imul(Qt,qr)|0,ht=ht+Math.imul(zt,Nr)|0,$t=$t+Math.imul(zt,qr)|0;var $0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+($0>>>26)|0,$0&=67108863,xt=Math.imul(nr,Nr),ht=Math.imul(nr,qr),ht=ht+Math.imul(fr,Nr)|0,$t=Math.imul(fr,qr);var M0=(Pt+xt|0)+((ht&8191)<<13)|0;return Pt=($t+(ht>>>13)|0)+(M0>>>26)|0,M0&=67108863,At[0]=e0,At[1]=t0,At[2]=f0,At[3]=c0,At[4]=l0,At[5]=u0,At[6]=d0,At[7]=h0,At[8]=p0,At[9]=b0,At[10]=m0,At[11]=g0,At[12]=y0,At[13]=v0,At[14]=w0,At[15]=x0,At[16]=E0,At[17]=$0,At[18]=M0,Pt!==0&&(At[19]=Pt,yt.length++),yt};Math.imul||(It=kt);function Lt(Ct,dt,mt){mt.negative=dt.negative^Ct.negative,mt.length=Ct.length+dt.length;for(var yt=0,vt=0,Et=0;Et>>26)|0,vt+=At>>>26,At&=67108863}mt.words[Et]=Pt,yt=At,At=vt}return yt!==0?mt.words[Et]=yt:mt.length--,mt.strip()}function Ot(Ct,dt,mt){var yt=new Nt;return yt.mulp(Ct,dt,mt)}tt.prototype.mulTo=function(dt,mt){var yt,vt=this.length+dt.length;return this.length===10&&dt.length===10?yt=It(this,dt,mt):vt<63?yt=kt(this,dt,mt):vt<1024?yt=Lt(this,dt,mt):yt=Ot(this,dt,mt),yt};function Nt(Ct,dt){this.x=Ct,this.y=dt}Nt.prototype.makeRBT=function(dt){for(var mt=new Array(dt),yt=tt.prototype._countBits(dt)-1,vt=0;vt>=1;return vt},Nt.prototype.permute=function(dt,mt,yt,vt,Et,At){for(var Pt=0;Pt>>1)Et++;return 1<>>13,yt[2*At+1]=Et&8191,Et=Et>>>13;for(At=2*mt;At>=26,mt+=vt/67108864|0,mt+=Et>>>26,this.words[yt]=Et&67108863}return mt!==0&&(this.words[yt]=mt,this.length++),this},tt.prototype.muln=function(dt){return this.clone().imuln(dt)},tt.prototype.sqr=function(){return this.mul(this)},tt.prototype.isqr=function(){return this.imul(this.clone())},tt.prototype.pow=function(dt){var mt=Rt(dt);if(mt.length===0)return new tt(1);for(var yt=this,vt=0;vt=0);var mt=dt%26,yt=(dt-mt)/26,vt=67108863>>>26-mt<<26-mt,Et;if(mt!==0){var At=0;for(Et=0;Et>>26-mt}At&&(this.words[Et]=At,this.length++)}if(yt!==0){for(Et=this.length-1;Et>=0;Et--)this.words[Et+yt]=this.words[Et];for(Et=0;Et=0);var vt;mt?vt=(mt-mt%26)/26:vt=0;var Et=dt%26,At=Math.min((dt-Et)/26,this.length),Pt=67108863^67108863>>>Et<At)for(this.length-=At,ht=0;ht=0&&($t!==0||ht>=vt);ht--){var Bt=this.words[ht]|0;this.words[ht]=$t<<26-Et|Bt>>>Et,$t=Bt&Pt}return xt&&$t!==0&&(xt.words[xt.length++]=$t),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},tt.prototype.ishrn=function(dt,mt,yt){return et(this.negative===0),this.iushrn(dt,mt,yt)},tt.prototype.shln=function(dt){return this.clone().ishln(dt)},tt.prototype.ushln=function(dt){return this.clone().iushln(dt)},tt.prototype.shrn=function(dt){return this.clone().ishrn(dt)},tt.prototype.ushrn=function(dt){return this.clone().iushrn(dt)},tt.prototype.testn=function(dt){et(typeof dt=="number"&&dt>=0);var mt=dt%26,yt=(dt-mt)/26,vt=1<=0);var mt=dt%26,yt=(dt-mt)/26;if(et(this.negative===0,"imaskn works only with positive numbers"),this.length<=yt)return this;if(mt!==0&&yt++,this.length=Math.min(yt,this.length),mt!==0){var vt=67108863^67108863>>>mt<=67108864;mt++)this.words[mt]-=67108864,mt===this.length-1?this.words[mt+1]=1:this.words[mt+1]++;return this.length=Math.max(this.length,mt+1),this},tt.prototype.isubn=function(dt){if(et(typeof dt=="number"),et(dt<67108864),dt<0)return this.iaddn(-dt);if(this.negative!==0)return this.negative=0,this.iaddn(dt),this.negative=1,this;if(this.words[0]-=dt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var mt=0;mt>26)-(xt/67108864|0),this.words[Et+yt]=At&67108863}for(;Et>26,this.words[Et+yt]=At&67108863;if(Pt===0)return this.strip();for(et(Pt===-1),Pt=0,Et=0;Et>26,this.words[Et]=At&67108863;return this.negative=1,this.strip()},tt.prototype._wordDiv=function(dt,mt){var yt=this.length-dt.length,vt=this.clone(),Et=dt,At=Et.words[Et.length-1]|0,Pt=this._countBits(At);yt=26-Pt,yt!==0&&(Et=Et.ushln(yt),vt.iushln(yt),At=Et.words[Et.length-1]|0);var xt=vt.length-Et.length,ht;if(mt!=="mod"){ht=new tt(null),ht.length=xt+1,ht.words=new Array(ht.length);for(var $t=0;$t=0;Dt--){var Ht=(vt.words[Et.length+Dt]|0)*67108864+(vt.words[Et.length+Dt-1]|0);for(Ht=Math.min(Ht/At|0,67108863),vt._ishlnsubmul(Et,Ht,Dt);vt.negative!==0;)Ht--,vt.negative=0,vt._ishlnsubmul(Et,1,Dt),vt.isZero()||(vt.negative^=1);ht&&(ht.words[Dt]=Ht)}return ht&&ht.strip(),vt.strip(),mt!=="div"&&yt!==0&&vt.iushrn(yt),{div:ht||null,mod:vt}},tt.prototype.divmod=function(dt,mt,yt){if(et(!dt.isZero()),this.isZero())return{div:new tt(0),mod:new tt(0)};var vt,Et,At;return this.negative!==0&&dt.negative===0?(At=this.neg().divmod(dt,mt),mt!=="mod"&&(vt=At.div.neg()),mt!=="div"&&(Et=At.mod.neg(),yt&&Et.negative!==0&&Et.iadd(dt)),{div:vt,mod:Et}):this.negative===0&&dt.negative!==0?(At=this.divmod(dt.neg(),mt),mt!=="mod"&&(vt=At.div.neg()),{div:vt,mod:At.mod}):this.negative&dt.negative?(At=this.neg().divmod(dt.neg(),mt),mt!=="div"&&(Et=At.mod.neg(),yt&&Et.negative!==0&&Et.isub(dt)),{div:At.div,mod:Et}):dt.length>this.length||this.cmp(dt)<0?{div:new tt(0),mod:this}:dt.length===1?mt==="div"?{div:this.divn(dt.words[0]),mod:null}:mt==="mod"?{div:null,mod:new tt(this.modn(dt.words[0]))}:{div:this.divn(dt.words[0]),mod:new tt(this.modn(dt.words[0]))}:this._wordDiv(dt,mt)},tt.prototype.div=function(dt){return this.divmod(dt,"div",!1).div},tt.prototype.mod=function(dt){return this.divmod(dt,"mod",!1).mod},tt.prototype.umod=function(dt){return this.divmod(dt,"mod",!0).mod},tt.prototype.divRound=function(dt){var mt=this.divmod(dt);if(mt.mod.isZero())return mt.div;var yt=mt.div.negative!==0?mt.mod.isub(dt):mt.mod,vt=dt.ushrn(1),Et=dt.andln(1),At=yt.cmp(vt);return At<0||Et===1&&At===0?mt.div:mt.div.negative!==0?mt.div.isubn(1):mt.div.iaddn(1)},tt.prototype.modn=function(dt){et(dt<=67108863);for(var mt=(1<<26)%dt,yt=0,vt=this.length-1;vt>=0;vt--)yt=(mt*yt+(this.words[vt]|0))%dt;return yt},tt.prototype.idivn=function(dt){et(dt<=67108863);for(var mt=0,yt=this.length-1;yt>=0;yt--){var vt=(this.words[yt]|0)+mt*67108864;this.words[yt]=vt/dt|0,mt=vt%dt}return this.strip()},tt.prototype.divn=function(dt){return this.clone().idivn(dt)},tt.prototype.egcd=function(dt){et(dt.negative===0),et(!dt.isZero());var mt=this,yt=dt.clone();mt.negative!==0?mt=mt.umod(dt):mt=mt.clone();for(var vt=new tt(1),Et=new tt(0),At=new tt(0),Pt=new tt(1),xt=0;mt.isEven()&&yt.isEven();)mt.iushrn(1),yt.iushrn(1),++xt;for(var ht=yt.clone(),$t=mt.clone();!mt.isZero();){for(var Bt=0,Dt=1;!(mt.words[0]&Dt)&&Bt<26;++Bt,Dt<<=1);if(Bt>0)for(mt.iushrn(Bt);Bt-- >0;)(vt.isOdd()||Et.isOdd())&&(vt.iadd(ht),Et.isub($t)),vt.iushrn(1),Et.iushrn(1);for(var Ht=0,tr=1;!(yt.words[0]&tr)&&Ht<26;++Ht,tr<<=1);if(Ht>0)for(yt.iushrn(Ht);Ht-- >0;)(At.isOdd()||Pt.isOdd())&&(At.iadd(ht),Pt.isub($t)),At.iushrn(1),Pt.iushrn(1);mt.cmp(yt)>=0?(mt.isub(yt),vt.isub(At),Et.isub(Pt)):(yt.isub(mt),At.isub(vt),Pt.isub(Et))}return{a:At,b:Pt,gcd:yt.iushln(xt)}},tt.prototype._invmp=function(dt){et(dt.negative===0),et(!dt.isZero());var mt=this,yt=dt.clone();mt.negative!==0?mt=mt.umod(dt):mt=mt.clone();for(var vt=new tt(1),Et=new tt(0),At=yt.clone();mt.cmpn(1)>0&&yt.cmpn(1)>0;){for(var Pt=0,xt=1;!(mt.words[0]&xt)&&Pt<26;++Pt,xt<<=1);if(Pt>0)for(mt.iushrn(Pt);Pt-- >0;)vt.isOdd()&&vt.iadd(At),vt.iushrn(1);for(var ht=0,$t=1;!(yt.words[0]&$t)&&ht<26;++ht,$t<<=1);if(ht>0)for(yt.iushrn(ht);ht-- >0;)Et.isOdd()&&Et.iadd(At),Et.iushrn(1);mt.cmp(yt)>=0?(mt.isub(yt),vt.isub(Et)):(yt.isub(mt),Et.isub(vt))}var Bt;return mt.cmpn(1)===0?Bt=vt:Bt=Et,Bt.cmpn(0)<0&&Bt.iadd(dt),Bt},tt.prototype.gcd=function(dt){if(this.isZero())return dt.abs();if(dt.isZero())return this.abs();var mt=this.clone(),yt=dt.clone();mt.negative=0,yt.negative=0;for(var vt=0;mt.isEven()&&yt.isEven();vt++)mt.iushrn(1),yt.iushrn(1);do{for(;mt.isEven();)mt.iushrn(1);for(;yt.isEven();)yt.iushrn(1);var Et=mt.cmp(yt);if(Et<0){var At=mt;mt=yt,yt=At}else if(Et===0||yt.cmpn(1)===0)break;mt.isub(yt)}while(!0);return yt.iushln(vt)},tt.prototype.invm=function(dt){return this.egcd(dt).a.umod(dt)},tt.prototype.isEven=function(){return(this.words[0]&1)===0},tt.prototype.isOdd=function(){return(this.words[0]&1)===1},tt.prototype.andln=function(dt){return this.words[0]&dt},tt.prototype.bincn=function(dt){et(typeof dt=="number");var mt=dt%26,yt=(dt-mt)/26,vt=1<>>26,Pt&=67108863,this.words[At]=Pt}return Et!==0&&(this.words[At]=Et,this.length++),this},tt.prototype.isZero=function(){return this.length===1&&this.words[0]===0},tt.prototype.cmpn=function(dt){var mt=dt<0;if(this.negative!==0&&!mt)return-1;if(this.negative===0&&mt)return 1;this.strip();var yt;if(this.length>1)yt=1;else{mt&&(dt=-dt),et(dt<=67108863,"Number is too big");var vt=this.words[0]|0;yt=vt===dt?0:vtdt.length)return 1;if(this.length=0;yt--){var vt=this.words[yt]|0,Et=dt.words[yt]|0;if(vt!==Et){vtEt&&(mt=1);break}}return mt},tt.prototype.gtn=function(dt){return this.cmpn(dt)===1},tt.prototype.gt=function(dt){return this.cmp(dt)===1},tt.prototype.gten=function(dt){return this.cmpn(dt)>=0},tt.prototype.gte=function(dt){return this.cmp(dt)>=0},tt.prototype.ltn=function(dt){return this.cmpn(dt)===-1},tt.prototype.lt=function(dt){return this.cmp(dt)===-1},tt.prototype.lten=function(dt){return this.cmpn(dt)<=0},tt.prototype.lte=function(dt){return this.cmp(dt)<=0},tt.prototype.eqn=function(dt){return this.cmpn(dt)===0},tt.prototype.eq=function(dt){return this.cmp(dt)===0},tt.red=function(dt){return new er(dt)},tt.prototype.toRed=function(dt){return et(!this.red,"Already a number in reduction context"),et(this.negative===0,"red works only with positives"),dt.convertTo(this)._forceRed(dt)},tt.prototype.fromRed=function(){return et(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},tt.prototype._forceRed=function(dt){return this.red=dt,this},tt.prototype.forceRed=function(dt){return et(!this.red,"Already a number in reduction context"),this._forceRed(dt)},tt.prototype.redAdd=function(dt){return et(this.red,"redAdd works only with red numbers"),this.red.add(this,dt)},tt.prototype.redIAdd=function(dt){return et(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,dt)},tt.prototype.redSub=function(dt){return et(this.red,"redSub works only with red numbers"),this.red.sub(this,dt)},tt.prototype.redISub=function(dt){return et(this.red,"redISub works only with red numbers"),this.red.isub(this,dt)},tt.prototype.redShl=function(dt){return et(this.red,"redShl works only with red numbers"),this.red.shl(this,dt)},tt.prototype.redMul=function(dt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,dt),this.red.mul(this,dt)},tt.prototype.redIMul=function(dt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,dt),this.red.imul(this,dt)},tt.prototype.redSqr=function(){return et(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},tt.prototype.redISqr=function(){return et(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},tt.prototype.redSqrt=function(){return et(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},tt.prototype.redInvm=function(){return et(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},tt.prototype.redNeg=function(){return et(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},tt.prototype.redPow=function(dt){return et(this.red&&!dt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,dt)};var Ft={k256:null,p224:null,p192:null,p25519:null};function jt(Ct,dt){this.name=Ct,this.p=new tt(dt,16),this.n=this.p.bitLength(),this.k=new tt(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}jt.prototype._tmp=function(){var dt=new tt(null);return dt.words=new Array(Math.ceil(this.n/13)),dt},jt.prototype.ireduce=function(dt){var mt=dt,yt;do this.split(mt,this.tmp),mt=this.imulK(mt),mt=mt.iadd(this.tmp),yt=mt.bitLength();while(yt>this.n);var vt=yt0?mt.isub(this.p):mt.strip!==void 0?mt.strip():mt._strip(),mt},jt.prototype.split=function(dt,mt){dt.iushrn(this.n,0,mt)},jt.prototype.imulK=function(dt){return dt.imul(this.k)};function Vt(){jt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}nt(Vt,jt),Vt.prototype.split=function(dt,mt){for(var yt=4194303,vt=Math.min(dt.length,9),Et=0;Et>>22,At=Pt}At>>>=22,dt.words[Et-10]=At,At===0&&dt.length>10?dt.length-=10:dt.length-=9},Vt.prototype.imulK=function(dt){dt.words[dt.length]=0,dt.words[dt.length+1]=0,dt.length+=2;for(var mt=0,yt=0;yt>>=26,dt.words[yt]=Et,mt=vt}return mt!==0&&(dt.words[dt.length++]=mt),dt},tt._prime=function(dt){if(Ft[dt])return Ft[dt];var mt;if(dt==="k256")mt=new Vt;else if(dt==="p224")mt=new Jt;else if(dt==="p192")mt=new ir;else if(dt==="p25519")mt=new rr;else throw new Error("Unknown prime "+dt);return Ft[dt]=mt,mt};function er(Ct){if(typeof Ct=="string"){var dt=tt._prime(Ct);this.m=dt.p,this.prime=dt}else et(Ct.gtn(1),"modulus must be greater than 1"),this.m=Ct,this.prime=null}er.prototype._verify1=function(dt){et(dt.negative===0,"red works only with positives"),et(dt.red,"red works only with red numbers")},er.prototype._verify2=function(dt,mt){et((dt.negative|mt.negative)===0,"red works only with positives"),et(dt.red&&dt.red===mt.red,"red works only with red numbers")},er.prototype.imod=function(dt){return this.prime?this.prime.ireduce(dt)._forceRed(this):dt.umod(this.m)._forceRed(this)},er.prototype.neg=function(dt){return dt.isZero()?dt.clone():this.m.sub(dt)._forceRed(this)},er.prototype.add=function(dt,mt){this._verify2(dt,mt);var yt=dt.add(mt);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt._forceRed(this)},er.prototype.iadd=function(dt,mt){this._verify2(dt,mt);var yt=dt.iadd(mt);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt},er.prototype.sub=function(dt,mt){this._verify2(dt,mt);var yt=dt.sub(mt);return yt.cmpn(0)<0&&yt.iadd(this.m),yt._forceRed(this)},er.prototype.isub=function(dt,mt){this._verify2(dt,mt);var yt=dt.isub(mt);return yt.cmpn(0)<0&&yt.iadd(this.m),yt},er.prototype.shl=function(dt,mt){return this._verify1(dt),this.imod(dt.ushln(mt))},er.prototype.imul=function(dt,mt){return this._verify2(dt,mt),this.imod(dt.imul(mt))},er.prototype.mul=function(dt,mt){return this._verify2(dt,mt),this.imod(dt.mul(mt))},er.prototype.isqr=function(dt){return this.imul(dt,dt.clone())},er.prototype.sqr=function(dt){return this.mul(dt,dt)},er.prototype.sqrt=function(dt){if(dt.isZero())return dt.clone();var mt=this.m.andln(3);if(et(mt%2===1),mt===3){var yt=this.m.add(new tt(1)).iushrn(2);return this.pow(dt,yt)}for(var vt=this.m.subn(1),Et=0;!vt.isZero()&&vt.andln(1)===0;)Et++,vt.iushrn(1);et(!vt.isZero());var At=new tt(1).toRed(this),Pt=At.redNeg(),xt=this.m.subn(1).iushrn(1),ht=this.m.bitLength();for(ht=new tt(2*ht*ht).toRed(this);this.pow(ht,xt).cmp(Pt)!==0;)ht.redIAdd(Pt);for(var $t=this.pow(ht,vt),Bt=this.pow(dt,vt.addn(1).iushrn(1)),Dt=this.pow(dt,vt),Ht=Et;Dt.cmp(At)!==0;){for(var tr=Dt,Xt=0;tr.cmp(At)!==0;Xt++)tr=tr.redSqr();et(Xt=0;Et--){for(var $t=mt.words[Et],Bt=ht-1;Bt>=0;Bt--){var Dt=$t>>Bt&1;if(At!==vt[0]&&(At=this.sqr(At)),Dt===0&&Pt===0){xt=0;continue}Pt<<=1,Pt|=Dt,xt++,!(xt!==yt&&(Et!==0||Bt!==0))&&(At=this.mul(At,vt[Pt]),xt=0,Pt=0)}ht=26}return At},er.prototype.convertTo=function(dt){var mt=dt.umod(this.m);return mt===dt?mt.clone():mt},er.prototype.convertFrom=function(dt){var mt=dt.clone();return mt.red=null,mt},tt.mont=function(dt){return new lr(dt)};function lr(Ct){er.call(this,Ct),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new tt(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)}nt(lr,er),lr.prototype.convertTo=function(dt){return this.imod(dt.ushln(this.shift))},lr.prototype.convertFrom=function(dt){var mt=this.imod(dt.mul(this.rinv));return mt.red=null,mt},lr.prototype.imul=function(dt,mt){if(dt.isZero()||mt.isZero())return dt.words[0]=0,dt.length=1,dt;var yt=dt.imul(mt),vt=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Et=yt.isub(vt).iushrn(this.shift),At=Et;return Et.cmp(this.m)>=0?At=Et.isub(this.m):Et.cmpn(0)<0&&(At=Et.iadd(this.m)),At._forceRed(this)},lr.prototype.mul=function(dt,mt){if(dt.isZero()||mt.isZero())return new tt(0)._forceRed(this);var yt=dt.mul(mt),vt=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Et=yt.isub(vt).iushrn(this.shift),At=Et;return Et.cmp(this.m)>=0?At=Et.isub(this.m):Et.cmpn(0)<0&&(At=Et.iadd(this.m)),At._forceRed(this)},lr.prototype.invm=function(dt){var mt=this.imod(dt._invmp(this.m).mul(this.r2));return mt._forceRed(this)}})(c,commonjsGlobal)})(bn$2);var bnExports$2=bn$2.exports;(function(c){var a=c,d=bnExports$2,et=minimalisticAssert,nt=utils$x;a.assert=et,a.toArray=nt.toArray,a.zero2=nt.zero2,a.toHex=nt.toHex,a.encode=nt.encode;function tt(Mt,_t,Tt){var Rt=new Array(Math.max(Mt.bitLength(),Tt)+1);Rt.fill(0);for(var kt=1<<_t+1,It=Mt.clone(),Lt=0;Lt(kt>>1)-1?Ot=(kt>>1)-Nt:Ot=Nt,It.isubn(Ot)):Ot=0,Rt[Lt]=Ot,It.iushrn(1)}return Rt}a.getNAF=tt;function bt(Mt,_t){var Tt=[[],[]];Mt=Mt.clone(),_t=_t.clone();for(var Rt=0,kt=0,It;Mt.cmpn(-Rt)>0||_t.cmpn(-kt)>0;){var Lt=Mt.andln(3)+Rt&3,Ot=_t.andln(3)+kt&3;Lt===3&&(Lt=-1),Ot===3&&(Ot=-1);var Nt;Lt&1?(It=Mt.andln(7)+Rt&7,(It===3||It===5)&&Ot===2?Nt=-Lt:Nt=Lt):Nt=0,Tt[0].push(Nt);var Ft;Ot&1?(It=_t.andln(7)+kt&7,(It===3||It===5)&&Lt===2?Ft=-Ot:Ft=Ot):Ft=0,Tt[1].push(Ft),2*Rt===Nt+1&&(Rt=1-Rt),2*kt===Ft+1&&(kt=1-kt),Mt.iushrn(1),_t.iushrn(1)}return Tt}a.getJSF=bt;function gt(Mt,_t,Tt){var Rt="_"+_t;Mt.prototype[_t]=function(){return this[Rt]!==void 0?this[Rt]:this[Rt]=Tt.call(this)}}a.cachedProperty=gt;function wt(Mt){return typeof Mt=="string"?a.toArray(Mt,"hex"):Mt}a.parseBytes=wt;function St(Mt){return new d(Mt,"hex","le")}a.intFromLE=St})(utils$c);var curve={},BN$9=bnExports$2,utils$b=utils$c,getNAF=utils$b.getNAF,getJSF=utils$b.getJSF,assert$7=utils$b.assert;function BaseCurve(c,a){this.type=c,this.p=new BN$9(a.p,16),this.red=a.prime?BN$9.red(a.prime):BN$9.mont(this.p),this.zero=new BN$9(0).toRed(this.red),this.one=new BN$9(1).toRed(this.red),this.two=new BN$9(2).toRed(this.red),this.n=a.n&&new BN$9(a.n,16),this.g=a.g&&this.pointFromJSON(a.g,a.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 d=this.n&&this.p.div(this.n);!d||d.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var base$1=BaseCurve;BaseCurve.prototype.point=function c(){throw new Error("Not implemented")};BaseCurve.prototype.validate=function c(){throw new Error("Not implemented")};BaseCurve.prototype._fixedNafMul=function c(a,d){assert$7(a.precomputed);var et=a._getDoubles(),nt=getNAF(d,1,this._bitLength),tt=(1<=gt;St--)wt=(wt<<1)+nt[St];bt.push(wt)}for(var Mt=this.jpoint(null,null,null),_t=this.jpoint(null,null,null),Tt=tt;Tt>0;Tt--){for(gt=0;gt=0;wt--){for(var St=0;wt>=0&&bt[wt]===0;wt--)St++;if(wt>=0&&St++,gt=gt.dblp(St),wt<0)break;var Mt=bt[wt];assert$7(Mt!==0),a.type==="affine"?Mt>0?gt=gt.mixedAdd(tt[Mt-1>>1]):gt=gt.mixedAdd(tt[-Mt-1>>1].neg()):Mt>0?gt=gt.add(tt[Mt-1>>1]):gt=gt.add(tt[-Mt-1>>1].neg())}return a.type==="affine"?gt.toP():gt};BaseCurve.prototype._wnafMulAdd=function c(a,d,et,nt,tt){var bt=this._wnafT1,gt=this._wnafT2,wt=this._wnafT3,St=0,Mt,_t,Tt;for(Mt=0;Mt=1;Mt-=2){var kt=Mt-1,It=Mt;if(bt[kt]!==1||bt[It]!==1){wt[kt]=getNAF(et[kt],bt[kt],this._bitLength),wt[It]=getNAF(et[It],bt[It],this._bitLength),St=Math.max(wt[kt].length,St),St=Math.max(wt[It].length,St);continue}var Lt=[d[kt],null,null,d[It]];d[kt].y.cmp(d[It].y)===0?(Lt[1]=d[kt].add(d[It]),Lt[2]=d[kt].toJ().mixedAdd(d[It].neg())):d[kt].y.cmp(d[It].y.redNeg())===0?(Lt[1]=d[kt].toJ().mixedAdd(d[It]),Lt[2]=d[kt].add(d[It].neg())):(Lt[1]=d[kt].toJ().mixedAdd(d[It]),Lt[2]=d[kt].toJ().mixedAdd(d[It].neg()));var Ot=[-3,-1,-5,-7,0,7,5,1,3],Nt=getJSF(et[kt],et[It]);for(St=Math.max(Nt[0].length,St),wt[kt]=new Array(St),wt[It]=new Array(St),_t=0;_t=0;Mt--){for(var ir=0;Mt>=0;){var rr=!0;for(_t=0;_t=0&&ir++,Vt=Vt.dblp(ir),Mt<0)break;for(_t=0;_t0?Tt=gt[_t][er-1>>1]:er<0&&(Tt=gt[_t][-er-1>>1].neg()),Tt.type==="affine"?Vt=Vt.mixedAdd(Tt):Vt=Vt.add(Tt))}}for(Mt=0;Mt=Math.ceil((a.bitLength()+1)/d.step):!1};BasePoint.prototype._getDoubles=function c(a,d){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var et=[this],nt=this,tt=0;tt=0&&(Rt=St,kt=Mt),_t.negative&&(_t=_t.neg(),Tt=Tt.neg()),Rt.negative&&(Rt=Rt.neg(),kt=kt.neg()),[{a:_t,b:Tt},{a:Rt,b:kt}]};ShortCurve.prototype._endoSplit=function c(a){var d=this.endo.basis,et=d[0],nt=d[1],tt=nt.b.mul(a).divRound(this.n),bt=et.b.neg().mul(a).divRound(this.n),gt=tt.mul(et.a),wt=bt.mul(nt.a),St=tt.mul(et.b),Mt=bt.mul(nt.b),_t=a.sub(gt).sub(wt),Tt=St.add(Mt).neg();return{k1:_t,k2:Tt}};ShortCurve.prototype.pointFromX=function c(a,d){a=new BN$8(a,16),a.red||(a=a.toRed(this.red));var et=a.redSqr().redMul(a).redIAdd(a.redMul(this.a)).redIAdd(this.b),nt=et.redSqrt();if(nt.redSqr().redSub(et).cmp(this.zero)!==0)throw new Error("invalid point");var tt=nt.fromRed().isOdd();return(d&&!tt||!d&&tt)&&(nt=nt.redNeg()),this.point(a,nt)};ShortCurve.prototype.validate=function c(a){if(a.inf)return!0;var d=a.x,et=a.y,nt=this.a.redMul(d),tt=d.redSqr().redMul(d).redIAdd(nt).redIAdd(this.b);return et.redSqr().redISub(tt).cmpn(0)===0};ShortCurve.prototype._endoWnafMulAdd=function c(a,d,et){for(var nt=this._endoWnafT1,tt=this._endoWnafT2,bt=0;bt":""};Point$3.prototype.isInfinity=function c(){return this.inf};Point$3.prototype.add=function c(a){if(this.inf)return a;if(a.inf)return this;if(this.eq(a))return this.dbl();if(this.neg().eq(a))return this.curve.point(null,null);if(this.x.cmp(a.x)===0)return this.curve.point(null,null);var d=this.y.redSub(a.y);d.cmpn(0)!==0&&(d=d.redMul(this.x.redSub(a.x).redInvm()));var et=d.redSqr().redISub(this.x).redISub(a.x),nt=d.redMul(this.x.redSub(et)).redISub(this.y);return this.curve.point(et,nt)};Point$3.prototype.dbl=function c(){if(this.inf)return this;var a=this.y.redAdd(this.y);if(a.cmpn(0)===0)return this.curve.point(null,null);var d=this.curve.a,et=this.x.redSqr(),nt=a.redInvm(),tt=et.redAdd(et).redIAdd(et).redIAdd(d).redMul(nt),bt=tt.redSqr().redISub(this.x.redAdd(this.x)),gt=tt.redMul(this.x.redSub(bt)).redISub(this.y);return this.curve.point(bt,gt)};Point$3.prototype.getX=function c(){return this.x.fromRed()};Point$3.prototype.getY=function c(){return this.y.fromRed()};Point$3.prototype.mul=function c(a){return a=new BN$8(a,16),this.isInfinity()?this:this._hasDoubles(a)?this.curve._fixedNafMul(this,a):this.curve.endo?this.curve._endoWnafMulAdd([this],[a]):this.curve._wnafMul(this,a)};Point$3.prototype.mulAdd=function c(a,d,et){var nt=[this,d],tt=[a,et];return this.curve.endo?this.curve._endoWnafMulAdd(nt,tt):this.curve._wnafMulAdd(1,nt,tt,2)};Point$3.prototype.jmulAdd=function c(a,d,et){var nt=[this,d],tt=[a,et];return this.curve.endo?this.curve._endoWnafMulAdd(nt,tt,!0):this.curve._wnafMulAdd(1,nt,tt,2,!0)};Point$3.prototype.eq=function c(a){return this===a||this.inf===a.inf&&(this.inf||this.x.cmp(a.x)===0&&this.y.cmp(a.y)===0)};Point$3.prototype.neg=function c(a){if(this.inf)return this;var d=this.curve.point(this.x,this.y.redNeg());if(a&&this.precomputed){var et=this.precomputed,nt=function(tt){return tt.neg()};d.precomputed={naf:et.naf&&{wnd:et.naf.wnd,points:et.naf.points.map(nt)},doubles:et.doubles&&{step:et.doubles.step,points:et.doubles.points.map(nt)}}}return d};Point$3.prototype.toJ=function c(){if(this.inf)return this.curve.jpoint(null,null,null);var a=this.curve.jpoint(this.x,this.y,this.curve.one);return a};function JPoint(c,a,d,et){Base$2.BasePoint.call(this,c,"jacobian"),a===null&&d===null&&et===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new BN$8(0)):(this.x=new BN$8(a,16),this.y=new BN$8(d,16),this.z=new BN$8(et,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}inherits$2(JPoint,Base$2.BasePoint);ShortCurve.prototype.jpoint=function c(a,d,et){return new JPoint(this,a,d,et)};JPoint.prototype.toP=function c(){if(this.isInfinity())return this.curve.point(null,null);var a=this.z.redInvm(),d=a.redSqr(),et=this.x.redMul(d),nt=this.y.redMul(d).redMul(a);return this.curve.point(et,nt)};JPoint.prototype.neg=function c(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};JPoint.prototype.add=function c(a){if(this.isInfinity())return a;if(a.isInfinity())return this;var d=a.z.redSqr(),et=this.z.redSqr(),nt=this.x.redMul(d),tt=a.x.redMul(et),bt=this.y.redMul(d.redMul(a.z)),gt=a.y.redMul(et.redMul(this.z)),wt=nt.redSub(tt),St=bt.redSub(gt);if(wt.cmpn(0)===0)return St.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var Mt=wt.redSqr(),_t=Mt.redMul(wt),Tt=nt.redMul(Mt),Rt=St.redSqr().redIAdd(_t).redISub(Tt).redISub(Tt),kt=St.redMul(Tt.redISub(Rt)).redISub(bt.redMul(_t)),It=this.z.redMul(a.z).redMul(wt);return this.curve.jpoint(Rt,kt,It)};JPoint.prototype.mixedAdd=function c(a){if(this.isInfinity())return a.toJ();if(a.isInfinity())return this;var d=this.z.redSqr(),et=this.x,nt=a.x.redMul(d),tt=this.y,bt=a.y.redMul(d).redMul(this.z),gt=et.redSub(nt),wt=tt.redSub(bt);if(gt.cmpn(0)===0)return wt.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var St=gt.redSqr(),Mt=St.redMul(gt),_t=et.redMul(St),Tt=wt.redSqr().redIAdd(Mt).redISub(_t).redISub(_t),Rt=wt.redMul(_t.redISub(Tt)).redISub(tt.redMul(Mt)),kt=this.z.redMul(gt);return this.curve.jpoint(Tt,Rt,kt)};JPoint.prototype.dblp=function c(a){if(a===0)return this;if(this.isInfinity())return this;if(!a)return this.dbl();var d;if(this.curve.zeroA||this.curve.threeA){var et=this;for(d=0;d=0)return!1;if(et.redIAdd(tt),this.x.cmp(et)===0)return!0}};JPoint.prototype.inspect=function c(){return this.isInfinity()?"":""};JPoint.prototype.isInfinity=function c(){return this.z.cmpn(0)===0};var BN$7=bnExports$2,inherits$1=inherits_browserExports,Base$1=base$1,utils$9=utils$c;function MontCurve(c){Base$1.call(this,"mont",c),this.a=new BN$7(c.a,16).toRed(this.red),this.b=new BN$7(c.b,16).toRed(this.red),this.i4=new BN$7(4).toRed(this.red).redInvm(),this.two=new BN$7(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}inherits$1(MontCurve,Base$1);var mont=MontCurve;MontCurve.prototype.validate=function c(a){var d=a.normalize().x,et=d.redSqr(),nt=et.redMul(d).redAdd(et.redMul(this.a)).redAdd(d),tt=nt.redSqrt();return tt.redSqr().cmp(nt)===0};function Point$2(c,a,d){Base$1.BasePoint.call(this,c,"projective"),a===null&&d===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new BN$7(a,16),this.z=new BN$7(d,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}inherits$1(Point$2,Base$1.BasePoint);MontCurve.prototype.decodePoint=function c(a,d){return this.point(utils$9.toArray(a,d),1)};MontCurve.prototype.point=function c(a,d){return new Point$2(this,a,d)};MontCurve.prototype.pointFromJSON=function c(a){return Point$2.fromJSON(this,a)};Point$2.prototype.precompute=function c(){};Point$2.prototype._encode=function c(){return this.getX().toArray("be",this.curve.p.byteLength())};Point$2.fromJSON=function c(a,d){return new Point$2(a,d[0],d[1]||a.one)};Point$2.prototype.inspect=function c(){return this.isInfinity()?"":""};Point$2.prototype.isInfinity=function c(){return this.z.cmpn(0)===0};Point$2.prototype.dbl=function c(){var a=this.x.redAdd(this.z),d=a.redSqr(),et=this.x.redSub(this.z),nt=et.redSqr(),tt=d.redSub(nt),bt=d.redMul(nt),gt=tt.redMul(nt.redAdd(this.curve.a24.redMul(tt)));return this.curve.point(bt,gt)};Point$2.prototype.add=function c(){throw new Error("Not supported on Montgomery curve")};Point$2.prototype.diffAdd=function c(a,d){var et=this.x.redAdd(this.z),nt=this.x.redSub(this.z),tt=a.x.redAdd(a.z),bt=a.x.redSub(a.z),gt=bt.redMul(et),wt=tt.redMul(nt),St=d.z.redMul(gt.redAdd(wt).redSqr()),Mt=d.x.redMul(gt.redISub(wt).redSqr());return this.curve.point(St,Mt)};Point$2.prototype.mul=function c(a){for(var d=a.clone(),et=this,nt=this.curve.point(null,null),tt=this,bt=[];d.cmpn(0)!==0;d.iushrn(1))bt.push(d.andln(1));for(var gt=bt.length-1;gt>=0;gt--)bt[gt]===0?(et=et.diffAdd(nt,tt),nt=nt.dbl()):(nt=et.diffAdd(nt,tt),et=et.dbl());return nt};Point$2.prototype.mulAdd=function c(){throw new Error("Not supported on Montgomery curve")};Point$2.prototype.jumlAdd=function c(){throw new Error("Not supported on Montgomery curve")};Point$2.prototype.eq=function c(a){return this.getX().cmp(a.getX())===0};Point$2.prototype.normalize=function c(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Point$2.prototype.getX=function c(){return this.normalize(),this.x.fromRed()};var utils$8=utils$c,BN$6=bnExports$2,inherits=inherits_browserExports,Base=base$1,assert$5=utils$8.assert;function EdwardsCurve(c){this.twisted=(c.a|0)!==1,this.mOneA=this.twisted&&(c.a|0)===-1,this.extended=this.mOneA,Base.call(this,"edwards",c),this.a=new BN$6(c.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new BN$6(c.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new BN$6(c.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),assert$5(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(c.c|0)===1}inherits(EdwardsCurve,Base);var edwards=EdwardsCurve;EdwardsCurve.prototype._mulA=function c(a){return this.mOneA?a.redNeg():this.a.redMul(a)};EdwardsCurve.prototype._mulC=function c(a){return this.oneC?a:this.c.redMul(a)};EdwardsCurve.prototype.jpoint=function c(a,d,et,nt){return this.point(a,d,et,nt)};EdwardsCurve.prototype.pointFromX=function c(a,d){a=new BN$6(a,16),a.red||(a=a.toRed(this.red));var et=a.redSqr(),nt=this.c2.redSub(this.a.redMul(et)),tt=this.one.redSub(this.c2.redMul(this.d).redMul(et)),bt=nt.redMul(tt.redInvm()),gt=bt.redSqrt();if(gt.redSqr().redSub(bt).cmp(this.zero)!==0)throw new Error("invalid point");var wt=gt.fromRed().isOdd();return(d&&!wt||!d&&wt)&&(gt=gt.redNeg()),this.point(a,gt)};EdwardsCurve.prototype.pointFromY=function c(a,d){a=new BN$6(a,16),a.red||(a=a.toRed(this.red));var et=a.redSqr(),nt=et.redSub(this.c2),tt=et.redMul(this.d).redMul(this.c2).redSub(this.a),bt=nt.redMul(tt.redInvm());if(bt.cmp(this.zero)===0){if(d)throw new Error("invalid point");return this.point(this.zero,a)}var gt=bt.redSqrt();if(gt.redSqr().redSub(bt).cmp(this.zero)!==0)throw new Error("invalid point");return gt.fromRed().isOdd()!==d&&(gt=gt.redNeg()),this.point(gt,a)};EdwardsCurve.prototype.validate=function c(a){if(a.isInfinity())return!0;a.normalize();var d=a.x.redSqr(),et=a.y.redSqr(),nt=d.redMul(this.a).redAdd(et),tt=this.c2.redMul(this.one.redAdd(this.d.redMul(d).redMul(et)));return nt.cmp(tt)===0};function Point$1(c,a,d,et,nt){Base.BasePoint.call(this,c,"projective"),a===null&&d===null&&et===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new BN$6(a,16),this.y=new BN$6(d,16),this.z=et?new BN$6(et,16):this.curve.one,this.t=nt&&new BN$6(nt,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}inherits(Point$1,Base.BasePoint);EdwardsCurve.prototype.pointFromJSON=function c(a){return Point$1.fromJSON(this,a)};EdwardsCurve.prototype.point=function c(a,d,et,nt){return new Point$1(this,a,d,et,nt)};Point$1.fromJSON=function c(a,d){return new Point$1(a,d[0],d[1],d[2])};Point$1.prototype.inspect=function c(){return this.isInfinity()?"":""};Point$1.prototype.isInfinity=function c(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Point$1.prototype._extDbl=function c(){var a=this.x.redSqr(),d=this.y.redSqr(),et=this.z.redSqr();et=et.redIAdd(et);var nt=this.curve._mulA(a),tt=this.x.redAdd(this.y).redSqr().redISub(a).redISub(d),bt=nt.redAdd(d),gt=bt.redSub(et),wt=nt.redSub(d),St=tt.redMul(gt),Mt=bt.redMul(wt),_t=tt.redMul(wt),Tt=gt.redMul(bt);return this.curve.point(St,Mt,Tt,_t)};Point$1.prototype._projDbl=function c(){var a=this.x.redAdd(this.y).redSqr(),d=this.x.redSqr(),et=this.y.redSqr(),nt,tt,bt,gt,wt,St;if(this.curve.twisted){gt=this.curve._mulA(d);var Mt=gt.redAdd(et);this.zOne?(nt=a.redSub(d).redSub(et).redMul(Mt.redSub(this.curve.two)),tt=Mt.redMul(gt.redSub(et)),bt=Mt.redSqr().redSub(Mt).redSub(Mt)):(wt=this.z.redSqr(),St=Mt.redSub(wt).redISub(wt),nt=a.redSub(d).redISub(et).redMul(St),tt=Mt.redMul(gt.redSub(et)),bt=Mt.redMul(St))}else gt=d.redAdd(et),wt=this.curve._mulC(this.z).redSqr(),St=gt.redSub(wt).redSub(wt),nt=this.curve._mulC(a.redISub(gt)).redMul(St),tt=this.curve._mulC(gt).redMul(d.redISub(et)),bt=gt.redMul(St);return this.curve.point(nt,tt,bt)};Point$1.prototype.dbl=function c(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Point$1.prototype._extAdd=function c(a){var d=this.y.redSub(this.x).redMul(a.y.redSub(a.x)),et=this.y.redAdd(this.x).redMul(a.y.redAdd(a.x)),nt=this.t.redMul(this.curve.dd).redMul(a.t),tt=this.z.redMul(a.z.redAdd(a.z)),bt=et.redSub(d),gt=tt.redSub(nt),wt=tt.redAdd(nt),St=et.redAdd(d),Mt=bt.redMul(gt),_t=wt.redMul(St),Tt=bt.redMul(St),Rt=gt.redMul(wt);return this.curve.point(Mt,_t,Rt,Tt)};Point$1.prototype._projAdd=function c(a){var d=this.z.redMul(a.z),et=d.redSqr(),nt=this.x.redMul(a.x),tt=this.y.redMul(a.y),bt=this.curve.d.redMul(nt).redMul(tt),gt=et.redSub(bt),wt=et.redAdd(bt),St=this.x.redAdd(this.y).redMul(a.x.redAdd(a.y)).redISub(nt).redISub(tt),Mt=d.redMul(gt).redMul(St),_t,Tt;return this.curve.twisted?(_t=d.redMul(wt).redMul(tt.redSub(this.curve._mulA(nt))),Tt=gt.redMul(wt)):(_t=d.redMul(wt).redMul(tt.redSub(nt)),Tt=this.curve._mulC(gt).redMul(wt)),this.curve.point(Mt,_t,Tt)};Point$1.prototype.add=function c(a){return this.isInfinity()?a:a.isInfinity()?this:this.curve.extended?this._extAdd(a):this._projAdd(a)};Point$1.prototype.mul=function c(a){return this._hasDoubles(a)?this.curve._fixedNafMul(this,a):this.curve._wnafMul(this,a)};Point$1.prototype.mulAdd=function c(a,d,et){return this.curve._wnafMulAdd(1,[this,d],[a,et],2,!1)};Point$1.prototype.jmulAdd=function c(a,d,et){return this.curve._wnafMulAdd(1,[this,d],[a,et],2,!0)};Point$1.prototype.normalize=function c(){if(this.zOne)return this;var a=this.z.redInvm();return this.x=this.x.redMul(a),this.y=this.y.redMul(a),this.t&&(this.t=this.t.redMul(a)),this.z=this.curve.one,this.zOne=!0,this};Point$1.prototype.neg=function c(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Point$1.prototype.getX=function c(){return this.normalize(),this.x.fromRed()};Point$1.prototype.getY=function c(){return this.normalize(),this.y.fromRed()};Point$1.prototype.eq=function c(a){return this===a||this.getX().cmp(a.getX())===0&&this.getY().cmp(a.getY())===0};Point$1.prototype.eqXToP=function c(a){var d=a.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(d)===0)return!0;for(var et=a.clone(),nt=this.curve.redN.redMul(this.z);;){if(et.iadd(this.curve.n),et.cmp(this.curve.p)>=0)return!1;if(d.redIAdd(nt),this.x.cmp(d)===0)return!0}};Point$1.prototype.toP=Point$1.prototype.normalize;Point$1.prototype.mixedAdd=Point$1.prototype.add;(function(c){var a=c;a.base=base$1,a.short=short,a.mont=mont,a.edwards=edwards})(curve);var curves$1={},secp256k1$1,hasRequiredSecp256k1;function requireSecp256k1(){return hasRequiredSecp256k1||(hasRequiredSecp256k1=1,secp256k1$1={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}),secp256k1$1}(function(c){var a=c,d=hash$7,et=curve,nt=utils$c,tt=nt.assert;function bt(St){St.type==="short"?this.curve=new et.short(St):St.type==="edwards"?this.curve=new et.edwards(St):this.curve=new et.mont(St),this.g=this.curve.g,this.n=this.curve.n,this.hash=St.hash,tt(this.g.validate(),"Invalid curve"),tt(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}a.PresetCurve=bt;function gt(St,Mt){Object.defineProperty(a,St,{configurable:!0,enumerable:!0,get:function(){var _t=new bt(Mt);return Object.defineProperty(a,St,{configurable:!0,enumerable:!0,value:_t}),_t}})}gt("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:d.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),gt("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:d.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),gt("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:d.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),gt("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:d.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"]}),gt("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:d.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"]}),gt("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:d.sha256,gRed:!1,g:["9"]}),gt("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:d.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var wt;try{wt=requireSecp256k1()}catch{wt=void 0}gt("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:d.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",wt]})})(curves$1);var BN$5=bnExports$2,utils$7=utils$c,assert$4=utils$7.assert;function KeyPair$2(c,a){this.ec=c,this.priv=null,this.pub=null,a.priv&&this._importPrivate(a.priv,a.privEnc),a.pub&&this._importPublic(a.pub,a.pubEnc)}var key$1=KeyPair$2;KeyPair$2.fromPublic=function c(a,d,et){return d instanceof KeyPair$2?d:new KeyPair$2(a,{pub:d,pubEnc:et})};KeyPair$2.fromPrivate=function c(a,d,et){return d instanceof KeyPair$2?d:new KeyPair$2(a,{priv:d,privEnc:et})};KeyPair$2.prototype.validate=function c(){var a=this.getPublic();return a.isInfinity()?{result:!1,reason:"Invalid public key"}:a.validate()?a.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}};KeyPair$2.prototype.getPublic=function c(a,d){return typeof a=="string"&&(d=a,a=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),d?this.pub.encode(d,a):this.pub};KeyPair$2.prototype.getPrivate=function c(a){return a==="hex"?this.priv.toString(16,2):this.priv};KeyPair$2.prototype._importPrivate=function c(a,d){this.priv=new BN$5(a,d||16),this.priv=this.priv.umod(this.ec.curve.n)};KeyPair$2.prototype._importPublic=function c(a,d){if(a.x||a.y){this.ec.curve.type==="mont"?assert$4(a.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&assert$4(a.x&&a.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(a.x,a.y);return}this.pub=this.ec.curve.decodePoint(a,d)};KeyPair$2.prototype.derive=function c(a){return a.validate()||assert$4(a.validate(),"public point not validated"),a.mul(this.priv).getX()};KeyPair$2.prototype.sign=function c(a,d,et){return this.ec.sign(a,this,d,et)};KeyPair$2.prototype.verify=function c(a,d){return this.ec.verify(a,d,this)};KeyPair$2.prototype.inspect=function c(){return""};var BN$4=bnExports$2,utils$6=utils$c,assert$3=utils$6.assert;function Signature$4(c,a){if(c instanceof Signature$4)return c;this._importDER(c,a)||(assert$3(c.r&&c.s,"Signature without r or s"),this.r=new BN$4(c.r,16),this.s=new BN$4(c.s,16),c.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=c.recoveryParam)}var signature$1=Signature$4;function Position(){this.place=0}function getLength(c,a){var d=c[a.place++];if(!(d&128))return d;var et=d&15;if(et===0||et>4)return!1;for(var nt=0,tt=0,bt=a.place;tt>>=0;return nt<=127?!1:(a.place=bt,nt)}function rmPadding(c){for(var a=0,d=c.length-1;!c[a]&&!(c[a+1]&128)&&a>>3);for(c.push(d|128);--d;)c.push(a>>>(d<<3)&255);c.push(a)}Signature$4.prototype.toDER=function c(a){var d=this.r.toArray(),et=this.s.toArray();for(d[0]&128&&(d=[0].concat(d)),et[0]&128&&(et=[0].concat(et)),d=rmPadding(d),et=rmPadding(et);!et[0]&&!(et[1]&128);)et=et.slice(1);var nt=[2];constructLength(nt,d.length),nt=nt.concat(d),nt.push(2),constructLength(nt,et.length);var tt=nt.concat(et),bt=[48];return constructLength(bt,tt.length),bt=bt.concat(tt),utils$6.encode(bt,a)};var ec,hasRequiredEc;function requireEc(){if(hasRequiredEc)return ec;hasRequiredEc=1;var c=bnExports$2,a=hmacDrbg,d=utils$c,et=curves$1,nt=requireBrorand(),tt=d.assert,bt=key$1,gt=signature$1;function wt(St){if(!(this instanceof wt))return new wt(St);typeof St=="string"&&(tt(Object.prototype.hasOwnProperty.call(et,St),"Unknown curve "+St),St=et[St]),St instanceof et.PresetCurve&&(St={curve:St}),this.curve=St.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=St.curve.g,this.g.precompute(St.curve.n.bitLength()+1),this.hash=St.hash||St.curve.hash}return ec=wt,wt.prototype.keyPair=function(Mt){return new bt(this,Mt)},wt.prototype.keyFromPrivate=function(Mt,_t){return bt.fromPrivate(this,Mt,_t)},wt.prototype.keyFromPublic=function(Mt,_t){return bt.fromPublic(this,Mt,_t)},wt.prototype.genKeyPair=function(Mt){Mt||(Mt={});for(var _t=new a({hash:this.hash,pers:Mt.pers,persEnc:Mt.persEnc||"utf8",entropy:Mt.entropy||nt(this.hash.hmacStrength),entropyEnc:Mt.entropy&&Mt.entropyEnc||"utf8",nonce:this.n.toArray()}),Tt=this.n.byteLength(),Rt=this.n.sub(new c(2));;){var kt=new c(_t.generate(Tt));if(!(kt.cmp(Rt)>0))return kt.iaddn(1),this.keyFromPrivate(kt)}},wt.prototype._truncateToN=function(Mt,_t){var Tt=Mt.byteLength()*8-this.n.bitLength();return Tt>0&&(Mt=Mt.ushrn(Tt)),!_t&&Mt.cmp(this.n)>=0?Mt.sub(this.n):Mt},wt.prototype.sign=function(Mt,_t,Tt,Rt){typeof Tt=="object"&&(Rt=Tt,Tt=null),Rt||(Rt={}),_t=this.keyFromPrivate(_t,Tt),Mt=this._truncateToN(new c(Mt,16));for(var kt=this.n.byteLength(),It=_t.getPrivate().toArray("be",kt),Lt=Mt.toArray("be",kt),Ot=new a({hash:this.hash,entropy:It,nonce:Lt,pers:Rt.pers,persEnc:Rt.persEnc||"utf8"}),Nt=this.n.sub(new c(1)),Ft=0;;Ft++){var jt=Rt.k?Rt.k(Ft):new c(Ot.generate(this.n.byteLength()));if(jt=this._truncateToN(jt,!0),!(jt.cmpn(1)<=0||jt.cmp(Nt)>=0)){var Vt=this.g.mul(jt);if(!Vt.isInfinity()){var Jt=Vt.getX(),ir=Jt.umod(this.n);if(ir.cmpn(0)!==0){var rr=jt.invm(this.n).mul(ir.mul(_t.getPrivate()).iadd(Mt));if(rr=rr.umod(this.n),rr.cmpn(0)!==0){var er=(Vt.getY().isOdd()?1:0)|(Jt.cmp(ir)!==0?2:0);return Rt.canonical&&rr.cmp(this.nh)>0&&(rr=this.n.sub(rr),er^=1),new gt({r:ir,s:rr,recoveryParam:er})}}}}}},wt.prototype.verify=function(Mt,_t,Tt,Rt){Mt=this._truncateToN(new c(Mt,16)),Tt=this.keyFromPublic(Tt,Rt),_t=new gt(_t,"hex");var kt=_t.r,It=_t.s;if(kt.cmpn(1)<0||kt.cmp(this.n)>=0||It.cmpn(1)<0||It.cmp(this.n)>=0)return!1;var Lt=It.invm(this.n),Ot=Lt.mul(Mt).umod(this.n),Nt=Lt.mul(kt).umod(this.n),Ft;return this.curve._maxwellTrick?(Ft=this.g.jmulAdd(Ot,Tt.getPublic(),Nt),Ft.isInfinity()?!1:Ft.eqXToP(kt)):(Ft=this.g.mulAdd(Ot,Tt.getPublic(),Nt),Ft.isInfinity()?!1:Ft.getX().umod(this.n).cmp(kt)===0)},wt.prototype.recoverPubKey=function(St,Mt,_t,Tt){tt((3&_t)===_t,"The recovery param is more than two bits"),Mt=new gt(Mt,Tt);var Rt=this.n,kt=new c(St),It=Mt.r,Lt=Mt.s,Ot=_t&1,Nt=_t>>1;if(It.cmp(this.curve.p.umod(this.curve.n))>=0&&Nt)throw new Error("Unable to find sencond key candinate");Nt?It=this.curve.pointFromX(It.add(this.curve.n),Ot):It=this.curve.pointFromX(It,Ot);var Ft=Mt.r.invm(Rt),jt=Rt.sub(kt).mul(Ft).umod(Rt),Vt=Lt.mul(Ft).umod(Rt);return this.g.mulAdd(jt,It,Vt)},wt.prototype.getKeyRecoveryParam=function(St,Mt,_t,Tt){if(Mt=new gt(Mt,Tt),Mt.recoveryParam!==null)return Mt.recoveryParam;for(var Rt=0;Rt<4;Rt++){var kt;try{kt=this.recoverPubKey(St,Mt,Rt)}catch{continue}if(kt.eq(_t))return Rt}throw new Error("Unable to find valid recovery factor")},ec}var utils$5=utils$c,assert$2=utils$5.assert,parseBytes$2=utils$5.parseBytes,cachedProperty$1=utils$5.cachedProperty;function KeyPair$1(c,a){this.eddsa=c,this._secret=parseBytes$2(a.secret),c.isPoint(a.pub)?this._pub=a.pub:this._pubBytes=parseBytes$2(a.pub)}KeyPair$1.fromPublic=function c(a,d){return d instanceof KeyPair$1?d:new KeyPair$1(a,{pub:d})};KeyPair$1.fromSecret=function c(a,d){return d instanceof KeyPair$1?d:new KeyPair$1(a,{secret:d})};KeyPair$1.prototype.secret=function c(){return this._secret};cachedProperty$1(KeyPair$1,"pubBytes",function c(){return this.eddsa.encodePoint(this.pub())});cachedProperty$1(KeyPair$1,"pub",function c(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});cachedProperty$1(KeyPair$1,"privBytes",function c(){var a=this.eddsa,d=this.hash(),et=a.encodingLength-1,nt=d.slice(0,a.encodingLength);return nt[0]&=248,nt[et]&=127,nt[et]|=64,nt});cachedProperty$1(KeyPair$1,"priv",function c(){return this.eddsa.decodeInt(this.privBytes())});cachedProperty$1(KeyPair$1,"hash",function c(){return this.eddsa.hash().update(this.secret()).digest()});cachedProperty$1(KeyPair$1,"messagePrefix",function c(){return this.hash().slice(this.eddsa.encodingLength)});KeyPair$1.prototype.sign=function c(a){return assert$2(this._secret,"KeyPair can only verify"),this.eddsa.sign(a,this)};KeyPair$1.prototype.verify=function c(a,d){return this.eddsa.verify(a,d,this)};KeyPair$1.prototype.getSecret=function c(a){return assert$2(this._secret,"KeyPair is public only"),utils$5.encode(this.secret(),a)};KeyPair$1.prototype.getPublic=function c(a){return utils$5.encode(this.pubBytes(),a)};var key=KeyPair$1,BN$3=bnExports$2,utils$4=utils$c,assert$1=utils$4.assert,cachedProperty=utils$4.cachedProperty,parseBytes$1=utils$4.parseBytes;function Signature$3(c,a){this.eddsa=c,typeof a!="object"&&(a=parseBytes$1(a)),Array.isArray(a)&&(a={R:a.slice(0,c.encodingLength),S:a.slice(c.encodingLength)}),assert$1(a.R&&a.S,"Signature without R or S"),c.isPoint(a.R)&&(this._R=a.R),a.S instanceof BN$3&&(this._S=a.S),this._Rencoded=Array.isArray(a.R)?a.R:a.Rencoded,this._Sencoded=Array.isArray(a.S)?a.S:a.Sencoded}cachedProperty(Signature$3,"S",function c(){return this.eddsa.decodeInt(this.Sencoded())});cachedProperty(Signature$3,"R",function c(){return this.eddsa.decodePoint(this.Rencoded())});cachedProperty(Signature$3,"Rencoded",function c(){return this.eddsa.encodePoint(this.R())});cachedProperty(Signature$3,"Sencoded",function c(){return this.eddsa.encodeInt(this.S())});Signature$3.prototype.toBytes=function c(){return this.Rencoded().concat(this.Sencoded())};Signature$3.prototype.toHex=function c(){return utils$4.encode(this.toBytes(),"hex").toUpperCase()};var signature=Signature$3,hash$4=hash$7,curves=curves$1,utils$3=utils$c,assert=utils$3.assert,parseBytes=utils$3.parseBytes,KeyPair=key,Signature$2=signature;function EDDSA(c){if(assert(c==="ed25519","only tested with ed25519 so far"),!(this instanceof EDDSA))return new EDDSA(c);c=curves[c].curve,this.curve=c,this.g=c.g,this.g.precompute(c.n.bitLength()+1),this.pointClass=c.point().constructor,this.encodingLength=Math.ceil(c.n.bitLength()/8),this.hash=hash$4.sha512}var eddsa=EDDSA;EDDSA.prototype.sign=function c(a,d){a=parseBytes(a);var et=this.keyFromSecret(d),nt=this.hashInt(et.messagePrefix(),a),tt=this.g.mul(nt),bt=this.encodePoint(tt),gt=this.hashInt(bt,et.pubBytes(),a).mul(et.priv()),wt=nt.add(gt).umod(this.curve.n);return this.makeSignature({R:tt,S:wt,Rencoded:bt})};EDDSA.prototype.verify=function c(a,d,et){a=parseBytes(a),d=this.makeSignature(d);var nt=this.keyFromPublic(et),tt=this.hashInt(d.Rencoded(),nt.pubBytes(),a),bt=this.g.mul(d.S()),gt=d.R().add(nt.pub().mul(tt));return gt.eq(bt)};EDDSA.prototype.hashInt=function c(){for(var a=this.hash(),d=0;d0?dt:mt},tt.min=function(dt,mt){return dt.cmp(mt)<0?dt:mt},tt.prototype._init=function(dt,mt,yt){if(typeof dt=="number")return this._initNumber(dt,mt,yt);if(typeof dt=="object")return this._initArray(dt,mt,yt);mt==="hex"&&(mt=16),et(mt===(mt|0)&&mt>=2&&mt<=36),dt=dt.toString().replace(/\s+/g,"");var vt=0;dt[0]==="-"&&(vt++,this.negative=1),vt=0;vt-=3)At=dt[vt]|dt[vt-1]<<8|dt[vt-2]<<16,this.words[Et]|=At<>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,Et++);else if(yt==="le")for(vt=0,Et=0;vt>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,Et++);return this.strip()};function gt(Ct,dt){var mt=Ct.charCodeAt(dt);return mt>=65&&mt<=70?mt-55:mt>=97&&mt<=102?mt-87:mt-48&15}function wt(Ct,dt,mt){var yt=gt(Ct,mt);return mt-1>=dt&&(yt|=gt(Ct,mt-1)<<4),yt}tt.prototype._parseHex=function(dt,mt,yt){this.length=Math.ceil((dt.length-mt)/6),this.words=new Array(this.length);for(var vt=0;vt=mt;vt-=2)Pt=wt(dt,mt,vt)<=18?(Et-=18,At+=1,this.words[At]|=Pt>>>26):Et+=8;else{var xt=dt.length-mt;for(vt=xt%2===0?mt+1:mt;vt=18?(Et-=18,At+=1,this.words[At]|=Pt>>>26):Et+=8}this.strip()};function St(Ct,dt,mt,yt){for(var vt=0,Et=Math.min(Ct.length,mt),At=dt;At=49?vt+=Pt-49+10:Pt>=17?vt+=Pt-17+10:vt+=Pt}return vt}tt.prototype._parseBase=function(dt,mt,yt){this.words=[0],this.length=1;for(var vt=0,Et=1;Et<=67108863;Et*=mt)vt++;vt--,Et=Et/mt|0;for(var At=dt.length-yt,Pt=At%vt,xt=Math.min(At,At-Pt)+yt,ht=0,$t=yt;$t1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},tt.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},tt.prototype.inspect=function(){return(this.red?""};var Mt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],_t=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Tt=[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];tt.prototype.toString=function(dt,mt){dt=dt||10,mt=mt|0||1;var yt;if(dt===16||dt==="hex"){yt="";for(var vt=0,Et=0,At=0;At>>24-vt&16777215,Et!==0||At!==this.length-1?yt=Mt[6-xt.length]+xt+yt:yt=xt+yt,vt+=2,vt>=26&&(vt-=26,At--)}for(Et!==0&&(yt=Et.toString(16)+yt);yt.length%mt!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}if(dt===(dt|0)&&dt>=2&&dt<=36){var ht=_t[dt],$t=Tt[dt];yt="";var Bt=this.clone();for(Bt.negative=0;!Bt.isZero();){var Dt=Bt.modn($t).toString(dt);Bt=Bt.idivn($t),Bt.isZero()?yt=Dt+yt:yt=Mt[ht-Dt.length]+Dt+yt}for(this.isZero()&&(yt="0"+yt);yt.length%mt!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}et(!1,"Base should be between 2 and 36")},tt.prototype.toNumber=function(){var dt=this.words[0];return this.length===2?dt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?dt+=4503599627370496+this.words[1]*67108864:this.length>2&&et(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-dt:dt},tt.prototype.toJSON=function(){return this.toString(16)},tt.prototype.toBuffer=function(dt,mt){return et(typeof bt<"u"),this.toArrayLike(bt,dt,mt)},tt.prototype.toArray=function(dt,mt){return this.toArrayLike(Array,dt,mt)},tt.prototype.toArrayLike=function(dt,mt,yt){var vt=this.byteLength(),Et=yt||Math.max(1,vt);et(vt<=Et,"byte array longer than desired length"),et(Et>0,"Requested array length <= 0"),this.strip();var At=mt==="le",Pt=new dt(Et),xt,ht,$t=this.clone();if(At){for(ht=0;!$t.isZero();ht++)xt=$t.andln(255),$t.iushrn(8),Pt[ht]=xt;for(;ht=4096&&(yt+=13,mt>>>=13),mt>=64&&(yt+=7,mt>>>=7),mt>=8&&(yt+=4,mt>>>=4),mt>=2&&(yt+=2,mt>>>=2),yt+mt},tt.prototype._zeroBits=function(dt){if(dt===0)return 26;var mt=dt,yt=0;return mt&8191||(yt+=13,mt>>>=13),mt&127||(yt+=7,mt>>>=7),mt&15||(yt+=4,mt>>>=4),mt&3||(yt+=2,mt>>>=2),mt&1||yt++,yt},tt.prototype.bitLength=function(){var dt=this.words[this.length-1],mt=this._countBits(dt);return(this.length-1)*26+mt};function Rt(Ct){for(var dt=new Array(Ct.bitLength()),mt=0;mt>>vt}return dt}tt.prototype.zeroBits=function(){if(this.isZero())return 0;for(var dt=0,mt=0;mtdt.length?this.clone().ior(dt):dt.clone().ior(this)},tt.prototype.uor=function(dt){return this.length>dt.length?this.clone().iuor(dt):dt.clone().iuor(this)},tt.prototype.iuand=function(dt){var mt;this.length>dt.length?mt=dt:mt=this;for(var yt=0;ytdt.length?this.clone().iand(dt):dt.clone().iand(this)},tt.prototype.uand=function(dt){return this.length>dt.length?this.clone().iuand(dt):dt.clone().iuand(this)},tt.prototype.iuxor=function(dt){var mt,yt;this.length>dt.length?(mt=this,yt=dt):(mt=dt,yt=this);for(var vt=0;vtdt.length?this.clone().ixor(dt):dt.clone().ixor(this)},tt.prototype.uxor=function(dt){return this.length>dt.length?this.clone().iuxor(dt):dt.clone().iuxor(this)},tt.prototype.inotn=function(dt){et(typeof dt=="number"&&dt>=0);var mt=Math.ceil(dt/26)|0,yt=dt%26;this._expand(mt),yt>0&&mt--;for(var vt=0;vt0&&(this.words[vt]=~this.words[vt]&67108863>>26-yt),this.strip()},tt.prototype.notn=function(dt){return this.clone().inotn(dt)},tt.prototype.setn=function(dt,mt){et(typeof dt=="number"&&dt>=0);var yt=dt/26|0,vt=dt%26;return this._expand(yt+1),mt?this.words[yt]=this.words[yt]|1<dt.length?(yt=this,vt=dt):(yt=dt,vt=this);for(var Et=0,At=0;At>>26;for(;Et!==0&&At>>26;if(this.length=yt.length,Et!==0)this.words[this.length]=Et,this.length++;else if(yt!==this)for(;Atdt.length?this.clone().iadd(dt):dt.clone().iadd(this)},tt.prototype.isub=function(dt){if(dt.negative!==0){dt.negative=0;var mt=this.iadd(dt);return dt.negative=1,mt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(dt),this.negative=1,this._normSign();var yt=this.cmp(dt);if(yt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var vt,Et;yt>0?(vt=this,Et=dt):(vt=dt,Et=this);for(var At=0,Pt=0;Pt>26,this.words[Pt]=mt&67108863;for(;At!==0&&Pt>26,this.words[Pt]=mt&67108863;if(At===0&&Pt>>26,Bt=xt&67108863,Dt=Math.min(ht,dt.length-1),Ht=Math.max(0,ht-Ct.length+1);Ht<=Dt;Ht++){var tr=ht-Ht|0;vt=Ct.words[tr]|0,Et=dt.words[Ht]|0,At=vt*Et+Bt,$t+=At/67108864|0,Bt=At&67108863}mt.words[ht]=Bt|0,xt=$t|0}return xt!==0?mt.words[ht]=xt|0:mt.length--,mt.strip()}var It=function(dt,mt,yt){var vt=dt.words,Et=mt.words,At=yt.words,Pt=0,xt,ht,$t,Bt=vt[0]|0,Dt=Bt&8191,Ht=Bt>>>13,tr=vt[1]|0,Xt=tr&8191,Ut=tr>>>13,qt=vt[2]|0,Gt=qt&8191,Zt=qt>>>13,Yt=vt[3]|0,Kt=Yt&8191,ar=Yt>>>13,gr=vt[4]|0,cr=gr&8191,ur=gr>>>13,Pr=vt[5]|0,br=Pr&8191,dr=Pr>>>13,Kr=vt[6]|0,xr=Kr&8191,Sr=Kr>>>13,Zr=vt[7]|0,$r=Zr&8191,Mr=Zr>>>13,Xr=vt[8]|0,Qt=Xr&8191,zt=Xr>>>13,Wt=vt[9]|0,nr=Wt&8191,fr=Wt>>>13,Er=Et[0]|0,pr=Er&8191,vr=Er>>>13,Jr=Et[1]|0,wr=Jr&8191,Ar=Jr>>>13,Yr=Et[2]|0,Cr=Yr&8191,Or=Yr>>>13,Qr=Et[3]|0,_r=Qr&8191,Dr=Qr>>>13,r0=Et[4]|0,Tr=r0&8191,Lr=r0>>>13,n0=Et[5]|0,Rr=n0&8191,Fr=n0>>>13,i0=Et[6]|0,Br=i0&8191,jr=i0>>>13,a0=Et[7]|0,kr=a0&8191,Ur=a0>>>13,s0=Et[8]|0,Ir=s0&8191,Hr=s0>>>13,o0=Et[9]|0,Nr=o0&8191,qr=o0>>>13;yt.negative=dt.negative^mt.negative,yt.length=19,xt=Math.imul(Dt,pr),ht=Math.imul(Dt,vr),ht=ht+Math.imul(Ht,pr)|0,$t=Math.imul(Ht,vr);var e0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(e0>>>26)|0,e0&=67108863,xt=Math.imul(Xt,pr),ht=Math.imul(Xt,vr),ht=ht+Math.imul(Ut,pr)|0,$t=Math.imul(Ut,vr),xt=xt+Math.imul(Dt,wr)|0,ht=ht+Math.imul(Dt,Ar)|0,ht=ht+Math.imul(Ht,wr)|0,$t=$t+Math.imul(Ht,Ar)|0;var t0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(t0>>>26)|0,t0&=67108863,xt=Math.imul(Gt,pr),ht=Math.imul(Gt,vr),ht=ht+Math.imul(Zt,pr)|0,$t=Math.imul(Zt,vr),xt=xt+Math.imul(Xt,wr)|0,ht=ht+Math.imul(Xt,Ar)|0,ht=ht+Math.imul(Ut,wr)|0,$t=$t+Math.imul(Ut,Ar)|0,xt=xt+Math.imul(Dt,Cr)|0,ht=ht+Math.imul(Dt,Or)|0,ht=ht+Math.imul(Ht,Cr)|0,$t=$t+Math.imul(Ht,Or)|0;var f0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(f0>>>26)|0,f0&=67108863,xt=Math.imul(Kt,pr),ht=Math.imul(Kt,vr),ht=ht+Math.imul(ar,pr)|0,$t=Math.imul(ar,vr),xt=xt+Math.imul(Gt,wr)|0,ht=ht+Math.imul(Gt,Ar)|0,ht=ht+Math.imul(Zt,wr)|0,$t=$t+Math.imul(Zt,Ar)|0,xt=xt+Math.imul(Xt,Cr)|0,ht=ht+Math.imul(Xt,Or)|0,ht=ht+Math.imul(Ut,Cr)|0,$t=$t+Math.imul(Ut,Or)|0,xt=xt+Math.imul(Dt,_r)|0,ht=ht+Math.imul(Dt,Dr)|0,ht=ht+Math.imul(Ht,_r)|0,$t=$t+Math.imul(Ht,Dr)|0;var c0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(c0>>>26)|0,c0&=67108863,xt=Math.imul(cr,pr),ht=Math.imul(cr,vr),ht=ht+Math.imul(ur,pr)|0,$t=Math.imul(ur,vr),xt=xt+Math.imul(Kt,wr)|0,ht=ht+Math.imul(Kt,Ar)|0,ht=ht+Math.imul(ar,wr)|0,$t=$t+Math.imul(ar,Ar)|0,xt=xt+Math.imul(Gt,Cr)|0,ht=ht+Math.imul(Gt,Or)|0,ht=ht+Math.imul(Zt,Cr)|0,$t=$t+Math.imul(Zt,Or)|0,xt=xt+Math.imul(Xt,_r)|0,ht=ht+Math.imul(Xt,Dr)|0,ht=ht+Math.imul(Ut,_r)|0,$t=$t+Math.imul(Ut,Dr)|0,xt=xt+Math.imul(Dt,Tr)|0,ht=ht+Math.imul(Dt,Lr)|0,ht=ht+Math.imul(Ht,Tr)|0,$t=$t+Math.imul(Ht,Lr)|0;var l0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(l0>>>26)|0,l0&=67108863,xt=Math.imul(br,pr),ht=Math.imul(br,vr),ht=ht+Math.imul(dr,pr)|0,$t=Math.imul(dr,vr),xt=xt+Math.imul(cr,wr)|0,ht=ht+Math.imul(cr,Ar)|0,ht=ht+Math.imul(ur,wr)|0,$t=$t+Math.imul(ur,Ar)|0,xt=xt+Math.imul(Kt,Cr)|0,ht=ht+Math.imul(Kt,Or)|0,ht=ht+Math.imul(ar,Cr)|0,$t=$t+Math.imul(ar,Or)|0,xt=xt+Math.imul(Gt,_r)|0,ht=ht+Math.imul(Gt,Dr)|0,ht=ht+Math.imul(Zt,_r)|0,$t=$t+Math.imul(Zt,Dr)|0,xt=xt+Math.imul(Xt,Tr)|0,ht=ht+Math.imul(Xt,Lr)|0,ht=ht+Math.imul(Ut,Tr)|0,$t=$t+Math.imul(Ut,Lr)|0,xt=xt+Math.imul(Dt,Rr)|0,ht=ht+Math.imul(Dt,Fr)|0,ht=ht+Math.imul(Ht,Rr)|0,$t=$t+Math.imul(Ht,Fr)|0;var u0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(u0>>>26)|0,u0&=67108863,xt=Math.imul(xr,pr),ht=Math.imul(xr,vr),ht=ht+Math.imul(Sr,pr)|0,$t=Math.imul(Sr,vr),xt=xt+Math.imul(br,wr)|0,ht=ht+Math.imul(br,Ar)|0,ht=ht+Math.imul(dr,wr)|0,$t=$t+Math.imul(dr,Ar)|0,xt=xt+Math.imul(cr,Cr)|0,ht=ht+Math.imul(cr,Or)|0,ht=ht+Math.imul(ur,Cr)|0,$t=$t+Math.imul(ur,Or)|0,xt=xt+Math.imul(Kt,_r)|0,ht=ht+Math.imul(Kt,Dr)|0,ht=ht+Math.imul(ar,_r)|0,$t=$t+Math.imul(ar,Dr)|0,xt=xt+Math.imul(Gt,Tr)|0,ht=ht+Math.imul(Gt,Lr)|0,ht=ht+Math.imul(Zt,Tr)|0,$t=$t+Math.imul(Zt,Lr)|0,xt=xt+Math.imul(Xt,Rr)|0,ht=ht+Math.imul(Xt,Fr)|0,ht=ht+Math.imul(Ut,Rr)|0,$t=$t+Math.imul(Ut,Fr)|0,xt=xt+Math.imul(Dt,Br)|0,ht=ht+Math.imul(Dt,jr)|0,ht=ht+Math.imul(Ht,Br)|0,$t=$t+Math.imul(Ht,jr)|0;var d0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(d0>>>26)|0,d0&=67108863,xt=Math.imul($r,pr),ht=Math.imul($r,vr),ht=ht+Math.imul(Mr,pr)|0,$t=Math.imul(Mr,vr),xt=xt+Math.imul(xr,wr)|0,ht=ht+Math.imul(xr,Ar)|0,ht=ht+Math.imul(Sr,wr)|0,$t=$t+Math.imul(Sr,Ar)|0,xt=xt+Math.imul(br,Cr)|0,ht=ht+Math.imul(br,Or)|0,ht=ht+Math.imul(dr,Cr)|0,$t=$t+Math.imul(dr,Or)|0,xt=xt+Math.imul(cr,_r)|0,ht=ht+Math.imul(cr,Dr)|0,ht=ht+Math.imul(ur,_r)|0,$t=$t+Math.imul(ur,Dr)|0,xt=xt+Math.imul(Kt,Tr)|0,ht=ht+Math.imul(Kt,Lr)|0,ht=ht+Math.imul(ar,Tr)|0,$t=$t+Math.imul(ar,Lr)|0,xt=xt+Math.imul(Gt,Rr)|0,ht=ht+Math.imul(Gt,Fr)|0,ht=ht+Math.imul(Zt,Rr)|0,$t=$t+Math.imul(Zt,Fr)|0,xt=xt+Math.imul(Xt,Br)|0,ht=ht+Math.imul(Xt,jr)|0,ht=ht+Math.imul(Ut,Br)|0,$t=$t+Math.imul(Ut,jr)|0,xt=xt+Math.imul(Dt,kr)|0,ht=ht+Math.imul(Dt,Ur)|0,ht=ht+Math.imul(Ht,kr)|0,$t=$t+Math.imul(Ht,Ur)|0;var h0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(h0>>>26)|0,h0&=67108863,xt=Math.imul(Qt,pr),ht=Math.imul(Qt,vr),ht=ht+Math.imul(zt,pr)|0,$t=Math.imul(zt,vr),xt=xt+Math.imul($r,wr)|0,ht=ht+Math.imul($r,Ar)|0,ht=ht+Math.imul(Mr,wr)|0,$t=$t+Math.imul(Mr,Ar)|0,xt=xt+Math.imul(xr,Cr)|0,ht=ht+Math.imul(xr,Or)|0,ht=ht+Math.imul(Sr,Cr)|0,$t=$t+Math.imul(Sr,Or)|0,xt=xt+Math.imul(br,_r)|0,ht=ht+Math.imul(br,Dr)|0,ht=ht+Math.imul(dr,_r)|0,$t=$t+Math.imul(dr,Dr)|0,xt=xt+Math.imul(cr,Tr)|0,ht=ht+Math.imul(cr,Lr)|0,ht=ht+Math.imul(ur,Tr)|0,$t=$t+Math.imul(ur,Lr)|0,xt=xt+Math.imul(Kt,Rr)|0,ht=ht+Math.imul(Kt,Fr)|0,ht=ht+Math.imul(ar,Rr)|0,$t=$t+Math.imul(ar,Fr)|0,xt=xt+Math.imul(Gt,Br)|0,ht=ht+Math.imul(Gt,jr)|0,ht=ht+Math.imul(Zt,Br)|0,$t=$t+Math.imul(Zt,jr)|0,xt=xt+Math.imul(Xt,kr)|0,ht=ht+Math.imul(Xt,Ur)|0,ht=ht+Math.imul(Ut,kr)|0,$t=$t+Math.imul(Ut,Ur)|0,xt=xt+Math.imul(Dt,Ir)|0,ht=ht+Math.imul(Dt,Hr)|0,ht=ht+Math.imul(Ht,Ir)|0,$t=$t+Math.imul(Ht,Hr)|0;var p0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(p0>>>26)|0,p0&=67108863,xt=Math.imul(nr,pr),ht=Math.imul(nr,vr),ht=ht+Math.imul(fr,pr)|0,$t=Math.imul(fr,vr),xt=xt+Math.imul(Qt,wr)|0,ht=ht+Math.imul(Qt,Ar)|0,ht=ht+Math.imul(zt,wr)|0,$t=$t+Math.imul(zt,Ar)|0,xt=xt+Math.imul($r,Cr)|0,ht=ht+Math.imul($r,Or)|0,ht=ht+Math.imul(Mr,Cr)|0,$t=$t+Math.imul(Mr,Or)|0,xt=xt+Math.imul(xr,_r)|0,ht=ht+Math.imul(xr,Dr)|0,ht=ht+Math.imul(Sr,_r)|0,$t=$t+Math.imul(Sr,Dr)|0,xt=xt+Math.imul(br,Tr)|0,ht=ht+Math.imul(br,Lr)|0,ht=ht+Math.imul(dr,Tr)|0,$t=$t+Math.imul(dr,Lr)|0,xt=xt+Math.imul(cr,Rr)|0,ht=ht+Math.imul(cr,Fr)|0,ht=ht+Math.imul(ur,Rr)|0,$t=$t+Math.imul(ur,Fr)|0,xt=xt+Math.imul(Kt,Br)|0,ht=ht+Math.imul(Kt,jr)|0,ht=ht+Math.imul(ar,Br)|0,$t=$t+Math.imul(ar,jr)|0,xt=xt+Math.imul(Gt,kr)|0,ht=ht+Math.imul(Gt,Ur)|0,ht=ht+Math.imul(Zt,kr)|0,$t=$t+Math.imul(Zt,Ur)|0,xt=xt+Math.imul(Xt,Ir)|0,ht=ht+Math.imul(Xt,Hr)|0,ht=ht+Math.imul(Ut,Ir)|0,$t=$t+Math.imul(Ut,Hr)|0,xt=xt+Math.imul(Dt,Nr)|0,ht=ht+Math.imul(Dt,qr)|0,ht=ht+Math.imul(Ht,Nr)|0,$t=$t+Math.imul(Ht,qr)|0;var b0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(b0>>>26)|0,b0&=67108863,xt=Math.imul(nr,wr),ht=Math.imul(nr,Ar),ht=ht+Math.imul(fr,wr)|0,$t=Math.imul(fr,Ar),xt=xt+Math.imul(Qt,Cr)|0,ht=ht+Math.imul(Qt,Or)|0,ht=ht+Math.imul(zt,Cr)|0,$t=$t+Math.imul(zt,Or)|0,xt=xt+Math.imul($r,_r)|0,ht=ht+Math.imul($r,Dr)|0,ht=ht+Math.imul(Mr,_r)|0,$t=$t+Math.imul(Mr,Dr)|0,xt=xt+Math.imul(xr,Tr)|0,ht=ht+Math.imul(xr,Lr)|0,ht=ht+Math.imul(Sr,Tr)|0,$t=$t+Math.imul(Sr,Lr)|0,xt=xt+Math.imul(br,Rr)|0,ht=ht+Math.imul(br,Fr)|0,ht=ht+Math.imul(dr,Rr)|0,$t=$t+Math.imul(dr,Fr)|0,xt=xt+Math.imul(cr,Br)|0,ht=ht+Math.imul(cr,jr)|0,ht=ht+Math.imul(ur,Br)|0,$t=$t+Math.imul(ur,jr)|0,xt=xt+Math.imul(Kt,kr)|0,ht=ht+Math.imul(Kt,Ur)|0,ht=ht+Math.imul(ar,kr)|0,$t=$t+Math.imul(ar,Ur)|0,xt=xt+Math.imul(Gt,Ir)|0,ht=ht+Math.imul(Gt,Hr)|0,ht=ht+Math.imul(Zt,Ir)|0,$t=$t+Math.imul(Zt,Hr)|0,xt=xt+Math.imul(Xt,Nr)|0,ht=ht+Math.imul(Xt,qr)|0,ht=ht+Math.imul(Ut,Nr)|0,$t=$t+Math.imul(Ut,qr)|0;var m0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(m0>>>26)|0,m0&=67108863,xt=Math.imul(nr,Cr),ht=Math.imul(nr,Or),ht=ht+Math.imul(fr,Cr)|0,$t=Math.imul(fr,Or),xt=xt+Math.imul(Qt,_r)|0,ht=ht+Math.imul(Qt,Dr)|0,ht=ht+Math.imul(zt,_r)|0,$t=$t+Math.imul(zt,Dr)|0,xt=xt+Math.imul($r,Tr)|0,ht=ht+Math.imul($r,Lr)|0,ht=ht+Math.imul(Mr,Tr)|0,$t=$t+Math.imul(Mr,Lr)|0,xt=xt+Math.imul(xr,Rr)|0,ht=ht+Math.imul(xr,Fr)|0,ht=ht+Math.imul(Sr,Rr)|0,$t=$t+Math.imul(Sr,Fr)|0,xt=xt+Math.imul(br,Br)|0,ht=ht+Math.imul(br,jr)|0,ht=ht+Math.imul(dr,Br)|0,$t=$t+Math.imul(dr,jr)|0,xt=xt+Math.imul(cr,kr)|0,ht=ht+Math.imul(cr,Ur)|0,ht=ht+Math.imul(ur,kr)|0,$t=$t+Math.imul(ur,Ur)|0,xt=xt+Math.imul(Kt,Ir)|0,ht=ht+Math.imul(Kt,Hr)|0,ht=ht+Math.imul(ar,Ir)|0,$t=$t+Math.imul(ar,Hr)|0,xt=xt+Math.imul(Gt,Nr)|0,ht=ht+Math.imul(Gt,qr)|0,ht=ht+Math.imul(Zt,Nr)|0,$t=$t+Math.imul(Zt,qr)|0;var g0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(g0>>>26)|0,g0&=67108863,xt=Math.imul(nr,_r),ht=Math.imul(nr,Dr),ht=ht+Math.imul(fr,_r)|0,$t=Math.imul(fr,Dr),xt=xt+Math.imul(Qt,Tr)|0,ht=ht+Math.imul(Qt,Lr)|0,ht=ht+Math.imul(zt,Tr)|0,$t=$t+Math.imul(zt,Lr)|0,xt=xt+Math.imul($r,Rr)|0,ht=ht+Math.imul($r,Fr)|0,ht=ht+Math.imul(Mr,Rr)|0,$t=$t+Math.imul(Mr,Fr)|0,xt=xt+Math.imul(xr,Br)|0,ht=ht+Math.imul(xr,jr)|0,ht=ht+Math.imul(Sr,Br)|0,$t=$t+Math.imul(Sr,jr)|0,xt=xt+Math.imul(br,kr)|0,ht=ht+Math.imul(br,Ur)|0,ht=ht+Math.imul(dr,kr)|0,$t=$t+Math.imul(dr,Ur)|0,xt=xt+Math.imul(cr,Ir)|0,ht=ht+Math.imul(cr,Hr)|0,ht=ht+Math.imul(ur,Ir)|0,$t=$t+Math.imul(ur,Hr)|0,xt=xt+Math.imul(Kt,Nr)|0,ht=ht+Math.imul(Kt,qr)|0,ht=ht+Math.imul(ar,Nr)|0,$t=$t+Math.imul(ar,qr)|0;var y0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(y0>>>26)|0,y0&=67108863,xt=Math.imul(nr,Tr),ht=Math.imul(nr,Lr),ht=ht+Math.imul(fr,Tr)|0,$t=Math.imul(fr,Lr),xt=xt+Math.imul(Qt,Rr)|0,ht=ht+Math.imul(Qt,Fr)|0,ht=ht+Math.imul(zt,Rr)|0,$t=$t+Math.imul(zt,Fr)|0,xt=xt+Math.imul($r,Br)|0,ht=ht+Math.imul($r,jr)|0,ht=ht+Math.imul(Mr,Br)|0,$t=$t+Math.imul(Mr,jr)|0,xt=xt+Math.imul(xr,kr)|0,ht=ht+Math.imul(xr,Ur)|0,ht=ht+Math.imul(Sr,kr)|0,$t=$t+Math.imul(Sr,Ur)|0,xt=xt+Math.imul(br,Ir)|0,ht=ht+Math.imul(br,Hr)|0,ht=ht+Math.imul(dr,Ir)|0,$t=$t+Math.imul(dr,Hr)|0,xt=xt+Math.imul(cr,Nr)|0,ht=ht+Math.imul(cr,qr)|0,ht=ht+Math.imul(ur,Nr)|0,$t=$t+Math.imul(ur,qr)|0;var v0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(v0>>>26)|0,v0&=67108863,xt=Math.imul(nr,Rr),ht=Math.imul(nr,Fr),ht=ht+Math.imul(fr,Rr)|0,$t=Math.imul(fr,Fr),xt=xt+Math.imul(Qt,Br)|0,ht=ht+Math.imul(Qt,jr)|0,ht=ht+Math.imul(zt,Br)|0,$t=$t+Math.imul(zt,jr)|0,xt=xt+Math.imul($r,kr)|0,ht=ht+Math.imul($r,Ur)|0,ht=ht+Math.imul(Mr,kr)|0,$t=$t+Math.imul(Mr,Ur)|0,xt=xt+Math.imul(xr,Ir)|0,ht=ht+Math.imul(xr,Hr)|0,ht=ht+Math.imul(Sr,Ir)|0,$t=$t+Math.imul(Sr,Hr)|0,xt=xt+Math.imul(br,Nr)|0,ht=ht+Math.imul(br,qr)|0,ht=ht+Math.imul(dr,Nr)|0,$t=$t+Math.imul(dr,qr)|0;var w0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(w0>>>26)|0,w0&=67108863,xt=Math.imul(nr,Br),ht=Math.imul(nr,jr),ht=ht+Math.imul(fr,Br)|0,$t=Math.imul(fr,jr),xt=xt+Math.imul(Qt,kr)|0,ht=ht+Math.imul(Qt,Ur)|0,ht=ht+Math.imul(zt,kr)|0,$t=$t+Math.imul(zt,Ur)|0,xt=xt+Math.imul($r,Ir)|0,ht=ht+Math.imul($r,Hr)|0,ht=ht+Math.imul(Mr,Ir)|0,$t=$t+Math.imul(Mr,Hr)|0,xt=xt+Math.imul(xr,Nr)|0,ht=ht+Math.imul(xr,qr)|0,ht=ht+Math.imul(Sr,Nr)|0,$t=$t+Math.imul(Sr,qr)|0;var x0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(x0>>>26)|0,x0&=67108863,xt=Math.imul(nr,kr),ht=Math.imul(nr,Ur),ht=ht+Math.imul(fr,kr)|0,$t=Math.imul(fr,Ur),xt=xt+Math.imul(Qt,Ir)|0,ht=ht+Math.imul(Qt,Hr)|0,ht=ht+Math.imul(zt,Ir)|0,$t=$t+Math.imul(zt,Hr)|0,xt=xt+Math.imul($r,Nr)|0,ht=ht+Math.imul($r,qr)|0,ht=ht+Math.imul(Mr,Nr)|0,$t=$t+Math.imul(Mr,qr)|0;var E0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(E0>>>26)|0,E0&=67108863,xt=Math.imul(nr,Ir),ht=Math.imul(nr,Hr),ht=ht+Math.imul(fr,Ir)|0,$t=Math.imul(fr,Hr),xt=xt+Math.imul(Qt,Nr)|0,ht=ht+Math.imul(Qt,qr)|0,ht=ht+Math.imul(zt,Nr)|0,$t=$t+Math.imul(zt,qr)|0;var $0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+($0>>>26)|0,$0&=67108863,xt=Math.imul(nr,Nr),ht=Math.imul(nr,qr),ht=ht+Math.imul(fr,Nr)|0,$t=Math.imul(fr,qr);var M0=(Pt+xt|0)+((ht&8191)<<13)|0;return Pt=($t+(ht>>>13)|0)+(M0>>>26)|0,M0&=67108863,At[0]=e0,At[1]=t0,At[2]=f0,At[3]=c0,At[4]=l0,At[5]=u0,At[6]=d0,At[7]=h0,At[8]=p0,At[9]=b0,At[10]=m0,At[11]=g0,At[12]=y0,At[13]=v0,At[14]=w0,At[15]=x0,At[16]=E0,At[17]=$0,At[18]=M0,Pt!==0&&(At[19]=Pt,yt.length++),yt};Math.imul||(It=kt);function Lt(Ct,dt,mt){mt.negative=dt.negative^Ct.negative,mt.length=Ct.length+dt.length;for(var yt=0,vt=0,Et=0;Et>>26)|0,vt+=At>>>26,At&=67108863}mt.words[Et]=Pt,yt=At,At=vt}return yt!==0?mt.words[Et]=yt:mt.length--,mt.strip()}function Ot(Ct,dt,mt){var yt=new Nt;return yt.mulp(Ct,dt,mt)}tt.prototype.mulTo=function(dt,mt){var yt,vt=this.length+dt.length;return this.length===10&&dt.length===10?yt=It(this,dt,mt):vt<63?yt=kt(this,dt,mt):vt<1024?yt=Lt(this,dt,mt):yt=Ot(this,dt,mt),yt};function Nt(Ct,dt){this.x=Ct,this.y=dt}Nt.prototype.makeRBT=function(dt){for(var mt=new Array(dt),yt=tt.prototype._countBits(dt)-1,vt=0;vt>=1;return vt},Nt.prototype.permute=function(dt,mt,yt,vt,Et,At){for(var Pt=0;Pt>>1)Et++;return 1<>>13,yt[2*At+1]=Et&8191,Et=Et>>>13;for(At=2*mt;At>=26,mt+=vt/67108864|0,mt+=Et>>>26,this.words[yt]=Et&67108863}return mt!==0&&(this.words[yt]=mt,this.length++),this},tt.prototype.muln=function(dt){return this.clone().imuln(dt)},tt.prototype.sqr=function(){return this.mul(this)},tt.prototype.isqr=function(){return this.imul(this.clone())},tt.prototype.pow=function(dt){var mt=Rt(dt);if(mt.length===0)return new tt(1);for(var yt=this,vt=0;vt=0);var mt=dt%26,yt=(dt-mt)/26,vt=67108863>>>26-mt<<26-mt,Et;if(mt!==0){var At=0;for(Et=0;Et>>26-mt}At&&(this.words[Et]=At,this.length++)}if(yt!==0){for(Et=this.length-1;Et>=0;Et--)this.words[Et+yt]=this.words[Et];for(Et=0;Et=0);var vt;mt?vt=(mt-mt%26)/26:vt=0;var Et=dt%26,At=Math.min((dt-Et)/26,this.length),Pt=67108863^67108863>>>Et<At)for(this.length-=At,ht=0;ht=0&&($t!==0||ht>=vt);ht--){var Bt=this.words[ht]|0;this.words[ht]=$t<<26-Et|Bt>>>Et,$t=Bt&Pt}return xt&&$t!==0&&(xt.words[xt.length++]=$t),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},tt.prototype.ishrn=function(dt,mt,yt){return et(this.negative===0),this.iushrn(dt,mt,yt)},tt.prototype.shln=function(dt){return this.clone().ishln(dt)},tt.prototype.ushln=function(dt){return this.clone().iushln(dt)},tt.prototype.shrn=function(dt){return this.clone().ishrn(dt)},tt.prototype.ushrn=function(dt){return this.clone().iushrn(dt)},tt.prototype.testn=function(dt){et(typeof dt=="number"&&dt>=0);var mt=dt%26,yt=(dt-mt)/26,vt=1<=0);var mt=dt%26,yt=(dt-mt)/26;if(et(this.negative===0,"imaskn works only with positive numbers"),this.length<=yt)return this;if(mt!==0&&yt++,this.length=Math.min(yt,this.length),mt!==0){var vt=67108863^67108863>>>mt<=67108864;mt++)this.words[mt]-=67108864,mt===this.length-1?this.words[mt+1]=1:this.words[mt+1]++;return this.length=Math.max(this.length,mt+1),this},tt.prototype.isubn=function(dt){if(et(typeof dt=="number"),et(dt<67108864),dt<0)return this.iaddn(-dt);if(this.negative!==0)return this.negative=0,this.iaddn(dt),this.negative=1,this;if(this.words[0]-=dt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var mt=0;mt>26)-(xt/67108864|0),this.words[Et+yt]=At&67108863}for(;Et>26,this.words[Et+yt]=At&67108863;if(Pt===0)return this.strip();for(et(Pt===-1),Pt=0,Et=0;Et>26,this.words[Et]=At&67108863;return this.negative=1,this.strip()},tt.prototype._wordDiv=function(dt,mt){var yt=this.length-dt.length,vt=this.clone(),Et=dt,At=Et.words[Et.length-1]|0,Pt=this._countBits(At);yt=26-Pt,yt!==0&&(Et=Et.ushln(yt),vt.iushln(yt),At=Et.words[Et.length-1]|0);var xt=vt.length-Et.length,ht;if(mt!=="mod"){ht=new tt(null),ht.length=xt+1,ht.words=new Array(ht.length);for(var $t=0;$t=0;Dt--){var Ht=(vt.words[Et.length+Dt]|0)*67108864+(vt.words[Et.length+Dt-1]|0);for(Ht=Math.min(Ht/At|0,67108863),vt._ishlnsubmul(Et,Ht,Dt);vt.negative!==0;)Ht--,vt.negative=0,vt._ishlnsubmul(Et,1,Dt),vt.isZero()||(vt.negative^=1);ht&&(ht.words[Dt]=Ht)}return ht&&ht.strip(),vt.strip(),mt!=="div"&&yt!==0&&vt.iushrn(yt),{div:ht||null,mod:vt}},tt.prototype.divmod=function(dt,mt,yt){if(et(!dt.isZero()),this.isZero())return{div:new tt(0),mod:new tt(0)};var vt,Et,At;return this.negative!==0&&dt.negative===0?(At=this.neg().divmod(dt,mt),mt!=="mod"&&(vt=At.div.neg()),mt!=="div"&&(Et=At.mod.neg(),yt&&Et.negative!==0&&Et.iadd(dt)),{div:vt,mod:Et}):this.negative===0&&dt.negative!==0?(At=this.divmod(dt.neg(),mt),mt!=="mod"&&(vt=At.div.neg()),{div:vt,mod:At.mod}):this.negative&dt.negative?(At=this.neg().divmod(dt.neg(),mt),mt!=="div"&&(Et=At.mod.neg(),yt&&Et.negative!==0&&Et.isub(dt)),{div:At.div,mod:Et}):dt.length>this.length||this.cmp(dt)<0?{div:new tt(0),mod:this}:dt.length===1?mt==="div"?{div:this.divn(dt.words[0]),mod:null}:mt==="mod"?{div:null,mod:new tt(this.modn(dt.words[0]))}:{div:this.divn(dt.words[0]),mod:new tt(this.modn(dt.words[0]))}:this._wordDiv(dt,mt)},tt.prototype.div=function(dt){return this.divmod(dt,"div",!1).div},tt.prototype.mod=function(dt){return this.divmod(dt,"mod",!1).mod},tt.prototype.umod=function(dt){return this.divmod(dt,"mod",!0).mod},tt.prototype.divRound=function(dt){var mt=this.divmod(dt);if(mt.mod.isZero())return mt.div;var yt=mt.div.negative!==0?mt.mod.isub(dt):mt.mod,vt=dt.ushrn(1),Et=dt.andln(1),At=yt.cmp(vt);return At<0||Et===1&&At===0?mt.div:mt.div.negative!==0?mt.div.isubn(1):mt.div.iaddn(1)},tt.prototype.modn=function(dt){et(dt<=67108863);for(var mt=(1<<26)%dt,yt=0,vt=this.length-1;vt>=0;vt--)yt=(mt*yt+(this.words[vt]|0))%dt;return yt},tt.prototype.idivn=function(dt){et(dt<=67108863);for(var mt=0,yt=this.length-1;yt>=0;yt--){var vt=(this.words[yt]|0)+mt*67108864;this.words[yt]=vt/dt|0,mt=vt%dt}return this.strip()},tt.prototype.divn=function(dt){return this.clone().idivn(dt)},tt.prototype.egcd=function(dt){et(dt.negative===0),et(!dt.isZero());var mt=this,yt=dt.clone();mt.negative!==0?mt=mt.umod(dt):mt=mt.clone();for(var vt=new tt(1),Et=new tt(0),At=new tt(0),Pt=new tt(1),xt=0;mt.isEven()&&yt.isEven();)mt.iushrn(1),yt.iushrn(1),++xt;for(var ht=yt.clone(),$t=mt.clone();!mt.isZero();){for(var Bt=0,Dt=1;!(mt.words[0]&Dt)&&Bt<26;++Bt,Dt<<=1);if(Bt>0)for(mt.iushrn(Bt);Bt-- >0;)(vt.isOdd()||Et.isOdd())&&(vt.iadd(ht),Et.isub($t)),vt.iushrn(1),Et.iushrn(1);for(var Ht=0,tr=1;!(yt.words[0]&tr)&&Ht<26;++Ht,tr<<=1);if(Ht>0)for(yt.iushrn(Ht);Ht-- >0;)(At.isOdd()||Pt.isOdd())&&(At.iadd(ht),Pt.isub($t)),At.iushrn(1),Pt.iushrn(1);mt.cmp(yt)>=0?(mt.isub(yt),vt.isub(At),Et.isub(Pt)):(yt.isub(mt),At.isub(vt),Pt.isub(Et))}return{a:At,b:Pt,gcd:yt.iushln(xt)}},tt.prototype._invmp=function(dt){et(dt.negative===0),et(!dt.isZero());var mt=this,yt=dt.clone();mt.negative!==0?mt=mt.umod(dt):mt=mt.clone();for(var vt=new tt(1),Et=new tt(0),At=yt.clone();mt.cmpn(1)>0&&yt.cmpn(1)>0;){for(var Pt=0,xt=1;!(mt.words[0]&xt)&&Pt<26;++Pt,xt<<=1);if(Pt>0)for(mt.iushrn(Pt);Pt-- >0;)vt.isOdd()&&vt.iadd(At),vt.iushrn(1);for(var ht=0,$t=1;!(yt.words[0]&$t)&&ht<26;++ht,$t<<=1);if(ht>0)for(yt.iushrn(ht);ht-- >0;)Et.isOdd()&&Et.iadd(At),Et.iushrn(1);mt.cmp(yt)>=0?(mt.isub(yt),vt.isub(Et)):(yt.isub(mt),Et.isub(vt))}var Bt;return mt.cmpn(1)===0?Bt=vt:Bt=Et,Bt.cmpn(0)<0&&Bt.iadd(dt),Bt},tt.prototype.gcd=function(dt){if(this.isZero())return dt.abs();if(dt.isZero())return this.abs();var mt=this.clone(),yt=dt.clone();mt.negative=0,yt.negative=0;for(var vt=0;mt.isEven()&&yt.isEven();vt++)mt.iushrn(1),yt.iushrn(1);do{for(;mt.isEven();)mt.iushrn(1);for(;yt.isEven();)yt.iushrn(1);var Et=mt.cmp(yt);if(Et<0){var At=mt;mt=yt,yt=At}else if(Et===0||yt.cmpn(1)===0)break;mt.isub(yt)}while(!0);return yt.iushln(vt)},tt.prototype.invm=function(dt){return this.egcd(dt).a.umod(dt)},tt.prototype.isEven=function(){return(this.words[0]&1)===0},tt.prototype.isOdd=function(){return(this.words[0]&1)===1},tt.prototype.andln=function(dt){return this.words[0]&dt},tt.prototype.bincn=function(dt){et(typeof dt=="number");var mt=dt%26,yt=(dt-mt)/26,vt=1<>>26,Pt&=67108863,this.words[At]=Pt}return Et!==0&&(this.words[At]=Et,this.length++),this},tt.prototype.isZero=function(){return this.length===1&&this.words[0]===0},tt.prototype.cmpn=function(dt){var mt=dt<0;if(this.negative!==0&&!mt)return-1;if(this.negative===0&&mt)return 1;this.strip();var yt;if(this.length>1)yt=1;else{mt&&(dt=-dt),et(dt<=67108863,"Number is too big");var vt=this.words[0]|0;yt=vt===dt?0:vtdt.length)return 1;if(this.length=0;yt--){var vt=this.words[yt]|0,Et=dt.words[yt]|0;if(vt!==Et){vtEt&&(mt=1);break}}return mt},tt.prototype.gtn=function(dt){return this.cmpn(dt)===1},tt.prototype.gt=function(dt){return this.cmp(dt)===1},tt.prototype.gten=function(dt){return this.cmpn(dt)>=0},tt.prototype.gte=function(dt){return this.cmp(dt)>=0},tt.prototype.ltn=function(dt){return this.cmpn(dt)===-1},tt.prototype.lt=function(dt){return this.cmp(dt)===-1},tt.prototype.lten=function(dt){return this.cmpn(dt)<=0},tt.prototype.lte=function(dt){return this.cmp(dt)<=0},tt.prototype.eqn=function(dt){return this.cmpn(dt)===0},tt.prototype.eq=function(dt){return this.cmp(dt)===0},tt.red=function(dt){return new er(dt)},tt.prototype.toRed=function(dt){return et(!this.red,"Already a number in reduction context"),et(this.negative===0,"red works only with positives"),dt.convertTo(this)._forceRed(dt)},tt.prototype.fromRed=function(){return et(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},tt.prototype._forceRed=function(dt){return this.red=dt,this},tt.prototype.forceRed=function(dt){return et(!this.red,"Already a number in reduction context"),this._forceRed(dt)},tt.prototype.redAdd=function(dt){return et(this.red,"redAdd works only with red numbers"),this.red.add(this,dt)},tt.prototype.redIAdd=function(dt){return et(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,dt)},tt.prototype.redSub=function(dt){return et(this.red,"redSub works only with red numbers"),this.red.sub(this,dt)},tt.prototype.redISub=function(dt){return et(this.red,"redISub works only with red numbers"),this.red.isub(this,dt)},tt.prototype.redShl=function(dt){return et(this.red,"redShl works only with red numbers"),this.red.shl(this,dt)},tt.prototype.redMul=function(dt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,dt),this.red.mul(this,dt)},tt.prototype.redIMul=function(dt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,dt),this.red.imul(this,dt)},tt.prototype.redSqr=function(){return et(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},tt.prototype.redISqr=function(){return et(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},tt.prototype.redSqrt=function(){return et(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},tt.prototype.redInvm=function(){return et(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},tt.prototype.redNeg=function(){return et(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},tt.prototype.redPow=function(dt){return et(this.red&&!dt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,dt)};var Ft={k256:null,p224:null,p192:null,p25519:null};function jt(Ct,dt){this.name=Ct,this.p=new tt(dt,16),this.n=this.p.bitLength(),this.k=new tt(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}jt.prototype._tmp=function(){var dt=new tt(null);return dt.words=new Array(Math.ceil(this.n/13)),dt},jt.prototype.ireduce=function(dt){var mt=dt,yt;do this.split(mt,this.tmp),mt=this.imulK(mt),mt=mt.iadd(this.tmp),yt=mt.bitLength();while(yt>this.n);var vt=yt0?mt.isub(this.p):mt.strip!==void 0?mt.strip():mt._strip(),mt},jt.prototype.split=function(dt,mt){dt.iushrn(this.n,0,mt)},jt.prototype.imulK=function(dt){return dt.imul(this.k)};function Vt(){jt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}nt(Vt,jt),Vt.prototype.split=function(dt,mt){for(var yt=4194303,vt=Math.min(dt.length,9),Et=0;Et>>22,At=Pt}At>>>=22,dt.words[Et-10]=At,At===0&&dt.length>10?dt.length-=10:dt.length-=9},Vt.prototype.imulK=function(dt){dt.words[dt.length]=0,dt.words[dt.length+1]=0,dt.length+=2;for(var mt=0,yt=0;yt>>=26,dt.words[yt]=Et,mt=vt}return mt!==0&&(dt.words[dt.length++]=mt),dt},tt._prime=function(dt){if(Ft[dt])return Ft[dt];var mt;if(dt==="k256")mt=new Vt;else if(dt==="p224")mt=new Jt;else if(dt==="p192")mt=new ir;else if(dt==="p25519")mt=new rr;else throw new Error("Unknown prime "+dt);return Ft[dt]=mt,mt};function er(Ct){if(typeof Ct=="string"){var dt=tt._prime(Ct);this.m=dt.p,this.prime=dt}else et(Ct.gtn(1),"modulus must be greater than 1"),this.m=Ct,this.prime=null}er.prototype._verify1=function(dt){et(dt.negative===0,"red works only with positives"),et(dt.red,"red works only with red numbers")},er.prototype._verify2=function(dt,mt){et((dt.negative|mt.negative)===0,"red works only with positives"),et(dt.red&&dt.red===mt.red,"red works only with red numbers")},er.prototype.imod=function(dt){return this.prime?this.prime.ireduce(dt)._forceRed(this):dt.umod(this.m)._forceRed(this)},er.prototype.neg=function(dt){return dt.isZero()?dt.clone():this.m.sub(dt)._forceRed(this)},er.prototype.add=function(dt,mt){this._verify2(dt,mt);var yt=dt.add(mt);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt._forceRed(this)},er.prototype.iadd=function(dt,mt){this._verify2(dt,mt);var yt=dt.iadd(mt);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt},er.prototype.sub=function(dt,mt){this._verify2(dt,mt);var yt=dt.sub(mt);return yt.cmpn(0)<0&&yt.iadd(this.m),yt._forceRed(this)},er.prototype.isub=function(dt,mt){this._verify2(dt,mt);var yt=dt.isub(mt);return yt.cmpn(0)<0&&yt.iadd(this.m),yt},er.prototype.shl=function(dt,mt){return this._verify1(dt),this.imod(dt.ushln(mt))},er.prototype.imul=function(dt,mt){return this._verify2(dt,mt),this.imod(dt.imul(mt))},er.prototype.mul=function(dt,mt){return this._verify2(dt,mt),this.imod(dt.mul(mt))},er.prototype.isqr=function(dt){return this.imul(dt,dt.clone())},er.prototype.sqr=function(dt){return this.mul(dt,dt)},er.prototype.sqrt=function(dt){if(dt.isZero())return dt.clone();var mt=this.m.andln(3);if(et(mt%2===1),mt===3){var yt=this.m.add(new tt(1)).iushrn(2);return this.pow(dt,yt)}for(var vt=this.m.subn(1),Et=0;!vt.isZero()&&vt.andln(1)===0;)Et++,vt.iushrn(1);et(!vt.isZero());var At=new tt(1).toRed(this),Pt=At.redNeg(),xt=this.m.subn(1).iushrn(1),ht=this.m.bitLength();for(ht=new tt(2*ht*ht).toRed(this);this.pow(ht,xt).cmp(Pt)!==0;)ht.redIAdd(Pt);for(var $t=this.pow(ht,vt),Bt=this.pow(dt,vt.addn(1).iushrn(1)),Dt=this.pow(dt,vt),Ht=Et;Dt.cmp(At)!==0;){for(var tr=Dt,Xt=0;tr.cmp(At)!==0;Xt++)tr=tr.redSqr();et(Xt=0;Et--){for(var $t=mt.words[Et],Bt=ht-1;Bt>=0;Bt--){var Dt=$t>>Bt&1;if(At!==vt[0]&&(At=this.sqr(At)),Dt===0&&Pt===0){xt=0;continue}Pt<<=1,Pt|=Dt,xt++,!(xt!==yt&&(Et!==0||Bt!==0))&&(At=this.mul(At,vt[Pt]),xt=0,Pt=0)}ht=26}return At},er.prototype.convertTo=function(dt){var mt=dt.umod(this.m);return mt===dt?mt.clone():mt},er.prototype.convertFrom=function(dt){var mt=dt.clone();return mt.red=null,mt},tt.mont=function(dt){return new lr(dt)};function lr(Ct){er.call(this,Ct),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new tt(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)}nt(lr,er),lr.prototype.convertTo=function(dt){return this.imod(dt.ushln(this.shift))},lr.prototype.convertFrom=function(dt){var mt=this.imod(dt.mul(this.rinv));return mt.red=null,mt},lr.prototype.imul=function(dt,mt){if(dt.isZero()||mt.isZero())return dt.words[0]=0,dt.length=1,dt;var yt=dt.imul(mt),vt=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Et=yt.isub(vt).iushrn(this.shift),At=Et;return Et.cmp(this.m)>=0?At=Et.isub(this.m):Et.cmpn(0)<0&&(At=Et.iadd(this.m)),At._forceRed(this)},lr.prototype.mul=function(dt,mt){if(dt.isZero()||mt.isZero())return new tt(0)._forceRed(this);var yt=dt.mul(mt),vt=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Et=yt.isub(vt).iushrn(this.shift),At=Et;return Et.cmp(this.m)>=0?At=Et.isub(this.m):Et.cmpn(0)<0&&(At=Et.iadd(this.m)),At._forceRed(this)},lr.prototype.invm=function(dt){var mt=this.imod(dt._invmp(this.m).mul(this.r2));return mt._forceRed(this)}})(c,commonjsGlobal)})(bn$1);var bnExports$1=bn$1.exports,browser$2,hasRequiredBrowser;function requireBrowser(){if(hasRequiredBrowser)return browser$2;hasRequiredBrowser=1;var c=requireElliptic(),a=bnExports$1;browser$2=function(bt){return new et(bt)};var d={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};d.p224=d.secp224r1,d.p256=d.secp256r1=d.prime256v1,d.p192=d.secp192r1=d.prime192v1,d.p384=d.secp384r1,d.p521=d.secp521r1;function et(tt){this.curveType=d[tt],this.curveType||(this.curveType={name:tt}),this.curve=new c.ec(this.curveType.name),this.keys=void 0}et.prototype.generateKeys=function(tt,bt){return this.keys=this.curve.genKeyPair(),this.getPublicKey(tt,bt)},et.prototype.computeSecret=function(tt,bt,gt){bt=bt||"utf8",dist$2.Buffer.isBuffer(tt)||(tt=new dist$2.Buffer(tt,bt));var wt=this.curve.keyFromPublic(tt).getPublic(),St=wt.mul(this.keys.getPrivate()).getX();return nt(St,gt,this.curveType.byteLength)},et.prototype.getPublicKey=function(tt,bt){var gt=this.keys.getPublic(bt==="compressed",!0);return bt==="hybrid"&&(gt[gt.length-1]%2?gt[0]=7:gt[0]=6),nt(gt,tt)},et.prototype.getPrivateKey=function(tt){return nt(this.keys.getPrivate(),tt)},et.prototype.setPublicKey=function(tt,bt){return bt=bt||"utf8",dist$2.Buffer.isBuffer(tt)||(tt=new dist$2.Buffer(tt,bt)),this.keys._importPublic(tt),this},et.prototype.setPrivateKey=function(tt,bt){bt=bt||"utf8",dist$2.Buffer.isBuffer(tt)||(tt=new dist$2.Buffer(tt,bt));var gt=new a(tt);return gt=gt.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(gt),this};function nt(tt,bt,gt){Array.isArray(tt)||(tt=tt.toArray());var wt=new dist$2.Buffer(tt);if(gt&&wt.length0?dt:mt},tt.min=function(dt,mt){return dt.cmp(mt)<0?dt:mt},tt.prototype._init=function(dt,mt,yt){if(typeof dt=="number")return this._initNumber(dt,mt,yt);if(typeof dt=="object")return this._initArray(dt,mt,yt);mt==="hex"&&(mt=16),et(mt===(mt|0)&&mt>=2&&mt<=36),dt=dt.toString().replace(/\s+/g,"");var vt=0;dt[0]==="-"&&(vt++,this.negative=1),vt=0;vt-=3)At=dt[vt]|dt[vt-1]<<8|dt[vt-2]<<16,this.words[Et]|=At<>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,Et++);else if(yt==="le")for(vt=0,Et=0;vt>>26-Pt&67108863,Pt+=24,Pt>=26&&(Pt-=26,Et++);return this.strip()};function gt(Ct,dt){var mt=Ct.charCodeAt(dt);return mt>=65&&mt<=70?mt-55:mt>=97&&mt<=102?mt-87:mt-48&15}function wt(Ct,dt,mt){var yt=gt(Ct,mt);return mt-1>=dt&&(yt|=gt(Ct,mt-1)<<4),yt}tt.prototype._parseHex=function(dt,mt,yt){this.length=Math.ceil((dt.length-mt)/6),this.words=new Array(this.length);for(var vt=0;vt=mt;vt-=2)Pt=wt(dt,mt,vt)<=18?(Et-=18,At+=1,this.words[At]|=Pt>>>26):Et+=8;else{var xt=dt.length-mt;for(vt=xt%2===0?mt+1:mt;vt=18?(Et-=18,At+=1,this.words[At]|=Pt>>>26):Et+=8}this.strip()};function St(Ct,dt,mt,yt){for(var vt=0,Et=Math.min(Ct.length,mt),At=dt;At=49?vt+=Pt-49+10:Pt>=17?vt+=Pt-17+10:vt+=Pt}return vt}tt.prototype._parseBase=function(dt,mt,yt){this.words=[0],this.length=1;for(var vt=0,Et=1;Et<=67108863;Et*=mt)vt++;vt--,Et=Et/mt|0;for(var At=dt.length-yt,Pt=At%vt,xt=Math.min(At,At-Pt)+yt,ht=0,$t=yt;$t1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},tt.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},tt.prototype.inspect=function(){return(this.red?""};var Mt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],_t=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Tt=[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];tt.prototype.toString=function(dt,mt){dt=dt||10,mt=mt|0||1;var yt;if(dt===16||dt==="hex"){yt="";for(var vt=0,Et=0,At=0;At>>24-vt&16777215,Et!==0||At!==this.length-1?yt=Mt[6-xt.length]+xt+yt:yt=xt+yt,vt+=2,vt>=26&&(vt-=26,At--)}for(Et!==0&&(yt=Et.toString(16)+yt);yt.length%mt!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}if(dt===(dt|0)&&dt>=2&&dt<=36){var ht=_t[dt],$t=Tt[dt];yt="";var Bt=this.clone();for(Bt.negative=0;!Bt.isZero();){var Dt=Bt.modn($t).toString(dt);Bt=Bt.idivn($t),Bt.isZero()?yt=Dt+yt:yt=Mt[ht-Dt.length]+Dt+yt}for(this.isZero()&&(yt="0"+yt);yt.length%mt!==0;)yt="0"+yt;return this.negative!==0&&(yt="-"+yt),yt}et(!1,"Base should be between 2 and 36")},tt.prototype.toNumber=function(){var dt=this.words[0];return this.length===2?dt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?dt+=4503599627370496+this.words[1]*67108864:this.length>2&&et(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-dt:dt},tt.prototype.toJSON=function(){return this.toString(16)},tt.prototype.toBuffer=function(dt,mt){return et(typeof bt<"u"),this.toArrayLike(bt,dt,mt)},tt.prototype.toArray=function(dt,mt){return this.toArrayLike(Array,dt,mt)},tt.prototype.toArrayLike=function(dt,mt,yt){var vt=this.byteLength(),Et=yt||Math.max(1,vt);et(vt<=Et,"byte array longer than desired length"),et(Et>0,"Requested array length <= 0"),this.strip();var At=mt==="le",Pt=new dt(Et),xt,ht,$t=this.clone();if(At){for(ht=0;!$t.isZero();ht++)xt=$t.andln(255),$t.iushrn(8),Pt[ht]=xt;for(;ht=4096&&(yt+=13,mt>>>=13),mt>=64&&(yt+=7,mt>>>=7),mt>=8&&(yt+=4,mt>>>=4),mt>=2&&(yt+=2,mt>>>=2),yt+mt},tt.prototype._zeroBits=function(dt){if(dt===0)return 26;var mt=dt,yt=0;return mt&8191||(yt+=13,mt>>>=13),mt&127||(yt+=7,mt>>>=7),mt&15||(yt+=4,mt>>>=4),mt&3||(yt+=2,mt>>>=2),mt&1||yt++,yt},tt.prototype.bitLength=function(){var dt=this.words[this.length-1],mt=this._countBits(dt);return(this.length-1)*26+mt};function Rt(Ct){for(var dt=new Array(Ct.bitLength()),mt=0;mt>>vt}return dt}tt.prototype.zeroBits=function(){if(this.isZero())return 0;for(var dt=0,mt=0;mtdt.length?this.clone().ior(dt):dt.clone().ior(this)},tt.prototype.uor=function(dt){return this.length>dt.length?this.clone().iuor(dt):dt.clone().iuor(this)},tt.prototype.iuand=function(dt){var mt;this.length>dt.length?mt=dt:mt=this;for(var yt=0;ytdt.length?this.clone().iand(dt):dt.clone().iand(this)},tt.prototype.uand=function(dt){return this.length>dt.length?this.clone().iuand(dt):dt.clone().iuand(this)},tt.prototype.iuxor=function(dt){var mt,yt;this.length>dt.length?(mt=this,yt=dt):(mt=dt,yt=this);for(var vt=0;vtdt.length?this.clone().ixor(dt):dt.clone().ixor(this)},tt.prototype.uxor=function(dt){return this.length>dt.length?this.clone().iuxor(dt):dt.clone().iuxor(this)},tt.prototype.inotn=function(dt){et(typeof dt=="number"&&dt>=0);var mt=Math.ceil(dt/26)|0,yt=dt%26;this._expand(mt),yt>0&&mt--;for(var vt=0;vt0&&(this.words[vt]=~this.words[vt]&67108863>>26-yt),this.strip()},tt.prototype.notn=function(dt){return this.clone().inotn(dt)},tt.prototype.setn=function(dt,mt){et(typeof dt=="number"&&dt>=0);var yt=dt/26|0,vt=dt%26;return this._expand(yt+1),mt?this.words[yt]=this.words[yt]|1<dt.length?(yt=this,vt=dt):(yt=dt,vt=this);for(var Et=0,At=0;At>>26;for(;Et!==0&&At>>26;if(this.length=yt.length,Et!==0)this.words[this.length]=Et,this.length++;else if(yt!==this)for(;Atdt.length?this.clone().iadd(dt):dt.clone().iadd(this)},tt.prototype.isub=function(dt){if(dt.negative!==0){dt.negative=0;var mt=this.iadd(dt);return dt.negative=1,mt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(dt),this.negative=1,this._normSign();var yt=this.cmp(dt);if(yt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var vt,Et;yt>0?(vt=this,Et=dt):(vt=dt,Et=this);for(var At=0,Pt=0;Pt>26,this.words[Pt]=mt&67108863;for(;At!==0&&Pt>26,this.words[Pt]=mt&67108863;if(At===0&&Pt>>26,Bt=xt&67108863,Dt=Math.min(ht,dt.length-1),Ht=Math.max(0,ht-Ct.length+1);Ht<=Dt;Ht++){var tr=ht-Ht|0;vt=Ct.words[tr]|0,Et=dt.words[Ht]|0,At=vt*Et+Bt,$t+=At/67108864|0,Bt=At&67108863}mt.words[ht]=Bt|0,xt=$t|0}return xt!==0?mt.words[ht]=xt|0:mt.length--,mt.strip()}var It=function(dt,mt,yt){var vt=dt.words,Et=mt.words,At=yt.words,Pt=0,xt,ht,$t,Bt=vt[0]|0,Dt=Bt&8191,Ht=Bt>>>13,tr=vt[1]|0,Xt=tr&8191,Ut=tr>>>13,qt=vt[2]|0,Gt=qt&8191,Zt=qt>>>13,Yt=vt[3]|0,Kt=Yt&8191,ar=Yt>>>13,gr=vt[4]|0,cr=gr&8191,ur=gr>>>13,Pr=vt[5]|0,br=Pr&8191,dr=Pr>>>13,Kr=vt[6]|0,xr=Kr&8191,Sr=Kr>>>13,Zr=vt[7]|0,$r=Zr&8191,Mr=Zr>>>13,Xr=vt[8]|0,Qt=Xr&8191,zt=Xr>>>13,Wt=vt[9]|0,nr=Wt&8191,fr=Wt>>>13,Er=Et[0]|0,pr=Er&8191,vr=Er>>>13,Jr=Et[1]|0,wr=Jr&8191,Ar=Jr>>>13,Yr=Et[2]|0,Cr=Yr&8191,Or=Yr>>>13,Qr=Et[3]|0,_r=Qr&8191,Dr=Qr>>>13,r0=Et[4]|0,Tr=r0&8191,Lr=r0>>>13,n0=Et[5]|0,Rr=n0&8191,Fr=n0>>>13,i0=Et[6]|0,Br=i0&8191,jr=i0>>>13,a0=Et[7]|0,kr=a0&8191,Ur=a0>>>13,s0=Et[8]|0,Ir=s0&8191,Hr=s0>>>13,o0=Et[9]|0,Nr=o0&8191,qr=o0>>>13;yt.negative=dt.negative^mt.negative,yt.length=19,xt=Math.imul(Dt,pr),ht=Math.imul(Dt,vr),ht=ht+Math.imul(Ht,pr)|0,$t=Math.imul(Ht,vr);var e0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(e0>>>26)|0,e0&=67108863,xt=Math.imul(Xt,pr),ht=Math.imul(Xt,vr),ht=ht+Math.imul(Ut,pr)|0,$t=Math.imul(Ut,vr),xt=xt+Math.imul(Dt,wr)|0,ht=ht+Math.imul(Dt,Ar)|0,ht=ht+Math.imul(Ht,wr)|0,$t=$t+Math.imul(Ht,Ar)|0;var t0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(t0>>>26)|0,t0&=67108863,xt=Math.imul(Gt,pr),ht=Math.imul(Gt,vr),ht=ht+Math.imul(Zt,pr)|0,$t=Math.imul(Zt,vr),xt=xt+Math.imul(Xt,wr)|0,ht=ht+Math.imul(Xt,Ar)|0,ht=ht+Math.imul(Ut,wr)|0,$t=$t+Math.imul(Ut,Ar)|0,xt=xt+Math.imul(Dt,Cr)|0,ht=ht+Math.imul(Dt,Or)|0,ht=ht+Math.imul(Ht,Cr)|0,$t=$t+Math.imul(Ht,Or)|0;var f0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(f0>>>26)|0,f0&=67108863,xt=Math.imul(Kt,pr),ht=Math.imul(Kt,vr),ht=ht+Math.imul(ar,pr)|0,$t=Math.imul(ar,vr),xt=xt+Math.imul(Gt,wr)|0,ht=ht+Math.imul(Gt,Ar)|0,ht=ht+Math.imul(Zt,wr)|0,$t=$t+Math.imul(Zt,Ar)|0,xt=xt+Math.imul(Xt,Cr)|0,ht=ht+Math.imul(Xt,Or)|0,ht=ht+Math.imul(Ut,Cr)|0,$t=$t+Math.imul(Ut,Or)|0,xt=xt+Math.imul(Dt,_r)|0,ht=ht+Math.imul(Dt,Dr)|0,ht=ht+Math.imul(Ht,_r)|0,$t=$t+Math.imul(Ht,Dr)|0;var c0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(c0>>>26)|0,c0&=67108863,xt=Math.imul(cr,pr),ht=Math.imul(cr,vr),ht=ht+Math.imul(ur,pr)|0,$t=Math.imul(ur,vr),xt=xt+Math.imul(Kt,wr)|0,ht=ht+Math.imul(Kt,Ar)|0,ht=ht+Math.imul(ar,wr)|0,$t=$t+Math.imul(ar,Ar)|0,xt=xt+Math.imul(Gt,Cr)|0,ht=ht+Math.imul(Gt,Or)|0,ht=ht+Math.imul(Zt,Cr)|0,$t=$t+Math.imul(Zt,Or)|0,xt=xt+Math.imul(Xt,_r)|0,ht=ht+Math.imul(Xt,Dr)|0,ht=ht+Math.imul(Ut,_r)|0,$t=$t+Math.imul(Ut,Dr)|0,xt=xt+Math.imul(Dt,Tr)|0,ht=ht+Math.imul(Dt,Lr)|0,ht=ht+Math.imul(Ht,Tr)|0,$t=$t+Math.imul(Ht,Lr)|0;var l0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(l0>>>26)|0,l0&=67108863,xt=Math.imul(br,pr),ht=Math.imul(br,vr),ht=ht+Math.imul(dr,pr)|0,$t=Math.imul(dr,vr),xt=xt+Math.imul(cr,wr)|0,ht=ht+Math.imul(cr,Ar)|0,ht=ht+Math.imul(ur,wr)|0,$t=$t+Math.imul(ur,Ar)|0,xt=xt+Math.imul(Kt,Cr)|0,ht=ht+Math.imul(Kt,Or)|0,ht=ht+Math.imul(ar,Cr)|0,$t=$t+Math.imul(ar,Or)|0,xt=xt+Math.imul(Gt,_r)|0,ht=ht+Math.imul(Gt,Dr)|0,ht=ht+Math.imul(Zt,_r)|0,$t=$t+Math.imul(Zt,Dr)|0,xt=xt+Math.imul(Xt,Tr)|0,ht=ht+Math.imul(Xt,Lr)|0,ht=ht+Math.imul(Ut,Tr)|0,$t=$t+Math.imul(Ut,Lr)|0,xt=xt+Math.imul(Dt,Rr)|0,ht=ht+Math.imul(Dt,Fr)|0,ht=ht+Math.imul(Ht,Rr)|0,$t=$t+Math.imul(Ht,Fr)|0;var u0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(u0>>>26)|0,u0&=67108863,xt=Math.imul(xr,pr),ht=Math.imul(xr,vr),ht=ht+Math.imul(Sr,pr)|0,$t=Math.imul(Sr,vr),xt=xt+Math.imul(br,wr)|0,ht=ht+Math.imul(br,Ar)|0,ht=ht+Math.imul(dr,wr)|0,$t=$t+Math.imul(dr,Ar)|0,xt=xt+Math.imul(cr,Cr)|0,ht=ht+Math.imul(cr,Or)|0,ht=ht+Math.imul(ur,Cr)|0,$t=$t+Math.imul(ur,Or)|0,xt=xt+Math.imul(Kt,_r)|0,ht=ht+Math.imul(Kt,Dr)|0,ht=ht+Math.imul(ar,_r)|0,$t=$t+Math.imul(ar,Dr)|0,xt=xt+Math.imul(Gt,Tr)|0,ht=ht+Math.imul(Gt,Lr)|0,ht=ht+Math.imul(Zt,Tr)|0,$t=$t+Math.imul(Zt,Lr)|0,xt=xt+Math.imul(Xt,Rr)|0,ht=ht+Math.imul(Xt,Fr)|0,ht=ht+Math.imul(Ut,Rr)|0,$t=$t+Math.imul(Ut,Fr)|0,xt=xt+Math.imul(Dt,Br)|0,ht=ht+Math.imul(Dt,jr)|0,ht=ht+Math.imul(Ht,Br)|0,$t=$t+Math.imul(Ht,jr)|0;var d0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(d0>>>26)|0,d0&=67108863,xt=Math.imul($r,pr),ht=Math.imul($r,vr),ht=ht+Math.imul(Mr,pr)|0,$t=Math.imul(Mr,vr),xt=xt+Math.imul(xr,wr)|0,ht=ht+Math.imul(xr,Ar)|0,ht=ht+Math.imul(Sr,wr)|0,$t=$t+Math.imul(Sr,Ar)|0,xt=xt+Math.imul(br,Cr)|0,ht=ht+Math.imul(br,Or)|0,ht=ht+Math.imul(dr,Cr)|0,$t=$t+Math.imul(dr,Or)|0,xt=xt+Math.imul(cr,_r)|0,ht=ht+Math.imul(cr,Dr)|0,ht=ht+Math.imul(ur,_r)|0,$t=$t+Math.imul(ur,Dr)|0,xt=xt+Math.imul(Kt,Tr)|0,ht=ht+Math.imul(Kt,Lr)|0,ht=ht+Math.imul(ar,Tr)|0,$t=$t+Math.imul(ar,Lr)|0,xt=xt+Math.imul(Gt,Rr)|0,ht=ht+Math.imul(Gt,Fr)|0,ht=ht+Math.imul(Zt,Rr)|0,$t=$t+Math.imul(Zt,Fr)|0,xt=xt+Math.imul(Xt,Br)|0,ht=ht+Math.imul(Xt,jr)|0,ht=ht+Math.imul(Ut,Br)|0,$t=$t+Math.imul(Ut,jr)|0,xt=xt+Math.imul(Dt,kr)|0,ht=ht+Math.imul(Dt,Ur)|0,ht=ht+Math.imul(Ht,kr)|0,$t=$t+Math.imul(Ht,Ur)|0;var h0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(h0>>>26)|0,h0&=67108863,xt=Math.imul(Qt,pr),ht=Math.imul(Qt,vr),ht=ht+Math.imul(zt,pr)|0,$t=Math.imul(zt,vr),xt=xt+Math.imul($r,wr)|0,ht=ht+Math.imul($r,Ar)|0,ht=ht+Math.imul(Mr,wr)|0,$t=$t+Math.imul(Mr,Ar)|0,xt=xt+Math.imul(xr,Cr)|0,ht=ht+Math.imul(xr,Or)|0,ht=ht+Math.imul(Sr,Cr)|0,$t=$t+Math.imul(Sr,Or)|0,xt=xt+Math.imul(br,_r)|0,ht=ht+Math.imul(br,Dr)|0,ht=ht+Math.imul(dr,_r)|0,$t=$t+Math.imul(dr,Dr)|0,xt=xt+Math.imul(cr,Tr)|0,ht=ht+Math.imul(cr,Lr)|0,ht=ht+Math.imul(ur,Tr)|0,$t=$t+Math.imul(ur,Lr)|0,xt=xt+Math.imul(Kt,Rr)|0,ht=ht+Math.imul(Kt,Fr)|0,ht=ht+Math.imul(ar,Rr)|0,$t=$t+Math.imul(ar,Fr)|0,xt=xt+Math.imul(Gt,Br)|0,ht=ht+Math.imul(Gt,jr)|0,ht=ht+Math.imul(Zt,Br)|0,$t=$t+Math.imul(Zt,jr)|0,xt=xt+Math.imul(Xt,kr)|0,ht=ht+Math.imul(Xt,Ur)|0,ht=ht+Math.imul(Ut,kr)|0,$t=$t+Math.imul(Ut,Ur)|0,xt=xt+Math.imul(Dt,Ir)|0,ht=ht+Math.imul(Dt,Hr)|0,ht=ht+Math.imul(Ht,Ir)|0,$t=$t+Math.imul(Ht,Hr)|0;var p0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(p0>>>26)|0,p0&=67108863,xt=Math.imul(nr,pr),ht=Math.imul(nr,vr),ht=ht+Math.imul(fr,pr)|0,$t=Math.imul(fr,vr),xt=xt+Math.imul(Qt,wr)|0,ht=ht+Math.imul(Qt,Ar)|0,ht=ht+Math.imul(zt,wr)|0,$t=$t+Math.imul(zt,Ar)|0,xt=xt+Math.imul($r,Cr)|0,ht=ht+Math.imul($r,Or)|0,ht=ht+Math.imul(Mr,Cr)|0,$t=$t+Math.imul(Mr,Or)|0,xt=xt+Math.imul(xr,_r)|0,ht=ht+Math.imul(xr,Dr)|0,ht=ht+Math.imul(Sr,_r)|0,$t=$t+Math.imul(Sr,Dr)|0,xt=xt+Math.imul(br,Tr)|0,ht=ht+Math.imul(br,Lr)|0,ht=ht+Math.imul(dr,Tr)|0,$t=$t+Math.imul(dr,Lr)|0,xt=xt+Math.imul(cr,Rr)|0,ht=ht+Math.imul(cr,Fr)|0,ht=ht+Math.imul(ur,Rr)|0,$t=$t+Math.imul(ur,Fr)|0,xt=xt+Math.imul(Kt,Br)|0,ht=ht+Math.imul(Kt,jr)|0,ht=ht+Math.imul(ar,Br)|0,$t=$t+Math.imul(ar,jr)|0,xt=xt+Math.imul(Gt,kr)|0,ht=ht+Math.imul(Gt,Ur)|0,ht=ht+Math.imul(Zt,kr)|0,$t=$t+Math.imul(Zt,Ur)|0,xt=xt+Math.imul(Xt,Ir)|0,ht=ht+Math.imul(Xt,Hr)|0,ht=ht+Math.imul(Ut,Ir)|0,$t=$t+Math.imul(Ut,Hr)|0,xt=xt+Math.imul(Dt,Nr)|0,ht=ht+Math.imul(Dt,qr)|0,ht=ht+Math.imul(Ht,Nr)|0,$t=$t+Math.imul(Ht,qr)|0;var b0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(b0>>>26)|0,b0&=67108863,xt=Math.imul(nr,wr),ht=Math.imul(nr,Ar),ht=ht+Math.imul(fr,wr)|0,$t=Math.imul(fr,Ar),xt=xt+Math.imul(Qt,Cr)|0,ht=ht+Math.imul(Qt,Or)|0,ht=ht+Math.imul(zt,Cr)|0,$t=$t+Math.imul(zt,Or)|0,xt=xt+Math.imul($r,_r)|0,ht=ht+Math.imul($r,Dr)|0,ht=ht+Math.imul(Mr,_r)|0,$t=$t+Math.imul(Mr,Dr)|0,xt=xt+Math.imul(xr,Tr)|0,ht=ht+Math.imul(xr,Lr)|0,ht=ht+Math.imul(Sr,Tr)|0,$t=$t+Math.imul(Sr,Lr)|0,xt=xt+Math.imul(br,Rr)|0,ht=ht+Math.imul(br,Fr)|0,ht=ht+Math.imul(dr,Rr)|0,$t=$t+Math.imul(dr,Fr)|0,xt=xt+Math.imul(cr,Br)|0,ht=ht+Math.imul(cr,jr)|0,ht=ht+Math.imul(ur,Br)|0,$t=$t+Math.imul(ur,jr)|0,xt=xt+Math.imul(Kt,kr)|0,ht=ht+Math.imul(Kt,Ur)|0,ht=ht+Math.imul(ar,kr)|0,$t=$t+Math.imul(ar,Ur)|0,xt=xt+Math.imul(Gt,Ir)|0,ht=ht+Math.imul(Gt,Hr)|0,ht=ht+Math.imul(Zt,Ir)|0,$t=$t+Math.imul(Zt,Hr)|0,xt=xt+Math.imul(Xt,Nr)|0,ht=ht+Math.imul(Xt,qr)|0,ht=ht+Math.imul(Ut,Nr)|0,$t=$t+Math.imul(Ut,qr)|0;var m0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(m0>>>26)|0,m0&=67108863,xt=Math.imul(nr,Cr),ht=Math.imul(nr,Or),ht=ht+Math.imul(fr,Cr)|0,$t=Math.imul(fr,Or),xt=xt+Math.imul(Qt,_r)|0,ht=ht+Math.imul(Qt,Dr)|0,ht=ht+Math.imul(zt,_r)|0,$t=$t+Math.imul(zt,Dr)|0,xt=xt+Math.imul($r,Tr)|0,ht=ht+Math.imul($r,Lr)|0,ht=ht+Math.imul(Mr,Tr)|0,$t=$t+Math.imul(Mr,Lr)|0,xt=xt+Math.imul(xr,Rr)|0,ht=ht+Math.imul(xr,Fr)|0,ht=ht+Math.imul(Sr,Rr)|0,$t=$t+Math.imul(Sr,Fr)|0,xt=xt+Math.imul(br,Br)|0,ht=ht+Math.imul(br,jr)|0,ht=ht+Math.imul(dr,Br)|0,$t=$t+Math.imul(dr,jr)|0,xt=xt+Math.imul(cr,kr)|0,ht=ht+Math.imul(cr,Ur)|0,ht=ht+Math.imul(ur,kr)|0,$t=$t+Math.imul(ur,Ur)|0,xt=xt+Math.imul(Kt,Ir)|0,ht=ht+Math.imul(Kt,Hr)|0,ht=ht+Math.imul(ar,Ir)|0,$t=$t+Math.imul(ar,Hr)|0,xt=xt+Math.imul(Gt,Nr)|0,ht=ht+Math.imul(Gt,qr)|0,ht=ht+Math.imul(Zt,Nr)|0,$t=$t+Math.imul(Zt,qr)|0;var g0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(g0>>>26)|0,g0&=67108863,xt=Math.imul(nr,_r),ht=Math.imul(nr,Dr),ht=ht+Math.imul(fr,_r)|0,$t=Math.imul(fr,Dr),xt=xt+Math.imul(Qt,Tr)|0,ht=ht+Math.imul(Qt,Lr)|0,ht=ht+Math.imul(zt,Tr)|0,$t=$t+Math.imul(zt,Lr)|0,xt=xt+Math.imul($r,Rr)|0,ht=ht+Math.imul($r,Fr)|0,ht=ht+Math.imul(Mr,Rr)|0,$t=$t+Math.imul(Mr,Fr)|0,xt=xt+Math.imul(xr,Br)|0,ht=ht+Math.imul(xr,jr)|0,ht=ht+Math.imul(Sr,Br)|0,$t=$t+Math.imul(Sr,jr)|0,xt=xt+Math.imul(br,kr)|0,ht=ht+Math.imul(br,Ur)|0,ht=ht+Math.imul(dr,kr)|0,$t=$t+Math.imul(dr,Ur)|0,xt=xt+Math.imul(cr,Ir)|0,ht=ht+Math.imul(cr,Hr)|0,ht=ht+Math.imul(ur,Ir)|0,$t=$t+Math.imul(ur,Hr)|0,xt=xt+Math.imul(Kt,Nr)|0,ht=ht+Math.imul(Kt,qr)|0,ht=ht+Math.imul(ar,Nr)|0,$t=$t+Math.imul(ar,qr)|0;var y0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(y0>>>26)|0,y0&=67108863,xt=Math.imul(nr,Tr),ht=Math.imul(nr,Lr),ht=ht+Math.imul(fr,Tr)|0,$t=Math.imul(fr,Lr),xt=xt+Math.imul(Qt,Rr)|0,ht=ht+Math.imul(Qt,Fr)|0,ht=ht+Math.imul(zt,Rr)|0,$t=$t+Math.imul(zt,Fr)|0,xt=xt+Math.imul($r,Br)|0,ht=ht+Math.imul($r,jr)|0,ht=ht+Math.imul(Mr,Br)|0,$t=$t+Math.imul(Mr,jr)|0,xt=xt+Math.imul(xr,kr)|0,ht=ht+Math.imul(xr,Ur)|0,ht=ht+Math.imul(Sr,kr)|0,$t=$t+Math.imul(Sr,Ur)|0,xt=xt+Math.imul(br,Ir)|0,ht=ht+Math.imul(br,Hr)|0,ht=ht+Math.imul(dr,Ir)|0,$t=$t+Math.imul(dr,Hr)|0,xt=xt+Math.imul(cr,Nr)|0,ht=ht+Math.imul(cr,qr)|0,ht=ht+Math.imul(ur,Nr)|0,$t=$t+Math.imul(ur,qr)|0;var v0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(v0>>>26)|0,v0&=67108863,xt=Math.imul(nr,Rr),ht=Math.imul(nr,Fr),ht=ht+Math.imul(fr,Rr)|0,$t=Math.imul(fr,Fr),xt=xt+Math.imul(Qt,Br)|0,ht=ht+Math.imul(Qt,jr)|0,ht=ht+Math.imul(zt,Br)|0,$t=$t+Math.imul(zt,jr)|0,xt=xt+Math.imul($r,kr)|0,ht=ht+Math.imul($r,Ur)|0,ht=ht+Math.imul(Mr,kr)|0,$t=$t+Math.imul(Mr,Ur)|0,xt=xt+Math.imul(xr,Ir)|0,ht=ht+Math.imul(xr,Hr)|0,ht=ht+Math.imul(Sr,Ir)|0,$t=$t+Math.imul(Sr,Hr)|0,xt=xt+Math.imul(br,Nr)|0,ht=ht+Math.imul(br,qr)|0,ht=ht+Math.imul(dr,Nr)|0,$t=$t+Math.imul(dr,qr)|0;var w0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(w0>>>26)|0,w0&=67108863,xt=Math.imul(nr,Br),ht=Math.imul(nr,jr),ht=ht+Math.imul(fr,Br)|0,$t=Math.imul(fr,jr),xt=xt+Math.imul(Qt,kr)|0,ht=ht+Math.imul(Qt,Ur)|0,ht=ht+Math.imul(zt,kr)|0,$t=$t+Math.imul(zt,Ur)|0,xt=xt+Math.imul($r,Ir)|0,ht=ht+Math.imul($r,Hr)|0,ht=ht+Math.imul(Mr,Ir)|0,$t=$t+Math.imul(Mr,Hr)|0,xt=xt+Math.imul(xr,Nr)|0,ht=ht+Math.imul(xr,qr)|0,ht=ht+Math.imul(Sr,Nr)|0,$t=$t+Math.imul(Sr,qr)|0;var x0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(x0>>>26)|0,x0&=67108863,xt=Math.imul(nr,kr),ht=Math.imul(nr,Ur),ht=ht+Math.imul(fr,kr)|0,$t=Math.imul(fr,Ur),xt=xt+Math.imul(Qt,Ir)|0,ht=ht+Math.imul(Qt,Hr)|0,ht=ht+Math.imul(zt,Ir)|0,$t=$t+Math.imul(zt,Hr)|0,xt=xt+Math.imul($r,Nr)|0,ht=ht+Math.imul($r,qr)|0,ht=ht+Math.imul(Mr,Nr)|0,$t=$t+Math.imul(Mr,qr)|0;var E0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+(E0>>>26)|0,E0&=67108863,xt=Math.imul(nr,Ir),ht=Math.imul(nr,Hr),ht=ht+Math.imul(fr,Ir)|0,$t=Math.imul(fr,Hr),xt=xt+Math.imul(Qt,Nr)|0,ht=ht+Math.imul(Qt,qr)|0,ht=ht+Math.imul(zt,Nr)|0,$t=$t+Math.imul(zt,qr)|0;var $0=(Pt+xt|0)+((ht&8191)<<13)|0;Pt=($t+(ht>>>13)|0)+($0>>>26)|0,$0&=67108863,xt=Math.imul(nr,Nr),ht=Math.imul(nr,qr),ht=ht+Math.imul(fr,Nr)|0,$t=Math.imul(fr,qr);var M0=(Pt+xt|0)+((ht&8191)<<13)|0;return Pt=($t+(ht>>>13)|0)+(M0>>>26)|0,M0&=67108863,At[0]=e0,At[1]=t0,At[2]=f0,At[3]=c0,At[4]=l0,At[5]=u0,At[6]=d0,At[7]=h0,At[8]=p0,At[9]=b0,At[10]=m0,At[11]=g0,At[12]=y0,At[13]=v0,At[14]=w0,At[15]=x0,At[16]=E0,At[17]=$0,At[18]=M0,Pt!==0&&(At[19]=Pt,yt.length++),yt};Math.imul||(It=kt);function Lt(Ct,dt,mt){mt.negative=dt.negative^Ct.negative,mt.length=Ct.length+dt.length;for(var yt=0,vt=0,Et=0;Et>>26)|0,vt+=At>>>26,At&=67108863}mt.words[Et]=Pt,yt=At,At=vt}return yt!==0?mt.words[Et]=yt:mt.length--,mt.strip()}function Ot(Ct,dt,mt){var yt=new Nt;return yt.mulp(Ct,dt,mt)}tt.prototype.mulTo=function(dt,mt){var yt,vt=this.length+dt.length;return this.length===10&&dt.length===10?yt=It(this,dt,mt):vt<63?yt=kt(this,dt,mt):vt<1024?yt=Lt(this,dt,mt):yt=Ot(this,dt,mt),yt};function Nt(Ct,dt){this.x=Ct,this.y=dt}Nt.prototype.makeRBT=function(dt){for(var mt=new Array(dt),yt=tt.prototype._countBits(dt)-1,vt=0;vt>=1;return vt},Nt.prototype.permute=function(dt,mt,yt,vt,Et,At){for(var Pt=0;Pt>>1)Et++;return 1<>>13,yt[2*At+1]=Et&8191,Et=Et>>>13;for(At=2*mt;At>=26,mt+=vt/67108864|0,mt+=Et>>>26,this.words[yt]=Et&67108863}return mt!==0&&(this.words[yt]=mt,this.length++),this},tt.prototype.muln=function(dt){return this.clone().imuln(dt)},tt.prototype.sqr=function(){return this.mul(this)},tt.prototype.isqr=function(){return this.imul(this.clone())},tt.prototype.pow=function(dt){var mt=Rt(dt);if(mt.length===0)return new tt(1);for(var yt=this,vt=0;vt=0);var mt=dt%26,yt=(dt-mt)/26,vt=67108863>>>26-mt<<26-mt,Et;if(mt!==0){var At=0;for(Et=0;Et>>26-mt}At&&(this.words[Et]=At,this.length++)}if(yt!==0){for(Et=this.length-1;Et>=0;Et--)this.words[Et+yt]=this.words[Et];for(Et=0;Et=0);var vt;mt?vt=(mt-mt%26)/26:vt=0;var Et=dt%26,At=Math.min((dt-Et)/26,this.length),Pt=67108863^67108863>>>Et<At)for(this.length-=At,ht=0;ht=0&&($t!==0||ht>=vt);ht--){var Bt=this.words[ht]|0;this.words[ht]=$t<<26-Et|Bt>>>Et,$t=Bt&Pt}return xt&&$t!==0&&(xt.words[xt.length++]=$t),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},tt.prototype.ishrn=function(dt,mt,yt){return et(this.negative===0),this.iushrn(dt,mt,yt)},tt.prototype.shln=function(dt){return this.clone().ishln(dt)},tt.prototype.ushln=function(dt){return this.clone().iushln(dt)},tt.prototype.shrn=function(dt){return this.clone().ishrn(dt)},tt.prototype.ushrn=function(dt){return this.clone().iushrn(dt)},tt.prototype.testn=function(dt){et(typeof dt=="number"&&dt>=0);var mt=dt%26,yt=(dt-mt)/26,vt=1<=0);var mt=dt%26,yt=(dt-mt)/26;if(et(this.negative===0,"imaskn works only with positive numbers"),this.length<=yt)return this;if(mt!==0&&yt++,this.length=Math.min(yt,this.length),mt!==0){var vt=67108863^67108863>>>mt<=67108864;mt++)this.words[mt]-=67108864,mt===this.length-1?this.words[mt+1]=1:this.words[mt+1]++;return this.length=Math.max(this.length,mt+1),this},tt.prototype.isubn=function(dt){if(et(typeof dt=="number"),et(dt<67108864),dt<0)return this.iaddn(-dt);if(this.negative!==0)return this.negative=0,this.iaddn(dt),this.negative=1,this;if(this.words[0]-=dt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var mt=0;mt>26)-(xt/67108864|0),this.words[Et+yt]=At&67108863}for(;Et>26,this.words[Et+yt]=At&67108863;if(Pt===0)return this.strip();for(et(Pt===-1),Pt=0,Et=0;Et>26,this.words[Et]=At&67108863;return this.negative=1,this.strip()},tt.prototype._wordDiv=function(dt,mt){var yt=this.length-dt.length,vt=this.clone(),Et=dt,At=Et.words[Et.length-1]|0,Pt=this._countBits(At);yt=26-Pt,yt!==0&&(Et=Et.ushln(yt),vt.iushln(yt),At=Et.words[Et.length-1]|0);var xt=vt.length-Et.length,ht;if(mt!=="mod"){ht=new tt(null),ht.length=xt+1,ht.words=new Array(ht.length);for(var $t=0;$t=0;Dt--){var Ht=(vt.words[Et.length+Dt]|0)*67108864+(vt.words[Et.length+Dt-1]|0);for(Ht=Math.min(Ht/At|0,67108863),vt._ishlnsubmul(Et,Ht,Dt);vt.negative!==0;)Ht--,vt.negative=0,vt._ishlnsubmul(Et,1,Dt),vt.isZero()||(vt.negative^=1);ht&&(ht.words[Dt]=Ht)}return ht&&ht.strip(),vt.strip(),mt!=="div"&&yt!==0&&vt.iushrn(yt),{div:ht||null,mod:vt}},tt.prototype.divmod=function(dt,mt,yt){if(et(!dt.isZero()),this.isZero())return{div:new tt(0),mod:new tt(0)};var vt,Et,At;return this.negative!==0&&dt.negative===0?(At=this.neg().divmod(dt,mt),mt!=="mod"&&(vt=At.div.neg()),mt!=="div"&&(Et=At.mod.neg(),yt&&Et.negative!==0&&Et.iadd(dt)),{div:vt,mod:Et}):this.negative===0&&dt.negative!==0?(At=this.divmod(dt.neg(),mt),mt!=="mod"&&(vt=At.div.neg()),{div:vt,mod:At.mod}):this.negative&dt.negative?(At=this.neg().divmod(dt.neg(),mt),mt!=="div"&&(Et=At.mod.neg(),yt&&Et.negative!==0&&Et.isub(dt)),{div:At.div,mod:Et}):dt.length>this.length||this.cmp(dt)<0?{div:new tt(0),mod:this}:dt.length===1?mt==="div"?{div:this.divn(dt.words[0]),mod:null}:mt==="mod"?{div:null,mod:new tt(this.modn(dt.words[0]))}:{div:this.divn(dt.words[0]),mod:new tt(this.modn(dt.words[0]))}:this._wordDiv(dt,mt)},tt.prototype.div=function(dt){return this.divmod(dt,"div",!1).div},tt.prototype.mod=function(dt){return this.divmod(dt,"mod",!1).mod},tt.prototype.umod=function(dt){return this.divmod(dt,"mod",!0).mod},tt.prototype.divRound=function(dt){var mt=this.divmod(dt);if(mt.mod.isZero())return mt.div;var yt=mt.div.negative!==0?mt.mod.isub(dt):mt.mod,vt=dt.ushrn(1),Et=dt.andln(1),At=yt.cmp(vt);return At<0||Et===1&&At===0?mt.div:mt.div.negative!==0?mt.div.isubn(1):mt.div.iaddn(1)},tt.prototype.modn=function(dt){et(dt<=67108863);for(var mt=(1<<26)%dt,yt=0,vt=this.length-1;vt>=0;vt--)yt=(mt*yt+(this.words[vt]|0))%dt;return yt},tt.prototype.idivn=function(dt){et(dt<=67108863);for(var mt=0,yt=this.length-1;yt>=0;yt--){var vt=(this.words[yt]|0)+mt*67108864;this.words[yt]=vt/dt|0,mt=vt%dt}return this.strip()},tt.prototype.divn=function(dt){return this.clone().idivn(dt)},tt.prototype.egcd=function(dt){et(dt.negative===0),et(!dt.isZero());var mt=this,yt=dt.clone();mt.negative!==0?mt=mt.umod(dt):mt=mt.clone();for(var vt=new tt(1),Et=new tt(0),At=new tt(0),Pt=new tt(1),xt=0;mt.isEven()&&yt.isEven();)mt.iushrn(1),yt.iushrn(1),++xt;for(var ht=yt.clone(),$t=mt.clone();!mt.isZero();){for(var Bt=0,Dt=1;!(mt.words[0]&Dt)&&Bt<26;++Bt,Dt<<=1);if(Bt>0)for(mt.iushrn(Bt);Bt-- >0;)(vt.isOdd()||Et.isOdd())&&(vt.iadd(ht),Et.isub($t)),vt.iushrn(1),Et.iushrn(1);for(var Ht=0,tr=1;!(yt.words[0]&tr)&&Ht<26;++Ht,tr<<=1);if(Ht>0)for(yt.iushrn(Ht);Ht-- >0;)(At.isOdd()||Pt.isOdd())&&(At.iadd(ht),Pt.isub($t)),At.iushrn(1),Pt.iushrn(1);mt.cmp(yt)>=0?(mt.isub(yt),vt.isub(At),Et.isub(Pt)):(yt.isub(mt),At.isub(vt),Pt.isub(Et))}return{a:At,b:Pt,gcd:yt.iushln(xt)}},tt.prototype._invmp=function(dt){et(dt.negative===0),et(!dt.isZero());var mt=this,yt=dt.clone();mt.negative!==0?mt=mt.umod(dt):mt=mt.clone();for(var vt=new tt(1),Et=new tt(0),At=yt.clone();mt.cmpn(1)>0&&yt.cmpn(1)>0;){for(var Pt=0,xt=1;!(mt.words[0]&xt)&&Pt<26;++Pt,xt<<=1);if(Pt>0)for(mt.iushrn(Pt);Pt-- >0;)vt.isOdd()&&vt.iadd(At),vt.iushrn(1);for(var ht=0,$t=1;!(yt.words[0]&$t)&&ht<26;++ht,$t<<=1);if(ht>0)for(yt.iushrn(ht);ht-- >0;)Et.isOdd()&&Et.iadd(At),Et.iushrn(1);mt.cmp(yt)>=0?(mt.isub(yt),vt.isub(Et)):(yt.isub(mt),Et.isub(vt))}var Bt;return mt.cmpn(1)===0?Bt=vt:Bt=Et,Bt.cmpn(0)<0&&Bt.iadd(dt),Bt},tt.prototype.gcd=function(dt){if(this.isZero())return dt.abs();if(dt.isZero())return this.abs();var mt=this.clone(),yt=dt.clone();mt.negative=0,yt.negative=0;for(var vt=0;mt.isEven()&&yt.isEven();vt++)mt.iushrn(1),yt.iushrn(1);do{for(;mt.isEven();)mt.iushrn(1);for(;yt.isEven();)yt.iushrn(1);var Et=mt.cmp(yt);if(Et<0){var At=mt;mt=yt,yt=At}else if(Et===0||yt.cmpn(1)===0)break;mt.isub(yt)}while(!0);return yt.iushln(vt)},tt.prototype.invm=function(dt){return this.egcd(dt).a.umod(dt)},tt.prototype.isEven=function(){return(this.words[0]&1)===0},tt.prototype.isOdd=function(){return(this.words[0]&1)===1},tt.prototype.andln=function(dt){return this.words[0]&dt},tt.prototype.bincn=function(dt){et(typeof dt=="number");var mt=dt%26,yt=(dt-mt)/26,vt=1<>>26,Pt&=67108863,this.words[At]=Pt}return Et!==0&&(this.words[At]=Et,this.length++),this},tt.prototype.isZero=function(){return this.length===1&&this.words[0]===0},tt.prototype.cmpn=function(dt){var mt=dt<0;if(this.negative!==0&&!mt)return-1;if(this.negative===0&&mt)return 1;this.strip();var yt;if(this.length>1)yt=1;else{mt&&(dt=-dt),et(dt<=67108863,"Number is too big");var vt=this.words[0]|0;yt=vt===dt?0:vtdt.length)return 1;if(this.length=0;yt--){var vt=this.words[yt]|0,Et=dt.words[yt]|0;if(vt!==Et){vtEt&&(mt=1);break}}return mt},tt.prototype.gtn=function(dt){return this.cmpn(dt)===1},tt.prototype.gt=function(dt){return this.cmp(dt)===1},tt.prototype.gten=function(dt){return this.cmpn(dt)>=0},tt.prototype.gte=function(dt){return this.cmp(dt)>=0},tt.prototype.ltn=function(dt){return this.cmpn(dt)===-1},tt.prototype.lt=function(dt){return this.cmp(dt)===-1},tt.prototype.lten=function(dt){return this.cmpn(dt)<=0},tt.prototype.lte=function(dt){return this.cmp(dt)<=0},tt.prototype.eqn=function(dt){return this.cmpn(dt)===0},tt.prototype.eq=function(dt){return this.cmp(dt)===0},tt.red=function(dt){return new er(dt)},tt.prototype.toRed=function(dt){return et(!this.red,"Already a number in reduction context"),et(this.negative===0,"red works only with positives"),dt.convertTo(this)._forceRed(dt)},tt.prototype.fromRed=function(){return et(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},tt.prototype._forceRed=function(dt){return this.red=dt,this},tt.prototype.forceRed=function(dt){return et(!this.red,"Already a number in reduction context"),this._forceRed(dt)},tt.prototype.redAdd=function(dt){return et(this.red,"redAdd works only with red numbers"),this.red.add(this,dt)},tt.prototype.redIAdd=function(dt){return et(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,dt)},tt.prototype.redSub=function(dt){return et(this.red,"redSub works only with red numbers"),this.red.sub(this,dt)},tt.prototype.redISub=function(dt){return et(this.red,"redISub works only with red numbers"),this.red.isub(this,dt)},tt.prototype.redShl=function(dt){return et(this.red,"redShl works only with red numbers"),this.red.shl(this,dt)},tt.prototype.redMul=function(dt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,dt),this.red.mul(this,dt)},tt.prototype.redIMul=function(dt){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,dt),this.red.imul(this,dt)},tt.prototype.redSqr=function(){return et(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},tt.prototype.redISqr=function(){return et(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},tt.prototype.redSqrt=function(){return et(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},tt.prototype.redInvm=function(){return et(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},tt.prototype.redNeg=function(){return et(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},tt.prototype.redPow=function(dt){return et(this.red&&!dt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,dt)};var Ft={k256:null,p224:null,p192:null,p25519:null};function jt(Ct,dt){this.name=Ct,this.p=new tt(dt,16),this.n=this.p.bitLength(),this.k=new tt(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}jt.prototype._tmp=function(){var dt=new tt(null);return dt.words=new Array(Math.ceil(this.n/13)),dt},jt.prototype.ireduce=function(dt){var mt=dt,yt;do this.split(mt,this.tmp),mt=this.imulK(mt),mt=mt.iadd(this.tmp),yt=mt.bitLength();while(yt>this.n);var vt=yt0?mt.isub(this.p):mt.strip!==void 0?mt.strip():mt._strip(),mt},jt.prototype.split=function(dt,mt){dt.iushrn(this.n,0,mt)},jt.prototype.imulK=function(dt){return dt.imul(this.k)};function Vt(){jt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}nt(Vt,jt),Vt.prototype.split=function(dt,mt){for(var yt=4194303,vt=Math.min(dt.length,9),Et=0;Et>>22,At=Pt}At>>>=22,dt.words[Et-10]=At,At===0&&dt.length>10?dt.length-=10:dt.length-=9},Vt.prototype.imulK=function(dt){dt.words[dt.length]=0,dt.words[dt.length+1]=0,dt.length+=2;for(var mt=0,yt=0;yt>>=26,dt.words[yt]=Et,mt=vt}return mt!==0&&(dt.words[dt.length++]=mt),dt},tt._prime=function(dt){if(Ft[dt])return Ft[dt];var mt;if(dt==="k256")mt=new Vt;else if(dt==="p224")mt=new Jt;else if(dt==="p192")mt=new ir;else if(dt==="p25519")mt=new rr;else throw new Error("Unknown prime "+dt);return Ft[dt]=mt,mt};function er(Ct){if(typeof Ct=="string"){var dt=tt._prime(Ct);this.m=dt.p,this.prime=dt}else et(Ct.gtn(1),"modulus must be greater than 1"),this.m=Ct,this.prime=null}er.prototype._verify1=function(dt){et(dt.negative===0,"red works only with positives"),et(dt.red,"red works only with red numbers")},er.prototype._verify2=function(dt,mt){et((dt.negative|mt.negative)===0,"red works only with positives"),et(dt.red&&dt.red===mt.red,"red works only with red numbers")},er.prototype.imod=function(dt){return this.prime?this.prime.ireduce(dt)._forceRed(this):dt.umod(this.m)._forceRed(this)},er.prototype.neg=function(dt){return dt.isZero()?dt.clone():this.m.sub(dt)._forceRed(this)},er.prototype.add=function(dt,mt){this._verify2(dt,mt);var yt=dt.add(mt);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt._forceRed(this)},er.prototype.iadd=function(dt,mt){this._verify2(dt,mt);var yt=dt.iadd(mt);return yt.cmp(this.m)>=0&&yt.isub(this.m),yt},er.prototype.sub=function(dt,mt){this._verify2(dt,mt);var yt=dt.sub(mt);return yt.cmpn(0)<0&&yt.iadd(this.m),yt._forceRed(this)},er.prototype.isub=function(dt,mt){this._verify2(dt,mt);var yt=dt.isub(mt);return yt.cmpn(0)<0&&yt.iadd(this.m),yt},er.prototype.shl=function(dt,mt){return this._verify1(dt),this.imod(dt.ushln(mt))},er.prototype.imul=function(dt,mt){return this._verify2(dt,mt),this.imod(dt.imul(mt))},er.prototype.mul=function(dt,mt){return this._verify2(dt,mt),this.imod(dt.mul(mt))},er.prototype.isqr=function(dt){return this.imul(dt,dt.clone())},er.prototype.sqr=function(dt){return this.mul(dt,dt)},er.prototype.sqrt=function(dt){if(dt.isZero())return dt.clone();var mt=this.m.andln(3);if(et(mt%2===1),mt===3){var yt=this.m.add(new tt(1)).iushrn(2);return this.pow(dt,yt)}for(var vt=this.m.subn(1),Et=0;!vt.isZero()&&vt.andln(1)===0;)Et++,vt.iushrn(1);et(!vt.isZero());var At=new tt(1).toRed(this),Pt=At.redNeg(),xt=this.m.subn(1).iushrn(1),ht=this.m.bitLength();for(ht=new tt(2*ht*ht).toRed(this);this.pow(ht,xt).cmp(Pt)!==0;)ht.redIAdd(Pt);for(var $t=this.pow(ht,vt),Bt=this.pow(dt,vt.addn(1).iushrn(1)),Dt=this.pow(dt,vt),Ht=Et;Dt.cmp(At)!==0;){for(var tr=Dt,Xt=0;tr.cmp(At)!==0;Xt++)tr=tr.redSqr();et(Xt=0;Et--){for(var $t=mt.words[Et],Bt=ht-1;Bt>=0;Bt--){var Dt=$t>>Bt&1;if(At!==vt[0]&&(At=this.sqr(At)),Dt===0&&Pt===0){xt=0;continue}Pt<<=1,Pt|=Dt,xt++,!(xt!==yt&&(Et!==0||Bt!==0))&&(At=this.mul(At,vt[Pt]),xt=0,Pt=0)}ht=26}return At},er.prototype.convertTo=function(dt){var mt=dt.umod(this.m);return mt===dt?mt.clone():mt},er.prototype.convertFrom=function(dt){var mt=dt.clone();return mt.red=null,mt},tt.mont=function(dt){return new lr(dt)};function lr(Ct){er.call(this,Ct),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new tt(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)}nt(lr,er),lr.prototype.convertTo=function(dt){return this.imod(dt.ushln(this.shift))},lr.prototype.convertFrom=function(dt){var mt=this.imod(dt.mul(this.rinv));return mt.red=null,mt},lr.prototype.imul=function(dt,mt){if(dt.isZero()||mt.isZero())return dt.words[0]=0,dt.length=1,dt;var yt=dt.imul(mt),vt=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Et=yt.isub(vt).iushrn(this.shift),At=Et;return Et.cmp(this.m)>=0?At=Et.isub(this.m):Et.cmpn(0)<0&&(At=Et.iadd(this.m)),At._forceRed(this)},lr.prototype.mul=function(dt,mt){if(dt.isZero()||mt.isZero())return new tt(0)._forceRed(this);var yt=dt.mul(mt),vt=yt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Et=yt.isub(vt).iushrn(this.shift),At=Et;return Et.cmp(this.m)>=0?At=Et.isub(this.m):Et.cmpn(0)<0&&(At=Et.iadd(this.m)),At._forceRed(this)},lr.prototype.invm=function(dt){var mt=this.imod(dt._invmp(this.m).mul(this.r2));return mt._forceRed(this)}})(c,commonjsGlobal)})(bn);var bnExports=bn.exports,BN$2=bnExports,Buffer$3=safeBufferExports$1.Buffer;function withPublic$2(c,a){return Buffer$3.from(c.toRed(BN$2.mont(a.modulus)).redPow(new BN$2(a.publicExponent)).fromRed().toArray())}var withPublic_1=withPublic$2,parseKeys$1=parseAsn1,randomBytes$1=browserExports,createHash$1=browser$9,mgf$1=mgf$2,xor$1=xor$2,BN$1=bnExports,withPublic$1=withPublic_1,crt$1=browserifyRsa,Buffer$2=safeBufferExports$1.Buffer,publicEncrypt=function c(a,d,et){var nt;a.padding?nt=a.padding:et?nt=1:nt=4;var tt=parseKeys$1(a),bt;if(nt===4)bt=oaep$1(tt,d);else if(nt===1)bt=pkcs1$1(tt,d,et);else if(nt===3){if(bt=new BN$1(d),bt.cmp(tt.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return et?crt$1(bt,tt):withPublic$1(bt,tt)};function oaep$1(c,a){var d=c.modulus.byteLength(),et=a.length,nt=createHash$1("sha1").update(Buffer$2.alloc(0)).digest(),tt=nt.length,bt=2*tt;if(et>d-bt-2)throw new Error("message too long");var gt=Buffer$2.alloc(d-et-bt-2),wt=d-tt-1,St=randomBytes$1(tt),Mt=xor$1(Buffer$2.concat([nt,gt,Buffer$2.alloc(1,1),a],wt),mgf$1(St,wt)),_t=xor$1(St,mgf$1(Mt,tt));return new BN$1(Buffer$2.concat([Buffer$2.alloc(1),_t,Mt],d))}function pkcs1$1(c,a,d){var et=a.length,nt=c.modulus.byteLength();if(et>nt-11)throw new Error("message too long");var tt;return d?tt=Buffer$2.alloc(nt-et-3,255):tt=nonZero(nt-et-3),new BN$1(Buffer$2.concat([Buffer$2.from([0,d?1:2]),tt,Buffer$2.alloc(1),a],nt))}function nonZero(c){for(var a=Buffer$2.allocUnsafe(c),d=0,et=randomBytes$1(c*2),nt=0,tt;dbt||new BN(d).cmp(tt.modulus)>=0)throw new Error("decryption error");var gt;et?gt=withPublic(new BN(d),tt):gt=crt(d,tt);var wt=Buffer$1.alloc(bt-gt.length);if(gt=Buffer$1.concat([wt,gt],bt),nt===4)return oaep(tt,gt);if(nt===1)return pkcs1(tt,gt,et);if(nt===3)return gt;throw new Error("unknown padding")};function oaep(c,a){var d=c.modulus.byteLength(),et=createHash("sha1").update(Buffer$1.alloc(0)).digest(),nt=et.length;if(a[0]!==0)throw new Error("decryption error");var tt=a.slice(1,nt+1),bt=a.slice(nt+1),gt=xor(tt,mgf(bt,nt)),wt=xor(bt,mgf(gt,d-nt-1));if(compare(et,wt.slice(0,nt)))throw new Error("decryption error");for(var St=nt;wt[St]===0;)St++;if(wt[St++]!==1)throw new Error("decryption error");return wt.slice(St)}function pkcs1(c,a,d){for(var et=a.slice(0,2),nt=2,tt=0;a[nt++]!==0;)if(nt>=a.length){tt++;break}var bt=a.slice(2,nt-1);if((et.toString("hex")!=="0002"&&!d||et.toString("hex")!=="0001"&&d)&&tt++,bt.length<8&&tt++,tt)throw new Error("decryption error");return a.slice(nt)}function compare(c,a){c=Buffer$1.from(c),a=Buffer$1.from(a);var d=0,et=c.length;c.length!==a.length&&(d++,et=Math.min(c.length,a.length));for(var nt=-1;++ntkMaxUint32||c<0)throw new TypeError("offset must be a uint32");if(c>kBufferMaxLength||c>a)throw new RangeError("offset out of range")}function assertSize$2(c,a,d){if(typeof c!="number"||c!==c)throw new TypeError("size must be a number");if(c>kMaxUint32||c<0)throw new TypeError("size must be a uint32");if(c+a>d||c>kBufferMaxLength)throw new RangeError("buffer too small")}crypto$2&&crypto$2.getRandomValues||!dist$2.process.browser?(browser.randomFill=randomFill,browser.randomFillSync=randomFillSync):(browser.randomFill=oldBrowser,browser.randomFillSync=oldBrowser);function randomFill(c,a,d,et){if(!Buffer.isBuffer(c)&&!(c instanceof commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof a=="function")et=a,a=0,d=c.length;else if(typeof d=="function")et=d,d=c.length-a;else if(typeof et!="function")throw new TypeError('"cb" argument must be a function');return assertOffset(a,c.length),assertSize$2(d,a,c.length),actualFill(c,a,d,et)}function actualFill(c,a,d,et){if(dist$2.process.browser){var nt=c.buffer,tt=new Uint8Array(nt,a,d);if(crypto$2.getRandomValues(tt),et){dist$2.process.nextTick(function(){et(null,c)});return}return c}if(et){randombytes(d,function(gt,wt){if(gt)return et(gt);wt.copy(c,a),et(null,c)});return}var bt=randombytes(d);return bt.copy(c,a),c}function randomFillSync(c,a,d){if(typeof a>"u"&&(a=0),!Buffer.isBuffer(c)&&!(c instanceof commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return assertOffset(a,c.length),d===void 0&&(d=c.length-a),assertSize$2(d,a,c.length),actualFill(c,a,d)}var hasRequiredCryptoBrowserify;function requireCryptoBrowserify(){if(hasRequiredCryptoBrowserify)return cryptoBrowserify;hasRequiredCryptoBrowserify=1,cryptoBrowserify.randomBytes=cryptoBrowserify.rng=cryptoBrowserify.pseudoRandomBytes=cryptoBrowserify.prng=browserExports,cryptoBrowserify.createHash=cryptoBrowserify.Hash=browser$9,cryptoBrowserify.createHmac=cryptoBrowserify.Hmac=browser$8;var c=algos,a=Object.keys(c),d=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(a);cryptoBrowserify.getHashes=function(){return d};var et=browser$7;cryptoBrowserify.pbkdf2=et.pbkdf2,cryptoBrowserify.pbkdf2Sync=et.pbkdf2Sync;var nt=browser$6;cryptoBrowserify.Cipher=nt.Cipher,cryptoBrowserify.createCipher=nt.createCipher,cryptoBrowserify.Cipheriv=nt.Cipheriv,cryptoBrowserify.createCipheriv=nt.createCipheriv,cryptoBrowserify.Decipher=nt.Decipher,cryptoBrowserify.createDecipher=nt.createDecipher,cryptoBrowserify.Decipheriv=nt.Decipheriv,cryptoBrowserify.createDecipheriv=nt.createDecipheriv,cryptoBrowserify.getCiphers=nt.getCiphers,cryptoBrowserify.listCiphers=nt.listCiphers;var tt=requireBrowser$2();cryptoBrowserify.DiffieHellmanGroup=tt.DiffieHellmanGroup,cryptoBrowserify.createDiffieHellmanGroup=tt.createDiffieHellmanGroup,cryptoBrowserify.getDiffieHellman=tt.getDiffieHellman,cryptoBrowserify.createDiffieHellman=tt.createDiffieHellman,cryptoBrowserify.DiffieHellman=tt.DiffieHellman;var bt=requireBrowser$1();cryptoBrowserify.createSign=bt.createSign,cryptoBrowserify.Sign=bt.Sign,cryptoBrowserify.createVerify=bt.createVerify,cryptoBrowserify.Verify=bt.Verify,cryptoBrowserify.createECDH=requireBrowser();var gt=browser$1;cryptoBrowserify.publicEncrypt=gt.publicEncrypt,cryptoBrowserify.privateEncrypt=gt.privateEncrypt,cryptoBrowserify.publicDecrypt=gt.publicDecrypt,cryptoBrowserify.privateDecrypt=gt.privateDecrypt;var wt=browser;return cryptoBrowserify.randomFill=wt.randomFill,cryptoBrowserify.randomFillSync=wt.randomFillSync,cryptoBrowserify.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(` -`))},cryptoBrowserify.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},cryptoBrowserify}var cryptoBrowserifyExports=requireCryptoBrowserify();const index$1=getDefaultExportFromCjs(cryptoBrowserifyExports),nodeCrypto=_mergeNamespaces({__proto__:null,default:index$1},[cryptoBrowserifyExports]);/*! noble-secp256k1 - MIT License (c) 2019 Paul Miller (paulmillr.com) */const _0n$5=BigInt(0),_1n$6=BigInt(1),_2n$4=BigInt(2),_3n$2=BigInt(3),_8n$1=BigInt(8),CURVE=Object.freeze({a:_0n$5,b:BigInt(7),P:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:_1n$6,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee")}),divNearest$1=(c,a)=>(c+a/_2n$4)/a,endo={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar(c){const{n:a}=CURVE,d=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),et=-_1n$6*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),nt=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),tt=d,bt=BigInt("0x100000000000000000000000000000000"),gt=divNearest$1(tt*c,a),wt=divNearest$1(-et*c,a);let St=mod$1(c-gt*d-wt*nt,a),Mt=mod$1(-gt*et-wt*tt,a);const _t=St>bt,Tt=Mt>bt;if(_t&&(St=a-St),Tt&&(Mt=a-Mt),St>bt||Mt>bt)throw new Error("splitScalarEndo: Endomorphism failed, k="+c);return{k1neg:_t,k1:St,k2neg:Tt,k2:Mt}}},fieldLen=32,groupLen=32,hashLen=32,compressedLen=fieldLen+1,uncompressedLen=2*fieldLen+1;function weierstrass$1(c){const{a,b:d}=CURVE,et=mod$1(c*c),nt=mod$1(et*c);return mod$1(nt+a*c+d)}const USE_ENDOMORPHISM=CURVE.a===_0n$5;class ShaError extends Error{constructor(a){super(a)}}function assertJacPoint(c){if(!(c instanceof JacobianPoint))throw new TypeError("JacobianPoint expected")}class JacobianPoint{constructor(a,d,et){this.x=a,this.y=d,this.z=et}static fromAffine(a){if(!(a instanceof Point))throw new TypeError("JacobianPoint#fromAffine: expected Point");return a.equals(Point.ZERO)?JacobianPoint.ZERO:new JacobianPoint(a.x,a.y,_1n$6)}static toAffineBatch(a){const d=invertBatch(a.map(et=>et.z));return a.map((et,nt)=>et.toAffine(d[nt]))}static normalizeZ(a){return JacobianPoint.toAffineBatch(a).map(JacobianPoint.fromAffine)}equals(a){assertJacPoint(a);const{x:d,y:et,z:nt}=this,{x:tt,y:bt,z:gt}=a,wt=mod$1(nt*nt),St=mod$1(gt*gt),Mt=mod$1(d*St),_t=mod$1(tt*wt),Tt=mod$1(mod$1(et*gt)*St),Bt=mod$1(mod$1(bt*nt)*wt);return Mt===_t&&Tt===Bt}negate(){return new JacobianPoint(this.x,mod$1(-this.y),this.z)}double(){const{x:a,y:d,z:et}=this,nt=mod$1(a*a),tt=mod$1(d*d),bt=mod$1(tt*tt),gt=a+tt,wt=mod$1(_2n$4*(mod$1(gt*gt)-nt-bt)),St=mod$1(_3n$2*nt),Mt=mod$1(St*St),_t=mod$1(Mt-_2n$4*wt),Tt=mod$1(St*(wt-_t)-_8n$1*bt),Bt=mod$1(_2n$4*d*et);return new JacobianPoint(_t,Tt,Bt)}add(a){assertJacPoint(a);const{x:d,y:et,z:nt}=this,{x:tt,y:bt,z:gt}=a;if(tt===_0n$5||bt===_0n$5)return this;if(d===_0n$5||et===_0n$5)return a;const wt=mod$1(nt*nt),St=mod$1(gt*gt),Mt=mod$1(d*St),_t=mod$1(tt*wt),Tt=mod$1(mod$1(et*gt)*St),Bt=mod$1(mod$1(bt*nt)*wt),kt=mod$1(_t-Mt),It=mod$1(Bt-Tt);if(kt===_0n$5)return It===_0n$5?this.double():JacobianPoint.ZERO;const Lt=mod$1(kt*kt),Ot=mod$1(kt*Lt),Nt=mod$1(Mt*Lt),Ft=mod$1(It*It-Ot-_2n$4*Nt),zt=mod$1(It*(Nt-Ft)-Tt*Ot),Vt=mod$1(nt*gt*kt);return new JacobianPoint(Ft,zt,Vt)}subtract(a){return this.add(a.negate())}multiplyUnsafe(a){const d=JacobianPoint.ZERO;if(typeof a=="bigint"&&a===_0n$5)return d;let et=normalizeScalar(a);if(et===_1n$6)return this;if(!USE_ENDOMORPHISM){let _t=d,Tt=this;for(;et>_0n$5;)et&_1n$6&&(_t=_t.add(Tt)),Tt=Tt.double(),et>>=_1n$6;return _t}let{k1neg:nt,k1:tt,k2neg:bt,k2:gt}=endo.splitScalar(et),wt=d,St=d,Mt=this;for(;tt>_0n$5||gt>_0n$5;)tt&_1n$6&&(wt=wt.add(Mt)),gt&_1n$6&&(St=St.add(Mt)),Mt=Mt.double(),tt>>=_1n$6,gt>>=_1n$6;return nt&&(wt=wt.negate()),bt&&(St=St.negate()),St=new JacobianPoint(mod$1(St.x*endo.beta),St.y,St.z),wt.add(St)}precomputeWindow(a){const d=USE_ENDOMORPHISM?128/a+1:256/a+1,et=[];let nt=this,tt=nt;for(let bt=0;bt>=_t,kt>wt&&(kt-=Mt,a+=_1n$6);const It=Bt,Lt=Bt+Math.abs(kt)-1,Ot=Tt%2!==0,Nt=kt<0;kt===0?bt=bt.add(constTimeNegate(Ot,nt[It])):tt=tt.add(constTimeNegate(Nt,nt[Lt]))}return{p:tt,f:bt}}multiply(a,d){let et=normalizeScalar(a),nt,tt;if(USE_ENDOMORPHISM){const{k1neg:bt,k1:gt,k2neg:wt,k2:St}=endo.splitScalar(et);let{p:Mt,f:_t}=this.wNAF(gt,d),{p:Tt,f:Bt}=this.wNAF(St,d);Mt=constTimeNegate(bt,Mt),Tt=constTimeNegate(wt,Tt),Tt=new JacobianPoint(mod$1(Tt.x*endo.beta),Tt.y,Tt.z),nt=Mt.add(Tt),tt=_t.add(Bt)}else{const{p:bt,f:gt}=this.wNAF(et,d);nt=bt,tt=gt}return JacobianPoint.normalizeZ([nt,tt])[0]}toAffine(a){const{x:d,y:et,z:nt}=this,tt=this.equals(JacobianPoint.ZERO);a==null&&(a=tt?_8n$1:invert$1(nt));const bt=a,gt=mod$1(bt*bt),wt=mod$1(gt*bt),St=mod$1(d*gt),Mt=mod$1(et*wt),_t=mod$1(nt*bt);if(tt)return Point.ZERO;if(_t!==_1n$6)throw new Error("invZ was invalid");return new Point(St,Mt)}}JacobianPoint.BASE=new JacobianPoint(CURVE.Gx,CURVE.Gy,_1n$6);JacobianPoint.ZERO=new JacobianPoint(_0n$5,_1n$6,_0n$5);function constTimeNegate(c,a){const d=a.negate();return c?d:a}const pointPrecomputes=new WeakMap;class Point{constructor(a,d){this.x=a,this.y=d}_setWindowSize(a){this._WINDOW_SIZE=a,pointPrecomputes.delete(this)}hasEvenY(){return this.y%_2n$4===_0n$5}static fromCompressedHex(a){const d=a.length===32,et=bytesToNumber$1(d?a:a.subarray(1));if(!isValidFieldElement(et))throw new Error("Point is not on curve");const nt=weierstrass$1(et);let tt=sqrtMod$1(nt);const bt=(tt&_1n$6)===_1n$6;d?bt&&(tt=mod$1(-tt)):(a[0]&1)===1!==bt&&(tt=mod$1(-tt));const gt=new Point(et,tt);return gt.assertValidity(),gt}static fromUncompressedHex(a){const d=bytesToNumber$1(a.subarray(1,fieldLen+1)),et=bytesToNumber$1(a.subarray(fieldLen+1,fieldLen*2+1)),nt=new Point(d,et);return nt.assertValidity(),nt}static fromHex(a){const d=ensureBytes$1(a),et=d.length,nt=d[0];if(et===fieldLen)return this.fromCompressedHex(d);if(et===compressedLen&&(nt===2||nt===3))return this.fromCompressedHex(d);if(et===uncompressedLen&&nt===4)return this.fromUncompressedHex(d);throw new Error(`Point.fromHex: received invalid point. Expected 32-${compressedLen} compressed bytes or ${uncompressedLen} uncompressed bytes, not ${et}`)}static fromPrivateKey(a){return Point.BASE.multiply(normalizePrivateKey(a))}static fromSignature(a,d,et){const{r:nt,s:tt}=normalizeSignature$2(d);if(![0,1,2,3].includes(et))throw new Error("Cannot recover: invalid recovery bit");const bt=truncateHash(ensureBytes$1(a)),{n:gt}=CURVE,wt=et===2||et===3?nt+gt:nt,St=invert$1(wt,gt),Mt=mod$1(-bt*St,gt),_t=mod$1(tt*St,gt),Tt=et&1?"03":"02",Bt=Point.fromHex(Tt+numTo32bStr(wt)),kt=Point.BASE.multiplyAndAddUnsafe(Bt,Mt,_t);if(!kt)throw new Error("Cannot recover signature: point at infinify");return kt.assertValidity(),kt}toRawBytes(a=!1){return hexToBytes$3(this.toHex(a))}toHex(a=!1){const d=numTo32bStr(this.x);return a?`${this.hasEvenY()?"02":"03"}${d}`:`04${d}${numTo32bStr(this.y)}`}toHexX(){return this.toHex(!0).slice(2)}toRawX(){return this.toRawBytes(!0).slice(1)}assertValidity(){const a="Point is not on elliptic curve",{x:d,y:et}=this;if(!isValidFieldElement(d)||!isValidFieldElement(et))throw new Error(a);const nt=mod$1(et*et),tt=weierstrass$1(d);if(mod$1(nt-tt)!==_0n$5)throw new Error(a)}equals(a){return this.x===a.x&&this.y===a.y}negate(){return new Point(this.x,mod$1(-this.y))}double(){return JacobianPoint.fromAffine(this).double().toAffine()}add(a){return JacobianPoint.fromAffine(this).add(JacobianPoint.fromAffine(a)).toAffine()}subtract(a){return this.add(a.negate())}multiply(a){return JacobianPoint.fromAffine(this).multiply(a,this).toAffine()}multiplyAndAddUnsafe(a,d,et){const nt=JacobianPoint.fromAffine(this),tt=d===_0n$5||d===_1n$6||this!==Point.BASE?nt.multiplyUnsafe(d):nt.multiply(d),bt=JacobianPoint.fromAffine(a).multiplyUnsafe(et),gt=tt.add(bt);return gt.equals(JacobianPoint.ZERO)?void 0:gt.toAffine()}}Point.BASE=new Point(CURVE.Gx,CURVE.Gy);Point.ZERO=new Point(_0n$5,_0n$5);function sliceDER(c){return Number.parseInt(c[0],16)>=8?"00"+c:c}function parseDERInt(c){if(c.length<2||c[0]!==2)throw new Error(`Invalid signature integer tag: ${bytesToHex$3(c)}`);const a=c[1],d=c.subarray(2,a+2);if(!a||d.length!==a)throw new Error("Invalid signature integer: wrong length");if(d[0]===0&&d[1]<=127)throw new Error("Invalid signature integer: trailing length");return{data:bytesToNumber$1(d),left:c.subarray(a+2)}}function parseDERSignature(c){if(c.length<2||c[0]!=48)throw new Error(`Invalid signature tag: ${bytesToHex$3(c)}`);if(c[1]!==c.length-2)throw new Error("Invalid signature: incorrect length");const{data:a,left:d}=parseDERInt(c.subarray(2)),{data:et,left:nt}=parseDERInt(d);if(nt.length)throw new Error(`Invalid signature: left bytes after parsing: ${bytesToHex$3(nt)}`);return{r:a,s:et}}let Signature$1=class Eo{constructor(a,d){this.r=a,this.s=d,this.assertValidity()}static fromCompact(a){const d=a instanceof Uint8Array,et="Signature.fromCompact";if(typeof a!="string"&&!d)throw new TypeError(`${et}: Expected string or Uint8Array`);const nt=d?bytesToHex$3(a):a;if(nt.length!==128)throw new Error(`${et}: Expected 64-byte hex`);return new Eo(hexToNumber$2(nt.slice(0,64)),hexToNumber$2(nt.slice(64,128)))}static fromDER(a){const d=a instanceof Uint8Array;if(typeof a!="string"&&!d)throw new TypeError("Signature.fromDER: Expected string or Uint8Array");const{r:et,s:nt}=parseDERSignature(d?a:hexToBytes$3(a));return new Eo(et,nt)}static fromHex(a){return this.fromDER(a)}assertValidity(){const{r:a,s:d}=this;if(!isWithinCurveOrder(a))throw new Error("Invalid Signature: r must be 0 < r < n");if(!isWithinCurveOrder(d))throw new Error("Invalid Signature: s must be 0 < s < n")}hasHighS(){const a=CURVE.n>>_1n$6;return this.s>a}normalizeS(){return this.hasHighS()?new Eo(this.r,mod$1(-this.s,CURVE.n)):this}toDERRawBytes(){return hexToBytes$3(this.toDERHex())}toDERHex(){const a=sliceDER(numberToHexUnpadded$1(this.s)),d=sliceDER(numberToHexUnpadded$1(this.r)),et=a.length/2,nt=d.length/2,tt=numberToHexUnpadded$1(et),bt=numberToHexUnpadded$1(nt);return`30${numberToHexUnpadded$1(nt+et+4)}02${bt}${d}02${tt}${a}`}toRawBytes(){return this.toDERRawBytes()}toHex(){return this.toDERHex()}toCompactRawBytes(){return hexToBytes$3(this.toCompactHex())}toCompactHex(){return numTo32bStr(this.r)+numTo32bStr(this.s)}};function concatBytes$4(...c){if(!c.every(et=>et instanceof Uint8Array))throw new Error("Uint8Array list expected");if(c.length===1)return c[0];const a=c.reduce((et,nt)=>et+nt.length,0),d=new Uint8Array(a);for(let et=0,nt=0;eta.toString(16).padStart(2,"0"));function bytesToHex$3(c){if(!(c instanceof Uint8Array))throw new Error("Expected Uint8Array");let a="";for(let d=0;d0)return BigInt(c);if(typeof c=="bigint"&&isWithinCurveOrder(c))return c;throw new TypeError("Expected valid private scalar: 0 < scalar < curve.n")}function mod$1(c,a=CURVE.P){const d=c%a;return d>=_0n$5?d:a+d}function pow2$1(c,a){const{P:d}=CURVE;let et=c;for(;a-- >_0n$5;)et*=et,et%=d;return et}function sqrtMod$1(c){const{P:a}=CURVE,d=BigInt(6),et=BigInt(11),nt=BigInt(22),tt=BigInt(23),bt=BigInt(44),gt=BigInt(88),wt=c*c*c%a,St=wt*wt*c%a,Mt=pow2$1(St,_3n$2)*St%a,_t=pow2$1(Mt,_3n$2)*St%a,Tt=pow2$1(_t,_2n$4)*wt%a,Bt=pow2$1(Tt,et)*Tt%a,kt=pow2$1(Bt,nt)*Bt%a,It=pow2$1(kt,bt)*kt%a,Lt=pow2$1(It,gt)*It%a,Ot=pow2$1(Lt,bt)*kt%a,Nt=pow2$1(Ot,_3n$2)*St%a,Ft=pow2$1(Nt,tt)*Bt%a,zt=pow2$1(Ft,d)*wt%a,Vt=pow2$1(zt,_2n$4);if(Vt*Vt%a!==c)throw new Error("Cannot find square root");return Vt}function invert$1(c,a=CURVE.P){if(c===_0n$5||a<=_0n$5)throw new Error(`invert: expected positive integers, got n=${c} mod=${a}`);let d=mod$1(c,a),et=a,nt=_0n$5,tt=_1n$6;for(;d!==_0n$5;){const gt=et/d,wt=et%d,St=nt-tt*gt;et=d,d=wt,nt=tt,tt=St}if(et!==_1n$6)throw new Error("invert: does not exist");return mod$1(nt,a)}function invertBatch(c,a=CURVE.P){const d=new Array(c.length),et=c.reduce((tt,bt,gt)=>bt===_0n$5?tt:(d[gt]=tt,mod$1(tt*bt,a)),_1n$6),nt=invert$1(et,a);return c.reduceRight((tt,bt,gt)=>bt===_0n$5?tt:(d[gt]=mod$1(tt*d[gt],a),mod$1(tt*bt,a)),nt),d}function bits2int_2(c){const a=c.length*8-groupLen*8,d=bytesToNumber$1(c);return a>0?d>>BigInt(a):d}function truncateHash(c,a=!1){const d=bits2int_2(c);if(a)return d;const{n:et}=CURVE;return d>=et?d-et:d}let _sha256Sync,_hmacSha256Sync;class HmacDrbg{constructor(a,d){if(this.hashLen=a,this.qByteLen=d,typeof a!="number"||a<2)throw new Error("hashLen must be a number");if(typeof d!="number"||d<2)throw new Error("qByteLen must be a number");this.v=new Uint8Array(a).fill(1),this.k=new Uint8Array(a).fill(0),this.counter=0}hmac(...a){return utils$2.hmacSha256(this.k,...a)}hmacSync(...a){return _hmacSha256Sync(this.k,...a)}checkSync(){if(typeof _hmacSha256Sync!="function")throw new ShaError("hmacSha256Sync needs to be set")}incr(){if(this.counter>=1e3)throw new Error("Tried 1,000 k values for sign(), all were invalid");this.counter+=1}async reseed(a=new Uint8Array){this.k=await this.hmac(this.v,Uint8Array.from([0]),a),this.v=await this.hmac(this.v),a.length!==0&&(this.k=await this.hmac(this.v,Uint8Array.from([1]),a),this.v=await this.hmac(this.v))}reseedSync(a=new Uint8Array){this.checkSync(),this.k=this.hmacSync(this.v,Uint8Array.from([0]),a),this.v=this.hmacSync(this.v),a.length!==0&&(this.k=this.hmacSync(this.v,Uint8Array.from([1]),a),this.v=this.hmacSync(this.v))}async generate(){this.incr();let a=0;const d=[];for(;a0)a=BigInt(c);else if(typeof c=="string"){if(c.length!==2*groupLen)throw new Error("Expected 32 bytes of private key");a=hexToNumber$2(c)}else if(c instanceof Uint8Array){if(c.length!==groupLen)throw new Error("Expected 32 bytes of private key");a=bytesToNumber$1(c)}else throw new TypeError("Expected valid private key");if(!isWithinCurveOrder(a))throw new Error("Expected private key: 0 < key < n");return a}function normalizePublicKey(c){return c instanceof Point?(c.assertValidity(),c):Point.fromHex(c)}function normalizeSignature$2(c){if(c instanceof Signature$1)return c.assertValidity(),c;try{return Signature$1.fromDER(c)}catch{return Signature$1.fromCompact(c)}}function getPublicKey(c,a=!1){return Point.fromPrivateKey(c).toRawBytes(a)}function recoverPublicKey(c,a,d,et=!1){return Point.fromSignature(c,a,d).toRawBytes(et)}function isProbPub(c){const a=c instanceof Uint8Array,d=typeof c=="string",et=(a||d)&&c.length;return a?et===compressedLen||et===uncompressedLen:d?et===compressedLen*2||et===uncompressedLen*2:c instanceof Point}function getSharedSecret(c,a,d=!1){if(isProbPub(c))throw new TypeError("getSharedSecret: first arg must be private key");if(!isProbPub(a))throw new TypeError("getSharedSecret: second arg must be public key");const et=normalizePublicKey(a);return et.assertValidity(),et.multiply(normalizePrivateKey(c)).toRawBytes(d)}function bits2int(c){const a=c.length>fieldLen?c.slice(0,fieldLen):c;return bytesToNumber$1(a)}function bits2octets(c){const a=bits2int(c),d=mod$1(a,CURVE.n);return int2octets(d<_0n$5?a:d)}function int2octets(c){return numTo32b(c)}function initSigArgs(c,a,d){if(c==null)throw new Error(`sign: expected valid message hash, not "${c}"`);const et=ensureBytes$1(c),nt=normalizePrivateKey(a),tt=[int2octets(nt),bits2octets(et)];if(d!=null){d===!0&&(d=utils$2.randomBytes(fieldLen));const wt=ensureBytes$1(d);if(wt.length!==fieldLen)throw new Error(`sign: Expected ${fieldLen} bytes of extra data`);tt.push(wt)}const bt=concatBytes$4(...tt),gt=bits2int(et);return{seed:bt,m:gt,d:nt}}function finalizeSig(c,a){const{sig:d,recovery:et}=c,{der:nt,recovered:tt}=Object.assign({canonical:!0,der:!0},a),bt=nt?d.toDERRawBytes():d.toCompactRawBytes();return tt?[bt,et]:bt}function signSync(c,a,d={}){const{seed:et,m:nt,d:tt}=initSigArgs(c,a,d.extraEntropy),bt=new HmacDrbg(hashLen,groupLen);bt.reseedSync(et);let gt;for(;!(gt=kmdToSig(bt.generateSync(),nt,tt,d.canonical));)bt.reseedSync();return finalizeSig(gt,d)}Point.BASE._setWindowSize(8);const crypto$1={node:nodeCrypto,web:typeof self=="object"&&"crypto"in self?self.crypto:void 0},TAGGED_HASH_PREFIXES={},utils$2={bytesToHex:bytesToHex$3,hexToBytes:hexToBytes$3,concatBytes:concatBytes$4,mod:mod$1,invert:invert$1,isValidPrivateKey(c){try{return normalizePrivateKey(c),!0}catch{return!1}},_bigintTo32Bytes:numTo32b,_normalizePrivateKey:normalizePrivateKey,hashToPrivateKey:c=>{c=ensureBytes$1(c);const a=groupLen+8;if(c.length1024)throw new Error("Expected valid bytes of private key as per FIPS 186");const d=mod$1(bytesToNumber$1(c),CURVE.n-_1n$6)+_1n$6;return numTo32b(d)},randomBytes:(c=32)=>{if(crypto$1.web)return crypto$1.web.getRandomValues(new Uint8Array(c));if(crypto$1.node){const{randomBytes:a}=crypto$1.node;return Uint8Array.from(a(c))}else throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>utils$2.hashToPrivateKey(utils$2.randomBytes(groupLen+8)),precompute(c=8,a=Point.BASE){const d=a===Point.BASE?a:new Point(a.x,a.y);return d._setWindowSize(c),d.multiply(_3n$2),d},sha256:async(...c)=>{if(crypto$1.web){const a=await crypto$1.web.subtle.digest("SHA-256",concatBytes$4(...c));return new Uint8Array(a)}else if(crypto$1.node){const{createHash:a}=crypto$1.node,d=a("sha256");return c.forEach(et=>d.update(et)),Uint8Array.from(d.digest())}else throw new Error("The environment doesn't have sha256 function")},hmacSha256:async(c,...a)=>{if(crypto$1.web){const d=await crypto$1.web.subtle.importKey("raw",c,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),et=concatBytes$4(...a),nt=await crypto$1.web.subtle.sign("HMAC",d,et);return new Uint8Array(nt)}else if(crypto$1.node){const{createHmac:d}=crypto$1.node,et=d("sha256",c);return a.forEach(nt=>et.update(nt)),Uint8Array.from(et.digest())}else throw new Error("The environment doesn't have hmac-sha256 function")},sha256Sync:void 0,hmacSha256Sync:void 0,taggedHash:async(c,...a)=>{let d=TAGGED_HASH_PREFIXES[c];if(d===void 0){const et=await utils$2.sha256(Uint8Array.from(c,nt=>nt.charCodeAt(0)));d=concatBytes$4(et,et),TAGGED_HASH_PREFIXES[c]=d}return utils$2.sha256(d,...a)},taggedHashSync:(c,...a)=>{if(typeof _sha256Sync!="function")throw new ShaError("sha256Sync is undefined, you need to set it");let d=TAGGED_HASH_PREFIXES[c];if(d===void 0){const et=_sha256Sync(Uint8Array.from(c,nt=>nt.charCodeAt(0)));d=concatBytes$4(et,et),TAGGED_HASH_PREFIXES[c]=d}return _sha256Sync(d,...a)},_JacobianPoint:JacobianPoint};Object.defineProperties(utils$2,{sha256Sync:{configurable:!1,get(){return _sha256Sync},set(c){_sha256Sync||(_sha256Sync=c)}},hmacSha256Sync:{configurable:!1,get(){return _hmacSha256Sync},set(c){_hmacSha256Sync||(_hmacSha256Sync=c)}}});const ZeroAddress="0x0000000000000000000000000000000000000000",ZeroHash="0x0000000000000000000000000000000000000000000000000000000000000000",BN_0$7=BigInt(0),BN_1$2=BigInt(1),BN_2$2=BigInt(2),BN_27$1=BigInt(27),BN_28$1=BigInt(28),BN_35$1=BigInt(35),_guard$1={};function toUint256(c){return zeroPadValue(toBeArray(c),32)}var ps,bs,ms,Jn;const K0=class K0{constructor(a,d,et,nt){Vr(this,ps,void 0);Vr(this,bs,void 0);Vr(this,ms,void 0);Vr(this,Jn,void 0);assertPrivate(a,_guard$1,"Signature"),yr(this,ps,d),yr(this,bs,et),yr(this,ms,nt),yr(this,Jn,null)}get r(){return or(this,ps)}set r(a){assertArgument(dataLength(a)===32,"invalid r","value",a),yr(this,ps,hexlify(a))}get s(){return or(this,bs)}set s(a){assertArgument(dataLength(a)===32,"invalid s","value",a);const d=hexlify(a);assertArgument(parseInt(d.substring(0,3))<8,"non-canonical s","value",d),yr(this,bs,d)}get v(){return or(this,ms)}set v(a){const d=getNumber(a,"value");assertArgument(d===27||d===28,"invalid v","v",a),yr(this,ms,d)}get networkV(){return or(this,Jn)}get legacyChainId(){const a=this.networkV;return a==null?null:K0.getChainId(a)}get yParity(){return this.v===27?0:1}get yParityAndS(){const a=getBytes(this.s);return this.yParity&&(a[0]|=128),hexlify(a)}get compactSerialized(){return concat$2([this.r,this.yParityAndS])}get serialized(){return concat$2([this.r,this.s,this.yParity?"0x1c":"0x1b"])}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this.s}", yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){const a=new K0(_guard$1,this.r,this.s,this.v);return this.networkV&&yr(a,Jn,this.networkV),a}toJSON(){const a=this.networkV;return{_type:"signature",networkV:a!=null?a.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(a){const d=getBigInt(a,"v");return d==BN_27$1||d==BN_28$1?BN_0$7:(assertArgument(d>=BN_35$1,"invalid EIP-155 v","v",a),(d-BN_35$1)/BN_2$2)}static getChainIdV(a,d){return getBigInt(a)*BN_2$2+BigInt(35+d-27)}static getNormalizedV(a){const d=getBigInt(a);return d===BN_0$7||d===BN_27$1?27:d===BN_1$2||d===BN_28$1?28:(assertArgument(d>=BN_35$1,"invalid v","v",a),d&BN_1$2?27:28)}static from(a){function d(St,Mt){assertArgument(St,Mt,"signature",a)}if(a==null)return new K0(_guard$1,ZeroHash,ZeroHash,27);if(typeof a=="string"){const St=getBytes(a,"signature");if(St.length===64){const Mt=hexlify(St.slice(0,32)),_t=St.slice(32,64),Tt=_t[0]&128?28:27;return _t[0]&=127,new K0(_guard$1,Mt,hexlify(_t),Tt)}if(St.length===65){const Mt=hexlify(St.slice(0,32)),_t=St.slice(32,64);d((_t[0]&128)===0,"non-canonical s");const Tt=K0.getNormalizedV(St[64]);return new K0(_guard$1,Mt,hexlify(_t),Tt)}d(!1,"invalid raw signature length")}if(a instanceof K0)return a.clone();const et=a.r;d(et!=null,"missing r");const nt=toUint256(et),tt=function(St,Mt){if(St!=null)return toUint256(St);if(Mt!=null){d(isHexString(Mt,32),"invalid yParityAndS");const _t=getBytes(Mt);return _t[0]&=127,hexlify(_t)}d(!1,"missing s")}(a.s,a.yParityAndS);d((getBytes(tt)[0]&128)==0,"non-canonical s");const{networkV:bt,v:gt}=function(St,Mt,_t){if(St!=null){const Tt=getBigInt(St);return{networkV:Tt>=BN_35$1?Tt:void 0,v:K0.getNormalizedV(Tt)}}if(Mt!=null)return d(isHexString(Mt,32),"invalid yParityAndS"),{v:getBytes(Mt)[0]&128?28:27};if(_t!=null){switch(getNumber(_t,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}d(!1,"invalid yParity")}d(!1,"missing v")}(a.v,a.yParityAndS,a.yParity),wt=new K0(_guard$1,nt,tt,gt);return bt&&yr(wt,Jn,bt),d(a.yParity==null||getNumber(a.yParity,"sig.yParity")===wt.yParity,"yParity mismatch"),d(a.yParityAndS==null||a.yParityAndS===wt.yParityAndS,"yParityAndS mismatch"),wt}};ps=new WeakMap,bs=new WeakMap,ms=new WeakMap,Jn=new WeakMap;let Signature=K0;utils$2.hmacSha256Sync=function(c,...a){return getBytes(computeHmac("sha256",c,concat$2(a)))};var gn;const Hn=class Hn{constructor(a){Vr(this,gn,void 0);assertArgument(dataLength(a)===32,"invalid private key","privateKey","[REDACTED]"),yr(this,gn,hexlify(a))}get privateKey(){return or(this,gn)}get publicKey(){return Hn.computePublicKey(or(this,gn))}get compressedPublicKey(){return Hn.computePublicKey(or(this,gn),!0)}sign(a){assertArgument(dataLength(a)===32,"invalid digest length","digest",a);const[d,et]=signSync(getBytesCopy(a),getBytesCopy(or(this,gn)),{recovered:!0,canonical:!0}),nt=Signature$1.fromHex(d);return Signature.from({r:toBeHex("0x"+nt.r.toString(16),32),s:toBeHex("0x"+nt.s.toString(16),32),v:et?28:27})}computeSharedSecret(a){const d=Hn.computePublicKey(a);return hexlify(getSharedSecret(getBytesCopy(or(this,gn)),getBytes(d)))}static computePublicKey(a,d){let et=getBytes(a,"key");if(et.length===32){const tt=getPublicKey(et,!!d);return hexlify(tt)}if(et.length===64){const tt=new Uint8Array(65);tt[0]=4,tt.set(et,1),et=tt}const nt=Point.fromHex(et);return hexlify(nt.toRawBytes(d))}static recoverPublicKey(a,d){assertArgument(dataLength(a)===32,"invalid digest length","digest",a);const et=Signature.from(d),nt=Signature$1.fromCompact(getBytesCopy(concat$2([et.r,et.s]))).toDERRawBytes(),tt=recoverPublicKey(getBytesCopy(a),nt,et.yParity);return assertArgument(tt!=null,"invalid signature for digest","signature",d),hexlify(tt)}static addPoints(a,d,et){const nt=Point.fromHex(Hn.computePublicKey(a).substring(2)),tt=Point.fromHex(Hn.computePublicKey(d).substring(2));return"0x"+nt.add(tt).toHex(!!et)}};gn=new WeakMap;let SigningKey=Hn;const BN_0$6=BigInt(0),BN_36=BigInt(36);function getChecksumAddress(c){c=c.toLowerCase();const a=c.substring(2).split(""),d=new Uint8Array(40);for(let nt=0;nt<40;nt++)d[nt]=a[nt].charCodeAt(0);const et=getBytes(keccak256$2(d));for(let nt=0;nt<40;nt+=2)et[nt>>1]>>4>=8&&(a[nt]=a[nt].toUpperCase()),(et[nt>>1]&15)>=8&&(a[nt+1]=a[nt+1].toUpperCase());return"0x"+a.join("")}const ibanLookup={};for(let c=0;c<10;c++)ibanLookup[String(c)]=String(c);for(let c=0;c<26;c++)ibanLookup[String.fromCharCode(65+c)]=String(10+c);const safeDigits=15;function ibanChecksum(c){c=c.toUpperCase(),c=c.substring(4)+c.substring(0,2)+"00";let a=c.split("").map(et=>ibanLookup[et]).join("");for(;a.length>=safeDigits;){let et=a.substring(0,safeDigits);a=parseInt(et,10)%97+a.substring(et.length)}let d=String(98-parseInt(a,10)%97);for(;d.length<2;)d="0"+d;return d}const Base36=function(){const c={};for(let a=0;a<36;a++){const d="0123456789abcdefghijklmnopqrstuvwxyz"[a];c[d]=BigInt(a)}return c}();function fromBase36(c){c=c.toLowerCase();let a=BN_0$6;for(let d=0;da.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 this.type==="string"}get tupleName(){if(this.type!=="tuple")throw TypeError("not a tuple");return or(this,Qn)}get arrayLength(){if(this.type!=="array")throw TypeError("not an array");return or(this,Qn)===!0?-1:or(this,Qn)===!1?this.value.length:null}static from(a,d){return new ln(_gaurd,a,d)}static uint8(a){return n(a,8)}static uint16(a){return n(a,16)}static uint24(a){return n(a,24)}static uint32(a){return n(a,32)}static uint40(a){return n(a,40)}static uint48(a){return n(a,48)}static uint56(a){return n(a,56)}static uint64(a){return n(a,64)}static uint72(a){return n(a,72)}static uint80(a){return n(a,80)}static uint88(a){return n(a,88)}static uint96(a){return n(a,96)}static uint104(a){return n(a,104)}static uint112(a){return n(a,112)}static uint120(a){return n(a,120)}static uint128(a){return n(a,128)}static uint136(a){return n(a,136)}static uint144(a){return n(a,144)}static uint152(a){return n(a,152)}static uint160(a){return n(a,160)}static uint168(a){return n(a,168)}static uint176(a){return n(a,176)}static uint184(a){return n(a,184)}static uint192(a){return n(a,192)}static uint200(a){return n(a,200)}static uint208(a){return n(a,208)}static uint216(a){return n(a,216)}static uint224(a){return n(a,224)}static uint232(a){return n(a,232)}static uint240(a){return n(a,240)}static uint248(a){return n(a,248)}static uint256(a){return n(a,256)}static uint(a){return n(a,256)}static int8(a){return n(a,-8)}static int16(a){return n(a,-16)}static int24(a){return n(a,-24)}static int32(a){return n(a,-32)}static int40(a){return n(a,-40)}static int48(a){return n(a,-48)}static int56(a){return n(a,-56)}static int64(a){return n(a,-64)}static int72(a){return n(a,-72)}static int80(a){return n(a,-80)}static int88(a){return n(a,-88)}static int96(a){return n(a,-96)}static int104(a){return n(a,-104)}static int112(a){return n(a,-112)}static int120(a){return n(a,-120)}static int128(a){return n(a,-128)}static int136(a){return n(a,-136)}static int144(a){return n(a,-144)}static int152(a){return n(a,-152)}static int160(a){return n(a,-160)}static int168(a){return n(a,-168)}static int176(a){return n(a,-176)}static int184(a){return n(a,-184)}static int192(a){return n(a,-192)}static int200(a){return n(a,-200)}static int208(a){return n(a,-208)}static int216(a){return n(a,-216)}static int224(a){return n(a,-224)}static int232(a){return n(a,-232)}static int240(a){return n(a,-240)}static int248(a){return n(a,-248)}static int256(a){return n(a,-256)}static int(a){return n(a,-256)}static bytes1(a){return b(a,1)}static bytes2(a){return b(a,2)}static bytes3(a){return b(a,3)}static bytes4(a){return b(a,4)}static bytes5(a){return b(a,5)}static bytes6(a){return b(a,6)}static bytes7(a){return b(a,7)}static bytes8(a){return b(a,8)}static bytes9(a){return b(a,9)}static bytes10(a){return b(a,10)}static bytes11(a){return b(a,11)}static bytes12(a){return b(a,12)}static bytes13(a){return b(a,13)}static bytes14(a){return b(a,14)}static bytes15(a){return b(a,15)}static bytes16(a){return b(a,16)}static bytes17(a){return b(a,17)}static bytes18(a){return b(a,18)}static bytes19(a){return b(a,19)}static bytes20(a){return b(a,20)}static bytes21(a){return b(a,21)}static bytes22(a){return b(a,22)}static bytes23(a){return b(a,23)}static bytes24(a){return b(a,24)}static bytes25(a){return b(a,25)}static bytes26(a){return b(a,26)}static bytes27(a){return b(a,27)}static bytes28(a){return b(a,28)}static bytes29(a){return b(a,29)}static bytes30(a){return b(a,30)}static bytes31(a){return b(a,31)}static bytes32(a){return b(a,32)}static address(a){return new ln(_gaurd,"address",a)}static bool(a){return new ln(_gaurd,"bool",!!a)}static bytes(a){return new ln(_gaurd,"bytes",a)}static string(a){return new ln(_gaurd,"string",a)}static array(a,d){throw new Error("not implemented yet")}static tuple(a,d){throw new Error("not implemented yet")}static overrides(a){return new ln(_gaurd,"overrides",Object.assign({},a))}static isTyped(a){return a&&typeof a=="object"&&"_typedSymbol"in a&&a._typedSymbol===_typedSymbol}static dereference(a,d){if(ln.isTyped(a)){if(a.type!==d)throw new Error(`invalid type: expecetd ${d}, got ${a.type}`);return a.value}return a}};Qn=new WeakMap;let Typed=ln;class AddressCoder extends Coder{constructor(a){super("address","address",a,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(a,d){let et=Typed.dereference(d,"string");try{et=getAddress$1(et)}catch(nt){return this._throwError(nt.message,d)}return a.writeValue(et)}decode(a){return getAddress$1(toBeHex(a.readValue(),20))}}class AnonymousCoder extends Coder{constructor(d){super(d.name,d.type,"_",d.dynamic);Gr(this,"coder");this.coder=d}defaultValue(){return this.coder.defaultValue()}encode(d,et){return this.coder.encode(d,et)}decode(d){return this.coder.decode(d)}}function pack(c,a,d){let et=[];if(Array.isArray(d))et=d;else if(d&&typeof d=="object"){let wt={};et=a.map(St=>{const Mt=St.localName;return assert$s(Mt,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:St},value:d}),assert$s(!wt[Mt],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:St},value:d}),wt[Mt]=!0,d[Mt]})}else assertArgument(!1,"invalid tuple value","tuple",d);assertArgument(a.length===et.length,"types/value length mismatch","tuple",d);let nt=new Writer,tt=new Writer,bt=[];a.forEach((wt,St)=>{let Mt=et[St];if(wt.dynamic){let _t=tt.length;wt.encode(tt,Mt);let Tt=nt.writeUpdatableValue();bt.push(Bt=>{Tt(Bt+_t)})}else wt.encode(nt,Mt)}),bt.forEach(wt=>{wt(nt.length)});let gt=c.appendWriter(nt);return gt+=c.appendWriter(tt),gt}function unpack(c,a){let d=[],et=[],nt=c.subReader(0);return a.forEach(tt=>{let bt=null;if(tt.dynamic){let gt=c.readIndex(),wt=nt.subReader(gt);try{bt=tt.decode(wt)}catch(St){if(isError$1(St,"BUFFER_OVERRUN"))throw St;bt=St,bt.baseType=tt.name,bt.name=tt.localName,bt.type=tt.type}}else try{bt=tt.decode(c)}catch(gt){if(isError$1(gt,"BUFFER_OVERRUN"))throw gt;bt=gt,bt.baseType=tt.name,bt.name=tt.localName,bt.type=tt.type}if(bt==null)throw new Error("investigate");d.push(bt),et.push(tt.localName||null)}),Result.fromItems(d,et)}class ArrayCoder extends Coder{constructor(d,et,nt){const tt=d.type+"["+(et>=0?et:"")+"]",bt=et===-1||d.dynamic;super("array",tt,nt,bt);Gr(this,"coder");Gr(this,"length");defineProperties(this,{coder:d,length:et})}defaultValue(){const d=this.coder.defaultValue(),et=[];for(let nt=0;ntbt||nt<-(bt+BN_1$1))&&this._throwError("value out-of-bounds",et),nt=toTwos(nt,8*WordSize)}else(ntmask(tt,this.size*8))&&this._throwError("value out-of-bounds",et);return d.writeValue(nt)}decode(d){let et=mask(d.readValue(),this.size*8);return this.signed&&(et=fromTwos(et,this.size*8)),et}}class StringCoder extends DynamicBytesCoder{constructor(a){super("string",a)}defaultValue(){return""}encode(a,d){return super.encode(a,toUtf8Bytes(Typed.dereference(d,"string")))}decode(a){return toUtf8String(super.decode(a))}}class TupleCoder extends Coder{constructor(d,et){let nt=!1;const tt=[];d.forEach(gt=>{gt.dynamic&&(nt=!0),tt.push(gt.type)});const bt="tuple("+tt.join(",")+")";super("tuple",bt,et,nt);Gr(this,"coders");defineProperties(this,{coders:Object.freeze(d.slice())})}defaultValue(){const d=[];this.coders.forEach(nt=>{d.push(nt.defaultValue())});const et=this.coders.reduce((nt,tt)=>{const bt=tt.localName;return bt&&(nt[bt]||(nt[bt]=0),nt[bt]++),nt},{});return this.coders.forEach((nt,tt)=>{let bt=nt.localName;!bt||et[bt]!==1||(bt==="length"&&(bt="_length"),d[bt]==null&&(d[bt]=d[tt]))}),Object.freeze(d)}encode(d,et){const nt=Typed.dereference(et,"tuple");return pack(d,this.coders,nt)}decode(d){return unpack(d,this.coders)}}function id$1(c){return keccak256$2(toUtf8Bytes(c))}function decode_arithmetic(c){let a=0;function d(){return c[a++]<<8|c[a++]}let et=d(),nt=1,tt=[0,1];for(let Vt=1;Vt>--wt&1}const _t=31,Tt=2**_t,Bt=Tt>>>1,kt=Bt>>1,It=Tt-1;let Lt=0;for(let Vt=0;Vt<_t;Vt++)Lt=Lt<<1|Mt();let Ot=[],Nt=0,Ft=Tt;for(;;){let Vt=Math.floor(((Lt-Nt+1)*nt-1)/Ft),Jt=0,ir=et;for(;ir-Jt>1;){let lr=Jt+ir>>>1;Vt>>1|Mt(),rr=rr<<1^Bt,er=(er^Bt)<<1|Bt|1;Nt=rr,Ft=1+er-rr}let zt=et-4;return Ot.map(Vt=>{switch(Vt-zt){case 3:return zt+65792+(c[gt++]<<16|c[gt++]<<8|c[gt++]);case 2:return zt+256+(c[gt++]<<8|c[gt++]);case 1:return zt+c[gt++];default:return Vt-1}})}function read_payload(c){let a=0;return()=>c[a++]}function read_compressed_payload(c){return read_payload(decode_arithmetic(unsafe_atob(c)))}function unsafe_atob(c){let a=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((nt,tt)=>a[nt.charCodeAt(0)]=tt);let d=c.length,et=new Uint8Array(6*d>>3);for(let nt=0,tt=0,bt=0,gt=0;nt=8&&(et[tt++]=gt>>(bt-=8));return et}function signed(c){return c&1?~c>>1:c>>1}function read_deltas(c,a){let d=Array(c);for(let et=0,nt=0;et{let a=read_sorted(c);if(a.length)return a})}function read_mapped(c){let a=[];for(;;){let d=c();if(d==0)break;a.push(read_linear_table(d,c))}for(;;){let d=c()-1;if(d<0)break;a.push(read_replacement_table(d,c))}return a.flat()}function read_array_while(c){let a=[];for(;;){let d=c(a.length);if(!d)break;a.push(d)}return a}function read_transposed(c,a,d){let et=Array(c).fill().map(()=>[]);for(let nt=0;ntet[bt].push(tt));return et}function read_linear_table(c,a){let d=1+a(),et=a(),nt=read_array_while(a);return read_transposed(nt.length,1+c,a).flatMap((bt,gt)=>{let[wt,...St]=bt;return Array(nt[gt]).fill().map((Mt,_t)=>{let Tt=_t*et;return[wt+_t*d,St.map(Bt=>Bt+Tt)]})})}function read_replacement_table(c,a){let d=1+a();return read_transposed(d,1+c,a).map(nt=>[nt[0],nt.slice(1)])}var r$1=read_compressed_payload("AEgSbwjEDVYByQKaAQsBOQDpATQAngDUAHsAoABoANQAagCNAEQAhABMAHIAOwA9ACsANgAmAGIAHgAvACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGAAeABMAFwAXAA0ADgAWAA8AFAAVBFsF1QEXE0o3xAXUALIArkABaACmAgPGAK6AMDAwMAE/qAYK7P4HQAblMgVYBVkAPSw5Afa3EgfJwgAPA8meNALGCjACjqIChtk/j2+KAsXMAoPzASDgCgDyrgFCAi6OCkCQAOQA4woWABjVuskNDD6eBBx4AP4COhi+D+wKBirqBgSCaA0cBy4ArABqku+mnIAAXAaUJAbqABwAPAyUFvyp/Mo8INAIvCoDshQ8APcubKQAon4ZABgEJtgXAR4AuhnOBPsKIE04CZgJiR8cVlpM5INDABQADQAWAA9sVQAiAA8ASO8W2T30OVnKluYvChEeX05ZPe0AFAANABYAD2wgXUCYAMPsABwAOgzGFryp/AHauQVcBeMC0KACxLEKTR2kZhR0Gm5M9gC8DmgC4gAMLjSKF8qSAoF8ARMcAL4OaALiAAwuAUlQJpJMCwMt/AUpCthqGK4B2EQAciwSeAIyFiIDKCi6OGwAOuIB9iYAyA7MtgEcZIIAsgYABgCK1EoFHNZsGACoKNIBogAAAAAAKy4DnABoAQoaPu43dQQZGACrAcgCIgDgLBJ0OvRQsTOiKDVJBfsoBVoFWbC5BWo7XkITO1hCmHuUZmCh+QwUA8YIJvJ4JASkTAJUVAJ2HKwoAZCkpjZcA0YYBIRiCgDSBqxAMCQHKgI6XgBsAWIgcgCEHhoAlgFKuAAoahgBsMYDOC4iRFQBcFoGZgJmAPJKGAMqAgYASkIArABeAHQALLYGCPTwGo6AAAAKIgAqALQcSAHSAdwIDDKXeYHpAAsAEgA1AD4AOTR3etTBEGAQXQJNCkxtOxUMAq0PpwvmERYM0irM09kANKoH7ANUB+wDVANUB+wH7ANUB+wDVANUA1QDVBwL8BvUwRBgD0kEbgWPBYwE1wiEJkoRggcpCNNUDnQfHEgDRgD9IyZJHTuUMwwlQ0wNTQQH/TZDbKh9OQNIMaxU9pCjA8wyUDltAh5yEqEAKw90HTW2Tn96SHGhCkxPr7WASWNOaAK/Oqk/+QoiCZRvvHdPBj4QGCeiEPQMMAGyATgN6kvVBO4GOATGH3oZFg/KlZkIoi3aDOom4C6egFcj8iqABepL8TzaC0pRZQ9WC2IJ4DpggUsDHgEKIogK2g02CGoQ8ArGaA3iEUIHNgPSSZcAogb+Cw4dMhWyJg1iqQsGOXQG+BrzC4wmrBMmevkF0BoeBkoBJhr8AMwu5IWtWi5cGU9cBgALIiPEFKVQHQ0iQLR4RRoYBxIlpgKOQ21KhFEzHpAh8zw6DWMuEFF5B/I8AhlMC348m0aoRQsRzz6KPUUiRkwpBDJ8LCwniAnMD4IMtnxvAVYJHgmuDG4TLhEUN8IINgcWKpchJxIIHkaSYJcE9JwD8BPOAwgFPAk+BxADshwqEysVJgUKgSHUAvA20i6wAoxWfQEUBcgPIh/cEE1H3Q7mCJgCYgOAJegAKhUeABQimAhAYABcj9VTAi7ICMRqaSNxA2QU5F4RcAeODlQHpBwwFbwc3nDFXgiGBSigrAlYAXIJlgFcBOAIBjVYjJ0gPmdQi1UYmCBeQTxd+QIuDGIVnES6h3UCiA9oEhgBMgFwBzYM/gJ0EeoRaBCSCOiGATWyM/U6IgRMIYAgDgokA0xsywskJvYM9WYBoBJfAwk0OnfrZ6hgsyEX+gcWMsJBXSHuC49PygyZGr4YP1QrGeEHvAPwGvAn50FUBfwDoAAQOkoz6wS6C2YIiAk8AEYOoBQH1BhnCm6MzQEuiAG0lgNUjoACbIwGNAcIAGQIhAV24gAaAqQIoAACAMwDVAA2AqoHmgAWAII+AToDJCwBHuICjAOQCC7IAZIsAfAmBBjADBIA9DRuRwLDrgKAZ2afBdpVAosCRjIBSiIEAktETgOsbt4A2ABIBhDcRAESqEfIF+BAAdxsKADEAPgAAjIHAj4BygHwagC0AVwLLgmfsLIBSuYmAIAAEmgB1AKGANoAMgB87gFQAEoFVvYF0AJMRgEOLhUoVF4BuAMcATABCgB2BsiKosYEHARqB9ACEBgV3gLvKweyAyLcE8pCwgK921IAMhMKNQqkCqNgWF0wAy5vPU0ACx+lPsQ/SwVOO1A7VTtQO1U7UDtVO1A7VTtQO1UDlLzfvN8KaV9CYegMow3RRMU6RhPYYE5gLxPFLbQUvhXLJVMZOhq5JwIl4VUGDwEt0GYtCCk0che5ADwpZYM+Y4MeLQpIHORTjlT1LRgArkufM6wNqRsSRD0FRHXqYicWCwofAmR+AmI/WEqsWDcdAqH0AmiVAmYGAp+BOBgIAmY4AmYjBGsEfAN/EAN+jzkDOXQUOX86ICACbBoCMjM4BwJtxAJtq+yHMGRCKAFkANsA3gBHAgeVDIoA+wi/AAqyAncsAnafPAJ5SEACeLcaWdhFq0bwAnw8AnrFAn0GAnztR/1IemAhACgSSVVKWBIUSskC0P4C0MlLJAOITAOH40TCkS8C8p5dAAMDq0vLTCoiAMxNSU2sAos8AorVvhgEGkBkArQCjjQCjlk9lH4CjtYCjll1UbFTMgdS0VSCApP4ApMJAOYAGVUbVaxVzQMsGCmSgzLeeGNFODYCl5wC769YHqUAViIClowClnmZAKZZqVoGfkoAOAKWsgKWS1xBXM4CmcgCmWFcx10EFgKcmDm/OpoCnBMCn5gCnrWHABoMLicMAp3uAp6PALI6YTFh7AKe0AKgawGmAp6cHAKeS6JjxWQkIigCJ6wCJnsCoPgCoEnUAqYsAqXLAqf8AHoCp+9oeWiuAABGahlqzgKs4AKsqwKtZAKs/wJXGgJV2QKx3tQDH0tslAKyugoCsuUUbN1tYG1FXAMlygK2WTg8bo0DKUICuFsCuUQSArkndHAzcN4CvRYDLa8DMg4CvoVx/wMzbgK+F3Mfc0wCw8gCwwFzf3RIMkJ03QM8pAM8lwM9vALFeQLGRALGDYYCyGZOAshBAslMAskrAmSaAt3PeHZeeKt5IkvNAxigZv8CYfEZ8JUhewhej164DgLPaALPaSxIUM/wEJwAw6oCz3ABJucDTg9+SAIC3CQC24cC0kwDUlkDU1wA/gNViYCGPMgT6l1CcoLLg4oC2sQC2duEDYRGpzkDhqIALANkC4ZuVvYAUgLfYgLetXB0AuIs7REB8y0kAfSYAfLPhALr8ALpbXYC6vYC6uEA9kQBtgLuhgLrmZanlwAC7jwDhd2YdnDdcZ4C8wAAZgOOE5mQAvcQA5FrA5KEAveVAvnWAvhjmhmaqLg0mxsDnYAC/vcBGAA2nxmfsAMFigOmZwOm1gDOwgMGZ6GFogIGAwxGAQwBHAdqBl62ZAIAuARovA6IHrAKABRyNgAgAzASSgOGfAFgJB4AjOwAHgDmoAScjgi0BhygwgCoBRK86h4+PxZ5BWk4P0EsQiJCtV9yEl+9AJbGBTMAkE0am7o7J2AzErrQDjAYxxiKyfcFWAVZBVgFWQVkBVkFWAVZBVgFWQVYBVkFWAVZRxYI2IZoAwMDCmVe6iwEygOyBjC8vAC8BKi8AOhBKhazBUc+aj5xQkBCt192OF/pAFgSM6wAjP/MbMv9puhGez4nJAUsFyg3Nn5u32vB8hnDLGoBbNdvMRgFYAVrycLJuQjQSlwBAQEKfV5+jL8AND+CAAQW0gbmriQGAIzEDAMCDgDlZh4+JSBLQrJCvUI5JF8oYDcoOSQJwj4KRT9EPnk+gj5xPnICikK9SkM8X8xPUGtOCy1sVTBrDG8gX+E0OxwJaJwKYyQsPR4nQqxCvSzMAsv9X8oPIC8KCQoAACN+nt9rOy5LGMmsya0JZsLMzQphQWAP5hCkEgCTjh5GQiYbqm06zjkKND9EPnFCQBwICx5NSG1cLS5a4rwTCn7uHixCQBxeCUsKDzRVREM4BTtEnC0KghwuQkAb9glUIyQZMTIBBo9i8F8KcmTKYAxgLiRvAERgGjoDHB9gtAcDbBFmT2BOEgIAZOhgFmCWYH5gtGBMYJJpFhgGtg/cVqq8WwtDF6wBvCzOwgMgFgEdBB8BegJtMDGWU4EBiwq5SBsA5SR0jwvLDqdN6wGcAoidUAVBYAD4AD4LATUXWHsMpg0lILuwSABQDTUAFhO4NVUC0wxLZhEcANlPBnYECx9bADIAtwKbKAsWcKwzOaAaAVwBhwn9A9ruEAarBksGugAey1aqWwq7YhOKCy1ADrwBvAEjA0hbKSkpIR8gIi0TJwciDY4AVQJvWJFKlgJvIA9ySAHUdRDPUiEaqrFN6wcSBU1gAPgAPgsBewAHJW0LiAymOTEuyLBXDgwAYL0MAGRKaFAiIhzAADIAtwKbKC08D88CkRh8ULxYyXRzjtilnA72mhU+G+0S2hIHDxwByAk7EJQGESwNNwwAPAC0zwEDAKUA4gCbizAAFQBcG8cvbXcrDsIRAzwlRNTiHR8MG34CfATCC6vxbQA4Oi4Opzkuz6IdB7wKABA7Ls8SGgB9rNsdD7wbSBzOoncfAT4qYB0C7KAJBE3z5R9mDL0M+wg9Cj8ABcELPgJMDbwIvQ09CT0KvS7PoisOvAaYAhwPjBriBBwLvBY8AKELPBC8BRihe90AO2wMPQACpwm9BRzR9QYFB2/LBnwAB7wSXBISvQECAOsCAAB1FVwHFswV/HAXvBg8AC68AuyovAAevAJWISuAAAG8AALkFT0VvCvso7zJqDwEAp8nTAACXADn3hm8CaVcD7/FAPUafAiiBQv/cQDfvKe8GNwavKOMeXMG/KmchAASvAcbDAADlABtvAcAC7ynPAIaPLsIopzLDvwHwak8AOF8L7dtvwNJAAPsABW8AAb8AAm8AGmMABq8AA68Axi8jmoV/AABXAAObAAuTB8ABrwAF7wIIgANSwC6vCcAA7wADpwq7ACyWwAcHAAbvAAB7AqiAAXHCxYV3AAHnABCvAEDAGm8AAt8AB28AAi8CaIABcsAbqAZ1gCSCCIABcsAATwAB9wAHZwIIgAGmwAJfAAbLABtHADmvIEACFwACDwAFLwAaPwJIgAGywDjjAAJPAuiDsX7YAAHPABunUBJAEgACrwFAAM8AAmuAzgABxwAGXwAAgym/AAKHAAKPAAJ/KfsBrwACRwAAwwAEDwBABQ8ABFsAA+MAA3sAA28ABkMBxYcABU8AG6cFrQBvAC7ABM8BABpLAsA4UwAAjwABFMAF3wFHAAG0QAYvB8BfClTADpGALAJBw4McwApK3EBpQYIXwJtJA0ACghwTG1gK4oggRVjLjcDogq1AALZABcC/ARvAXdzSFMVIgNQAhY/AS0GBHRHvnxTe0EAKgAyAvwAVAvcAHyRLQEsAHfmDhIzRwJLAFgGAAJRAQiLzQB5PAQhpgBbANcWAJZpOCCMAM5ssgDQ1RcJw3Z0HBlXHgrSAYmRrCNUVE5JEz3DivoAgB04QSos4RKYUABzASosMSlDGhADMVYE+MbvAExm3QBrAnICQBF7Osh4LzXWBhETIAUVCK6v/xPNACYAAQIbAIYAiQCONgDjALQA1QCdPQC7AKsApgChAOcAnwDTAJwA4AEBAPwAwAB6AFsAywDNAPwA1wDrAIkAogEqAOMA2ADVBAIIKzTT09PTtb/bzM/NQjEWAUsBVS5GAVMBYgFhAVQBRUpCRGcMAUwUBgkEMzcMBwAgDSQmKCs3OTk8PDw9Pg0/HVBQUFBSUlFSKFNUVlVVHFxgYF9hYCNlZ29ucXFxcXFxc3Nzc3Nzc3Nzc3N1dXZ1dFsAPesAQgCTAHEAKwBf8QCHAFAAUAAwAm/oAIT+8fEAXQCM6wCYAEgAWwBd+PipAH4AfgBiAE8AqgAdAK8AfAI5AjwA9QDgAPcA9wDhAPgA4gDiAOEA3wAoAnQBSgE5ATcBTQE3ATcBNwEyATEBMQExARUBURAAKgkBAEwYCxcEFhcPAIcAjwCfAEoAYxkCKgBvAGgAkAMOAyArAxpCP0gqAIoCSADAAlACnQC5Ao8CjwKPAo8CjwKPAoQCjwKPAo8CjwKPAo8CjgKOApECmQKQAo8CjwKNAo0CjQKNAosCjgJuAc0CkAKYAo8CjwKOF3oMAPcGA5gCWgIzGAFNETYC2xILLBQBRzgUTpIBdKU9AWJaAP4DOkgA/wCSKh4ZkGsAKmEAagAvAIoDlcyM8K+FWwa7LA/DEgKe1nUrCwQkWwGzAN5/gYB/gX+Cg4N/hIeFf4aJh4GIg4mDin+Lf4x/jYuOf49/kIORf5J/k3+Uf5WElomXg5h/AIMloQCEBDwEOQQ7BD4EPARCBD8EOgRABEIEQQQ9BD8EQgCkA4gAylIA0AINAPdbAPcBGgD3APUA9QD2APXVhSRmvwD3APUA9QD2APUdAIpbAPcAigEaAPcAigLtAPcAitWFJGa/HQD4WwEaAPcA9wD1APUA9gD1APgA9QD1APYA9dWFJGa/HQCKWwEaAPcAigD3AIoC7QD3AIrVhSRmvx0CRAE3AksBOgJMwgOfAu0Dn9WFJGa/HQCKWwEaA58AigOfAIoC7QOfAIrVhSRmvx0EMQCKBDIAigeOMm4hLQCKAT9vBCQA/gDHWwMAVVv/FDMDAIoDPtkASgMAigMAl2dBtv/TrfLzakaPh3aztmIuZQrR3ER2n5Yo+qNR2jK/aP/V04UK1njIJXLgkab9PjOxyJDVbIN3R/FZLoZVl2kYFQIZ7V6LpRqGDt9OdDohnJKp5yX/HLj0voPpLrneDaN11t5W3sSM4ALscgSw8fyWLVkKa/cNcQmjYOgTLZUgOLi2F05g4TR0RfgZ4PBdntxdV3qvdxQt8DeaMMgjJMgwUxYN3tUNpUNx21AvwADDAIa0+raTWaoBXmShAl5AThpMi282o+WzOKMlxjHj7a+DI6AM6VI9w+xyh3Eyg/1XvPmbqjeg2MGXugHt8wW03DQMRTd5iqqOhjLvyOCcKtViGwAHVLyl86KqvxVX7MxSW8HLq6KCrLpB8SspAOHO9IuOwCh9poLoMEha9CHCxlRAXJNDobducWjqhFHqCkzjTM2V9CHslwq4iU19IxqhIFZMve15lDTiMVZIPdADXGxTqzSTv0dDWyk1ht430yvaYCy9qY0MQ3cC5c1uw4mHcTGkMHTAGC99TkNXFAiLQgw9ZWhwKJjGCe+J5FIaMpYhhyUnEgfrF3zEtzn40DdgCIJUJfZ0mo3eXsDwneJ8AYCr7Vx2eHFnt2H6ZEyAHs9JoQ4Lzh5zBoGOGwAz37NOPuqSNmZf51hBEovtpm2T1wI79OBWDyvCFYkONqAKGVYgIL0F+uxTcMLSPtFbiNDbBPFgip8MGDmLLHbSyGXdCMO6f7teiW9EEmorZ+75KzanZwvUySgjoUQBTfHlOIerJs6Y9wLlgDw18AB1ne0tZRNgGjcrqHbtubSUooEpy4hWpDzTSrmvqw0H9AoXQLolMt9eOM+l9RitBB1OBnrdC1XL4yLFyXqZSgZhv7FnnDEXLUeffb4nVDqYTLY6X7gHVaK4ZZlepja2Oe6OhLDI/Ve5SQTCmJdH3HJeb14cw99XsBQAlDy5s5kil2sGezZA3tFok2IsNja7QuFgM30Hff3NGSsSVFYZLOcTBOvlPx8vLhjJrSI7xrNMA/BOzpBIJrdR1+v+zw4RZ7ry6aq4/tFfvPQxQCPDsXlcRvIZYl+E5g3kJ+zLMZon0yElBvEOQTh6SaAdIO6BwdqJqfvgU+e8Y65FQhdiHkZMVt9/39N2jGd26J6cNjq8cQIyp6RonRPgVn2fl89uRDcQ27GacaN0MPrcNyRlbUWelKfDfyrNVVGBG5sjd3jXzTx06ywyzuWn5jbvEfPPCTbpClkgEu9oPLKICxU5HuDe3jA1XnvU85IYYhaEtOU1YVWYhEFsa4/TQj3rHdsU2da2eVbF8YjSI0m619/8bLMZu3xildwqM7zf1cjn4Whx0PSYXcY5bR7wEQfGC7CTOXwZdmsdTO8q3uGm7Rh/RfCWwpzBHCAaVfjxgibL5vUeL0pH6bzDmI9yCXKC/okkmbc28OJvI87L/bjFzpq0DHepw4kT1Od+fL7cyuFaRgfaUWB2++TCFvz11J0leEtrGkpccfX9z2LY39sph4PBHCjNOOkd0ybUm+ZzS8GkFbqMpq8uiX2yHpa0jllTLfGTDBMYR6FT5FWLLDPMkYxt1Q0eyMvxJWztDjy0m6VvZPvamrFXjHmPpU6WxrZqH6WW//I37RwvqPQhPz8I3RPuXAk1C94ZprQWm9iGM/KgiGDO6SV9sjp+Jmk4TBajMNJ5zzWZ1k1jrteQQBp9C2dOvmbIeeEME8y573Q8TgGe+ZCzutM45gYLBzYm2LNvgq2kebAbMpHRDSyh6dQ27GbsAAdCqQVVXWC1C+zpwBM2Lr4eqtobmmu1vJEDlIQR1iN8CUWpztq50z7FFQBn3SKViX6wSqzVQCoYvAjByjeSa+h1PRnYWvBinTDB9cHt4eqDsPS4jcD3FwXJKT0RQsl8EvslI2SFaz2OtmYLFV8FwgvWroZ3fKmh7btewX9tfL2upXsrsqpLJzpzNGyNlnuZyetg7DIOxQTMBR7dqlrTlZ6FWi1g4j1NSjA2j1Yd7fzTH6k9LxCyUCneAKYCU581bnvKih6KJTeTeCX4Zhme/QIz7w2o+AdSgtLAkdrLS9nfweYEqrMLsrGGSWXtgWamAWp6+x6GM/Z8jNw3BqPNQ39hrzYLECn3tPvh/LqKbRSCiDGauDKBBj/kGbpnM1Bb/my8hv4NWStclkwjfl57y4oNDgw1JAG9VOti3QVVoSziMEsSdfEjaCPIDb7SgpLXykQsM+nbqbt97I0mIlzWv0uqFobLMAq8Rd9pszUBKxFhBPwOjf//gVOz2r7URJ2OnpviCXv9iz3a4X/YLBYbXoYwxBv/Kq0a5s4utQHzoTerJ7PmFW/no/ZAsid/hRIV82tD+Qabh5F1ssIM8Ri3chu0PuPD3sSJRMjDoxLAbwUbroiPAz/V52e8s3DIixxlO7OrvhMj3qfzA0kKxzwicr5wJmZwJxTXgrwYsqhRvpgC2Nfdyd+TYYxJSZgk+gk2g9KyHSlwQVAyPtWWgvVGyVBqsU2LpDlLNosSAtolC1uBKt5pQZLhAxTjeGCWIC/HVpagc5rRwkgpCHKEsjA8d+scp8aiMewwQBhp5dYTV5t/Nvl+HbDMu8F3S0psPyZb1bSnqlHPFUnMQeQqSqwDBT23fJO9gO3aVaa1icrXU0PKwlMM5K+iL3ATcVq2fFWKk0irCTF4LDVDG4gUpkyplq6efcZS+WDR1woApjD18x+2JQR9oOXzuA7uy4b+/91WsJd/tSd1QcAH8PVPXApieA37B7YXPhDPH1azP3PKR+HfHmOoDYLeuKsIi/ssSsdYs62qJo14Hw1P2N/6zpr8F3FTWmJ4ysAVcl84Iv/tl///Z8FaAWbBQbyMNDZjrZ2JwdRjtd1jOeNumSodFtr4/Zf45iRJf/8HSW+KIB/+GlKu8Rv1BPLr/4duoL+kFPRqrstEr41gfJupoJRf4hcYDWX93FOcfEBiIivxtjtV8g7mvOReiamYWKE7vfPbv3v2L9Kwq3cIDFGLyhyfOGuf/9vA5muH6Pjg7B4SUj2ydDXra9fSBI+DrsNHA6l51wfHssJb+11TfNk7B8OleUe3Y+ZmHboMFHdv7FFP2cfISFyeAQR0sk/Xv62HBTdW4HmnGSLFk/cqyWVVFJkdIIa+4hos3JRHcqLoRKM5h2Qtk1RZtzISMtlXTfTqIc77YsCCgQD0r61jtxskCctwJOtjE/pL8wC4LBD4AZFjh2wzzFCrT/PNqW0/DeBbkfMfzVm9yy06WiF+1mTdNNEAytVtohBKg3brWd2VQa+aF+cQ0mW5CvbwOlWCT07liX226PjiVLwFCRs/Ax2/u+ZNPjrNFIWIPf5GjHyUKp60OeXe9F01f7IaPf/SDTvyDAf7LSWWejtiZcsqtWZjrdn6A2MqBwnSeKhrZOlUMmgMionmiCIvXqKZfmhGZ1MwD3uMF4n9KJcfWLA3cL5pq48tm5NDYNh3SS/TKUtmFSlQR89MR4+kxcqJgpGbhm9gXneDELkyqAN5nitmIzTscKeJRXqd64RiaOALR2d295NWwbjHRNG2AU5oR9OS2oJg/5CY6BFPc1JvD2Mxdhp2/MZdI8dLePxiP4KRIp8VXmqfg+jqd/RNG7GNuq1U2SiI4735Bdc0MVFx6mH5UOWEa5HuhYykd6t4M1gYLVS8m1B+9bUqi5DziQq7qT8d94cxB6AB4WqMCOF/zPPtRSZUUaMSsvHOWxGASufywTX8ogy6HgUf9p+Z30wUEosl8qgmwm6o2AV6nO9HKQjRHpN6SUegI5pvR61RLnUJ1lqCtmfcsRQutEizVpAaPXN7xMp5UQ5OSZK6tniCK9CpyMd7LjR6+MxfoMEDPpWdf2p2m5N3KO4QMxf+V7vGdYjemQczQ+m2MGIkFNYDMf0Yop2eSx81sP36WHUczqEhKysp2iJSYAvfgJjinKwToPvRKb+HBi+7cJ96S5ngfLOXaHAFRLkulo4TnXTFO51gX0TCCo4ZUHdbpdgkMEwUZAPjh6M+hA8DzycbtxAgH3uD6i0nN1aTiIuQ4BYCE9dEHHwAmINU+4YEWx4EC3OZwFGfYZMPLScVlb+BAAJeARUh+gdWA3/gRqCrf1jecgqeFf1MdzrrP4SVlGm5mMihSP+zYYksAB7O+SBPwNQqSNMiLnkviY/klwgcRmvqtCqeWeA0gjuir4CMZqmw/ntP6M+l0pdN8/P9xI53aP7x/zavJbbKOz8VzO/nXxIr1tjparMnqd6iWdByHKw4lF4p/u57Yv07WeZPDnRl7wgmDVZZ44fQsjdYO/gmXQ+940PRGst8UMQApFC4OOV22e4N+lVOPyFLAOj4t8R3PFw/FjbSWy0ELuAFReNkee8ORcBOT2NPDcs7OfpUmzvn/F9Czk9o9naMyVYy/j8I5qVFmQDFcptBp65J/+sJA3w/j6y/eqUkKxTsf0CZjtNdRSBEmJ2tmfgmJbqpcsSagk+Ul9qdyV+NnqFBIJZFCB1XwPvWGDBOjVUmpWGHsWA5uDuMgLUNKZ4vlq5qfzY1LnRhCc/mh5/EX+hzuGdDy5aYYx4BAdwTTeZHcZpl3X0YyuxZFWNE6wFNppYs3LcFJePOyfKZ8KYb7dmRyvDOcORLPH0sytC6mH1US3JVj6paYM1GEr+CUmyHRnabHPqLlh6Kl0/BWd3ebziDfvpRQpPoR7N+LkUeYWtQ6Rn5v5+NtNeBPs2+DKDlzEVR5aYbTVPrZekJsZ9UC9qtVcP99thVIt1GREnN8zXP8mBfzS+wKYym8fcW6KqrE702Zco+hFQAEIR7qimo7dd7wO8B7R+QZPTuCWm1UAwblDTyURSbd85P4Pz+wBpQyGPeEpsEvxxIZkKsyfSOUcfE3UqzMFwZKYijb7sOkzpou+tC4bPXey5GI1GUAg9c3vLwIwAhcdPHRsYvpAfzkZHWY20vWxxJO0lvKfj6sG2g/pJ1vd/X2EBZkyEjLN4nUZOpOO7MewyHCrxQK8d5aF7rCeQlFX+XksK6l6z971BPuJqwdjj68ULOj9ZTDdOLopMdOLL0PFSS792SXE/EC9EDnIXZGYhr52aQb+9b2zEdBSnpkxAdBUkwJDqGCpZk/HkRidjdp0zKv/Cm52EenmfeKX6HkLUJgMbTTxxIZkIeL/6xuAaAAHbA7mONVduTHNX/UJj1nJEaI7f3HlUyiqKn7VfBE+bdb4HWln1HPJx001Ulq1tOxFf8WZEARvq5Da1+pE7fPVxLntGACz3nkoLsKcPdUqdCwwiyWkmXTd5+bv3j7HaReRt3ESn783Ew3SWsvkEjKtbocNksbrLmV+GVZn1+Uneo35MT1/4r8fngQX5/ptORfgmWfF6KSB/ssJmUSijXxQqUpzkANEkSkYgYj560OOjJr6uqckFuO15TRNgABEwNDjus1V3q2huLPYERMCLXUNmJJpbMrUQsSO7Qnxta55TvPWL6gWmMOvFknqETzqzFVO8SVkovEdYatypLGmDy9VWfgAc0KyIChiOhbd7UlbAeVLPZyEDp4POXKBwN/KP5pT6Cyqs6yaI00vXMn1ubk9OWT9Q/O2t/C25qlnO/zO0xcBzpMBCAB8vsdsh3U8fnPX1XlPEWfaYJxKVaTUgfCESWl4CCkIyjE6iQ5JFcwU6S4/IH0/Agacp8d5Gzq2+GzPnJ7+sqk40mfFQpKrDbAKwLlr3ONEati2k/ycLMSUu7V/7BBkDlNyXoN9tvqXCbbMc4SSQXgC/DBUY9QjtrCtQ+susEomCq8xcNJNNMWCH31GtlTw2BdCXkJBjT+/QNWlBWwQ5SWCh1LdQ99QVii/DyTxjSR6rmdap3l3L3aiplQpPYlrzNm9er88fXd2+ao+YdUNjtqmxiVxmyYPzJxl67OokDcTezEGqldkGgPbRdXA+fGcuZVkembZByo7J1dMnkGNjwwCny+FNcVcWvWYL9mg8oF7jACVWI3bA64EXpdM8bSIEVIAs5JJH+LHXgnCsgcMGPZyAAVBncvbLiexzg9YozcytjPXVlAbQAC7Tc4S0C8QN4LlAGjj4pQAVWrwkaDoUYGxxvkCWKRRHkdzJB5zpREleBDL1oDKEvAqmkDibVC4kTqF89YO6laUjgtJPebBfzr16tg4t10GmN1sJ5vezk2sUOq8blCn5mPZyT3ltaDcddKupQjqusNM9wtFVD0ABzv17fZDn7GPT1nkCtdcgYejcK1qOcTGtPxnCX1rErEjVWCnEJv5HaOAUjgpiKQjUKkQi64D5g2COgwas8FcgIl0Pw95H9dWxE3QG0VbMNffh6BPlAojLDf4es2/5Xfq7hw5NGcON2g8Qsy2UQm94KddKyy3kdJxWgpNaEc15xcylbLC3vnT26u8qS90qc2MU8LdOJc5VPF5KnSpXIhnj1eJJ/jszjZ01oR6JDFJRoeTPO/wh4IPFbdG9KljuSzeuI92p8JF/bpgDE8wG86/W2EBKgPrmzdLijxssQn8mM44ky/KLGOJcrSwXIpZa/Z3v7W6HCRk7ewds99LTsUW1LbeJytw8Q/BFZVZyfO9BUHOCe2suuEkO8DU4fLX0IQSQ2TdOkKXDtPf3sNV9tYhYFueuPRhfQlEEy+aYM/MCz7diDNmFSswYYlZZPmKr2Q5AxLsSVEqqBtn6hVl1BCFOFExnqnIsmyY/NA8jXnDaNzr7Zv3hu+I1Mf/PJjk0gALN2G8ABzdf9FNvWHvZHhv6xIoDCXf964MxG92vGZtx/LYU5PeZqgly8tT5tGeQGeJzMMsJc5p+a5Rn2PtEhiRzo/5Owjy1n0Lzx3ev8GHQmeWb8vagG6O5Qk5nrZuQTiKODI4UqL0LLAusS2Ve7j1Ivdxquu1BR9Rc4QkOiUPwQXJv6du2E8i5pDhVoQpUhyMWGUT2O2YODIhjAfI71gxep5r5zAY7GBUZpy51hAw0pcCCrhOmU8Wp6ujQTdZQsCjtq6SHX8QAMNiPCIIkoxhHEZPgsBcOlP4aErJZPhF7qvx6gHrn8hEwPwYbx8YmT/n7lbcmTip1v8kgsrIjFTAlvLY4Nuil0KDmgz3svYs0ZJ3O3Is/vSx4xpxF1e2VAtZE8dJxGYEIhCSuPvCjP54l/NSNDnwlKvAW8mG+AQkgp7a87Igh26uKMFGD0PoPHTSvoWxiHuk+su8XkQiHIjeYKl/RdcOHpxhQH3zHCNE3aARm83Bl6zGxU/vMltlVPQhubcqhW4RYkl6uXk5JdP/QpzaKFpw2M8zvysv2qj7xaQECuu2akM0Cssj/uB9+wDR7uA6XOnLNaoczalHoMj33eiiu+DRaFsUmlmUZuh9bjDY4INMNSSAivSh03uJvny4Gj+D+neudoa7iJi7c4VFlZ/J5gUR82308zSNAt/ZroBXDWw0fV3eVPAn3aX0mtJabF6RsUZmL+Ehn+wn51/4QipMjD+6y64t7bjL6bjENan2prQ4h7++hBJ9NXvX8CUocJqMC937IasLzm5K0qwXeFMAimMHkEIQIQI2LrQ9sLBfXuyp66zWvlsh74GPv7Xpabj993pRNNDuFud5oIcn/92isbADXdpRPbjmbCNOrwRbxGZx2XmYNGMiV5kjF4IKyxCBvKier9U4uVoheCdmk83rp5G0PihAm2fAtczI4b9BWqX+nrZTrJX5kSwQddi93NQrXG+Cl3eBGNkM77VBsMpEolhXex1MVvMkZN9fG59GGbciH11FEXaY1MxrArovaSjE/lUUqBg2cZBNmiWbvzCHCPJ4RVGFK2dTbObM1m+gJyEX53fa7u3+TZpm74mNEzWbkVL4vjNwfL9uzRCu1cgbrNx5Yv5dDruNrIOgwIk+UZWwJfdbu/WHul6PMmRflVCIzd7B37Pgm/Up/NuCiQW7RXyafevN3AL6ycciCc4ZPlTRzEu+aURGlUBOJbUEsheX7PPyrrhdUt5JAG12EEEZpY/N3Vhbl5uLAfT0CbC2XmpnryFkxZmBTs5prvEeuf0bn73i3O82WTiQtJWEPLsBXnQmdnKhB06NbbhLtlTZYJMxDMJpFeajSNRDB2v61BMUHqXggUwRJ19m6p5zl51v11q34T74lTXdJURuV6+bg2D6qpfGnLy7KGLuLZngobM4pIouz4+n0/UzFKxDgLM4h+fUwKZozQ9UGrHjcif51Ruonz7oIVZ56xWtZS8z7u5zay6J2LD4gCYh2RXoBRLDKsUlZ80R8kmoxlJiL8aZCy2wCAonnucFxCLT1HKoMhbPKt34D97EXPPh0joO93iJVF1Uruew61Qoy3ZUVNX9uIJDt9AQWKLLo+mSzmTibyLHq0D6hhzpvgUgI6ekyVEL3FD+Fi5R3A8MRHPXspN1VyKkfRlC+OGiNgPC4NREZpFETgVmdXrQ2TxChuS3aY+Ndc7CiYv5+CmzfiqeZrWIQJW/C4RvjbGUoJFf1K6ZdR2xL/bG4kVq1+I4jQWX+26YUijpp+lpN7o5c6ZodXJCF56UkFGsqz44sIg8jrdWvbjRCxi2Bk0iyM3a7ecAV93zB6h1Ei38c0s6+8nrbkopArccGP8vntQe1bFeEh2nJIFOHX/k3/UHb5PtKGpnzbkmnRETMX+9X/QduLZWw/feklW/kH/JnzToJe9Kgu9Hct1UGbH5BPCLo4OOtQnZonW0xnyCcdtKyPQ/sbLiSTYJdSx4sJqWLMnfn6fIqPB3WAgk00J+fCOkomPHqtS67pf0mFmKoItYZUlJu6BihSZ8qve8+/X+LX1MhQXF95AshfUleCtmdn6l6QFXzLg2sgLn1oyVFuZecv7fzsIHzoRlAGp0gwYDOn1S4qabWvB5xUaE+Svw4KmjWtxdnuQbI32dw87D4N95u8qQRJTSQg0wLxOLkxSrPMLEn1UIhNKjAa9VLs3WLaXGrtCIt8bKY2AQP/ZdyRU6zT/E8qP2ltyBE2CCZPgWgEYDoJJO4n92y61ylNaSFXKohJhLjkfvYWm592539sIpmBNLlDo1bExFBfmHJJ0lFEiC/fj8v42OoMC9Mo3whIoWvyHfq6Uacqq55mzFf/EGC+NP/gHjhd6urc6R0hES27VXux7UY8CGKPohplWIZtTrFSaPWslCWy78E22Pw8fvReSUZx/txqLtHrFqg1DY/Eus6Iq1heZdrdcqE0/c971Bz1HW/XNXHsXpUIbI4kHdOfCc6T5zHZzvzQJB0ggMFL6IGPAilU9bj/ASdPk6fNvNtZqPuwEDhMBtBnhCexo6D6VAGIOPvJPPV523Y8R8a9vCqZbswSZKzOT1291BsUbmUWehtbb1fdRX9hiJKXvwr1QX6GjnZMgyMvnwOo2Dr24amr7FqEAbVeJAjRNOceM2EQ1Mna9fInqPJ5mh5X8CzT1aDOv08An0blz0fF5Gq4mS2cwq5glwIOlY5nznE8X4j/UdZ3FJsVIXte1JH0A7iibuPfazStM5O/Vo3KXIpXBeGORV0M9XDXFvsYZUHGvFCUubWzTw248EHE0cpQM2zNg6rjavreq3NHCAWsoZ7wvVy7l5gvtKRmIj1MnvfWEm0yFnGcuOq192350a5WefpfKCcX3Sn+AgHU+qnpstNtddbdVebagJU390lq9ko4aI9rqdaWXYG8tv5O/ZQHSqDRYHC6zfH10l5z++opso7aOSaIczlQ13iAzXvLdEu0V7kwNUZ1c8Y8aq7SeIEe5p902FlNkW8DnwHyueHchbK8vVFJfmr9mz7P8nUSccl1ULaoWMRSI1ls32kvlK0h46h3J25Yd9AzfcJbp9qYF/SEt3H5j69mMdcsNxZcAzT/A89ov3tglTX54y/EwjMfuoDoxPwLJDm5I7q6F9Kp469yNy1zSxz0N4HbRRBj9xFFuogvBspv7DXUNIsGxTINEQfmctb42XImWAODgARNo7dfcTqFKq6aTfivmvunLmzP9f8yLsJvXD3JbcPcDGNriMAcjzeDTNr65t8YB5tsnFDFLa0Uwmd2OvUdkLMX9TsAUYUfooSv47sw5J88j7CpahRjjO3/UhOXjTS39W5YZAel2KTbQd1h7INOw9P23GW7GDAe4agIUFHP48MZr7ubq0efFmmtwYMyk7D0r1oeG/CGOODgb9Ur+JMHxkwzPbtCX2ZnENQuI0RN5SyTIZuoY4XS9Rd/tPe3vNAZGSHM/YYwqs9xkkENx0O+eC2YVW1cwOJ3ckE890nbQeHLKlW15L0P0W2VliyYrfNr0nrIYddoRyGaCtj4OYd2MT7ebApqZOAQIaSHJM4mphhfjNjtnjg6YRyx9qM2FT3xOiYIMqXPFWdzhSgFF8ItocqVV09CmIoO8k6U/oJB7++wSX/YksxfPXHyjSgAGZOj1aKEq9fSvXBqtp2wu8/FxEf5AxapAD06pPGuLVUYLdgEzHR8wqRGYEwiUO9MyYbgswstuLYhwYFpSVKOdzAihZ9LuHtD598EGhINU9xc9xhL+QgTLAstmPIvvm2xyRw/WTUPXkP3ZHu6GyPmj5xFH9/QGpkglKXRVUBgVmLOJx8uZO2AstxQYocZH2JhORlxawj66BAXUEs7K/gPxINIRAFyK3WLuyq9oBTF9wEbnmCot82WjIg7CPNwYK3KrZMrKAz5yFszg4wCVLJVnIL8+OYA0xRDH8cHQjQUiQ2i1mr/be32k/3Xej9sdf3iuGvZHyLFSJvPSqz/wltnxumTJYKZsrWXtx/Rmu39jjV9lFaJttfFn57/No2h/unsJmMHbrnZ8csxkp5HQ4xR1s0HH+t3Iz82a3iQWTUDGq/+l2W3TUYLE8zNdL8Y+5oXaIH/Y2UUcX67cXeN4WvENZjz4+8q7vjhowOI3rSjFhGZ6KzwmU7+5nFV+kGWAZ5z2UWvzq0TK0pk1hPwAN4jbw//1CApRvIaIjhSGhioY6TUmsToek9cF9XjJdHvLPcyyCV3lbR5Jiz/ts46ay2F820VjTXvllElwrGzKcNSyvQlWDXdwrUINXmHorAM3fE19ngLZmgeUaCJLsSITf2VcfAOuWwX7mTPdP8Zb/04KqRniufCpwnDUk7sP0RX6cud/sanFMagnzKInSRVey0YzlVSOtA/AjrofmSH6RYbJQ8b4NDeTkIGc6247+Mnbez/qhJ9GAv9fGNFercPnnrf285Qgs+UqThLRgflcAKFuqWhLzZaR4QqvSwa3xe0LPkqj9xJWub195r7NrrR0e78FR+0mRBNMPsraqZctAUVAJfYKehTDV1MGGQSeDsOK9J3sbUuKRIS/WilX/64CBms9jCZocBlsBSZaIAjWm/SUZ8daWL2a/cJFyUOFqE3Epc2RWbtjNyPwOGpWtzu32kUooUqsJud7IV4E8rstUBXM7tGEtBx99x60g1duhyvxeKJSl8s5E34HTMmADT0836aEdg5Dv9rVyCz8i2REOmiz6wtIVFN0HsjAoN37SrY0bV1Ms8CRUILhvZvvRaDzoVCaSI0u8EPuTe4b7OPowgRGODl22UBBmHSTUY8e4DyL+Bc7bngo+2T8HtNvzyATSL5iJZgFPKpmUyZv54vVL90+/RQGATUmNKnrIvcJMYON9fl83naW5sf6hRkbbTC9RUEE6XADwjgA46wWfUQ+QWZl0J4PVTWAln/YfAz/SV3q3J9+yCYDleruoN5uoc/wT2f4YONGTb6zTGq3V+3JqzmCOjwebKln+fExVLN7sqtqfMnsKVXWbb2Ai5m3D/fCTgX7oKYzTZvj+m28XnDqPbXuP4MyWdmPezcesdrh7rCzA7BWdObiuyDEKjjzBbQ0qnuwjliz+b+j7aPMKlkXyIznV3tGzAfYwIbzGGt098oh4eq3ruDjdgHtjxfFCjHrjjRbHajoz/YOY4raojPFQ910GIlBV7hq47UDgpyajBxQUmD8NctiLV1rTSLAEsQDLTeRKcmPBMVMFF0SPBBhZ5oXoxtD3lMhuAQXmA+57OcciczVW9e9zwSIAHS+FJmvfXMJGF1dMBsIUMaPjvgaVqUc3p32qVCMQYFEiRLzlVSOGMCmv/HJIxAHe3mL/XnoZ1IkWLeRZfgyByjnDbbeRK5KL7bYHSVJZ9UFq+yCiNKeRUaYjgbC3hVUvfJAhy/QNl/JqLKVvGMk9ZcfyGidNeo/VTxK9vUpodzfQI9Z2eAre4nmrkzgxKSnT5IJ1D69oHuUS5hp7pK9IAWuNrAOtOH0mAuwCrY8mXAtVXUeaNK3OXr6PRvmWg4VQqFSy+a1GZfFYgdsJELG8N0kvqmzvwZ02Plf5fH9QTy6br0oY/IDsEA+GBf9pEVWCIuBCjsup3LDSDqI+5+0IKSUFr7A96A2f0FbcU9fqljdqvsd8sG55KcKloHIFZem2Wb6pCLXybnVSB0sjCXzdS8IKvE");const FENCED=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),NSM_MAX=4;function hex_cp(c){return c.toString(16).toUpperCase().padStart(2,"0")}function quote_cp(c){return`{${hex_cp(c)}}`}function explode_cp(c){let a=[];for(let d=0,et=c.length;d>24&255}function unpack_cp(c){return c&16777215}const SHIFTED_RANK=new Map(read_sorted_arrays(r).flatMap((c,a)=>c.map(d=>[d,a+1<<24]))),EXCLUSIONS=new Set(read_sorted(r)),DECOMP=new Map,RECOMP=new Map;for(let[c,a]of read_mapped(r)){if(!EXCLUSIONS.has(c)&&a.length==2){let[d,et]=a,nt=RECOMP.get(d);nt||(nt=new Map,RECOMP.set(d,nt)),nt.set(et,c)}DECOMP.set(c,a.reverse())}const S0=44032,L0=4352,V0=4449,T0=4519,L_COUNT=19,V_COUNT=21,T_COUNT=28,N_COUNT=V_COUNT*T_COUNT,S_COUNT=L_COUNT*N_COUNT,S1=S0+S_COUNT,L1=L0+L_COUNT,V1=V0+V_COUNT,T1=T0+T_COUNT;function is_hangul(c){return c>=S0&&c=L0&&c=V0&&aT0&&a0&&nt(T0+St)}else{let bt=DECOMP.get(tt);bt?d.push(...bt):nt(tt)}if(!d.length)break;tt=d.pop()}if(et&&a.length>1){let tt=unpack_cc(a[0]);for(let bt=1;bt0&&nt>=bt)bt==0?(a.push(et,...d),d.length=0,et=gt):d.push(gt),nt=bt;else{let wt=compose_pair(et,gt);wt>=0?et=wt:nt==0&&bt==0?(a.push(et),et=gt):(d.push(gt),nt=bt)}}return et>=0&&a.push(et,...d),a}function nfd(c){return decomposed(c).map(unpack_cp)}function nfc(c){return composed_from_decomposed(decomposed(c))}const FE0F=65039,STOP_CH=".",UNIQUE_PH=1,HYPHEN=45;function read_set(){return new Set(read_sorted(r$1))}const MAPPED=new Map(read_mapped(r$1)),IGNORED=read_set(),CM=read_set(),NSM=new Set(read_sorted(r$1).map(function(c){return this[c]},[...CM])),ESCAPE=read_set();read_set();const CHUNKS=read_sorted_arrays(r$1);function read_chunked(){return new Set([read_sorted(r$1).map(c=>CHUNKS[c]),read_sorted(r$1)].flat(2))}const UNRESTRICTED=r$1(),GROUPS=read_array_while(c=>{let a=read_array_while(r$1).map(d=>d+96);if(a.length){let d=c>=UNRESTRICTED;a[0]-=32,a=str_from_cps(a),d&&(a=`Restricted[${a}]`);let et=read_chunked(),nt=read_chunked(),tt=[...et,...nt].sort((gt,wt)=>gt-wt),bt=!r$1();return{N:a,P:et,M:bt,R:d,V:new Set(tt)}}}),WHOLE_VALID=read_set(),WHOLE_MAP=new Map;[...WHOLE_VALID,...read_set()].sort((c,a)=>c-a).map((c,a,d)=>{let et=r$1(),nt=d[a]=et?d[a-et]:{V:[],M:new Map};nt.V.push(c),WHOLE_VALID.has(c)||WHOLE_MAP.set(c,nt)});for(let{V:c,M:a}of new Set(WHOLE_MAP.values())){let d=[];for(let nt of c){let tt=GROUPS.filter(gt=>gt.V.has(nt)),bt=d.find(({G:gt})=>tt.some(wt=>gt.has(wt)));bt||(bt={G:new Set,V:[]},d.push(bt)),bt.V.push(nt),tt.forEach(gt=>bt.G.add(gt))}let et=d.flatMap(({G:nt})=>[...nt]);for(let{G:nt,V:tt}of d){let bt=new Set(et.filter(gt=>!nt.has(gt)));for(let gt of tt)a.set(gt,bt)}}let union=new Set,multi=new Set;for(let c of GROUPS)for(let a of c.V)(union.has(a)?multi:union).add(a);for(let c of union)!WHOLE_MAP.has(c)&&!multi.has(c)&&WHOLE_MAP.set(c,UNIQUE_PH);const VALID=new Set([...union,...nfd(union)]),EMOJI_SORTED=read_sorted(r$1),EMOJI_ROOT=read_emoji_trie([]);function read_emoji_trie(c){let a=read_array_while(()=>{let gt=read_sorted(r$1).map(wt=>EMOJI_SORTED[wt]);if(gt.length)return read_emoji_trie(gt)}).sort((gt,wt)=>wt.Q.size-gt.Q.size),d=r$1(),et=d%3;d=d/3|0;let nt=d&1;d>>=1;let tt=d&1,bt=d&2;return{B:a,V:et,F:nt,S:tt,C:bt,Q:new Set(c)}}class Emoji extends Array{get is_emoji(){return!0}}function safe_str_from_cps(c,a=quote_cp){let d=[];is_combining_mark(c[0])&&d.push("◌");let et=0,nt=c.length;for(let tt=0;tt=4&&c[2]==HYPHEN&&c[3]==HYPHEN)throw new Error("invalid label extension")}function check_leading_underscore(c){for(let d=c.lastIndexOf(95);d>0;)if(c[--d]!==95)throw new Error("underscore allowed only at start")}function check_fenced(c){let a=c[0],d=FENCED.get(a);if(d)throw error_placement(`leading ${d}`);let et=c.length,nt=-1;for(let tt=1;tt{let nt=explode_cp(et),tt={input:nt,offset:d};d+=nt.length+1;let bt;try{let gt=tt.tokens=process(nt,nfc),wt=gt.length,St;if(wt){let Mt=gt[0],_t=wt>1||Mt.is_emoji;if(!_t&&Mt.every(Tt=>Tt<128))bt=Mt,check_leading_underscore(bt),check_label_extension(bt),St="ASCII";else if(_t&&(tt.emoji=!0,Mt=gt.flatMap(Tt=>Tt.is_emoji?[]:Tt)),bt=gt.flatMap(Tt=>!a&&Tt.is_emoji?filter_fe0f(Tt):Tt),check_leading_underscore(bt),!Mt.length)St="Emoji";else{if(CM.has(bt[0]))throw error_placement("leading combining mark");for(let kt=1;ktbt.has(gt)):[...bt],!d.length)return}else et.push(nt)}if(d){for(let nt of d)if(et.every(tt=>nt.V.has(tt)))throw new Error(`whole-script confusable: ${c.N}/${nt.N}`)}}function determine_group(c){let a=GROUPS;for(let d of c){let et=a.filter(nt=>nt.V.has(d));if(!et.length)throw a===GROUPS?error_disallowed(d):error_group_member(a[0],d);if(a=et,et.length==1)break}return a}function flatten(c){return c.map(({input:a,error:d,output:et})=>{if(d){let nt=d.message;throw new Error(c.length==1?nt:`Invalid label ${bidi_qq(safe_str_from_cps(a))}: ${nt}`)}return str_from_cps(et)}).join(STOP_CH)}function error_disallowed(c){return new Error(`disallowed character: ${quoted_cp(c)}`)}function error_group_member(c,a){let d=quoted_cp(a),et=GROUPS.find(nt=>nt.P.has(a));return et&&(d=`${et.N} ${d}`),new Error(`illegal mixture: ${c.N} + ${d}`)}function error_placement(c){return new Error(`illegal placement: ${c}`)}function check_group(c,a){let{V:d,M:et}=c;for(let nt of a)if(!d.has(nt))throw error_group_member(c,nt);if(et){let nt=nfd(a);for(let tt=1,bt=nt.length;ttNSM_MAX)throw new Error(`non-spacing marks: too many ${bidi_qq(safe_str_from_cps(nt.slice(tt-1,gt)))} (${gt-tt}/${NSM_MAX})`);tt=gt}}}function process(c,a){let d=[],et=[];for(c=c.slice().reverse();c.length;){let nt=consume_emoji_reversed(c);if(nt)et.length&&(d.push(a(et)),et=[]),d.push(nt);else{let tt=c.pop();if(VALID.has(tt))et.push(tt);else{let bt=MAPPED.get(tt);if(bt)et.push(...bt);else if(!IGNORED.has(tt))throw error_disallowed(tt)}}}return et.length&&d.push(a(et)),d}function filter_fe0f(c){return c.filter(a=>a!=FE0F)}function consume_emoji_reversed(c,a){let d=EMOJI_ROOT,et,nt,tt=[],bt=c.length;for(a&&(a.length=0);bt;){let gt=c[--bt];if(d=d.B.find(wt=>wt.Q.has(gt)),!d)break;if(d.S)nt=gt;else if(d.C&>===nt)break;tt.push(gt),d.F&&(tt.push(FE0F),bt>0&&c[bt-1]==FE0F&&bt--),d.V&&(et=conform_emoji_copy(tt,d),a&&a.push(...c.slice(bt).reverse()),c.length=bt)}return et}function conform_emoji_copy(c,a){let d=Emoji.from(c);return a.V==2&&d.splice(1,1),d}const Zeros=new Uint8Array(32);Zeros.fill(0);function checkComponent(c){return assertArgument(c.length!==0,"invalid ENS name; empty component","comp",c),c}function ensNameSplit(c){const a=toUtf8Bytes(ensNormalize(c)),d=[];if(c.length===0)return d;let et=0;for(let nt=0;nt{if(a.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const d=new Uint8Array(a.length+1);return d.set(a,1),d[0]=d.length-1,d})))+"00"}function accessSetify(c,a){return{address:getAddress$1(c),storageKeys:a.map((d,et)=>(assertArgument(isHexString(d,32),"invalid slot",`storageKeys[${et}]`,d),d.toLowerCase()))}}function accessListify(c){if(Array.isArray(c))return c.map((d,et)=>Array.isArray(d)?(assertArgument(d.length===2,"invalid slot set",`value[${et}]`,d),accessSetify(d[0],d[1])):(assertArgument(d!=null&&typeof d=="object","invalid address-slot set","value",c),accessSetify(d.address,d.storageKeys)));assertArgument(c!=null&&typeof c=="object","invalid access list","value",c);const a=Object.keys(c).map(d=>{const et=c[d].reduce((nt,tt)=>(nt[tt]=!0,nt),{});return accessSetify(d,Object.keys(et).sort())});return a.sort((d,et)=>d.address.localeCompare(et.address)),a}function computeAddress(c){let a;return typeof c=="string"?a=SigningKey.computePublicKey(c,!1):a=c.publicKey,getAddress$1(keccak256$2("0x"+a.substring(4)).substring(26))}function recoverAddress(c,a){return computeAddress(SigningKey.recoverPublicKey(c,a))}const BN_0$4=BigInt(0),BN_2$1=BigInt(2),BN_27=BigInt(27),BN_28=BigInt(28),BN_35=BigInt(35),BN_MAX_UINT=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function handleAddress(c){return c==="0x"?null:getAddress$1(c)}function handleAccessList(c,a){try{return accessListify(c)}catch(d){assertArgument(!1,d.message,a,c)}}function handleNumber(c,a){return c==="0x"?0:getNumber(c,a)}function handleUint(c,a){if(c==="0x")return BN_0$4;const d=getBigInt(c,a);return assertArgument(d<=BN_MAX_UINT,"value exceeds uint size",a,d),d}function formatNumber(c,a){const d=getBigInt(c,"value"),et=toBeArray(d);return assertArgument(et.length<=32,"value too large",`tx.${a}`,d),et}function formatAccessList(c){return accessListify(c).map(a=>[a.address,a.storageKeys])}function _parseLegacy(c){const a=decodeRlp(c);assertArgument(Array.isArray(a)&&(a.length===9||a.length===6),"invalid field count for legacy transaction","data",c);const d={type:0,nonce:handleNumber(a[0],"nonce"),gasPrice:handleUint(a[1],"gasPrice"),gasLimit:handleUint(a[2],"gasLimit"),to:handleAddress(a[3]),value:handleUint(a[4],"value"),data:hexlify(a[5]),chainId:BN_0$4};if(a.length===6)return d;const et=handleUint(a[6],"v"),nt=handleUint(a[7],"r"),tt=handleUint(a[8],"s");if(nt===BN_0$4&&tt===BN_0$4)d.chainId=et;else{let bt=(et-BN_35)/BN_2$1;bt=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),assert$s(!d||this.type!==0&&this.type!==1,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),assert$s(this.type!==0||!et,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const nt=[];return this.type!=null?nt.push(this.type):d?nt.push(2):a?(nt.push(1),et||nt.push(0)):et?(nt.push(1),nt.push(2)):(nt.push(0),nt.push(1),nt.push(2)),nt.sort(),nt}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}clone(){return _n.from(this)}toJSON(){const a=d=>d==null?null:d.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:a(this.gasLimit),gasPrice:a(this.gasPrice),maxPriorityFeePerGas:a(this.maxPriorityFeePerGas),maxFeePerGas:a(this.maxFeePerGas),value:a(this.value),chainId:a(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(a){if(a==null)return new _n;if(typeof a=="string"){const et=getBytes(a);if(et[0]>=127)return _n.from(_parseLegacy(et));switch(et[0]){case 1:return _n.from(_parseEip2930(et));case 2:return _n.from(_parseEip1559(et))}assert$s(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const d=new _n;return a.type!=null&&(d.type=a.type),a.to!=null&&(d.to=a.to),a.nonce!=null&&(d.nonce=a.nonce),a.gasLimit!=null&&(d.gasLimit=a.gasLimit),a.gasPrice!=null&&(d.gasPrice=a.gasPrice),a.maxPriorityFeePerGas!=null&&(d.maxPriorityFeePerGas=a.maxPriorityFeePerGas),a.maxFeePerGas!=null&&(d.maxFeePerGas=a.maxFeePerGas),a.data!=null&&(d.data=a.data),a.value!=null&&(d.value=a.value),a.chainId!=null&&(d.chainId=a.chainId),a.signature!=null&&(d.signature=Signature.from(a.signature)),a.accessList!=null&&(d.accessList=a.accessList),a.hash!=null&&(assertArgument(d.isSigned(),"unsigned transaction cannot define hash","tx",a),assertArgument(d.hash===a.hash,"hash mismatch","tx",a)),a.from!=null&&(assertArgument(d.isSigned(),"unsigned transaction cannot define from","tx",a),assertArgument(d.from.toLowerCase()===(a.from||"").toLowerCase(),"from mismatch","tx",a)),d}};yn=new WeakMap,gs=new WeakMap,ys=new WeakMap,vs=new WeakMap,ws=new WeakMap,xs=new WeakMap,Es=new WeakMap,$s=new WeakMap,Ss=new WeakMap,Ms=new WeakMap,As=new WeakMap,_s=new WeakMap;let Transaction=_n;const padding=new Uint8Array(32);padding.fill(0);const BN__1=BigInt(-1),BN_0$3=BigInt(0),BN_1=BigInt(1),BN_MAX_UINT256=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function hexPadRight(c){const a=getBytes(c),d=a.length%32;return d?concat$2([a,padding.slice(d)]):hexlify(a)}const hexTrue=toBeHex(BN_1,32),hexFalse=toBeHex(BN_0$3,32),domainFieldTypes={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},domainFieldNames=["name","version","chainId","verifyingContract","salt"];function checkString(c){return function(a){return assertArgument(typeof a=="string",`invalid domain value for ${JSON.stringify(c)}`,`domain.${c}`,a),a}}const domainChecks={name:checkString("name"),version:checkString("version"),chainId:function(c){const a=getBigInt(c,"domain.chainId");return assertArgument(a>=0,"invalid chain ID","domain.chainId",c),Number.isSafeInteger(a)?Number(a):toQuantity(a)},verifyingContract:function(c){try{return getAddress$1(c).toLowerCase()}catch{}assertArgument(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",c)},salt:function(c){const a=getBytes(c,"domain.salt");return assertArgument(a.length===32,'invalid domain value "salt"',"domain.salt",c),hexlify(a)}};function getBaseEncoder(c){{const a=c.match(/^(u?)int(\d*)$/);if(a){const d=a[1]==="",et=parseInt(a[2]||"256");assertArgument(et%8===0&&et!==0&&et<=256&&(a[2]==null||a[2]===String(et)),"invalid numeric width","type",c);const nt=mask(BN_MAX_UINT256,d?et-1:et),tt=d?(nt+BN_1)*BN__1:BN_0$3;return function(bt){const gt=getBigInt(bt,"value");return assertArgument(gt>=tt&><=nt,`value out-of-bounds for ${c}`,"value",gt),toBeHex(d?toTwos(gt,256):gt,32)}}}{const a=c.match(/^bytes(\d+)$/);if(a){const d=parseInt(a[1]);return assertArgument(d!==0&&d<=32&&a[1]===String(d),"invalid bytes width","type",c),function(et){const nt=getBytes(et);return assertArgument(nt.length===d,`invalid length for ${c}`,"value",et),hexPadRight(et)}}}switch(c){case"address":return function(a){return zeroPadValue(getAddress$1(a),32)};case"bool":return function(a){return a?hexTrue:hexFalse};case"bytes":return function(a){return keccak256$2(a)};case"string":return function(a){return id$1(a)}}return null}function encodeType$2(c,a){return`${c}(${a.map(({name:d,type:et})=>et+" "+d).join(",")})`}var so,vn,Ps,To,r1;const j0=class j0{constructor(a){Vr(this,To);Gr(this,"primaryType");Vr(this,so,void 0);Vr(this,vn,void 0);Vr(this,Ps,void 0);yr(this,so,JSON.stringify(a)),yr(this,vn,new Map),yr(this,Ps,new Map);const d=new Map,et=new Map,nt=new Map;Object.keys(a).forEach(gt=>{d.set(gt,new Set),et.set(gt,[]),nt.set(gt,new Set)});for(const gt in a){const wt=new Set;for(const St of a[gt]){assertArgument(!wt.has(St.name),`duplicate variable name ${JSON.stringify(St.name)} in ${JSON.stringify(gt)}`,"types",a),wt.add(St.name);const Mt=St.type.match(/^([^\x5b]*)(\x5b|$)/)[1]||null;assertArgument(Mt!==gt,`circular type reference to ${JSON.stringify(Mt)}`,"types",a),!getBaseEncoder(Mt)&&(assertArgument(et.has(Mt),`unknown type ${JSON.stringify(Mt)}`,"types",a),et.get(Mt).push(gt),d.get(gt).add(Mt))}}const tt=Array.from(et.keys()).filter(gt=>et.get(gt).length===0);assertArgument(tt.length!==0,"missing primary type","types",a),assertArgument(tt.length===1,`ambiguous primary types or unused types: ${tt.map(gt=>JSON.stringify(gt)).join(", ")}`,"types",a),defineProperties(this,{primaryType:tt[0]});function bt(gt,wt){assertArgument(!wt.has(gt),`circular type reference to ${JSON.stringify(gt)}`,"types",a),wt.add(gt);for(const St of d.get(gt))if(et.has(St)){bt(St,wt);for(const Mt of wt)nt.get(Mt).add(St)}wt.delete(gt)}bt(this.primaryType,new Set);for(const[gt,wt]of nt){const St=Array.from(wt);St.sort(),or(this,vn).set(gt,encodeType$2(gt,a[gt])+St.map(Mt=>encodeType$2(Mt,a[Mt])).join(""))}}get types(){return JSON.parse(or(this,so))}getEncoder(a){let d=or(this,Ps).get(a);return d||(d=Wr(this,To,r1).call(this,a),or(this,Ps).set(a,d)),d}encodeType(a){const d=or(this,vn).get(a);return assertArgument(d,`unknown type: ${JSON.stringify(a)}`,"name",a),d}encodeData(a,d){return this.getEncoder(a)(d)}hashStruct(a,d){return keccak256$2(this.encodeData(a,d))}encode(a){return this.encodeData(this.primaryType,a)}hash(a){return this.hashStruct(this.primaryType,a)}_visit(a,d,et){if(getBaseEncoder(a))return et(a,d);const nt=a.match(/^(.*)(\x5b(\d*)\x5d)$/);if(nt)return assertArgument(!nt[3]||parseInt(nt[3])===d.length,`array length mismatch; expected length ${parseInt(nt[3])}`,"value",d),d.map(bt=>this._visit(nt[1],bt,et));const tt=this.types[a];if(tt)return tt.reduce((bt,{name:gt,type:wt})=>(bt[gt]=this._visit(wt,d[gt],et),bt),{});assertArgument(!1,`unknown type: ${a}`,"type",a)}visit(a,d){return this._visit(this.primaryType,a,d)}static from(a){return new j0(a)}static getPrimaryType(a){return j0.from(a).primaryType}static hashStruct(a,d,et){return j0.from(d).hashStruct(a,et)}static hashDomain(a){const d=[];for(const et in a){if(a[et]==null)continue;const nt=domainFieldTypes[et];assertArgument(nt,`invalid typed-data domain key: ${JSON.stringify(et)}`,"domain",a),d.push({name:et,type:nt})}return d.sort((et,nt)=>domainFieldNames.indexOf(et.name)-domainFieldNames.indexOf(nt.name)),j0.hashStruct("EIP712Domain",{EIP712Domain:d},a)}static encode(a,d,et){return concat$2(["0x1901",j0.hashDomain(a),j0.from(d).hash(et)])}static hash(a,d,et){return keccak256$2(j0.encode(a,d,et))}static async resolveNames(a,d,et,nt){a=Object.assign({},a);for(const gt in a)a[gt]==null&&delete a[gt];const tt={};a.verifyingContract&&!isHexString(a.verifyingContract,20)&&(tt[a.verifyingContract]="0x");const bt=j0.from(d);bt.visit(et,(gt,wt)=>(gt==="address"&&!isHexString(wt,20)&&(tt[wt]="0x"),wt));for(const gt in tt)tt[gt]=await nt(gt);return a.verifyingContract&&tt[a.verifyingContract]&&(a.verifyingContract=tt[a.verifyingContract]),et=bt.visit(et,(gt,wt)=>gt==="address"&&tt[wt]?tt[wt]:wt),{domain:a,value:et}}static getPayload(a,d,et){j0.hashDomain(a);const nt={},tt=[];domainFieldNames.forEach(wt=>{const St=a[wt];St!=null&&(nt[wt]=domainChecks[wt](St),tt.push({name:wt,type:domainFieldTypes[wt]}))});const bt=j0.from(d),gt=Object.assign({},d);return assertArgument(gt.EIP712Domain==null,"types must not contain EIP712Domain type","types.EIP712Domain",d),gt.EIP712Domain=tt,bt.encode(et),{types:gt,domain:nt,primaryType:bt.primaryType,message:bt.visit(et,(wt,St)=>{if(wt.match(/^bytes(\d*)/))return hexlify(getBytes(St));if(wt.match(/^u?int/))return getBigInt(St).toString();switch(wt){case"address":return St.toLowerCase();case"bool":return!!St;case"string":return assertArgument(typeof St=="string","invalid string","value",St),St}assertArgument(!1,"unsupported type","type",wt)})}}};so=new WeakMap,vn=new WeakMap,Ps=new WeakMap,To=new WeakSet,r1=function(a){{const nt=getBaseEncoder(a);if(nt)return nt}const d=a.match(/^(.*)(\x5b(\d*)\x5d)$/);if(d){const nt=d[1],tt=this.getEncoder(nt);return bt=>{assertArgument(!d[3]||parseInt(d[3])===bt.length,`array length mismatch; expected length ${parseInt(d[3])}`,"value",bt);let gt=bt.map(tt);return or(this,vn).has(nt)&&(gt=gt.map(keccak256$2)),keccak256$2(concat$2(gt))}}const et=this.types[a];if(et){const nt=id$1(or(this,vn).get(a));return tt=>{const bt=et.map(({name:gt,type:wt})=>{const St=this.getEncoder(wt)(tt[gt]);return or(this,vn).has(wt)?keccak256$2(St):St});return bt.unshift(nt),concat$2(bt)}}assertArgument(!1,`unknown type: ${a}`,"type",a)};let TypedDataEncoder=j0;function setify(c){const a=new Set;return c.forEach(d=>a.add(d)),Object.freeze(a)}const _kwVisibDeploy="external public payable",KwVisibDeploy=setify(_kwVisibDeploy.split(" ")),_kwVisib="constant external internal payable private public pure view",KwVisib=setify(_kwVisib.split(" ")),_kwTypes="constructor error event fallback function receive struct",KwTypes=setify(_kwTypes.split(" ")),_kwModifiers="calldata memory storage payable indexed",KwModifiers=setify(_kwModifiers.split(" ")),_kwOther="tuple returns",_keywords=[_kwTypes,_kwModifiers,_kwOther,_kwVisib].join(" "),Keywords=setify(_keywords.split(" ")),SimpleTokens={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},regexWhitespacePrefix=new RegExp("^(\\s*)"),regexNumberPrefix=new RegExp("^([0-9]+)"),regexIdPrefix=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),regexId=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),regexType=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");var P0,X0,oo,Ho;const Bo=class Bo{constructor(a){Vr(this,oo);Vr(this,P0,void 0);Vr(this,X0,void 0);yr(this,P0,0),yr(this,X0,a.slice())}get offset(){return or(this,P0)}get length(){return or(this,X0).length-or(this,P0)}clone(){return new Bo(or(this,X0))}reset(){yr(this,P0,0)}popKeyword(a){const d=this.peek();if(d.type!=="KEYWORD"||!a.has(d.text))throw new Error(`expected keyword ${d.text}`);return this.pop().text}popType(a){if(this.peek().type!==a)throw new Error(`expected ${a}; got ${JSON.stringify(this.peek())}`);return this.pop().text}popParen(){const a=this.peek();if(a.type!=="OPEN_PAREN")throw new Error("bad start");const d=Wr(this,oo,Ho).call(this,or(this,P0)+1,a.match+1);return yr(this,P0,a.match+1),d}popParams(){const a=this.peek();if(a.type!=="OPEN_PAREN")throw new Error("bad start");const d=[];for(;or(this,P0)=or(this,X0).length)throw new Error("out-of-bounds");return or(this,X0)[or(this,P0)]}peekKeyword(a){const d=this.peekType("KEYWORD");return d!=null&&a.has(d)?d:null}peekType(a){if(this.length===0)return null;const d=this.peek();return d.type===a?d.text:null}pop(){const a=this.peek();return Ws(this,P0)._++,a}toString(){const a=[];for(let d=or(this,P0);d`}};P0=new WeakMap,X0=new WeakMap,oo=new WeakSet,Ho=function(a=0,d=0){return new Bo(or(this,X0).slice(a,d).map(et=>Object.freeze(Object.assign({},et,{match:et.match-a,linkBack:et.linkBack-a,linkNext:et.linkNext-a}))))};let TokenString=Bo;function lex(c){const a=[],d=bt=>{const gt=tt0&&a[a.length-1].type==="NUMBER"){const _t=a.pop().text;Mt=_t+Mt,a[a.length-1].value=getNumber(_t)}if(a.length===0||a[a.length-1].type!=="BRACKET")throw new Error("missing opening bracket");a[a.length-1].text+=Mt}continue}if(gt=bt.match(regexIdPrefix),gt){if(wt.text=gt[1],tt+=wt.text.length,Keywords.has(wt.text)){wt.type="KEYWORD";continue}if(wt.text.match(regexType)){wt.type="TYPE";continue}wt.type="ID";continue}if(gt=bt.match(regexNumberPrefix),gt){wt.text=gt[1],wt.type="NUMBER",tt+=wt.text.length;continue}throw new Error(`unexpected token ${JSON.stringify(bt[0])} at position ${tt}`)}return new TokenString(a.map(bt=>Object.freeze(bt)))}function allowSingle(c,a){let d=[];for(const et in a.keys())c.has(et)&&d.push(et);if(d.length>1)throw new Error(`conflicting types: ${d.join(", ")}`)}function consumeName(c,a){if(a.peekKeyword(KwTypes)){const d=a.pop().text;if(d!==c)throw new Error(`expected ${c}, got ${d}`)}return a.popType("ID")}function consumeKeywords(c,a){const d=new Set;for(;;){const et=c.peekType("KEYWORD");if(et==null||a&&!a.has(et))break;if(c.pop(),d.has(et))throw new Error(`duplicate keywords: ${JSON.stringify(et)}`);d.add(et)}return Object.freeze(d)}function consumeMutability(c){let a=consumeKeywords(c,KwVisib);return allowSingle(a,setify("constant payable nonpayable".split(" "))),allowSingle(a,setify("pure view payable nonpayable".split(" "))),a.has("view")?"view":a.has("pure")?"pure":a.has("payable")?"payable":a.has("nonpayable")?"nonpayable":a.has("constant")?"view":"nonpayable"}function consumeParams(c,a){return c.popParams().map(d=>ParamType.from(d,a))}function consumeGas(c){if(c.peekType("AT")){if(c.pop(),c.peekType("NUMBER"))return getBigInt(c.pop().text);throw new Error("invalid gas")}return null}function consumeEoi(c){if(c.length)throw new Error(`unexpected tokens: ${c.toString()}`)}const regexArrayType=new RegExp(/^(.*)\[([0-9]*)\]$/);function verifyBasicType(c){const a=c.match(regexType);if(assertArgument(a,"invalid type","type",c),c==="uint")return"uint256";if(c==="int")return"int256";if(a[2]){const d=parseInt(a[2]);assertArgument(d!==0&&d<=32,"invalid bytes length","type",c)}else if(a[3]){const d=parseInt(a[3]);assertArgument(d!==0&&d<=256&&d%8===0,"invalid numeric width","type",c)}return c}const _guard={},internal$1=Symbol.for("_ethers_internal"),ParamTypeInternal="_ParamTypeInternal",ErrorFragmentInternal="_ErrorInternal",EventFragmentInternal="_EventInternal",ConstructorFragmentInternal="_ConstructorInternal",FallbackFragmentInternal="_FallbackInternal",FunctionFragmentInternal="_FunctionInternal",StructFragmentInternal="_StructInternal";var Cs,$o;const U0=class U0{constructor(a,d,et,nt,tt,bt,gt,wt){Vr(this,Cs);Gr(this,"name");Gr(this,"type");Gr(this,"baseType");Gr(this,"indexed");Gr(this,"components");Gr(this,"arrayLength");Gr(this,"arrayChildren");if(assertPrivate(a,_guard,"ParamType"),Object.defineProperty(this,internal$1,{value:ParamTypeInternal}),bt&&(bt=Object.freeze(bt.slice())),nt==="array"){if(gt==null||wt==null)throw new Error("")}else if(gt!=null||wt!=null)throw new Error("");if(nt==="tuple"){if(bt==null)throw new Error("")}else if(bt!=null)throw new Error("");defineProperties(this,{name:d,type:et,baseType:nt,indexed:tt,components:bt,arrayLength:gt,arrayChildren:wt})}format(a){if(a==null&&(a="sighash"),a==="json"){const et=this.name||"";if(this.isArray()){const tt=JSON.parse(this.arrayChildren.format("json"));return tt.name=et,tt.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(tt)}const nt={type:this.baseType==="tuple"?"tuple":this.type,name:et};return typeof this.indexed=="boolean"&&(nt.indexed=this.indexed),this.isTuple()&&(nt.components=this.components.map(tt=>JSON.parse(tt.format(a)))),JSON.stringify(nt)}let d="";return this.isArray()?(d+=this.arrayChildren.format(a),d+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?(a!=="sighash"&&(d+=this.type),d+="("+this.components.map(et=>et.format(a)).join(a==="full"?", ":",")+")"):d+=this.type,a!=="sighash"&&(this.indexed===!0&&(d+=" indexed"),a==="full"&&this.name&&(d+=" "+this.name)),d}isArray(){return this.baseType==="array"}isTuple(){return this.baseType==="tuple"}isIndexable(){return this.indexed!=null}walk(a,d){if(this.isArray()){if(!Array.isArray(a))throw new Error("invalid array value");if(this.arrayLength!==-1&&a.length!==this.arrayLength)throw new Error("array is wrong length");const et=this;return a.map(nt=>et.arrayChildren.walk(nt,d))}if(this.isTuple()){if(!Array.isArray(a))throw new Error("invalid tuple value");if(a.length!==this.components.length)throw new Error("array is wrong length");const et=this;return a.map((nt,tt)=>et.components[tt].walk(nt,d))}return d(this.type,a)}async walkAsync(a,d){const et=[],nt=[a];return Wr(this,Cs,$o).call(this,et,a,d,tt=>{nt[0]=tt}),et.length&&await Promise.all(et),nt[0]}static from(a,d){if(U0.isParamType(a))return a;if(typeof a=="string")try{return U0.from(lex(a),d)}catch{assertArgument(!1,"invalid param type","obj",a)}else if(a instanceof TokenString){let gt="",wt="",St=null;consumeKeywords(a,setify(["tuple"])).has("tuple")||a.peekType("OPEN_PAREN")?(wt="tuple",St=a.popParams().map(It=>U0.from(It)),gt=`tuple(${St.map(It=>It.format()).join(",")})`):(gt=verifyBasicType(a.popType("TYPE")),wt=gt);let Mt=null,_t=null;for(;a.length&&a.peekType("BRACKET");){const It=a.pop();Mt=new U0(_guard,"",gt,wt,null,St,_t,Mt),_t=It.value,gt+=It.text,wt="array",St=null}let Tt=null;if(consumeKeywords(a,KwModifiers).has("indexed")){if(!d)throw new Error("");Tt=!0}const kt=a.peekType("ID")?a.pop().text:"";if(a.length)throw new Error("leftover tokens");return new U0(_guard,kt,gt,wt,Tt,St,_t,Mt)}const et=a.name;assertArgument(!et||typeof et=="string"&&et.match(regexId),"invalid name","obj.name",et);let nt=a.indexed;nt!=null&&(assertArgument(d,"parameter cannot be indexed","obj.indexed",a.indexed),nt=!!nt);let tt=a.type,bt=tt.match(regexArrayType);if(bt){const gt=parseInt(bt[2]||"-1"),wt=U0.from({type:bt[1],components:a.components});return new U0(_guard,et||"",tt,"array",nt,null,gt,wt)}if(tt==="tuple"||tt.startsWith("tuple(")||tt.startsWith("(")){const gt=a.components!=null?a.components.map(St=>U0.from(St)):null;return new U0(_guard,et||"",tt,"tuple",nt,gt,null,null)}return tt=verifyBasicType(a.type),new U0(_guard,et||"",tt,tt,nt,null,null,null)}static isParamType(a){return a&&a[internal$1]===ParamTypeInternal}};Cs=new WeakSet,$o=function(a,d,et,nt){if(this.isArray()){if(!Array.isArray(d))throw new Error("invalid array value");if(this.arrayLength!==-1&&d.length!==this.arrayLength)throw new Error("array is wrong length");const bt=this.arrayChildren,gt=d.slice();gt.forEach((wt,St)=>{var Mt;Wr(Mt=bt,Cs,$o).call(Mt,a,wt,et,_t=>{gt[St]=_t})}),nt(gt);return}if(this.isTuple()){const bt=this.components;let gt;if(Array.isArray(d))gt=d.slice();else{if(d==null||typeof d!="object")throw new Error("invalid tuple value");gt=bt.map(wt=>{if(!wt.name)throw new Error("cannot use object value with unnamed components");if(!(wt.name in d))throw new Error(`missing value for component ${wt.name}`);return d[wt.name]})}if(gt.length!==this.components.length)throw new Error("array is wrong length");gt.forEach((wt,St)=>{var Mt;Wr(Mt=bt[St],Cs,$o).call(Mt,a,wt,et,_t=>{gt[St]=_t})}),nt(gt);return}const tt=et(this.type,d);tt.then?a.push(async function(){nt(await tt)}()):nt(tt)};let ParamType=U0;class Fragment{constructor(a,d,et){Gr(this,"type");Gr(this,"inputs");assertPrivate(a,_guard,"Fragment"),et=Object.freeze(et.slice()),defineProperties(this,{type:d,inputs:et})}static from(a){if(typeof a=="string"){try{Fragment.from(JSON.parse(a))}catch{}return Fragment.from(lex(a))}if(a instanceof TokenString)switch(a.peekKeyword(KwTypes)){case"constructor":return ConstructorFragment.from(a);case"error":return ErrorFragment.from(a);case"event":return EventFragment.from(a);case"fallback":case"receive":return FallbackFragment.from(a);case"function":return FunctionFragment.from(a);case"struct":return StructFragment.from(a)}else if(typeof a=="object"){switch(a.type){case"constructor":return ConstructorFragment.from(a);case"error":return ErrorFragment.from(a);case"event":return EventFragment.from(a);case"fallback":case"receive":return FallbackFragment.from(a);case"function":return FunctionFragment.from(a);case"struct":return StructFragment.from(a)}assert$s(!1,`unsupported type: ${a.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}assertArgument(!1,"unsupported frgament object","obj",a)}static isConstructor(a){return ConstructorFragment.isFragment(a)}static isError(a){return ErrorFragment.isFragment(a)}static isEvent(a){return EventFragment.isFragment(a)}static isFunction(a){return FunctionFragment.isFragment(a)}static isStruct(a){return StructFragment.isFragment(a)}}class NamedFragment extends Fragment{constructor(d,et,nt,tt){super(d,et,tt);Gr(this,"name");assertArgument(typeof nt=="string"&&nt.match(regexId),"invalid identifier","name",nt),tt=Object.freeze(tt.slice()),defineProperties(this,{name:nt})}}function joinParams(c,a){return"("+a.map(d=>d.format(c)).join(c==="full"?", ":",")+")"}class ErrorFragment extends NamedFragment{constructor(a,d,et){super(a,"error",d,et),Object.defineProperty(this,internal$1,{value:ErrorFragmentInternal})}get selector(){return id$1(this.format("sighash")).substring(0,10)}format(a){if(a==null&&(a="sighash"),a==="json")return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(et=>JSON.parse(et.format(a)))});const d=[];return a!=="sighash"&&d.push("error"),d.push(this.name+joinParams(a,this.inputs)),d.join(" ")}static from(a){if(ErrorFragment.isFragment(a))return a;if(typeof a=="string")return ErrorFragment.from(lex(a));if(a instanceof TokenString){const d=consumeName("error",a),et=consumeParams(a);return consumeEoi(a),new ErrorFragment(_guard,d,et)}return new ErrorFragment(_guard,a.name,a.inputs?a.inputs.map(ParamType.from):[])}static isFragment(a){return a&&a[internal$1]===ErrorFragmentInternal}}class EventFragment extends NamedFragment{constructor(d,et,nt,tt){super(d,"event",et,nt);Gr(this,"anonymous");Object.defineProperty(this,internal$1,{value:EventFragmentInternal}),defineProperties(this,{anonymous:tt})}get topicHash(){return id$1(this.format("sighash"))}format(d){if(d==null&&(d="sighash"),d==="json")return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(nt=>JSON.parse(nt.format(d)))});const et=[];return d!=="sighash"&&et.push("event"),et.push(this.name+joinParams(d,this.inputs)),d!=="sighash"&&this.anonymous&&et.push("anonymous"),et.join(" ")}static getTopicHash(d,et){return et=(et||[]).map(tt=>ParamType.from(tt)),new EventFragment(_guard,d,et,!1).topicHash}static from(d){if(EventFragment.isFragment(d))return d;if(typeof d=="string")try{return EventFragment.from(lex(d))}catch{assertArgument(!1,"invalid event fragment","obj",d)}else if(d instanceof TokenString){const et=consumeName("event",d),nt=consumeParams(d,!0),tt=!!consumeKeywords(d,setify(["anonymous"])).has("anonymous");return consumeEoi(d),new EventFragment(_guard,et,nt,tt)}return new EventFragment(_guard,d.name,d.inputs?d.inputs.map(et=>ParamType.from(et,!0)):[],!!d.anonymous)}static isFragment(d){return d&&d[internal$1]===EventFragmentInternal}}class ConstructorFragment extends Fragment{constructor(d,et,nt,tt,bt){super(d,et,nt);Gr(this,"payable");Gr(this,"gas");Object.defineProperty(this,internal$1,{value:ConstructorFragmentInternal}),defineProperties(this,{payable:tt,gas:bt})}format(d){if(assert$s(d!=null&&d!=="sighash","cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),d==="json")return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(nt=>JSON.parse(nt.format(d)))});const et=[`constructor${joinParams(d,this.inputs)}`];return et.push(this.payable?"payable":"nonpayable"),this.gas!=null&&et.push(`@${this.gas.toString()}`),et.join(" ")}static from(d){if(ConstructorFragment.isFragment(d))return d;if(typeof d=="string")try{return ConstructorFragment.from(lex(d))}catch{assertArgument(!1,"invalid constuctor fragment","obj",d)}else if(d instanceof TokenString){consumeKeywords(d,setify(["constructor"]));const et=consumeParams(d),nt=!!consumeKeywords(d,KwVisibDeploy).has("payable"),tt=consumeGas(d);return consumeEoi(d),new ConstructorFragment(_guard,"constructor",et,nt,tt)}return new ConstructorFragment(_guard,"constructor",d.inputs?d.inputs.map(ParamType.from):[],!!d.payable,d.gas!=null?d.gas:null)}static isFragment(d){return d&&d[internal$1]===ConstructorFragmentInternal}}class FallbackFragment extends Fragment{constructor(d,et,nt){super(d,"fallback",et);Gr(this,"payable");Object.defineProperty(this,internal$1,{value:FallbackFragmentInternal}),defineProperties(this,{payable:nt})}format(d){const et=this.inputs.length===0?"receive":"fallback";if(d==="json"){const nt=this.payable?"payable":"nonpayable";return JSON.stringify({type:et,stateMutability:nt})}return`${et}()${this.payable?" payable":""}`}static from(d){if(FallbackFragment.isFragment(d))return d;if(typeof d=="string")try{return FallbackFragment.from(lex(d))}catch{assertArgument(!1,"invalid fallback fragment","obj",d)}else if(d instanceof TokenString){const et=d.toString(),nt=d.peekKeyword(setify(["fallback","receive"]));if(assertArgument(nt,"type must be fallback or receive","obj",et),d.popKeyword(setify(["fallback","receive"]))==="receive"){const wt=consumeParams(d);return assertArgument(wt.length===0,"receive cannot have arguments","obj.inputs",wt),consumeKeywords(d,setify(["payable"])),consumeEoi(d),new FallbackFragment(_guard,[],!0)}let bt=consumeParams(d);bt.length?assertArgument(bt.length===1&&bt[0].type==="bytes","invalid fallback inputs","obj.inputs",bt.map(wt=>wt.format("minimal")).join(", ")):bt=[ParamType.from("bytes")];const gt=consumeMutability(d);if(assertArgument(gt==="nonpayable"||gt==="payable","fallback cannot be constants","obj.stateMutability",gt),consumeKeywords(d,setify(["returns"])).has("returns")){const wt=consumeParams(d);assertArgument(wt.length===1&&wt[0].type==="bytes","invalid fallback outputs","obj.outputs",wt.map(St=>St.format("minimal")).join(", "))}return consumeEoi(d),new FallbackFragment(_guard,bt,gt==="payable")}if(d.type==="receive")return new FallbackFragment(_guard,[],!0);if(d.type==="fallback"){const et=[ParamType.from("bytes")],nt=d.stateMutability==="payable";return new FallbackFragment(_guard,et,nt)}assertArgument(!1,"invalid fallback description","obj",d)}static isFragment(d){return d&&d[internal$1]===FallbackFragmentInternal}}class FunctionFragment extends NamedFragment{constructor(d,et,nt,tt,bt,gt){super(d,"function",et,tt);Gr(this,"constant");Gr(this,"outputs");Gr(this,"stateMutability");Gr(this,"payable");Gr(this,"gas");Object.defineProperty(this,internal$1,{value:FunctionFragmentInternal}),bt=Object.freeze(bt.slice()),defineProperties(this,{constant:nt==="view"||nt==="pure",gas:gt,outputs:bt,payable:nt==="payable",stateMutability:nt})}get selector(){return id$1(this.format("sighash")).substring(0,10)}format(d){if(d==null&&(d="sighash"),d==="json")return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(nt=>JSON.parse(nt.format(d))),outputs:this.outputs.map(nt=>JSON.parse(nt.format(d)))});const et=[];return d!=="sighash"&&et.push("function"),et.push(this.name+joinParams(d,this.inputs)),d!=="sighash"&&(this.stateMutability!=="nonpayable"&&et.push(this.stateMutability),this.outputs&&this.outputs.length&&(et.push("returns"),et.push(joinParams(d,this.outputs))),this.gas!=null&&et.push(`@${this.gas.toString()}`)),et.join(" ")}static getSelector(d,et){return et=(et||[]).map(tt=>ParamType.from(tt)),new FunctionFragment(_guard,d,"view",et,[],null).selector}static from(d){if(FunctionFragment.isFragment(d))return d;if(typeof d=="string")try{return FunctionFragment.from(lex(d))}catch{assertArgument(!1,"invalid function fragment","obj",d)}else if(d instanceof TokenString){const nt=consumeName("function",d),tt=consumeParams(d),bt=consumeMutability(d);let gt=[];consumeKeywords(d,setify(["returns"])).has("returns")&&(gt=consumeParams(d));const wt=consumeGas(d);return consumeEoi(d),new FunctionFragment(_guard,nt,bt,tt,gt,wt)}let et=d.stateMutability;return et==null&&(et="payable",typeof d.constant=="boolean"?(et="view",d.constant||(et="payable",typeof d.payable=="boolean"&&!d.payable&&(et="nonpayable"))):typeof d.payable=="boolean"&&!d.payable&&(et="nonpayable")),new FunctionFragment(_guard,d.name,et,d.inputs?d.inputs.map(ParamType.from):[],d.outputs?d.outputs.map(ParamType.from):[],d.gas!=null?d.gas:null)}static isFragment(d){return d&&d[internal$1]===FunctionFragmentInternal}}class StructFragment extends NamedFragment{constructor(a,d,et){super(a,"struct",d,et),Object.defineProperty(this,internal$1,{value:StructFragmentInternal})}format(){throw new Error("@TODO")}static from(a){if(typeof a=="string")try{return StructFragment.from(lex(a))}catch{assertArgument(!1,"invalid struct fragment","obj",a)}else if(a instanceof TokenString){const d=consumeName("struct",a),et=consumeParams(a);return consumeEoi(a),new StructFragment(_guard,d,et)}return new StructFragment(_guard,a.name,a.inputs?a.inputs.map(ParamType.from):[])}static isFragment(a){return a&&a[internal$1]===StructFragmentInternal}}const PanicReasons$1=new Map;PanicReasons$1.set(0,"GENERIC_PANIC");PanicReasons$1.set(1,"ASSERT_FALSE");PanicReasons$1.set(17,"OVERFLOW");PanicReasons$1.set(18,"DIVIDE_BY_ZERO");PanicReasons$1.set(33,"ENUM_RANGE_ERROR");PanicReasons$1.set(34,"BAD_STORAGE_DATA");PanicReasons$1.set(49,"STACK_UNDERFLOW");PanicReasons$1.set(50,"ARRAY_RANGE_ERROR");PanicReasons$1.set(65,"OUT_OF_MEMORY");PanicReasons$1.set(81,"UNINITIALIZED_FUNCTION_CALL");const paramTypeBytes=new RegExp(/^bytes([0-9]*)$/),paramTypeNumber=new RegExp(/^(u?int)([0-9]*)$/);let defaultCoder=null;function getBuiltinCallException(c,a,d,et){let nt="missing revert data",tt=null;const bt=null;let gt=null;if(d){nt="execution reverted";const St=getBytes(d);if(d=hexlify(d),St.length===0)nt+=" (no data present; likely require(false) occurred",tt="require(false)";else if(St.length%32!==4)nt+=" (could not decode reason; invalid data length)";else if(hexlify(St.slice(0,4))==="0x08c379a0")try{tt=et.decode(["string"],St.slice(4))[0],gt={signature:"Error(string)",name:"Error",args:[tt]},nt+=`: ${JSON.stringify(tt)}`}catch{nt+=" (could not decode reason; invalid string data)"}else if(hexlify(St.slice(0,4))==="0x4e487b71")try{const Mt=Number(et.decode(["uint256"],St.slice(4))[0]);gt={signature:"Panic(uint256)",name:"Panic",args:[Mt]},tt=`Panic due to ${PanicReasons$1.get(Mt)||"UNKNOWN"}(${Mt})`,nt+=`: ${tt}`}catch{nt+=" (could not decode panic code)"}else nt+=" (unknown custom error)"}const wt={to:a.to?getAddress$1(a.to):null,data:a.data||"0x"};return a.from&&(wt.from=getAddress$1(a.from)),makeError(nt,"CALL_EXCEPTION",{action:c,data:d,reason:tt,transaction:wt,invocation:bt,revert:gt})}var Tn,rs;const Ro=class Ro{constructor(){Vr(this,Tn)}getDefaultValue(a){const d=a.map(nt=>Wr(this,Tn,rs).call(this,ParamType.from(nt)));return new TupleCoder(d,"_").defaultValue()}encode(a,d){assertArgumentCount(d.length,a.length,"types/values length mismatch");const et=a.map(bt=>Wr(this,Tn,rs).call(this,ParamType.from(bt))),nt=new TupleCoder(et,"_"),tt=new Writer;return nt.encode(tt,d),tt.data}decode(a,d,et){const nt=a.map(bt=>Wr(this,Tn,rs).call(this,ParamType.from(bt)));return new TupleCoder(nt,"_").decode(new Reader(d,et))}static defaultAbiCoder(){return defaultCoder==null&&(defaultCoder=new Ro),defaultCoder}static getBuiltinCallException(a,d,et){return getBuiltinCallException(a,d,et,Ro.defaultAbiCoder())}};Tn=new WeakSet,rs=function(a){if(a.isArray())return new ArrayCoder(Wr(this,Tn,rs).call(this,a.arrayChildren),a.arrayLength,a.name);if(a.isTuple())return new TupleCoder(a.components.map(et=>Wr(this,Tn,rs).call(this,et)),a.name);switch(a.baseType){case"address":return new AddressCoder(a.name);case"bool":return new BooleanCoder(a.name);case"string":return new StringCoder(a.name);case"bytes":return new BytesCoder(a.name);case"":return new NullCoder(a.name)}let d=a.type.match(paramTypeNumber);if(d){let et=parseInt(d[2]||"256");return assertArgument(et!==0&&et<=256&&et%8===0,"invalid "+d[1]+" bit length","param",a),new NumberCoder(et/8,d[1]==="int",a.name)}if(d=a.type.match(paramTypeBytes),d){let et=parseInt(d[1]);return assertArgument(et!==0&&et<=32,"invalid bytes length","param",a),new FixedBytesCoder(et,a.name)}assertArgument(!1,"invalid type","type",a.type)};let AbiCoder=Ro;class LogDescription{constructor(a,d,et){Gr(this,"fragment");Gr(this,"name");Gr(this,"signature");Gr(this,"topic");Gr(this,"args");const nt=a.name,tt=a.format();defineProperties(this,{fragment:a,name:nt,signature:tt,topic:d,args:et})}}class TransactionDescription{constructor(a,d,et,nt){Gr(this,"fragment");Gr(this,"name");Gr(this,"args");Gr(this,"signature");Gr(this,"selector");Gr(this,"value");const tt=a.name,bt=a.format();defineProperties(this,{fragment:a,name:tt,args:et,signature:bt,selector:d,value:nt})}}class ErrorDescription{constructor(a,d,et){Gr(this,"fragment");Gr(this,"name");Gr(this,"args");Gr(this,"signature");Gr(this,"selector");const nt=a.name,tt=a.format();defineProperties(this,{fragment:a,name:nt,args:et,signature:tt,selector:d})}}class Indexed{constructor(a){Gr(this,"hash");Gr(this,"_isIndexed");defineProperties(this,{hash:a,_isIndexed:!0})}static isIndexed(a){return!!(a&&a._isIndexed)}}const PanicReasons={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"},BuiltinErrors={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:c=>`reverted with reason string ${JSON.stringify(c)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:c=>{let a="unknown panic code";return c>=0&&c<=255&&PanicReasons[c.toString()]&&(a=PanicReasons[c.toString()]),`reverted with panic code 0x${c.toString(16)} (${a})`}}};var rn,nn,an,C0,Ts,So,Bs,Mo;const is=class is{constructor(a){Vr(this,Ts);Vr(this,Bs);Gr(this,"fragments");Gr(this,"deploy");Gr(this,"fallback");Gr(this,"receive");Vr(this,rn,void 0);Vr(this,nn,void 0);Vr(this,an,void 0);Vr(this,C0,void 0);let d=[];typeof a=="string"?d=JSON.parse(a):d=a,yr(this,an,new Map),yr(this,rn,new Map),yr(this,nn,new Map);const et=[];for(const bt of d)try{et.push(Fragment.from(bt))}catch(gt){console.log("EE",gt)}defineProperties(this,{fragments:Object.freeze(et)});let nt=null,tt=!1;yr(this,C0,this.getAbiCoder()),this.fragments.forEach((bt,gt)=>{let wt;switch(bt.type){case"constructor":if(this.deploy){console.log("duplicate definition - constructor");return}defineProperties(this,{deploy:bt});return;case"fallback":bt.inputs.length===0?tt=!0:(assertArgument(!nt||bt.payable!==nt.payable,"conflicting fallback fragments",`fragments[${gt}]`,bt),nt=bt,tt=nt.payable);return;case"function":wt=or(this,an);break;case"event":wt=or(this,nn);break;case"error":wt=or(this,rn);break;default:return}const St=bt.format();wt.has(St)||wt.set(St,bt)}),this.deploy||defineProperties(this,{deploy:ConstructorFragment.from("constructor()")}),defineProperties(this,{fallback:nt,receive:tt})}format(a){const d=a?"minimal":"full";return this.fragments.map(nt=>nt.format(d))}formatJson(){const a=this.fragments.map(d=>d.format("json"));return JSON.stringify(a.map(d=>JSON.parse(d)))}getAbiCoder(){return AbiCoder.defaultAbiCoder()}getFunctionName(a){const d=Wr(this,Ts,So).call(this,a,null,!1);return assertArgument(d,"no matching function","key",a),d.name}hasFunction(a){return!!Wr(this,Ts,So).call(this,a,null,!1)}getFunction(a,d){return Wr(this,Ts,So).call(this,a,d||null,!0)}forEachFunction(a){const d=Array.from(or(this,an).keys());d.sort((et,nt)=>et.localeCompare(nt));for(let et=0;etet.localeCompare(nt));for(let et=0;et1){const tt=nt.map(bt=>JSON.stringify(bt.format())).join(", ");assertArgument(!1,`ambiguous error description (i.e. ${tt})`,"name",a)}return nt[0]}if(a=ErrorFragment.from(a).format(),a==="Error(string)")return ErrorFragment.from("error Error(string)");if(a==="Panic(uint256)")return ErrorFragment.from("error Panic(uint256)");const et=or(this,rn).get(a);return et||null}forEachError(a){const d=Array.from(or(this,rn).keys());d.sort((et,nt)=>et.localeCompare(nt));for(let et=0;ettt.type==="string"?id$1(bt):tt.type==="bytes"?keccak256$2(hexlify(bt)):(tt.type==="bool"&&typeof bt=="boolean"?bt=bt?"0x01":"0x00":tt.type.match(/^u?int/)?bt=toBeHex(bt):tt.type.match(/^bytes/)?bt=zeroPadBytes(bt,32):tt.type==="address"&&or(this,C0).encode(["address"],[bt]),zeroPadValue(hexlify(bt),32));for(d.forEach((tt,bt)=>{const gt=a.inputs[bt];if(!gt.indexed){assertArgument(tt==null,"cannot filter non-indexed parameters; must be null","contract."+gt.name,tt);return}tt==null?et.push(null):gt.baseType==="array"||gt.baseType==="tuple"?assertArgument(!1,"filtering with tuples or arrays not supported","contract."+gt.name,tt):Array.isArray(tt)?et.push(tt.map(wt=>nt(gt,wt))):et.push(nt(gt,tt))});et.length&&et[et.length-1]===null;)et.pop();return et}encodeEventLog(a,d){if(typeof a=="string"){const bt=this.getEvent(a);assertArgument(bt,"unknown event","eventFragment",a),a=bt}const et=[],nt=[],tt=[];return a.anonymous||et.push(a.topicHash),assertArgument(d.length===a.inputs.length,"event arguments/values mismatch","values",d),a.inputs.forEach((bt,gt)=>{const wt=d[gt];if(bt.indexed)if(bt.type==="string")et.push(id$1(wt));else if(bt.type==="bytes")et.push(keccak256$2(wt));else{if(bt.baseType==="tuple"||bt.baseType==="array")throw new Error("not implemented");et.push(or(this,C0).encode([bt.type],[wt]))}else nt.push(bt),tt.push(wt)}),{data:or(this,C0).encode(nt,tt),topics:et}}decodeEventLog(a,d,et){if(typeof a=="string"){const Bt=this.getEvent(a);assertArgument(Bt,"unknown event","eventFragment",a),a=Bt}if(et!=null&&!a.anonymous){const Bt=a.topicHash;assertArgument(isHexString(et[0],32)&&et[0].toLowerCase()===Bt,"fragment/topic mismatch","topics[0]",et[0]),et=et.slice(1)}const nt=[],tt=[],bt=[];a.inputs.forEach((Bt,kt)=>{Bt.indexed?Bt.type==="string"||Bt.type==="bytes"||Bt.baseType==="tuple"||Bt.baseType==="array"?(nt.push(ParamType.from({type:"bytes32",name:Bt.name})),bt.push(!0)):(nt.push(Bt),bt.push(!1)):(tt.push(Bt),bt.push(!1))});const gt=et!=null?or(this,C0).decode(nt,concat$2(et)):null,wt=or(this,C0).decode(tt,d,!0),St=[],Mt=[];let _t=0,Tt=0;return a.inputs.forEach((Bt,kt)=>{let It=null;if(Bt.indexed)if(gt==null)It=new Indexed(null);else if(bt[kt])It=new Indexed(gt[Tt++]);else try{It=gt[Tt++]}catch(Lt){It=Lt}else try{It=wt[_t++]}catch(Lt){It=Lt}St.push(It),Mt.push(Bt.name||null)}),Result.fromItems(St,Mt)}parseTransaction(a){const d=getBytes(a.data,"tx.data"),et=getBigInt(a.value!=null?a.value:0,"tx.value"),nt=this.getFunction(hexlify(d.slice(0,4)));if(!nt)return null;const tt=or(this,C0).decode(nt.inputs,d.slice(4));return new TransactionDescription(nt,nt.selector,tt,et)}parseCallResult(a){throw new Error("@TODO")}parseLog(a){const d=this.getEvent(a.topics[0]);return!d||d.anonymous?null:new LogDescription(d,d.topicHash,this.decodeEventLog(d,a.data,a.topics))}parseError(a){const d=hexlify(a),et=this.getError(dataSlice(d,0,4));if(!et)return null;const nt=or(this,C0).decode(et.inputs,dataSlice(d,4));return new ErrorDescription(et,et.selector,nt)}static from(a){return a instanceof is?a:typeof a=="string"?new is(JSON.parse(a)):typeof a.format=="function"?new is(a.format("json")):new is(a)}};rn=new WeakMap,nn=new WeakMap,an=new WeakMap,C0=new WeakMap,Ts=new WeakSet,So=function(a,d,et){if(isHexString(a)){const tt=a.toLowerCase();for(const bt of or(this,an).values())if(tt===bt.selector)return bt;return null}if(a.indexOf("(")===-1){const tt=[];for(const[bt,gt]of or(this,an))bt.split("(")[0]===a&&tt.push(gt);if(d){const bt=d.length>0?d[d.length-1]:null;let gt=d.length,wt=!0;Typed.isTyped(bt)&&bt.type==="overrides"&&(wt=!1,gt--);for(let St=tt.length-1;St>=0;St--){const Mt=tt[St].inputs.length;Mt!==gt&&(!wt||Mt!==gt-1)&&tt.splice(St,1)}for(let St=tt.length-1;St>=0;St--){const Mt=tt[St].inputs;for(let _t=0;_t=Mt.length){if(d[_t].type==="overrides")continue;tt.splice(St,1);break}if(d[_t].type!==Mt[_t].baseType){tt.splice(St,1);break}}}}if(tt.length===1&&d&&d.length!==tt[0].inputs.length){const bt=d[d.length-1];(bt==null||Array.isArray(bt)||typeof bt!="object")&&tt.splice(0,1)}if(tt.length===0)return null;if(tt.length>1&&et){const bt=tt.map(gt=>JSON.stringify(gt.format())).join(", ");assertArgument(!1,`ambiguous function description (i.e. matches ${bt})`,"key",a)}return tt[0]}const nt=or(this,an).get(FunctionFragment.from(a).format());return nt||null},Bs=new WeakSet,Mo=function(a,d,et){if(isHexString(a)){const tt=a.toLowerCase();for(const bt of or(this,nn).values())if(tt===bt.topicHash)return bt;return null}if(a.indexOf("(")===-1){const tt=[];for(const[bt,gt]of or(this,nn))bt.split("(")[0]===a&&tt.push(gt);if(d){for(let bt=tt.length-1;bt>=0;bt--)tt[bt].inputs.length=0;bt--){const gt=tt[bt].inputs;for(let wt=0;wt1&&et){const bt=tt.map(gt=>JSON.stringify(gt.format())).join(", ");assertArgument(!1,`ambiguous event description (i.e. matches ${bt})`,"key",a)}return tt[0]}const nt=or(this,nn).get(EventFragment.from(a).format());return nt||null};let Interface=is;const BN_0$2=BigInt(0);function getValue(c){return c??null}function toJson(c){return c==null?null:c.toString()}class FeeData{constructor(a,d,et){Gr(this,"gasPrice");Gr(this,"maxFeePerGas");Gr(this,"maxPriorityFeePerGas");defineProperties(this,{gasPrice:getValue(a),maxFeePerGas:getValue(d),maxPriorityFeePerGas:getValue(et)})}toJSON(){const{gasPrice:a,maxFeePerGas:d,maxPriorityFeePerGas:et}=this;return{_type:"FeeData",gasPrice:toJson(a),maxFeePerGas:toJson(d),maxPriorityFeePerGas:toJson(et)}}}function copyRequest(c){const a={};c.to&&(a.to=c.to),c.from&&(a.from=c.from),c.data&&(a.data=hexlify(c.data));const d="chainId,gasLimit,gasPrice,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const nt of d)!(nt in c)||c[nt]==null||(a[nt]=getBigInt(c[nt],`request.${nt}`));const et="type,nonce".split(/,/);for(const nt of et)!(nt in c)||c[nt]==null||(a[nt]=getNumber(c[nt],`request.${nt}`));return c.accessList&&(a.accessList=accessListify(c.accessList)),"blockTag"in c&&(a.blockTag=c.blockTag),"enableCcipRead"in c&&(a.enableCcipRead=!!c.enableCcipRead),"customData"in c&&(a.customData=c.customData),a}var wn;class Block{constructor(a,d){Gr(this,"provider");Gr(this,"number");Gr(this,"hash");Gr(this,"timestamp");Gr(this,"parentHash");Gr(this,"nonce");Gr(this,"difficulty");Gr(this,"gasLimit");Gr(this,"gasUsed");Gr(this,"miner");Gr(this,"extraData");Gr(this,"baseFeePerGas");Vr(this,wn,void 0);yr(this,wn,a.transactions.map(et=>typeof et!="string"?new TransactionResponse(et,d):et)),defineProperties(this,{provider:d,hash:getValue(a.hash),number:a.number,timestamp:a.timestamp,parentHash:a.parentHash,nonce:a.nonce,difficulty:a.difficulty,gasLimit:a.gasLimit,gasUsed:a.gasUsed,miner:a.miner,extraData:a.extraData,baseFeePerGas:getValue(a.baseFeePerGas)})}get transactions(){return or(this,wn).map(a=>typeof a=="string"?a:a.hash)}get prefetchedTransactions(){const a=or(this,wn).slice();return a.length===0?[]:(assert$s(typeof a[0]=="object","transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),a)}toJSON(){const{baseFeePerGas:a,difficulty:d,extraData:et,gasLimit:nt,gasUsed:tt,hash:bt,miner:gt,nonce:wt,number:St,parentHash:Mt,timestamp:_t,transactions:Tt}=this;return{_type:"Block",baseFeePerGas:toJson(a),difficulty:toJson(d),extraData:et,gasLimit:toJson(nt),gasUsed:toJson(tt),hash:bt,miner:gt,nonce:wt,number:St,parentHash:Mt,timestamp:_t,transactions:Tt}}[Symbol.iterator](){let a=0;const d=this.transactions;return{next:()=>anew Log(nt,d))));let et=BN_0$2;a.effectiveGasPrice!=null?et=a.effectiveGasPrice:a.gasPrice!=null&&(et=a.gasPrice),defineProperties(this,{provider:d,to:a.to,from:a.from,contractAddress:a.contractAddress,hash:a.hash,index:a.index,blockHash:a.blockHash,blockNumber:a.blockNumber,logsBloom:a.logsBloom,gasUsed:a.gasUsed,cumulativeGasUsed:a.cumulativeGasUsed,gasPrice:et,type:a.type,status:a.status,root:a.root})}get logs(){return or(this,fo)}toJSON(){const{to:a,from:d,contractAddress:et,hash:nt,index:tt,blockHash:bt,blockNumber:gt,logsBloom:wt,logs:St,status:Mt,root:_t}=this;return{_type:"TransactionReceipt",blockHash:bt,blockNumber:gt,contractAddress:et,cumulativeGasUsed:toJson(this.cumulativeGasUsed),from:d,gasPrice:toJson(this.gasPrice),gasUsed:toJson(this.gasUsed),hash:nt,index:tt,logs:St,logsBloom:wt,root:_t,status:Mt,to:a}}get length(){return this.logs.length}[Symbol.iterator](){let a=0;return{next:()=>a{if(gt)return null;const{blockNumber:Tt,nonce:Bt}=await resolveProperties({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(Bt{if(Tt==null||Tt.status!==0)return Tt;assert$s(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:Tt.to,from:Tt.from,data:""},receipt:Tt})},Mt=await this.provider.getTransactionReceipt(this.hash);if(et===0)return St(Mt);if(Mt){if(await Mt.confirmations()>=et)return St(Mt)}else if(await wt(),et===0)return null;return await new Promise((Tt,Bt)=>{const kt=[],It=()=>{kt.forEach(Ot=>Ot())};if(kt.push(()=>{gt=!0}),nt>0){const Ot=setTimeout(()=>{It(),Bt(makeError("wait for transaction timeout","TIMEOUT"))},nt);kt.push(()=>{clearTimeout(Ot)})}const Lt=async Ot=>{if(await Ot.confirmations()>=et){It();try{Tt(St(Ot))}catch(Nt){Bt(Nt)}}};if(kt.push(()=>{this.provider.off(this.hash,Lt)}),this.provider.on(this.hash,Lt),tt>=0){const Ot=async()=>{try{await wt()}catch(Nt){if(isError$1(Nt,"TRANSACTION_REPLACED")){It(),Bt(Nt);return}}gt||this.provider.once("block",Ot)};kt.push(()=>{this.provider.off("block",Ot)}),this.provider.once("block",Ot)}})}isMined(){return this.blockHash!=null}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}removedEvent(){return assert$s(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),createRemovedTransactionFilter(this)}reorderedEvent(a){return assert$s(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),assert$s(!a||a.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),createReorderedTransactionFilter(this,a)}replaceableTransaction(a){assertArgument(Number.isInteger(a)&&a>=0,"invalid startBlock","startBlock",a);const d=new Xo(this,this.provider);return yr(d,Bn,a),d}};Bn=new WeakMap;let TransactionResponse=Xo;function createOrphanedBlockFilter(c){return{orphan:"drop-block",hash:c.hash,number:c.number}}function createReorderedTransactionFilter(c,a){return{orphan:"reorder-transaction",tx:c,other:a}}function createRemovedTransactionFilter(c){return{orphan:"drop-transaction",tx:c}}function createRemovedLogFilter(c){return{orphan:"drop-log",log:{transactionHash:c.transactionHash,blockHash:c.blockHash,blockNumber:c.blockNumber,address:c.address,data:c.data,topics:Object.freeze(c.topics.slice()),index:c.index}}}class EventLog extends Log{constructor(d,et,nt){super(d,d.provider);Gr(this,"interface");Gr(this,"fragment");Gr(this,"args");const tt=et.decodeEventLog(nt,d.data,d.topics);defineProperties(this,{args:tt,fragment:nt,interface:et})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}class UndecodedEventLog extends Log{constructor(d,et){super(d,d.provider);Gr(this,"error");defineProperties(this,{error:et})}}var Rs;class ContractTransactionReceipt extends TransactionReceipt{constructor(d,et,nt){super(nt,et);Vr(this,Rs,void 0);yr(this,Rs,d)}get logs(){return super.logs.map(d=>{const et=d.topics.length?or(this,Rs).getEvent(d.topics[0]):null;if(et)try{return new EventLog(d,or(this,Rs),et)}catch(nt){return new UndecodedEventLog(d,nt)}return d})}}Rs=new WeakMap;var co;class ContractTransactionResponse extends TransactionResponse{constructor(d,et,nt){super(nt,et);Vr(this,co,void 0);yr(this,co,d)}async wait(d){const et=await super.wait(d);return et==null?null:new ContractTransactionReceipt(or(this,co),this.provider,et)}}co=new WeakMap;class ContractUnknownEventPayload extends EventPayload{constructor(d,et,nt,tt){super(d,et,nt);Gr(this,"log");defineProperties(this,{log:tt})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}class ContractEventPayload extends ContractUnknownEventPayload{constructor(a,d,et,nt,tt){super(a,d,et,new EventLog(tt,a.interface,nt));const bt=a.interface.decodeEventLog(nt,this.log.data,this.log.topics);defineProperties(this,{args:bt,fragment:nt})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}const BN_0$1=BigInt(0);function canCall(c){return c&&typeof c.call=="function"}function canEstimate(c){return c&&typeof c.estimateGas=="function"}function canResolve(c){return c&&typeof c.resolveName=="function"}function canSend(c){return c&&typeof c.sendTransaction=="function"}var lo;class PreparedTopicFilter{constructor(a,d,et){Vr(this,lo,void 0);Gr(this,"fragment");if(defineProperties(this,{fragment:d}),d.inputs.lengthet[wt]==null?null:gt.walkAsync(et[wt],(Mt,_t)=>Mt==="address"?Array.isArray(_t)?Promise.all(_t.map(Tt=>resolveAddress(Tt,tt))):resolveAddress(_t,tt):_t)));return a.interface.encodeFilterTopics(d,bt)}())}getTopicFilter(){return or(this,lo)}}lo=new WeakMap;function getRunner(c,a){return c==null?null:typeof c[a]=="function"?c:c.provider&&typeof c.provider[a]=="function"?c.provider:null}function getProvider$1(c){return c==null?null:c.provider||null}async function copyOverrides(c,a){const d=Typed.dereference(c,"overrides");assertArgument(typeof d=="object","invalid overrides parameter","overrides",c);const et=copyRequest(d);return assertArgument(et.to==null||(a||[]).indexOf("to")>=0,"cannot override to","overrides.to",et.to),assertArgument(et.data==null||(a||[]).indexOf("data")>=0,"cannot override data","overrides.data",et.data),et.from&&(et.from=await resolveAddress(et.from)),et}async function resolveArgs(c,a,d){const et=getRunner(c,"resolveName"),nt=canResolve(et)?et:null;return await Promise.all(a.map((tt,bt)=>tt.walkAsync(d[bt],(gt,wt)=>(wt=Typed.dereference(wt,gt),gt==="address"?resolveAddress(wt,nt):wt))))}function buildWrappedFallback(c){const a=async function(bt){const gt=await copyOverrides(bt,["data"]);gt.to=await c.getAddress();const wt=c.interface,St=getBigInt(gt.value||BN_0$1,"overrides.value")===BN_0$1,Mt=(gt.data||"0x")==="0x";wt.fallback&&!wt.fallback.payable&&wt.receive&&!Mt&&!St&&assertArgument(!1,"cannot send data to receive or send value to non-payable fallback","overrides",bt),assertArgument(wt.fallback||Mt,"cannot send data to receive-only contract","overrides.data",gt.data);const _t=wt.receive||wt.fallback&&wt.fallback.payable;return assertArgument(_t||St,"cannot send value to non-payable fallback","overrides.value",gt.value),assertArgument(wt.fallback||Mt,"cannot send data to receive-only contract","overrides.data",gt.data),gt},d=async function(bt){const gt=getRunner(c.runner,"call");assert$s(canCall(gt),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const wt=await a(bt);try{return await gt.call(wt)}catch(St){throw isCallException(St)&&St.data?c.interface.makeError(St.data,wt):St}},et=async function(bt){const gt=c.runner;assert$s(canSend(gt),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const wt=await gt.sendTransaction(await a(bt)),St=getProvider$1(c.runner);return new ContractTransactionResponse(c.interface,St,wt)},nt=async function(bt){const gt=getRunner(c.runner,"estimateGas");return assert$s(canEstimate(gt),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await gt.estimateGas(await a(bt))},tt=async bt=>await et(bt);return defineProperties(tt,{_contract:c,estimateGas:nt,populateTransaction:a,send:et,staticCall:d}),tt}function buildWrappedMethod(c,a){const d=function(...St){const Mt=c.interface.getFunction(a,St);return assert$s(Mt,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:a,args:St}}),Mt},et=async function(...St){const Mt=d(...St);let _t={};if(Mt.inputs.length+1===St.length&&(_t=await copyOverrides(St.pop())),Mt.inputs.length!==St.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const Tt=await resolveArgs(c.runner,Mt.inputs,St);return Object.assign({},_t,await resolveProperties({to:c.getAddress(),data:c.interface.encodeFunctionData(Mt,Tt)}))},nt=async function(...St){const Mt=await gt(...St);return Mt.length===1?Mt[0]:Mt},tt=async function(...St){const Mt=c.runner;assert$s(canSend(Mt),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const _t=await Mt.sendTransaction(await et(...St)),Tt=getProvider$1(c.runner);return new ContractTransactionResponse(c.interface,Tt,_t)},bt=async function(...St){const Mt=getRunner(c.runner,"estimateGas");return assert$s(canEstimate(Mt),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await Mt.estimateGas(await et(...St))},gt=async function(...St){const Mt=getRunner(c.runner,"call");assert$s(canCall(Mt),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const _t=await et(...St);let Tt="0x";try{Tt=await Mt.call(_t)}catch(kt){throw isCallException(kt)&&kt.data?c.interface.makeError(kt.data,_t):kt}const Bt=d(...St);return c.interface.decodeFunctionResult(Bt,Tt)},wt=async(...St)=>d(...St).constant?await nt(...St):await tt(...St);return defineProperties(wt,{name:c.interface.getFunctionName(a),_contract:c,_key:a,getFragment:d,estimateGas:bt,populateTransaction:et,send:tt,staticCall:nt,staticCallResult:gt}),Object.defineProperty(wt,"fragment",{configurable:!1,enumerable:!0,get:()=>{const St=c.interface.getFunction(a);return assert$s(St,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:a}}),St}}),wt}function buildWrappedEvent(c,a){const d=function(...nt){const tt=c.interface.getEvent(a,nt);return assert$s(tt,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:a,args:nt}}),tt},et=function(...nt){return new PreparedTopicFilter(c,d(...nt),nt)};return defineProperties(et,{name:c.interface.getEventName(a),_contract:c,_key:a,getFragment:d}),Object.defineProperty(et,"fragment",{configurable:!1,enumerable:!0,get:()=>{const nt=c.interface.getEvent(a);return assert$s(nt,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:a}}),nt}}),et}const internal=Symbol.for("_ethersInternal_contract"),internalValues=new WeakMap;function setInternal(c,a){internalValues.set(c[internal],a)}function getInternal(c){return internalValues.get(c[internal])}function isDeferred(c){return c&&typeof c=="object"&&"getTopicFilter"in c&&typeof c.getTopicFilter=="function"&&c.fragment}async function getSubInfo(c,a){let d,et=null;if(Array.isArray(a)){const tt=function(bt){if(isHexString(bt,32))return bt;const gt=c.interface.getEvent(bt);return assertArgument(gt,"unknown fragment","name",bt),gt.topicHash};d=a.map(bt=>bt==null?null:Array.isArray(bt)?bt.map(tt):tt(bt))}else a==="*"?d=[null]:typeof a=="string"?isHexString(a,32)?d=[a]:(et=c.interface.getEvent(a),assertArgument(et,"unknown fragment","event",a),d=[et.topicHash]):isDeferred(a)?d=await a.getTopicFilter():"fragment"in a?(et=a.fragment,d=[et.topicHash]):assertArgument(!1,"unknown event name","event",a);d=d.map(tt=>{if(tt==null)return null;if(Array.isArray(tt)){const bt=Array.from(new Set(tt.map(gt=>gt.toLowerCase())).values());return bt.length===1?bt[0]:(bt.sort(),bt)}return tt.toLowerCase()});const nt=d.map(tt=>tt==null?"null":Array.isArray(tt)?tt.join("|"):tt).join("&");return{fragment:et,tag:nt,topics:d}}async function hasSub(c,a){const{subs:d}=getInternal(c);return d.get((await getSubInfo(c,a)).tag)||null}async function getSub(c,a,d){const et=getProvider$1(c.runner);assert$s(et,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:a});const{fragment:nt,tag:tt,topics:bt}=await getSubInfo(c,d),{addr:gt,subs:wt}=getInternal(c);let St=wt.get(tt);if(!St){const _t={address:gt||c,topics:bt},Tt=Lt=>{let Ot=nt;if(Ot==null)try{Ot=c.interface.getEvent(Lt.topics[0])}catch{}if(Ot){const Nt=Ot,Ft=nt?c.interface.decodeEventLog(nt,Lt.data,Lt.topics):[];emit(c,d,Ft,zt=>new ContractEventPayload(c,zt,d,Nt,Lt))}else emit(c,d,[],Nt=>new ContractUnknownEventPayload(c,Nt,d,Lt))};let Bt=[];St={tag:tt,listeners:[],start:()=>{Bt.length||Bt.push(et.on(_t,Tt))},stop:async()=>{if(Bt.length==0)return;let Lt=Bt;Bt=[],await Promise.all(Lt),et.off(_t,Tt)}},wt.set(tt,St)}return St}let lastEmit=Promise.resolve();async function _emit(c,a,d,et){await lastEmit;const nt=await hasSub(c,a);if(!nt)return!1;const tt=nt.listeners.length;return nt.listeners=nt.listeners.filter(({listener:bt,once:gt})=>{const wt=Array.from(d);et&&wt.push(et(gt?null:bt));try{bt.call(c,...wt)}catch{}return!gt}),nt.listeners.length===0&&(nt.stop(),getInternal(c).subs.delete(nt.tag)),tt>0}async function emit(c,a,d,et){try{await lastEmit}catch{}const nt=_emit(c,a,d,et);return lastEmit=nt,await nt}const passProperties=["then"];var o1;const Qs=class Qs{constructor(a,d,et,nt){Gr(this,"target");Gr(this,"interface");Gr(this,"runner");Gr(this,"filters");Gr(this,o1);Gr(this,"fallback");assertArgument(typeof a=="string"||isAddressable(a),"invalid value for Contract target","target",a),et==null&&(et=null);const tt=Interface.from(d);defineProperties(this,{target:a,runner:et,interface:tt}),Object.defineProperty(this,internal,{value:{}});let bt,gt=null,wt=null;if(nt){const _t=getProvider$1(et);wt=new ContractTransactionResponse(this.interface,_t,nt)}let St=new Map;if(typeof a=="string")if(isHexString(a))gt=a,bt=Promise.resolve(a);else{const _t=getRunner(et,"resolveName");if(!canResolve(_t))throw makeError("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});bt=_t.resolveName(a).then(Tt=>{if(Tt==null)throw makeError("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:a});return getInternal(this).addr=Tt,Tt})}else bt=a.getAddress().then(_t=>{if(_t==null)throw new Error("TODO");return getInternal(this).addr=_t,_t});setInternal(this,{addrPromise:bt,addr:gt,deployTx:wt,subs:St});const Mt=new Proxy({},{get:(_t,Tt,Bt)=>{if(typeof Tt=="symbol"||passProperties.indexOf(Tt)>=0)return Reflect.get(_t,Tt,Bt);try{return this.getEvent(Tt)}catch(kt){if(!isError$1(kt,"INVALID_ARGUMENT")||kt.argument!=="key")throw kt}},has:(_t,Tt)=>passProperties.indexOf(Tt)>=0?Reflect.has(_t,Tt):Reflect.has(_t,Tt)||this.interface.hasEvent(String(Tt))});return defineProperties(this,{filters:Mt}),defineProperties(this,{fallback:tt.receive||tt.fallback?buildWrappedFallback(this):null}),new Proxy(this,{get:(_t,Tt,Bt)=>{if(typeof Tt=="symbol"||Tt in _t||passProperties.indexOf(Tt)>=0)return Reflect.get(_t,Tt,Bt);try{return _t.getFunction(Tt)}catch(kt){if(!isError$1(kt,"INVALID_ARGUMENT")||kt.argument!=="key")throw kt}},has:(_t,Tt)=>typeof Tt=="symbol"||Tt in _t||passProperties.indexOf(Tt)>=0?Reflect.has(_t,Tt):_t.interface.hasFunction(Tt)})}connect(a){return new Qs(this.target,this.interface,a)}attach(a){return new Qs(a,this.interface,this.runner)}async getAddress(){return await getInternal(this).addrPromise}async getDeployedCode(){const a=getProvider$1(this.runner);assert$s(a,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const d=await a.getCode(await this.getAddress());return d==="0x"?null:d}async waitForDeployment(){const a=this.deploymentTransaction();if(a)return await a.wait(),this;if(await this.getDeployedCode()!=null)return this;const et=getProvider$1(this.runner);return assert$s(et!=null,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((nt,tt)=>{const bt=async()=>{try{if(await this.getDeployedCode()!=null)return nt(this);et.once("block",bt)}catch(gt){tt(gt)}};bt()})}deploymentTransaction(){return getInternal(this).deployTx}getFunction(a){return typeof a!="string"&&(a=a.format()),buildWrappedMethod(this,a)}getEvent(a){return typeof a!="string"&&(a=a.format()),buildWrappedEvent(this,a)}async queryTransaction(a){throw new Error("@TODO")}async queryFilter(a,d,et){d==null&&(d=0),et==null&&(et="latest");const{addr:nt,addrPromise:tt}=getInternal(this),bt=nt||await tt,{fragment:gt,topics:wt}=await getSubInfo(this,a),St={address:bt,topics:wt,fromBlock:d,toBlock:et},Mt=getProvider$1(this.runner);return assert$s(Mt,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await Mt.getLogs(St)).map(_t=>{let Tt=gt;if(Tt==null)try{Tt=this.interface.getEvent(_t.topics[0])}catch{}if(Tt)try{return new EventLog(_t,this.interface,Tt)}catch(Bt){return new UndecodedEventLog(_t,Bt)}return new Log(_t,Mt)})}async on(a,d){const et=await getSub(this,"on",a);return et.listeners.push({listener:d,once:!1}),et.start(),this}async once(a,d){const et=await getSub(this,"once",a);return et.listeners.push({listener:d,once:!0}),et.start(),this}async emit(a,...d){return await emit(this,a,d,null)}async listenerCount(a){if(a){const nt=await hasSub(this,a);return nt?nt.listeners.length:0}const{subs:d}=getInternal(this);let et=0;for(const{listeners:nt}of d.values())et+=nt.length;return et}async listeners(a){if(a){const nt=await hasSub(this,a);return nt?nt.listeners.map(({listener:tt})=>tt):[]}const{subs:d}=getInternal(this);let et=[];for(const{listeners:nt}of d.values())et=et.concat(nt.map(({listener:tt})=>tt));return et}async off(a,d){const et=await hasSub(this,a);if(!et)return this;if(d){const nt=et.listeners.map(({listener:tt})=>tt).indexOf(d);nt>=0&&et.listeners.splice(nt,1)}return(d==null||et.listeners.length===0)&&(et.stop(),getInternal(this).subs.delete(et.tag)),this}async removeAllListeners(a){if(a){const d=await hasSub(this,a);if(!d)return this;d.stop(),getInternal(this).subs.delete(d.tag)}else{const{subs:d}=getInternal(this);for(const{tag:et,stop:nt}of d.values())nt(),d.delete(et)}return this}async addListener(a,d){return await this.on(a,d)}async removeListener(a,d){return await this.off(a,d)}static buildClass(a){class d extends Qs{constructor(nt,tt=null){super(nt,a,tt)}}return d}static from(a,d,et){return et==null&&(et=null),new this(a,d,et)}};o1=internal;let BaseContract=Qs;function _ContractBase(){return BaseContract}class Contract extends _ContractBase(){}function getIpfsLink(c){return c.match(/^ipfs:\/\/ipfs\//i)?c=c.substring(12):c.match(/^ipfs:\/\//i)?c=c.substring(7):assertArgument(!1,"unsupported IPFS format","link",c),`https://gateway.ipfs.io/ipfs/${c}`}class MulticoinProviderPlugin{constructor(a){Gr(this,"name");defineProperties(this,{name:a})}connect(a){return this}supportsCoinType(a){return!1}async encodeAddress(a,d){throw new Error("unsupported coin")}async decodeAddress(a,d){throw new Error("unsupported coin")}}const matcherIpfs=new RegExp("^(ipfs)://(.*)$","i"),matchers=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),matcherIpfs,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];var Rn,Xn,kn,ns,ko,n1;const as=class as{constructor(a,d,et){Vr(this,kn);Gr(this,"provider");Gr(this,"address");Gr(this,"name");Vr(this,Rn,void 0);Vr(this,Xn,void 0);defineProperties(this,{provider:a,address:d,name:et}),yr(this,Rn,null),yr(this,Xn,new Contract(d,["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)"],a))}async supportsWildcard(){return or(this,Rn)==null&&yr(this,Rn,(async()=>{try{return await or(this,Xn).supportsInterface("0x9061b923")}catch(a){if(isError$1(a,"CALL_EXCEPTION"))return!1;throw yr(this,Rn,null),a}})()),await or(this,Rn)}async getAddress(a){if(a==null&&(a=60),a===60)try{const tt=await Wr(this,kn,ns).call(this,"addr(bytes32)");return tt==null||tt===ZeroAddress?null:tt}catch(tt){if(isError$1(tt,"CALL_EXCEPTION"))return null;throw tt}if(a>=0&&a<2147483648){let tt=a+2147483648;const bt=await Wr(this,kn,ns).call(this,"addr(bytes32,uint)",[tt]);if(isHexString(bt,20))return getAddress$1(bt)}let d=null;for(const tt of this.provider.plugins)if(tt instanceof MulticoinProviderPlugin&&tt.supportsCoinType(a)){d=tt;break}if(d==null)return null;const et=await Wr(this,kn,ns).call(this,"addr(bytes32,uint)",[a]);if(et==null||et==="0x")return null;const nt=await d.decodeAddress(a,et);if(nt!=null)return nt;assert$s(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${a})`,info:{coinType:a,data:et}})}async getText(a){const d=await Wr(this,kn,ns).call(this,"text(bytes32,string)",[a]);return d==null||d==="0x"?null:d}async getContentHash(){const a=await Wr(this,kn,ns).call(this,"contenthash(bytes32)");if(a==null||a==="0x")return null;const d=a.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(d){const nt=d[1]==="e3010170"?"ipfs":"ipns",tt=parseInt(d[4],16);if(d[5].length===tt*2)return`${nt}://${encodeBase58("0x"+d[2])}`}const et=a.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(et&&et[1].length===64)return`bzz://${et[1]}`;assert$s(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:a}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const a=[{type:"name",value:this.name}];try{const d=await this.getText("avatar");if(d==null)return a.push({type:"!avatar",value:""}),{url:null,linkage:a};a.push({type:"avatar",value:d});for(let et=0;et{if(!Array.isArray(a))throw new Error("not an array");return a.map(d=>c(d))}}function object(c,a){return d=>{const et={};for(const nt in c){let tt=nt;if(a&&nt in a&&!(tt in d)){for(const bt of a[nt])if(bt in d){tt=bt;break}}try{const bt=c[nt](d[tt]);bt!==void 0&&(et[nt]=bt)}catch(bt){const gt=bt instanceof Error?bt.message:"not-an-error";assert$s(!1,`invalid value for value.${nt} (${gt})`,"BAD_DATA",{value:d})}}return et}}function formatBoolean(c){switch(c){case!0:case"true":return!0;case!1:case"false":return!1}assertArgument(!1,`invalid boolean; ${JSON.stringify(c)}`,"value",c)}function formatData(c){return assertArgument(isHexString(c,!0),"invalid data","value",c),c}function formatHash(c){return assertArgument(isHexString(c,32),"invalid hash","value",c),c}const _formatLog=object({address:getAddress$1,blockHash:formatHash,blockNumber:getNumber,data:formatData,index:getNumber,removed:allowNull(formatBoolean,!1),topics:arrayOf(formatHash),transactionHash:formatHash,transactionIndex:getNumber},{index:["logIndex"]});function formatLog$1(c){return _formatLog(c)}const _formatBlock=object({hash:allowNull(formatHash),parentHash:formatHash,number:getNumber,timestamp:getNumber,nonce:allowNull(formatData),difficulty:getBigInt,gasLimit:getBigInt,gasUsed:getBigInt,miner:allowNull(getAddress$1),extraData:formatData,baseFeePerGas:allowNull(getBigInt)});function formatBlock$1(c){const a=_formatBlock(c);return a.transactions=c.transactions.map(d=>typeof d=="string"?d:formatTransactionResponse(d)),a}const _formatReceiptLog=object({transactionIndex:getNumber,blockNumber:getNumber,transactionHash:formatHash,address:getAddress$1,topics:arrayOf(formatHash),data:formatData,index:getNumber,blockHash:formatHash},{index:["logIndex"]});function formatReceiptLog(c){return _formatReceiptLog(c)}const _formatTransactionReceipt=object({to:allowNull(getAddress$1,null),from:allowNull(getAddress$1,null),contractAddress:allowNull(getAddress$1,null),index:getNumber,root:allowNull(hexlify),gasUsed:getBigInt,logsBloom:allowNull(formatData),blockHash:formatHash,hash:formatHash,logs:arrayOf(formatReceiptLog),blockNumber:getNumber,cumulativeGasUsed:getBigInt,effectiveGasPrice:allowNull(getBigInt),status:allowNull(getNumber),type:allowNull(getNumber,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function formatTransactionReceipt$1(c){return _formatTransactionReceipt(c)}function formatTransactionResponse(c){c.to&&getBigInt(c.to)===BN_0&&(c.to="0x0000000000000000000000000000000000000000");const a=object({hash:formatHash,type:d=>d==="0x"||d==null?0:getNumber(d),accessList:allowNull(accessListify,null),blockHash:allowNull(formatHash,null),blockNumber:allowNull(getNumber,null),transactionIndex:allowNull(getNumber,null),from:getAddress$1,gasPrice:allowNull(getBigInt),maxPriorityFeePerGas:allowNull(getBigInt),maxFeePerGas:allowNull(getBigInt),gasLimit:getBigInt,to:allowNull(getAddress$1,null),value:getBigInt,nonce:getNumber,data:formatData,creates:allowNull(getAddress$1,null),chainId:allowNull(getBigInt,null)},{data:["input"],gasLimit:["gas"]})(c);if(a.to==null&&a.creates==null&&(a.creates=getCreateAddress(a)),(c.type===1||c.type===2)&&c.accessList==null&&(a.accessList=[]),c.signature?a.signature=Signature.from(c.signature):a.signature=Signature.from(c),a.chainId==null){const d=a.signature.legacyChainId;d!=null&&(a.chainId=d)}return a.blockHash&&getBigInt(a.blockHash)===BN_0&&(a.blockHash=null),a}const EnsAddress="0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";class NetworkPlugin{constructor(a){Gr(this,"name");defineProperties(this,{name:a})}clone(){return new NetworkPlugin(this.name)}}class GasCostPlugin extends NetworkPlugin{constructor(d,et){d==null&&(d=0);super(`org.ethers.network.plugins.GasCost#${d||0}`);Gr(this,"effectiveBlock");Gr(this,"txBase");Gr(this,"txCreate");Gr(this,"txDataZero");Gr(this,"txDataNonzero");Gr(this,"txAccessListStorageKey");Gr(this,"txAccessListAddress");const nt={effectiveBlock:d};function tt(bt,gt){let wt=(et||{})[bt];wt==null&&(wt=gt),assertArgument(typeof wt=="number",`invalud value for ${bt}`,"costs",et),nt[bt]=wt}tt("txBase",21e3),tt("txCreate",32e3),tt("txDataZero",4),tt("txDataNonzero",16),tt("txAccessListStorageKey",1900),tt("txAccessListAddress",2400),defineProperties(this,nt)}clone(){return new GasCostPlugin(this.effectiveBlock,this)}}class EnsPlugin extends NetworkPlugin{constructor(d,et){super("org.ethers.plugins.network.Ens");Gr(this,"address");Gr(this,"targetNetwork");defineProperties(this,{address:d||EnsAddress,targetNetwork:et??1})}clone(){return new EnsPlugin(this.address,this.targetNetwork)}}var uo,ho;class FetchUrlFeeDataNetworkPlugin extends NetworkPlugin{constructor(d,et){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin");Vr(this,uo,void 0);Vr(this,ho,void 0);yr(this,uo,d),yr(this,ho,et)}get url(){return or(this,uo)}get processFunc(){return or(this,ho)}clone(){return this}}uo=new WeakMap,ho=new WeakMap;const Networks=new Map;var ks,Is,In;const ss=class ss{constructor(a,d){Vr(this,ks,void 0);Vr(this,Is,void 0);Vr(this,In,void 0);yr(this,ks,a),yr(this,Is,getBigInt(d)),yr(this,In,new Map)}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return or(this,ks)}set name(a){yr(this,ks,a)}get chainId(){return or(this,Is)}set chainId(a){yr(this,Is,getBigInt(a,"chainId"))}matches(a){if(a==null)return!1;if(typeof a=="string"){try{return this.chainId===getBigInt(a)}catch{}return this.name===a}if(typeof a=="number"||typeof a=="bigint"){try{return this.chainId===getBigInt(a)}catch{}return!1}if(typeof a=="object"){if(a.chainId!=null){try{return this.chainId===getBigInt(a.chainId)}catch{}return!1}return a.name!=null?this.name===a.name:!1}return!1}get plugins(){return Array.from(or(this,In).values())}attachPlugin(a){if(or(this,In).get(a.name))throw new Error(`cannot replace existing plugin: ${a.name} `);return or(this,In).set(a.name,a.clone()),this}getPlugin(a){return or(this,In).get(a)||null}getPlugins(a){return this.plugins.filter(d=>d.name.split("#")[0]===a)}clone(){const a=new ss(this.name,this.chainId);return this.plugins.forEach(d=>{a.attachPlugin(d.clone())}),a}computeIntrinsicGas(a){const d=this.getPlugin("org.ethers.plugins.network.GasCost")||new GasCostPlugin;let et=d.txBase;if(a.to==null&&(et+=d.txCreate),a.data)for(let nt=2;nt9){let nt=BigInt(et[1].substring(0,9));et[1].substring(9).match(/^0+$/)||nt++,et[1]=nt.toString()}return BigInt(et[0]+et[1])}function getGasStationPlugin(c){return new FetchUrlFeeDataNetworkPlugin(c,async(a,d,et)=>{et.setHeader("User-Agent","ethers");let nt;try{const[tt,bt]=await Promise.all([et.send(),a()]);nt=tt;const gt=nt.bodyJson.standard;return{gasPrice:bt.gasPrice,maxFeePerGas:parseUnits(gt.maxFee,9),maxPriorityFeePerGas:parseUnits(gt.maxPriorityFee,9)}}catch(tt){assert$s(!1,`error encountered with polygon gas station (${JSON.stringify(et.url)})`,"SERVER_ERROR",{request:et,response:nt,error:tt})}})}function getPriorityFeePlugin(c){return new FetchUrlFeeDataNetworkPlugin("data:",async(a,d,et)=>{const nt=await a();if(nt.maxFeePerGas==null||nt.maxPriorityFeePerGas==null)return nt;const tt=nt.maxFeePerGas-nt.maxPriorityFeePerGas;return{gasPrice:nt.gasPrice,maxFeePerGas:tt+c,maxPriorityFeePerGas:c}})}let injected=!1;function injectCommonNetworks(){if(injected)return;injected=!0;function c(a,d,et){const nt=function(){const tt=new Network(a,d);return et.ensNetwork!=null&&tt.attachPlugin(new EnsPlugin(null,et.ensNetwork)),tt.attachPlugin(new GasCostPlugin),(et.plugins||[]).forEach(bt=>{tt.attachPlugin(bt)}),tt};Network.register(a,nt),Network.register(d,nt),et.altNames&&et.altNames.forEach(tt=>{Network.register(tt,nt)})}c("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),c("ropsten",3,{ensNetwork:3}),c("rinkeby",4,{ensNetwork:4}),c("goerli",5,{ensNetwork:5}),c("kovan",42,{ensNetwork:42}),c("sepolia",11155111,{}),c("classic",61,{}),c("classicKotti",6,{}),c("arbitrum",42161,{ensNetwork:1}),c("arbitrum-goerli",421613,{}),c("bnb",56,{ensNetwork:1}),c("bnbt",97,{}),c("linea",59144,{ensNetwork:1}),c("linea-goerli",59140,{}),c("matic",137,{ensNetwork:1,plugins:[getGasStationPlugin("https://gasstation.polygon.technology/v2")]}),c("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[getGasStationPlugin("https://gasstation-testnet.polygon.technology/v2")]}),c("optimism",10,{ensNetwork:1,plugins:[getPriorityFeePlugin(BigInt("1000000"))]}),c("optimism-goerli",420,{}),c("xdai",100,{ensNetwork:1})}function copy$3(c){return JSON.parse(JSON.stringify(c))}var xn,q0,Nn,sn,Ns,Ao;class PollingBlockSubscriber{constructor(a){Vr(this,Ns);Vr(this,xn,void 0);Vr(this,q0,void 0);Vr(this,Nn,void 0);Vr(this,sn,void 0);yr(this,xn,a),yr(this,q0,null),yr(this,Nn,4e3),yr(this,sn,-2)}get pollingInterval(){return or(this,Nn)}set pollingInterval(a){yr(this,Nn,a)}start(){or(this,q0)||(yr(this,q0,or(this,xn)._setTimeout(Wr(this,Ns,Ao).bind(this),or(this,Nn))),Wr(this,Ns,Ao).call(this))}stop(){or(this,q0)&&(or(this,xn)._clearTimeout(or(this,q0)),yr(this,q0,null))}pause(a){this.stop(),a&&yr(this,sn,-2)}resume(){this.start()}}xn=new WeakMap,q0=new WeakMap,Nn=new WeakMap,sn=new WeakMap,Ns=new WeakSet,Ao=async function(){try{const a=await or(this,xn).getBlockNumber();if(or(this,sn)===-2){yr(this,sn,a);return}if(a!==or(this,sn)){for(let d=or(this,sn)+1;d<=a;d++){if(or(this,q0)==null)return;await or(this,xn).emit("block",d)}yr(this,sn,a)}}catch{}or(this,q0)!=null&&yr(this,q0,or(this,xn)._setTimeout(Wr(this,Ns,Ao).bind(this),or(this,Nn)))};var _i,na,On;class OnBlockSubscriber{constructor(a){Vr(this,_i,void 0);Vr(this,na,void 0);Vr(this,On,void 0);yr(this,_i,a),yr(this,On,!1),yr(this,na,d=>{this._poll(d,or(this,_i))})}async _poll(a,d){throw new Error("sub-classes must override this")}start(){or(this,On)||(yr(this,On,!0),or(this,na).call(this,-2),or(this,_i).on("block",or(this,na)))}stop(){or(this,On)&&(yr(this,On,!1),or(this,_i).off("block",or(this,na)))}pause(a){this.stop()}resume(){this.start()}}_i=new WeakMap,na=new WeakMap,On=new WeakMap;var Io;class PollingOrphanSubscriber extends OnBlockSubscriber{constructor(d,et){super(d);Vr(this,Io,void 0);yr(this,Io,copy$3(et))}async _poll(d,et){throw new Error("@TODO")}}Io=new WeakMap;var Os;class PollingTransactionSubscriber extends OnBlockSubscriber{constructor(d,et){super(d);Vr(this,Os,void 0);yr(this,Os,et)}async _poll(d,et){const nt=await et.getTransactionReceipt(or(this,Os));nt&&et.emit(or(this,Os),nt)}}Os=new WeakMap;var En,Ds,Ls,Dn,G0,No,i1;class PollingEventSubscriber{constructor(a,d){Vr(this,No);Vr(this,En,void 0);Vr(this,Ds,void 0);Vr(this,Ls,void 0);Vr(this,Dn,void 0);Vr(this,G0,void 0);yr(this,En,a),yr(this,Ds,copy$3(d)),yr(this,Ls,Wr(this,No,i1).bind(this)),yr(this,Dn,!1),yr(this,G0,-2)}start(){or(this,Dn)||(yr(this,Dn,!0),or(this,G0)===-2&&or(this,En).getBlockNumber().then(a=>{yr(this,G0,a)}),or(this,En).on("block",or(this,Ls)))}stop(){or(this,Dn)&&(yr(this,Dn,!1),or(this,En).off("block",or(this,Ls)))}pause(a){this.stop(),a&&yr(this,G0,-2)}resume(){this.start()}}En=new WeakMap,Ds=new WeakMap,Ls=new WeakMap,Dn=new WeakMap,G0=new WeakMap,No=new WeakSet,i1=async function(a){if(or(this,G0)===-2)return;const d=copy$3(or(this,Ds));d.fromBlock=or(this,G0)+1,d.toBlock=a;const et=await or(this,En).getLogs(d);if(et.length===0){or(this,G0){if(et==null)return"null";if(typeof et=="bigint")return`bigint:${et.toString()}`;if(typeof et=="string")return et.toLowerCase();if(typeof et=="object"&&!Array.isArray(et)){const nt=Object.keys(et);return nt.sort(),nt.reduce((tt,bt)=>(tt[bt]=et[bt],tt),{})}return et})}class UnmanagedSubscriber{constructor(a){Gr(this,"name");defineProperties(this,{name:a})}start(){}stop(){}pause(a){}resume(){}}function copy$2(c){return JSON.parse(JSON.stringify(c))}function concisify(c){return c=Array.from(new Set(c).values()),c.sort(),c}async function getSubscription(c,a){if(c==null)throw new Error("invalid event");if(Array.isArray(c)&&(c={topics:c}),typeof c=="string")switch(c){case"block":case"pending":case"debug":case"error":case"network":return{type:c,tag:c}}if(isHexString(c,32)){const d=c.toLowerCase();return{type:"transaction",tag:getTag("tx",{hash:d}),hash:d}}if(c.orphan){const d=c;return{type:"orphan",tag:getTag("orphan",d),filter:copy$2(d)}}if(c.address||c.topics){const d=c,et={topics:(d.topics||[]).map(nt=>nt==null?null:Array.isArray(nt)?concisify(nt.map(tt=>tt.toLowerCase())):nt.toLowerCase())};if(d.address){const nt=[],tt=[],bt=gt=>{isHexString(gt)?nt.push(gt):tt.push((async()=>{nt.push(await resolveAddress(gt,a))})())};Array.isArray(d.address)?d.address.forEach(bt):bt(d.address),tt.length&&await Promise.all(tt),et.address=concisify(nt.map(gt=>gt.toLowerCase()))}return{filter:et,tag:getTag("event",et),type:"event"}}assertArgument(!1,"unknown ProviderEvent","event",c)}function getTime(){return new Date().getTime()}const defaultOptions$1={cacheTimeout:250,pollingInterval:4e3};var B0,Ln,R0,Fs,F0,ba,Fn,$n,po,W0,zs,js,I0,z0,bo,qo,mo,Go,ga,Ys,go,Vo,xa,Zs,Us,_o;class AbstractProvider{constructor(a,d){Vr(this,I0);Vr(this,bo);Vr(this,mo);Vr(this,ga);Vr(this,go);Vr(this,xa);Vr(this,Us);Vr(this,B0,void 0);Vr(this,Ln,void 0);Vr(this,R0,void 0);Vr(this,Fs,void 0);Vr(this,F0,void 0);Vr(this,ba,void 0);Vr(this,Fn,void 0);Vr(this,$n,void 0);Vr(this,po,void 0);Vr(this,W0,void 0);Vr(this,zs,void 0);Vr(this,js,void 0);if(yr(this,js,Object.assign({},defaultOptions$1,d||{})),a==="any")yr(this,ba,!0),yr(this,F0,null);else if(a){const et=Network.from(a);yr(this,ba,!1),yr(this,F0,Promise.resolve(et)),setTimeout(()=>{this.emit("network",et,null)},0)}else yr(this,ba,!1),yr(this,F0,null);yr(this,$n,-1),yr(this,Fn,new Map),yr(this,B0,new Map),yr(this,Ln,new Map),yr(this,R0,null),yr(this,Fs,!1),yr(this,po,1),yr(this,W0,new Map),yr(this,zs,!1)}get pollingInterval(){return or(this,js).pollingInterval}get provider(){return this}get plugins(){return Array.from(or(this,Ln).values())}attachPlugin(a){if(or(this,Ln).get(a.name))throw new Error(`cannot replace existing plugin: ${a.name} `);return or(this,Ln).set(a.name,a.connect(this)),this}getPlugin(a){return or(this,Ln).get(a)||null}get disableCcipRead(){return or(this,zs)}set disableCcipRead(a){yr(this,zs,!!a)}async ccipReadFetch(a,d,et){if(this.disableCcipRead||et.length===0||a.to==null)return null;const nt=a.to.toLowerCase(),tt=d.toLowerCase(),bt=[];for(let gt=0;gt=500,`response not found during CCIP fetch: ${_t}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:a,info:{url:wt,errorMessage:_t}}),bt.push(_t)}assert$s(!1,`error encountered during CCIP fetch: ${bt.map(gt=>JSON.stringify(gt)).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:a,info:{urls:et,errorMessages:bt}})}_wrapBlock(a,d){return new Block(formatBlock$1(a),this)}_wrapLog(a,d){return new Log(formatLog$1(a),this)}_wrapTransactionReceipt(a,d){return new TransactionReceipt(formatTransactionReceipt$1(a),this)}_wrapTransactionResponse(a,d){return new TransactionResponse(formatTransactionResponse(a),this)}_detectNetwork(){assert$s(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(a){assert$s(!1,`unsupported method: ${a.method}`,"UNSUPPORTED_OPERATION",{operation:a.method,info:a})}async getBlockNumber(){const a=getNumber(await Wr(this,I0,z0).call(this,{method:"getBlockNumber"}),"%response");return or(this,$n)>=0&&yr(this,$n,a),a}_getAddress(a){return resolveAddress(a,this)}_getBlockTag(a){if(a==null)return"latest";switch(a){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return a}if(isHexString(a))return isHexString(a,32)?a:toQuantity(a);if(typeof a=="bigint"&&(a=getNumber(a,"blockTag")),typeof a=="number")return a>=0?toQuantity(a):or(this,$n)>=0?toQuantity(or(this,$n)+a):this.getBlockNumber().then(d=>toQuantity(d+a));assertArgument(!1,"invalid blockTag","blockTag",a)}_getFilter(a){const d=(a.topics||[]).map(wt=>wt==null?null:Array.isArray(wt)?concisify(wt.map(St=>St.toLowerCase())):wt.toLowerCase()),et="blockHash"in a?a.blockHash:void 0,nt=(wt,St,Mt)=>{let _t;switch(wt.length){case 0:break;case 1:_t=wt[0];break;default:wt.sort(),_t=wt}if(et&&(St!=null||Mt!=null))throw new Error("invalid filter");const Tt={};return _t&&(Tt.address=_t),d.length&&(Tt.topics=d),St&&(Tt.fromBlock=St),Mt&&(Tt.toBlock=Mt),et&&(Tt.blockHash=et),Tt};let tt=[];if(a.address)if(Array.isArray(a.address))for(const wt of a.address)tt.push(this._getAddress(wt));else tt.push(this._getAddress(a.address));let bt;"fromBlock"in a&&(bt=this._getBlockTag(a.fromBlock));let gt;return"toBlock"in a&&(gt=this._getBlockTag(a.toBlock)),tt.filter(wt=>typeof wt!="string").length||bt!=null&&typeof bt!="string"||gt!=null&&typeof gt!="string"?Promise.all([Promise.all(tt),bt,gt]).then(wt=>nt(wt[0],wt[1],wt[2])):nt(tt,bt,gt)}_getTransactionRequest(a){const d=copyRequest(a),et=[];if(["to","from"].forEach(nt=>{if(d[nt]==null)return;const tt=resolveAddress(d[nt]);isPromise(tt)?et.push(async function(){d[nt]=await tt}()):d[nt]=tt}),d.blockTag!=null){const nt=this._getBlockTag(d.blockTag);isPromise(nt)?et.push(async function(){d.blockTag=await nt}()):d.blockTag=nt}return et.length?async function(){return await Promise.all(et),d}():d}async getNetwork(){if(or(this,F0)==null){const nt=this._detectNetwork().then(tt=>(this.emit("network",tt,null),tt),tt=>{throw or(this,F0)===nt&&yr(this,F0,null),tt});return yr(this,F0,nt),(await nt).clone()}const a=or(this,F0),[d,et]=await Promise.all([a,this._detectNetwork()]);return d.chainId!==et.chainId&&(or(this,ba)?(this.emit("network",et,d),or(this,F0)===a&&yr(this,F0,Promise.resolve(et))):assert$s(!1,`network changed: ${d.chainId} => ${et.chainId} `,"NETWORK_ERROR",{event:"changed"})),d.clone()}async getFeeData(){const a=await this.getNetwork(),d=async()=>{const{_block:nt,gasPrice:tt}=await resolveProperties({_block:Wr(this,go,Vo).call(this,"latest",!1),gasPrice:(async()=>{try{const St=await Wr(this,I0,z0).call(this,{method:"getGasPrice"});return getBigInt(St,"%response")}catch{}return null})()});let bt=null,gt=null;const wt=this._wrapBlock(nt,a);return wt&&wt.baseFeePerGas&&(gt=BigInt("1000000000"),bt=wt.baseFeePerGas*BN_2+gt),new FeeData(tt,bt,gt)},et=a.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(et){const nt=new FetchRequest(et.url),tt=await et.processFunc(d,this,nt);return new FeeData(tt.gasPrice,tt.maxFeePerGas,tt.maxPriorityFeePerGas)}return await d()}async estimateGas(a){let d=this._getTransactionRequest(a);return isPromise(d)&&(d=await d),getBigInt(await Wr(this,I0,z0).call(this,{method:"estimateGas",transaction:d}),"%response")}async call(a){const{tx:d,blockTag:et}=await resolveProperties({tx:this._getTransactionRequest(a),blockTag:this._getBlockTag(a.blockTag)});return await Wr(this,mo,Go).call(this,Wr(this,bo,qo).call(this,d,et,a.enableCcipRead?0:-1))}async getBalance(a,d){return getBigInt(await Wr(this,ga,Ys).call(this,{method:"getBalance"},a,d),"%response")}async getTransactionCount(a,d){return getNumber(await Wr(this,ga,Ys).call(this,{method:"getTransactionCount"},a,d),"%response")}async getCode(a,d){return hexlify(await Wr(this,ga,Ys).call(this,{method:"getCode"},a,d))}async getStorage(a,d,et){const nt=getBigInt(d,"position");return hexlify(await Wr(this,ga,Ys).call(this,{method:"getStorage",position:nt},a,et))}async broadcastTransaction(a){const{blockNumber:d,hash:et,network:nt}=await resolveProperties({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:a}),network:this.getNetwork()}),tt=Transaction.from(a);if(tt.hash!==et)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(tt,nt).replaceableTransaction(d)}async getBlock(a,d){const{network:et,params:nt}=await resolveProperties({network:this.getNetwork(),params:Wr(this,go,Vo).call(this,a,!!d)});return nt==null?null:this._wrapBlock(nt,et)}async getTransaction(a){const{network:d,params:et}=await resolveProperties({network:this.getNetwork(),params:Wr(this,I0,z0).call(this,{method:"getTransaction",hash:a})});return et==null?null:this._wrapTransactionResponse(et,d)}async getTransactionReceipt(a){const{network:d,params:et}=await resolveProperties({network:this.getNetwork(),params:Wr(this,I0,z0).call(this,{method:"getTransactionReceipt",hash:a})});if(et==null)return null;if(et.gasPrice==null&&et.effectiveGasPrice==null){const nt=await Wr(this,I0,z0).call(this,{method:"getTransaction",hash:a});if(nt==null)throw new Error("report this; could not find tx or effectiveGasPrice");et.effectiveGasPrice=nt.gasPrice}return this._wrapTransactionReceipt(et,d)}async getTransactionResult(a){const{result:d}=await resolveProperties({network:this.getNetwork(),result:Wr(this,I0,z0).call(this,{method:"getTransactionResult",hash:a})});return d==null?null:hexlify(d)}async getLogs(a){let d=this._getFilter(a);isPromise(d)&&(d=await d);const{network:et,params:nt}=await resolveProperties({network:this.getNetwork(),params:Wr(this,I0,z0).call(this,{method:"getLogs",filter:d})});return nt.map(tt=>this._wrapLog(tt,et))}_getProvider(a){assert$s(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(a){return await EnsResolver.fromName(this,a)}async getAvatar(a){const d=await this.getResolver(a);return d?await d.getAvatar():null}async resolveName(a){const d=await this.getResolver(a);return d?await d.getAddress():null}async lookupAddress(a){a=getAddress$1(a);const d=namehash$1(a.substring(2).toLowerCase()+".addr.reverse");try{const et=await EnsResolver.getEnsAddress(this),tt=await new Contract(et,["function resolver(bytes32) view returns (address)"],this).resolver(d);if(tt==null||tt===ZeroAddress)return null;const gt=await new Contract(tt,["function name(bytes32) view returns (string)"],this).name(d);return await this.resolveName(gt)!==a?null:gt}catch(et){if(isError$1(et,"BAD_DATA")&&et.value==="0x"||isError$1(et,"CALL_EXCEPTION"))return null;throw et}return null}async waitForTransaction(a,d,et){const nt=d??1;return nt===0?this.getTransactionReceipt(a):new Promise(async(tt,bt)=>{let gt=null;const wt=async St=>{try{const Mt=await this.getTransactionReceipt(a);if(Mt!=null&&St-Mt.blockNumber+1>=nt){tt(Mt),gt&&(clearTimeout(gt),gt=null);return}}catch(Mt){console.log("EEE",Mt)}this.once("block",wt)};et!=null&&(gt=setTimeout(()=>{gt!=null&&(gt=null,this.off("block",wt),bt(makeError("timeout","TIMEOUT",{reason:"timeout"})))},et)),wt(await this.getBlockNumber())})}async waitForBlock(a){assert$s(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(a){const d=or(this,W0).get(a);d&&(d.timer&&clearTimeout(d.timer),or(this,W0).delete(a))}_setTimeout(a,d){d==null&&(d=0);const et=Ws(this,po)._++,nt=()=>{or(this,W0).delete(et),a()};if(this.paused)or(this,W0).set(et,{timer:null,func:nt,time:d});else{const tt=setTimeout(nt,d);or(this,W0).set(et,{timer:tt,func:nt,time:getTime()})}return et}_forEachSubscriber(a){for(const d of or(this,B0).values())a(d.subscriber)}_getSubscriber(a){switch(a.type){case"debug":case"error":case"network":return new UnmanagedSubscriber(a.type);case"block":{const d=new PollingBlockSubscriber(this);return d.pollingInterval=this.pollingInterval,d}case"event":return new PollingEventSubscriber(this,a.filter);case"transaction":return new PollingTransactionSubscriber(this,a.hash);case"orphan":return new PollingOrphanSubscriber(this,a.filter)}throw new Error(`unsupported event: ${a.type}`)}_recoverSubscriber(a,d){for(const et of or(this,B0).values())if(et.subscriber===a){et.started&&et.subscriber.stop(),et.subscriber=d,et.started&&d.start(),or(this,R0)!=null&&d.pause(or(this,R0));break}}async on(a,d){const et=await Wr(this,Us,_o).call(this,a);return et.listeners.push({listener:d,once:!1}),et.started||(et.subscriber.start(),et.started=!0,or(this,R0)!=null&&et.subscriber.pause(or(this,R0))),this}async once(a,d){const et=await Wr(this,Us,_o).call(this,a);return et.listeners.push({listener:d,once:!0}),et.started||(et.subscriber.start(),et.started=!0,or(this,R0)!=null&&et.subscriber.pause(or(this,R0))),this}async emit(a,...d){const et=await Wr(this,xa,Zs).call(this,a,d);if(!et||et.listeners.length===0)return!1;const nt=et.listeners.length;return et.listeners=et.listeners.filter(({listener:tt,once:bt})=>{const gt=new EventPayload(this,bt?null:tt,a);try{tt.call(this,...d,gt)}catch{}return!bt}),et.listeners.length===0&&(et.started&&et.subscriber.stop(),or(this,B0).delete(et.tag)),nt>0}async listenerCount(a){if(a){const et=await Wr(this,xa,Zs).call(this,a);return et?et.listeners.length:0}let d=0;for(const{listeners:et}of or(this,B0).values())d+=et.length;return d}async listeners(a){if(a){const et=await Wr(this,xa,Zs).call(this,a);return et?et.listeners.map(({listener:nt})=>nt):[]}let d=[];for(const{listeners:et}of or(this,B0).values())d=d.concat(et.map(({listener:nt})=>nt));return d}async off(a,d){const et=await Wr(this,xa,Zs).call(this,a);if(!et)return this;if(d){const nt=et.listeners.map(({listener:tt})=>tt).indexOf(d);nt>=0&&et.listeners.splice(nt,1)}return(!d||et.listeners.length===0)&&(et.started&&et.subscriber.stop(),or(this,B0).delete(et.tag)),this}async removeAllListeners(a){if(a){const{tag:d,started:et,subscriber:nt}=await Wr(this,Us,_o).call(this,a);et&&nt.stop(),or(this,B0).delete(d)}else for(const[d,{started:et,subscriber:nt}]of or(this,B0))et&&nt.stop(),or(this,B0).delete(d);return this}async addListener(a,d){return await this.on(a,d)}async removeListener(a,d){return this.off(a,d)}get destroyed(){return or(this,Fs)}destroy(){this.removeAllListeners();for(const a of or(this,W0).keys())this._clearTimeout(a);yr(this,Fs,!0)}get paused(){return or(this,R0)!=null}set paused(a){!!a!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(a){if(yr(this,$n,-1),or(this,R0)!=null){if(or(this,R0)==!!a)return;assert$s(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber(d=>d.pause(a)),yr(this,R0,!!a);for(const d of or(this,W0).values())d.timer&&clearTimeout(d.timer),d.time=getTime()-d.time}resume(){if(or(this,R0)!=null){this._forEachSubscriber(a=>a.resume()),yr(this,R0,null);for(const a of or(this,W0).values()){let d=a.time;d<0&&(d=0),a.time=getTime(),setTimeout(a.func,d)}}}}B0=new WeakMap,Ln=new WeakMap,R0=new WeakMap,Fs=new WeakMap,F0=new WeakMap,ba=new WeakMap,Fn=new WeakMap,$n=new WeakMap,po=new WeakMap,W0=new WeakMap,zs=new WeakMap,js=new WeakMap,I0=new WeakSet,z0=async function(a){const d=or(this,js).cacheTimeout;if(d<0)return await this._perform(a);const et=getTag(a.method,a);let nt=or(this,Fn).get(et);return nt||(nt=this._perform(a),or(this,Fn).set(et,nt),setTimeout(()=>{or(this,Fn).get(et)===nt&&or(this,Fn).delete(et)},d)),await nt},bo=new WeakSet,qo=async function(a,d,et){assert$s(et=0&&d==="latest"&&nt.to!=null&&dataSlice(tt.data,0,4)==="0x556f1830"){const bt=tt.data,gt=await resolveAddress(nt.to,this);let wt;try{wt=parseOffchainLookup(dataSlice(tt.data,4))}catch(_t){assert$s(!1,_t.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:nt,info:{data:bt}})}assert$s(wt.sender.toLowerCase()===gt.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:bt,reason:"OffchainLookup",transaction:nt,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:wt.errorArgs}});const St=await this.ccipReadFetch(nt,wt.calldata,wt.urls);assert$s(St!=null,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:nt,info:{data:tt.data,errorArgs:wt.errorArgs}});const Mt={to:gt,data:concat$2([wt.selector,encodeBytes$2([St,wt.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:Mt});try{const _t=await Wr(this,bo,qo).call(this,Mt,d,et+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},Mt),result:_t}),_t}catch(_t){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},Mt),error:_t}),_t}}throw tt}},mo=new WeakSet,Go=async function(a){const{value:d}=await resolveProperties({network:this.getNetwork(),value:a});return d},ga=new WeakSet,Ys=async function(a,d,et){let nt=this._getAddress(d),tt=this._getBlockTag(et);return(typeof nt!="string"||typeof tt!="string")&&([nt,tt]=await Promise.all([nt,tt])),await Wr(this,mo,Go).call(this,Wr(this,I0,z0).call(this,Object.assign(a,{address:nt,blockTag:tt})))},go=new WeakSet,Vo=async function(a,d){if(isHexString(a,32))return await Wr(this,I0,z0).call(this,{method:"getBlock",blockHash:a,includeTransactions:d});let et=this._getBlockTag(a);return typeof et!="string"&&(et=await et),await Wr(this,I0,z0).call(this,{method:"getBlock",blockTag:et,includeTransactions:d})},xa=new WeakSet,Zs=async function(a,d){let et=await getSubscription(a,this);return et.type==="event"&&d&&d.length>0&&d[0].removed===!0&&(et=await getSubscription({orphan:"drop-log",log:d[0]},this)),or(this,B0).get(et.tag)||null},Us=new WeakSet,_o=async function(a){const d=await getSubscription(a,this),et=d.tag;let nt=or(this,B0).get(et);return nt||(nt={subscriber:this._getSubscriber(d),tag:et,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},or(this,B0).set(et,nt)),nt};function _parseString(c,a){try{const d=_parseBytes(c,a);if(d)return toUtf8String(d)}catch{}return null}function _parseBytes(c,a){if(c==="0x")return null;try{const d=getNumber(dataSlice(c,a,a+32)),et=getNumber(dataSlice(c,d,d+32));return dataSlice(c,d+32,d+32+et)}catch{}return null}function numPad(c){const a=toBeArray(c);if(a.length>32)throw new Error("internal; should not happen");const d=new Uint8Array(32);return d.set(a,32-a.length),d}function bytesPad(c){if(c.length%32===0)return c;const a=new Uint8Array(Math.ceil(c.length/32)*32);return a.set(c),a}const empty=new Uint8Array([]);function encodeBytes$2(c){const a=[];let d=0;for(let et=0;et=5*32,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const d=dataSlice(c,0,32);assert$s(dataSlice(d,0,12)===dataSlice(zeros,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),a.sender=dataSlice(d,12);try{const et=[],nt=getNumber(dataSlice(c,32,64)),tt=getNumber(dataSlice(c,nt,nt+32)),bt=dataSlice(c,nt+32);for(let gt=0;gta[et]),a}function checkProvider(c,a){if(c.provider)return c.provider;assert$s(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:a})}async function populate(c,a){let d=copyRequest(a);if(d.to!=null&&(d.to=resolveAddress(d.to,c)),d.from!=null){const et=d.from;d.from=Promise.all([c.getAddress(),resolveAddress(et,c)]).then(([nt,tt])=>(assertArgument(nt.toLowerCase()===tt.toLowerCase(),"transaction from mismatch","tx.from",tt),nt))}else d.from=c.getAddress();return await resolveProperties(d)}class AbstractSigner{constructor(a){Gr(this,"provider");defineProperties(this,{provider:a||null})}async getNonce(a){return checkProvider(this,"getTransactionCount").getTransactionCount(await this.getAddress(),a)}async populateCall(a){return await populate(this,a)}async populateTransaction(a){const d=checkProvider(this,"populateTransaction"),et=await populate(this,a);et.nonce==null&&(et.nonce=await this.getNonce("pending")),et.gasLimit==null&&(et.gasLimit=await this.estimateGas(et));const nt=await this.provider.getNetwork();if(et.chainId!=null){const bt=getBigInt(et.chainId);assertArgument(bt===nt.chainId,"transaction chainId mismatch","tx.chainId",a.chainId)}else et.chainId=nt.chainId;const tt=et.maxFeePerGas!=null||et.maxPriorityFeePerGas!=null;if(et.gasPrice!=null&&(et.type===2||tt)?assertArgument(!1,"eip-1559 transaction do not support gasPrice","tx",a):(et.type===0||et.type===1)&&tt&&assertArgument(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",a),(et.type===2||et.type==null)&&et.maxFeePerGas!=null&&et.maxPriorityFeePerGas!=null)et.type=2;else if(et.type===0||et.type===1){const bt=await d.getFeeData();assert$s(bt.gasPrice!=null,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),et.gasPrice==null&&(et.gasPrice=bt.gasPrice)}else{const bt=await d.getFeeData();if(et.type==null)if(bt.maxFeePerGas!=null&&bt.maxPriorityFeePerGas!=null)if(et.type=2,et.gasPrice!=null){const gt=et.gasPrice;delete et.gasPrice,et.maxFeePerGas=gt,et.maxPriorityFeePerGas=gt}else et.maxFeePerGas==null&&(et.maxFeePerGas=bt.maxFeePerGas),et.maxPriorityFeePerGas==null&&(et.maxPriorityFeePerGas=bt.maxPriorityFeePerGas);else bt.gasPrice!=null?(assert$s(!tt,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),et.gasPrice==null&&(et.gasPrice=bt.gasPrice),et.type=0):assert$s(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else et.type===2&&(et.maxFeePerGas==null&&(et.maxFeePerGas=bt.maxFeePerGas),et.maxPriorityFeePerGas==null&&(et.maxPriorityFeePerGas=bt.maxPriorityFeePerGas))}return await resolveProperties(et)}async estimateGas(a){return checkProvider(this,"estimateGas").estimateGas(await this.populateCall(a))}async call(a){return checkProvider(this,"call").call(await this.populateCall(a))}async resolveName(a){return await checkProvider(this,"resolveName").resolveName(a)}async sendTransaction(a){const d=checkProvider(this,"sendTransaction"),et=await this.populateTransaction(a);delete et.from;const nt=Transaction.from(et);return await d.broadcastTransaction(await this.signTransaction(nt))}}function copy$1(c){return JSON.parse(JSON.stringify(c))}var N0,on,$a,zn,_a,Hs,yo,Wo,vo,Ko;class FilterIdSubscriber{constructor(a){Vr(this,yo);Vr(this,vo);Vr(this,N0,void 0);Vr(this,on,void 0);Vr(this,$a,void 0);Vr(this,zn,void 0);Vr(this,_a,void 0);Vr(this,Hs,void 0);yr(this,N0,a),yr(this,on,null),yr(this,$a,Wr(this,yo,Wo).bind(this)),yr(this,zn,!1),yr(this,_a,null),yr(this,Hs,!1)}_subscribe(a){throw new Error("subclasses must override this")}_emitResults(a,d){throw new Error("subclasses must override this")}_recover(a){throw new Error("subclasses must override this")}start(){or(this,zn)||(yr(this,zn,!0),Wr(this,yo,Wo).call(this,-2))}stop(){or(this,zn)&&(yr(this,zn,!1),yr(this,Hs,!0),Wr(this,vo,Ko).call(this),or(this,N0).off("block",or(this,$a)))}pause(a){a&&Wr(this,vo,Ko).call(this),or(this,N0).off("block",or(this,$a))}resume(){this.start()}}N0=new WeakMap,on=new WeakMap,$a=new WeakMap,zn=new WeakMap,_a=new WeakMap,Hs=new WeakMap,yo=new WeakSet,Wo=async function(a){try{or(this,on)==null&&yr(this,on,this._subscribe(or(this,N0)));let d=null;try{d=await or(this,on)}catch(tt){if(!isError$1(tt,"UNSUPPORTED_OPERATION")||tt.operation!=="eth_newFilter")throw tt}if(d==null){yr(this,on,null),or(this,N0)._recoverSubscriber(this,this._recover(or(this,N0)));return}const et=await or(this,N0).getNetwork();if(or(this,_a)||yr(this,_a,et),or(this,_a).chainId!==et.chainId)throw new Error("chaid changed");if(or(this,Hs))return;const nt=await or(this,N0).send("eth_getFilterChanges",[d]);await this._emitResults(or(this,N0),nt)}catch(d){console.log("@TODO",d)}or(this,N0).once("block",or(this,$a))},vo=new WeakSet,Ko=function(){const a=or(this,on);a&&(yr(this,on,null),a.then(d=>{or(this,N0).send("eth_uninstallFilter",[d])}))};var es;class FilterIdEventSubscriber extends FilterIdSubscriber{constructor(d,et){super(d);Vr(this,es,void 0);yr(this,es,copy$1(et))}_recover(d){return new PollingEventSubscriber(d,or(this,es))}async _subscribe(d){return await d.send("eth_newFilter",[or(this,es)])}async _emitResults(d,et){for(const nt of et)d.emit(or(this,es),d._wrapLog(nt,d._network))}}es=new WeakMap;class FilterIdPendingSubscriber extends FilterIdSubscriber{async _subscribe(a){return await a.send("eth_newPendingTransactionFilter",[])}async _emitResults(a,d){for(const et of d)a.emit("pending",et)}}const Primitive="bigint,boolean,function,number,string,symbol".split(/,/g);function deepCopy(c){if(c==null||Primitive.indexOf(typeof c)>=0||typeof c.getAddress=="function")return c;if(Array.isArray(c))return c.map(deepCopy);if(typeof c=="object")return Object.keys(c).reduce((a,d)=>(a[d]=c[d],a),{});throw new Error(`should not happen: ${c} (${typeof c})`)}function stall(c){return new Promise(a=>{setTimeout(a,c)})}function getLowerCase$1(c){return c&&c.toLowerCase()}function isPollable(c){return c&&typeof c.pollingInterval=="number"}const defaultOptions={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class JsonRpcSigner extends AbstractSigner{constructor(d,et){super(d);Gr(this,"address");et=getAddress$1(et),defineProperties(this,{address:et})}connect(d){assert$s(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(d){return await this.populateCall(d)}async sendUncheckedTransaction(d){const et=deepCopy(d),nt=[];if(et.from){const bt=et.from;nt.push((async()=>{const gt=await resolveAddress(bt,this.provider);assertArgument(gt!=null&>.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",d),et.from=gt})())}else et.from=this.address;if(et.gasLimit==null&&nt.push((async()=>{et.gasLimit=await this.provider.estimateGas({...et,from:this.address})})()),et.to!=null){const bt=et.to;nt.push((async()=>{et.to=await resolveAddress(bt,this.provider)})())}nt.length&&await Promise.all(nt);const tt=this.provider.getRpcTransaction(et);return this.provider.send("eth_sendTransaction",[tt])}async sendTransaction(d){const et=await this.provider.getBlockNumber(),nt=await this.sendUncheckedTransaction(d);return await new Promise((tt,bt)=>{const gt=[1e3,100],wt=async()=>{const St=await this.provider.getTransaction(nt);if(St!=null){tt(St.replaceableTransaction(et));return}this.provider._setTimeout(()=>{wt()},gt.pop()||4e3)};wt()})}async signTransaction(d){const et=deepCopy(d);if(et.from){const tt=await resolveAddress(et.from,this.provider);assertArgument(tt!=null&&tt.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",d),et.from=tt}else et.from=this.address;const nt=this.provider.getRpcTransaction(et);return await this.provider.send("eth_signTransaction",[nt])}async signMessage(d){const et=typeof d=="string"?toUtf8Bytes(d):d;return await this.provider.send("personal_sign",[hexlify(et),this.address.toLowerCase()])}async signTypedData(d,et,nt){const tt=deepCopy(nt),bt=await TypedDataEncoder.resolveNames(d,et,tt,async gt=>{const wt=await resolveAddress(gt);return assertArgument(wt!=null,"TypedData does not support null address","value",gt),wt});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(TypedDataEncoder.getPayload(bt.domain,et,bt.value))])}async unlock(d){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),d,null])}async _legacySignMessage(d){const et=typeof d=="string"?toUtf8Bytes(d):d;return await this.provider.send("eth_sign",[this.address.toLowerCase(),hexlify(et)])}}var ts,qs,Sn,fn,en,Mn,wo,Yo;class JsonRpcApiProvider extends AbstractProvider{constructor(d,et){super(d,et);Vr(this,wo);Vr(this,ts,void 0);Vr(this,qs,void 0);Vr(this,Sn,void 0);Vr(this,fn,void 0);Vr(this,en,void 0);Vr(this,Mn,void 0);yr(this,qs,1),yr(this,ts,Object.assign({},defaultOptions,et||{})),yr(this,Sn,[]),yr(this,fn,null),yr(this,Mn,null);{let tt=null;const bt=new Promise(gt=>{tt=gt});yr(this,en,{promise:bt,resolve:tt})}const nt=this._getOption("staticNetwork");nt&&(assertArgument(d==null||nt.matches(d),"staticNetwork MUST match network object","options",et),yr(this,Mn,nt))}_getOption(d){return or(this,ts)[d]}get _network(){return assert$s(or(this,Mn),"network is not available yet","NETWORK_ERROR"),or(this,Mn)}async _perform(d){if(d.method==="call"||d.method==="estimateGas"){let nt=d.transaction;if(nt&&nt.type!=null&&getBigInt(nt.type)&&nt.maxFeePerGas==null&&nt.maxPriorityFeePerGas==null){const tt=await this.getFeeData();tt.maxFeePerGas==null&&tt.maxPriorityFeePerGas==null&&(d=Object.assign({},d,{transaction:Object.assign({},nt,{type:void 0})}))}}const et=this.getRpcRequest(d);return et!=null?await this.send(et.method,et.args):super._perform(d)}async _detectNetwork(){const d=this._getOption("staticNetwork");if(d)return d;if(this.ready)return Network.from(getBigInt(await this.send("eth_chainId",[])));const et={id:Ws(this,qs)._++,method:"eth_chainId",params:[],jsonrpc:"2.0"};this.emit("debug",{action:"sendRpcPayload",payload:et});let nt;try{nt=(await this._send(et))[0]}catch(tt){throw this.emit("debug",{action:"receiveRpcError",error:tt}),tt}if(this.emit("debug",{action:"receiveRpcResult",result:nt}),"result"in nt)return Network.from(getBigInt(nt.result));throw this.getRpcError(et,nt)}_start(){or(this,en)==null||or(this,en).resolve==null||(or(this,en).resolve(),yr(this,en,null),(async()=>{for(;or(this,Mn)==null&&!this.destroyed;)try{yr(this,Mn,await this._detectNetwork())}catch(d){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",makeError("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:d}})),await stall(1e3)}Wr(this,wo,Yo).call(this)})())}async _waitUntilReady(){if(or(this,en)!=null)return await or(this,en).promise}_getSubscriber(d){return d.type==="pending"?new FilterIdPendingSubscriber(this):d.type==="event"?this._getOption("polling")?new PollingEventSubscriber(this,d.filter):new FilterIdEventSubscriber(this,d.filter):d.type==="orphan"&&d.filter.orphan==="drop-log"?new UnmanagedSubscriber("orphan"):super._getSubscriber(d)}get ready(){return or(this,en)==null}getRpcTransaction(d){const et={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(nt=>{if(d[nt]==null)return;let tt=nt;nt==="gasLimit"&&(tt="gas"),et[tt]=toQuantity(getBigInt(d[nt],`tx.${nt}`))}),["from","to","data"].forEach(nt=>{d[nt]!=null&&(et[nt]=hexlify(d[nt]))}),d.accessList&&(et.accessList=accessListify(d.accessList)),et}getRpcRequest(d){switch(d.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getBalance":return{method:"eth_getBalance",args:[getLowerCase$1(d.address),d.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[getLowerCase$1(d.address),d.blockTag]};case"getCode":return{method:"eth_getCode",args:[getLowerCase$1(d.address),d.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[getLowerCase$1(d.address),"0x"+d.position.toString(16),d.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[d.signedTransaction]};case"getBlock":if("blockTag"in d)return{method:"eth_getBlockByNumber",args:[d.blockTag,!!d.includeTransactions]};if("blockHash"in d)return{method:"eth_getBlockByHash",args:[d.blockHash,!!d.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[d.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[d.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(d.transaction),d.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(d.transaction)]};case"getLogs":return d.filter&&d.filter.address!=null&&(Array.isArray(d.filter.address)?d.filter.address=d.filter.address.map(getLowerCase$1):d.filter.address=getLowerCase$1(d.filter.address)),{method:"eth_getLogs",args:[d.filter]}}return null}getRpcError(d,et){const{method:nt}=d,{error:tt}=et;if(nt==="eth_estimateGas"&&tt.message){const wt=tt.message;if(!wt.match(/revert/i)&&wt.match(/insufficient funds/i))return makeError("insufficient funds","INSUFFICIENT_FUNDS",{transaction:d.params[0],info:{payload:d,error:tt}})}if(nt==="eth_call"||nt==="eth_estimateGas"){const wt=spelunkData(tt),St=AbiCoder.getBuiltinCallException(nt==="eth_call"?"call":"estimateGas",d.params[0],wt?wt.data:null);return St.info={error:tt,payload:d},St}const bt=JSON.stringify(spelunkMessage(tt));if(typeof tt.message=="string"&&tt.message.match(/user denied|ethers-user-denied/i))return makeError("user rejected action","ACTION_REJECTED",{action:{eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"}[nt]||"unknown",reason:"rejected",info:{payload:d,error:tt}});if(nt==="eth_sendRawTransaction"||nt==="eth_sendTransaction"){const wt=d.params[0];if(bt.match(/insufficient funds|base fee exceeds gas limit/i))return makeError("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:wt,info:{error:tt}});if(bt.match(/nonce/i)&&bt.match(/too low/i))return makeError("nonce has already been used","NONCE_EXPIRED",{transaction:wt,info:{error:tt}});if(bt.match(/replacement transaction/i)&&bt.match(/underpriced/i))return makeError("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:wt,info:{error:tt}});if(bt.match(/only replay-protected/i))return makeError("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:nt,info:{transaction:wt,info:{error:tt}}})}let gt=!!bt.match(/the method .* does not exist/i);return gt||tt&&tt.details&&tt.details.startsWith("Unauthorized method:")&&(gt=!0),gt?makeError("unsupported operation","UNSUPPORTED_OPERATION",{operation:d.method,info:{error:tt,payload:d}}):makeError("could not coalesce error","UNKNOWN_ERROR",{error:tt,payload:d})}send(d,et){if(this.destroyed)return Promise.reject(makeError("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:d}));const nt=Ws(this,qs)._++,tt=new Promise((bt,gt)=>{or(this,Sn).push({resolve:bt,reject:gt,payload:{method:d,params:et,id:nt,jsonrpc:"2.0"}})});return Wr(this,wo,Yo).call(this),tt}async getSigner(d){d==null&&(d=0);const et=this.send("eth_accounts",[]);if(typeof d=="number"){const tt=await et;if(d>=tt.length)throw new Error("no such account");return new JsonRpcSigner(this,tt[d])}const{accounts:nt}=await resolveProperties({network:this.getNetwork(),accounts:et});d=getAddress$1(d);for(const tt of nt)if(getAddress$1(tt)===d)return new JsonRpcSigner(this,d);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(et=>new JsonRpcSigner(this,et))}destroy(){or(this,fn)&&(clearTimeout(or(this,fn)),yr(this,fn,null));for(const{payload:d,reject:et}of or(this,Sn))et(makeError("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:d.method}));yr(this,Sn,[]),super.destroy()}}ts=new WeakMap,qs=new WeakMap,Sn=new WeakMap,fn=new WeakMap,en=new WeakMap,Mn=new WeakMap,wo=new WeakSet,Yo=function(){if(or(this,fn))return;const d=this._getOption("batchMaxCount")===1?0:this._getOption("batchStallTime");yr(this,fn,setTimeout(()=>{yr(this,fn,null);const et=or(this,Sn);for(yr(this,Sn,[]);et.length;){const nt=[et.shift()];for(;et.length&&nt.length!==or(this,ts).batchMaxCount;)if(nt.push(et.shift()),JSON.stringify(nt.map(bt=>bt.payload)).length>or(this,ts).batchMaxSize){et.unshift(nt.pop());break}(async()=>{const tt=nt.length===1?nt[0].payload:nt.map(bt=>bt.payload);this.emit("debug",{action:"sendRpcPayload",payload:tt});try{const bt=await this._send(tt);this.emit("debug",{action:"receiveRpcResult",result:bt});for(const{resolve:gt,reject:wt,payload:St}of nt){if(this.destroyed){wt(makeError("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:St.method}));continue}const Mt=bt.filter(_t=>_t.id===St.id)[0];if(Mt==null){const _t=makeError("missing response for request","BAD_DATA",{value:bt,info:{payload:St}});this.emit("error",_t),wt(_t);continue}if("error"in Mt){wt(this.getRpcError(St,Mt));continue}gt(Mt.result)}}catch(bt){this.emit("debug",{action:"receiveRpcError",error:bt});for(const{reject:gt}of nt)gt(bt)}})()}},d))};var jn;class JsonRpcApiPollingProvider extends JsonRpcApiProvider{constructor(d,et){super(d,et);Vr(this,jn,void 0);yr(this,jn,4e3)}_getSubscriber(d){const et=super._getSubscriber(d);return isPollable(et)&&(et.pollingInterval=or(this,jn)),et}get pollingInterval(){return or(this,jn)}set pollingInterval(d){if(!Number.isInteger(d)||d<0)throw new Error("invalid interval");yr(this,jn,d),this._forEachSubscriber(et=>{isPollable(et)&&(et.pollingInterval=or(this,jn))})}}jn=new WeakMap;var Gs;class JsonRpcProvider extends JsonRpcApiPollingProvider{constructor(d,et,nt){d==null&&(d="http://localhost:8545");super(et,nt);Vr(this,Gs,void 0);typeof d=="string"?yr(this,Gs,new FetchRequest(d)):yr(this,Gs,d.clone())}_getConnection(){return or(this,Gs).clone()}async send(d,et){return await this._start(),await super.send(d,et)}async _send(d){const et=this._getConnection();et.body=JSON.stringify(d),et.setHeader("content-type","application/json");const nt=await et.send();nt.assertOk();let tt=nt.bodyJson;return Array.isArray(tt)||(tt=[tt]),tt}}Gs=new WeakMap;function spelunkData(c){if(c==null)return null;if(typeof c.message=="string"&&c.message.match(/revert/i)&&isHexString(c.data))return{message:c.message,data:c.data};if(typeof c=="object"){for(const a in c){const d=spelunkData(c[a]);if(d)return d}return null}if(typeof c=="string")try{return spelunkData(JSON.parse(c))}catch{}return null}function _spelunkMessage(c,a){if(c!=null){if(typeof c.message=="string"&&a.push(c.message),typeof c=="object")for(const d in c)_spelunkMessage(c[d],a);if(typeof c=="string")try{return _spelunkMessage(JSON.parse(c),a)}catch{}}}function spelunkMessage(c){const a=[];return _spelunkMessage(c,a),a}var Vs;class BrowserProvider extends JsonRpcApiPollingProvider{constructor(d,et){super(et,{batchMaxCount:1});Vr(this,Vs,void 0);yr(this,Vs,async(nt,tt)=>{const bt={method:nt,params:tt};this.emit("debug",{action:"sendEip1193Request",payload:bt});try{const gt=await d.request(bt);return this.emit("debug",{action:"receiveEip1193Result",result:gt}),gt}catch(gt){const wt=new Error(gt.message);throw wt.code=gt.code,wt.data=gt.data,wt.payload=bt,this.emit("debug",{action:"receiveEip1193Error",error:wt}),wt}})}async send(d,et){return await this._start(),await super.send(d,et)}async _send(d){assertArgument(!Array.isArray(d),"EIP-1193 does not support batch request","payload",d);try{const et=await or(this,Vs).call(this,d.method,d.params||[]);return[{id:d.id,result:et}]}catch(et){return[{id:d.id,error:{code:et.code,data:et.data,message:et.message}}]}}getRpcError(d,et){switch(et=JSON.parse(JSON.stringify(et)),et.error.code||-1){case 4001:et.error.message=`ethers-user-denied: ${et.error.message}`;break;case 4200:et.error.message=`ethers-unsupported: ${et.error.message}`;break}return super.getRpcError(d,et)}async hasSigner(d){d==null&&(d=0);const et=await this.send("eth_accounts",[]);return typeof d=="number"?et.length>d:(d=d.toLowerCase(),et.filter(nt=>nt.toLowerCase()===d).length!==0)}async getSigner(d){if(d==null&&(d=0),!await this.hasSigner(d))try{await or(this,Vs).call(this,"eth_requestAccounts",[])}catch(et){const nt=et.payload;throw this.getRpcError(nt,{id:nt.id,error:et})}return await super.getSigner(d)}}Vs=new WeakMap;const getSDKVersion=()=>"9.0.0",dec2hex=c=>c.toString(16).padStart(2,"0"),generateId=c=>{const a=new Uint8Array((c||40)/2);return window.crypto.getRandomValues(a),Array.from(a,dec2hex).join("")},generateRequestId=()=>typeof window<"u"?generateId(10):new Date().getTime().toString(36);class MessageFormatter{}MessageFormatter.makeRequest=(c,a)=>({id:generateRequestId(),method:c,params:a,env:{sdkVersion:getSDKVersion()}});MessageFormatter.makeResponse=(c,a,d)=>({id:c,success:!0,version:d,data:a});MessageFormatter.makeErrorResponse=(c,a,d)=>({id:c,success:!1,error:a,version:d});var Methods;(function(c){c.sendTransactions="sendTransactions",c.rpcCall="rpcCall",c.getChainInfo="getChainInfo",c.getSafeInfo="getSafeInfo",c.getTxBySafeTxHash="getTxBySafeTxHash",c.getSafeBalances="getSafeBalances",c.signMessage="signMessage",c.signTypedMessage="signTypedMessage",c.getEnvironmentInfo="getEnvironmentInfo",c.getOffChainSignature="getOffChainSignature",c.requestAddressBook="requestAddressBook",c.wallet_getPermissions="wallet_getPermissions",c.wallet_requestPermissions="wallet_requestPermissions"})(Methods||(Methods={}));var RestrictedMethods;(function(c){c.requestAddressBook="requestAddressBook"})(RestrictedMethods||(RestrictedMethods={}));class PostMessageCommunicator{constructor(a=null,d=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:et,data:nt,source:tt})=>{const bt=!nt,gt=!this.isServer&&tt===window.parent,wt=typeof nt.version<"u"&&parseInt(nt.version.split(".")[0]),St=typeof wt=="number"&&wt>=1;let Mt=!0;return Array.isArray(this.allowedOrigins)&&(Mt=this.allowedOrigins.find(_t=>_t.test(et))!==void 0),!bt&>&&St&&Mt},this.logIncomingMessage=et=>{console.info(`Safe Apps SDK v1: A message was received from origin ${et.origin}. `,et.data)},this.onParentMessage=et=>{this.isValidMessage(et)&&(this.debugMode&&this.logIncomingMessage(et),this.handleIncomingMessage(et.data))},this.handleIncomingMessage=et=>{const{id:nt}=et,tt=this.callbacks.get(nt);tt&&(tt(et),this.callbacks.delete(nt))},this.send=(et,nt)=>{const tt=MessageFormatter.makeRequest(et,nt);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(tt,"*"),new Promise((bt,gt)=>{this.callbacks.set(tt.id,wt=>{if(!wt.success){gt(new Error(wt.error));return}bt(wt)})})},this.allowedOrigins=a,this.debugMode=d,this.isServer||window.addEventListener("message",this.onParentMessage)}}const isObjectEIP712TypedData=c=>typeof c=="object"&&c!=null&&"domain"in c&&"types"in c&&"message"in c;var dist$1={},endpoint={},utils$1={},__awaiter=commonjsGlobal&&commonjsGlobal.__awaiter||function(c,a,d,et){function nt(tt){return tt instanceof d?tt:new d(function(bt){bt(tt)})}return new(d||(d=Promise))(function(tt,bt){function gt(Mt){try{St(et.next(Mt))}catch(_t){bt(_t)}}function wt(Mt){try{St(et.throw(Mt))}catch(_t){bt(_t)}}function St(Mt){Mt.done?tt(Mt.value):nt(Mt.value).then(gt,wt)}St((et=et.apply(c,a||[])).next())})};Object.defineProperty(utils$1,"__esModule",{value:!0});utils$1.getData=utils$1.fetchData=utils$1.stringifyQuery=utils$1.insertParams=void 0;const isErrorResponse=c=>typeof c=="object"&&c!==null&&"code"in c&&"message"in c;function replaceParam(c,a,d){return c.replace(new RegExp(`\\{${a}\\}`,"g"),d)}function insertParams(c,a){return a?Object.keys(a).reduce((d,et)=>replaceParam(d,et,String(a[et])),c):c}utils$1.insertParams=insertParams;function stringifyQuery(c){if(!c)return"";const a=new URLSearchParams;Object.keys(c).forEach(et=>{c[et]!=null&&a.append(et,String(c[et]))});const d=a.toString();return d?`?${d}`:""}utils$1.stringifyQuery=stringifyQuery;function parseResponse(c){return __awaiter(this,void 0,void 0,function*(){let a;try{a=c.status===204?{}:yield c.json()}catch{if(c.headers&&c.headers.get("content-length")!=="0")throw new Error(`Invalid response content: ${c.statusText}`)}if(!c.ok){const d=isErrorResponse(a)?`${a.code}: ${a.message}`:c.statusText;throw new Error(d)}return a})}function fetchData(c,a,d,et){return __awaiter(this,void 0,void 0,function*(){const nt=Object.assign({"Content-Type":"application/json"},et),tt={method:a??"POST",headers:nt};d!=null&&(tt.body=typeof d=="string"?d:JSON.stringify(d));const bt=yield fetch(c,tt);return parseResponse(bt)})}utils$1.fetchData=fetchData;function getData(c,a){return __awaiter(this,void 0,void 0,function*(){const d={method:"GET"};a&&(d.headers=Object.assign(Object.assign({},a),{"Content-Type":"application/json"}));const et=yield fetch(c,d);return parseResponse(et)})}utils$1.getData=getData;Object.defineProperty(endpoint,"__esModule",{value:!0});endpoint.getEndpoint=endpoint.deleteEndpoint=endpoint.putEndpoint=endpoint.postEndpoint=void 0;const utils_1$1=utils$1;function makeUrl(c,a,d,et){const nt=(0,utils_1$1.insertParams)(a,d),tt=(0,utils_1$1.stringifyQuery)(et);return`${c}${nt}${tt}`}function postEndpoint(c,a,d){const et=makeUrl(c,a,d==null?void 0:d.path,d==null?void 0:d.query);return(0,utils_1$1.fetchData)(et,"POST",d==null?void 0:d.body,d==null?void 0:d.headers)}endpoint.postEndpoint=postEndpoint;function putEndpoint(c,a,d){const et=makeUrl(c,a,d==null?void 0:d.path,d==null?void 0:d.query);return(0,utils_1$1.fetchData)(et,"PUT",d==null?void 0:d.body,d==null?void 0:d.headers)}endpoint.putEndpoint=putEndpoint;function deleteEndpoint(c,a,d){const et=makeUrl(c,a,d==null?void 0:d.path,d==null?void 0:d.query);return(0,utils_1$1.fetchData)(et,"DELETE",d==null?void 0:d.body,d==null?void 0:d.headers)}endpoint.deleteEndpoint=deleteEndpoint;function getEndpoint(c,a,d,et){if(et)return(0,utils_1$1.getData)(et);const nt=makeUrl(c,a,d==null?void 0:d.path,d==null?void 0:d.query);return(0,utils_1$1.getData)(nt,d==null?void 0:d.headers)}endpoint.getEndpoint=getEndpoint;var config={};Object.defineProperty(config,"__esModule",{value:!0});config.DEFAULT_BASE_URL=void 0;config.DEFAULT_BASE_URL="https://safe-client.safe.global";var safeInfo={};(function(c){Object.defineProperty(c,"__esModule",{value:!0}),c.ImplementationVersionState=void 0,function(a){a.UP_TO_DATE="UP_TO_DATE",a.OUTDATED="OUTDATED",a.UNKNOWN="UNKNOWN"}(c.ImplementationVersionState||(c.ImplementationVersionState={}))})(safeInfo);var safeApps={};(function(c){Object.defineProperty(c,"__esModule",{value:!0}),c.SafeAppSocialPlatforms=c.SafeAppFeatures=c.SafeAppAccessPolicyTypes=void 0,function(a){a.NoRestrictions="NO_RESTRICTIONS",a.DomainAllowlist="DOMAIN_ALLOWLIST"}(c.SafeAppAccessPolicyTypes||(c.SafeAppAccessPolicyTypes={})),function(a){a.BATCHED_TRANSACTIONS="BATCHED_TRANSACTIONS"}(c.SafeAppFeatures||(c.SafeAppFeatures={})),function(a){a.TWITTER="TWITTER",a.GITHUB="GITHUB",a.DISCORD="DISCORD"}(c.SafeAppSocialPlatforms||(c.SafeAppSocialPlatforms={}))})(safeApps);var transactions={};(function(c){Object.defineProperty(c,"__esModule",{value:!0}),c.LabelValue=c.DetailedExecutionInfoType=c.TransactionListItemType=c.ConflictType=c.TransactionInfoType=c.SettingsInfoType=c.TransactionTokenType=c.TransferDirection=c.TransactionStatus=c.Operation=void 0,function(a){a[a.CALL=0]="CALL",a[a.DELEGATE=1]="DELEGATE"}(c.Operation||(c.Operation={})),function(a){a.AWAITING_CONFIRMATIONS="AWAITING_CONFIRMATIONS",a.AWAITING_EXECUTION="AWAITING_EXECUTION",a.CANCELLED="CANCELLED",a.FAILED="FAILED",a.SUCCESS="SUCCESS"}(c.TransactionStatus||(c.TransactionStatus={})),function(a){a.INCOMING="INCOMING",a.OUTGOING="OUTGOING",a.UNKNOWN="UNKNOWN"}(c.TransferDirection||(c.TransferDirection={})),function(a){a.ERC20="ERC20",a.ERC721="ERC721",a.NATIVE_COIN="NATIVE_COIN"}(c.TransactionTokenType||(c.TransactionTokenType={})),function(a){a.SET_FALLBACK_HANDLER="SET_FALLBACK_HANDLER",a.ADD_OWNER="ADD_OWNER",a.REMOVE_OWNER="REMOVE_OWNER",a.SWAP_OWNER="SWAP_OWNER",a.CHANGE_THRESHOLD="CHANGE_THRESHOLD",a.CHANGE_IMPLEMENTATION="CHANGE_IMPLEMENTATION",a.ENABLE_MODULE="ENABLE_MODULE",a.DISABLE_MODULE="DISABLE_MODULE",a.SET_GUARD="SET_GUARD",a.DELETE_GUARD="DELETE_GUARD"}(c.SettingsInfoType||(c.SettingsInfoType={})),function(a){a.TRANSFER="Transfer",a.SETTINGS_CHANGE="SettingsChange",a.CUSTOM="Custom",a.CREATION="Creation",a.SWAP_ORDER="SwapOrder"}(c.TransactionInfoType||(c.TransactionInfoType={})),function(a){a.NONE="None",a.HAS_NEXT="HasNext",a.END="End"}(c.ConflictType||(c.ConflictType={})),function(a){a.TRANSACTION="TRANSACTION",a.LABEL="LABEL",a.CONFLICT_HEADER="CONFLICT_HEADER",a.DATE_LABEL="DATE_LABEL"}(c.TransactionListItemType||(c.TransactionListItemType={})),function(a){a.MULTISIG="MULTISIG",a.MODULE="MODULE"}(c.DetailedExecutionInfoType||(c.DetailedExecutionInfoType={})),function(a){a.Queued="Queued",a.Next="Next"}(c.LabelValue||(c.LabelValue={}))})(transactions);var chains={};(function(c){Object.defineProperty(c,"__esModule",{value:!0}),c.FEATURES=c.GAS_PRICE_TYPE=c.RPC_AUTHENTICATION=void 0,function(a){a.API_KEY_PATH="API_KEY_PATH",a.NO_AUTHENTICATION="NO_AUTHENTICATION",a.UNKNOWN="UNKNOWN"}(c.RPC_AUTHENTICATION||(c.RPC_AUTHENTICATION={})),function(a){a.ORACLE="ORACLE",a.FIXED="FIXED",a.FIXED_1559="FIXED1559",a.UNKNOWN="UNKNOWN"}(c.GAS_PRICE_TYPE||(c.GAS_PRICE_TYPE={})),function(a){a.ERC721="ERC721",a.SAFE_APPS="SAFE_APPS",a.CONTRACT_INTERACTION="CONTRACT_INTERACTION",a.DOMAIN_LOOKUP="DOMAIN_LOOKUP",a.SPENDING_LIMIT="SPENDING_LIMIT",a.EIP1559="EIP1559",a.SAFE_TX_GAS_OPTIONAL="SAFE_TX_GAS_OPTIONAL",a.TX_SIMULATION="TX_SIMULATION",a.EIP1271="EIP1271"}(c.FEATURES||(c.FEATURES={}))})(chains);var common={};(function(c){Object.defineProperty(c,"__esModule",{value:!0}),c.TokenType=void 0,function(a){a.ERC20="ERC20",a.ERC721="ERC721",a.NATIVE_TOKEN="NATIVE_TOKEN"}(c.TokenType||(c.TokenType={}))})(common);var masterCopies={};Object.defineProperty(masterCopies,"__esModule",{value:!0});var decodedData={};Object.defineProperty(decodedData,"__esModule",{value:!0});var safeMessages={};(function(c){Object.defineProperty(c,"__esModule",{value:!0}),c.SafeMessageStatus=c.SafeMessageListItemType=void 0,function(a){a.DATE_LABEL="DATE_LABEL",a.MESSAGE="MESSAGE"}(c.SafeMessageListItemType||(c.SafeMessageListItemType={})),function(a){a.NEEDS_CONFIRMATION="NEEDS_CONFIRMATION",a.CONFIRMED="CONFIRMED"}(c.SafeMessageStatus||(c.SafeMessageStatus={}))})(safeMessages);var notifications={};(function(c){Object.defineProperty(c,"__esModule",{value:!0}),c.DeviceType=void 0,function(a){a.ANDROID="ANDROID",a.IOS="IOS",a.WEB="WEB"}(c.DeviceType||(c.DeviceType={}))})(notifications);var relay={};Object.defineProperty(relay,"__esModule",{value:!0});(function(c){var a=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(cr,ur,Pr,br){br===void 0&&(br=Pr);var dr=Object.getOwnPropertyDescriptor(ur,Pr);(!dr||("get"in dr?!ur.__esModule:dr.writable||dr.configurable))&&(dr={enumerable:!0,get:function(){return ur[Pr]}}),Object.defineProperty(cr,br,dr)}:function(cr,ur,Pr,br){br===void 0&&(br=Pr),cr[br]=ur[Pr]}),d=commonjsGlobal&&commonjsGlobal.__exportStar||function(cr,ur){for(var Pr in cr)Pr!=="default"&&!Object.prototype.hasOwnProperty.call(ur,Pr)&&a(ur,cr,Pr)};Object.defineProperty(c,"__esModule",{value:!0}),c.getContract=c.getSafeOverviews=c.unsubscribeAll=c.unsubscribeSingle=c.registerRecoveryModule=c.deleteRegisteredEmail=c.getRegisteredEmail=c.verifyEmail=c.resendEmailVerificationCode=c.changeEmail=c.registerEmail=c.unregisterDevice=c.unregisterSafe=c.registerDevice=c.getDelegates=c.confirmSafeMessage=c.proposeSafeMessage=c.getSafeMessage=c.getSafeMessages=c.getDecodedData=c.getMasterCopies=c.getSafeApps=c.getChainConfig=c.getChainsConfig=c.getConfirmationView=c.proposeTransaction=c.getNonces=c.postSafeGasEstimation=c.deleteTransaction=c.getTransactionDetails=c.getTransactionQueue=c.getTransactionHistory=c.getCollectiblesPage=c.getCollectibles=c.getAllOwnedSafes=c.getOwnedSafes=c.getFiatCurrencies=c.getBalances=c.getMultisigTransactions=c.getModuleTransactions=c.getIncomingTransfers=c.getSafeInfo=c.getRelayCount=c.relayTransaction=c.setBaseUrl=void 0;const et=endpoint,nt=config;d(safeInfo,c),d(safeApps,c),d(transactions,c),d(chains,c),d(common,c),d(masterCopies,c),d(decodedData,c),d(safeMessages,c),d(notifications,c),d(relay,c);let tt=nt.DEFAULT_BASE_URL;const bt=cr=>{tt=cr};c.setBaseUrl=bt;function gt(cr,ur){return(0,et.postEndpoint)(tt,"/v1/chains/{chainId}/relay",{path:{chainId:cr},body:ur})}c.relayTransaction=gt;function wt(cr,ur){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/relay/{address}",{path:{chainId:cr,address:ur}})}c.getRelayCount=wt;function St(cr,ur){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/safes/{address}",{path:{chainId:cr,address:ur}})}c.getSafeInfo=St;function Mt(cr,ur,Pr,br){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/safes/{address}/incoming-transfers/",{path:{chainId:cr,address:ur},query:Pr},br)}c.getIncomingTransfers=Mt;function _t(cr,ur,Pr,br){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/safes/{address}/module-transactions/",{path:{chainId:cr,address:ur},query:Pr},br)}c.getModuleTransactions=_t;function Tt(cr,ur,Pr,br){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/safes/{address}/multisig-transactions/",{path:{chainId:cr,address:ur},query:Pr},br)}c.getMultisigTransactions=Tt;function Bt(cr,ur,Pr="usd",br={}){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/safes/{address}/balances/{currency}",{path:{chainId:cr,address:ur,currency:Pr},query:br})}c.getBalances=Bt;function kt(){return(0,et.getEndpoint)(tt,"/v1/balances/supported-fiat-codes")}c.getFiatCurrencies=kt;function It(cr,ur){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/owners/{address}/safes",{path:{chainId:cr,address:ur}})}c.getOwnedSafes=It;function Lt(cr){return(0,et.getEndpoint)(tt,"/v1/owners/{address}/safes",{path:{address:cr}})}c.getAllOwnedSafes=Lt;function Ot(cr,ur,Pr={}){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:cr,address:ur},query:Pr})}c.getCollectibles=Ot;function Nt(cr,ur,Pr={},br){return(0,et.getEndpoint)(tt,"/v2/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:cr,address:ur},query:Pr},br)}c.getCollectiblesPage=Nt;function Ft(cr,ur,Pr={},br){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/safes/{safe_address}/transactions/history",{path:{chainId:cr,safe_address:ur},query:Pr},br)}c.getTransactionHistory=Ft;function zt(cr,ur,Pr={},br){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/safes/{safe_address}/transactions/queued",{path:{chainId:cr,safe_address:ur},query:Pr},br)}c.getTransactionQueue=zt;function Vt(cr,ur){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/transactions/{transactionId}",{path:{chainId:cr,transactionId:ur}})}c.getTransactionDetails=Vt;function Jt(cr,ur,Pr){return(0,et.deleteEndpoint)(tt,"/v1/chains/{chainId}/transactions/{safeTxHash}",{path:{chainId:cr,safeTxHash:ur},body:{signature:Pr}})}c.deleteTransaction=Jt;function ir(cr,ur,Pr){return(0,et.postEndpoint)(tt,"/v2/chains/{chainId}/safes/{safe_address}/multisig-transactions/estimations",{path:{chainId:cr,safe_address:ur},body:Pr})}c.postSafeGasEstimation=ir;function rr(cr,ur){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/safes/{safe_address}/nonces",{path:{chainId:cr,safe_address:ur}})}c.getNonces=rr;function er(cr,ur,Pr){return(0,et.postEndpoint)(tt,"/v1/chains/{chainId}/transactions/{safe_address}/propose",{path:{chainId:cr,safe_address:ur},body:Pr})}c.proposeTransaction=er;function lr(cr,ur,Pr,br){return(0,et.postEndpoint)(tt,"/v1/chains/{chainId}/safes/{safe_address}/views/transaction-confirmation",{path:{chainId:cr,safe_address:ur},body:{data:Pr,to:br}})}c.getConfirmationView=lr;function Ct(cr){return(0,et.getEndpoint)(tt,"/v1/chains",{query:cr})}c.getChainsConfig=Ct;function dt(cr){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}",{path:{chainId:cr}})}c.getChainConfig=dt;function mt(cr,ur={}){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/safe-apps",{path:{chainId:cr},query:ur})}c.getSafeApps=mt;function yt(cr){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/about/master-copies",{path:{chainId:cr}})}c.getMasterCopies=yt;function vt(cr,ur,Pr){return(0,et.postEndpoint)(tt,"/v1/chains/{chainId}/data-decoder",{path:{chainId:cr},body:{data:ur,to:Pr}})}c.getDecodedData=vt;function Et(cr,ur,Pr){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:cr,safe_address:ur},query:{}},Pr)}c.getSafeMessages=Et;function At(cr,ur){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/messages/{message_hash}",{path:{chainId:cr,message_hash:ur}})}c.getSafeMessage=At;function Pt(cr,ur,Pr){return(0,et.postEndpoint)(tt,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:cr,safe_address:ur},body:Pr})}c.proposeSafeMessage=Pt;function xt(cr,ur,Pr){return(0,et.postEndpoint)(tt,"/v1/chains/{chainId}/messages/{message_hash}/signatures",{path:{chainId:cr,message_hash:ur},body:Pr})}c.confirmSafeMessage=xt;function ht(cr,ur={}){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/delegates",{path:{chainId:cr},query:ur})}c.getDelegates=ht;function $t(cr){return(0,et.postEndpoint)(tt,"/v1/register/notifications",{body:cr})}c.registerDevice=$t;function Rt(cr,ur,Pr){return(0,et.deleteEndpoint)(tt,"/v1/chains/{chainId}/notifications/devices/{uuid}/safes/{safe_address}",{path:{chainId:cr,safe_address:ur,uuid:Pr}})}c.unregisterSafe=Rt;function Dt(cr,ur){return(0,et.deleteEndpoint)(tt,"/v1/chains/{chainId}/notifications/devices/{uuid}",{path:{chainId:cr,uuid:ur}})}c.unregisterDevice=Dt;function Ht(cr,ur,Pr,br){return(0,et.postEndpoint)(tt,"/v1/chains/{chainId}/safes/{safe_address}/emails",{path:{chainId:cr,safe_address:ur},body:Pr,headers:br})}c.registerEmail=Ht;function tr(cr,ur,Pr,br,dr){return(0,et.putEndpoint)(tt,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}",{path:{chainId:cr,safe_address:ur,signer:Pr},body:br,headers:dr})}c.changeEmail=tr;function Xt(cr,ur,Pr){return(0,et.postEndpoint)(tt,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}/verify-resend",{path:{chainId:cr,safe_address:ur,signer:Pr},body:""})}c.resendEmailVerificationCode=Xt;function Ut(cr,ur,Pr,br){return(0,et.putEndpoint)(tt,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}/verify",{path:{chainId:cr,safe_address:ur,signer:Pr},body:br})}c.verifyEmail=Ut;function qt(cr,ur,Pr,br){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}",{path:{chainId:cr,safe_address:ur,signer:Pr},headers:br})}c.getRegisteredEmail=qt;function Gt(cr,ur,Pr,br){return(0,et.deleteEndpoint)(tt,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}",{path:{chainId:cr,safe_address:ur,signer:Pr},headers:br})}c.deleteRegisteredEmail=Gt;function Zt(cr,ur,Pr){return(0,et.postEndpoint)(tt,"/v1/chains/{chainId}/safes/{safe_address}/recovery",{path:{chainId:cr,safe_address:ur},body:Pr})}c.registerRecoveryModule=Zt;function Yt(cr){return(0,et.deleteEndpoint)(tt,"/v1/subscriptions",{query:cr})}c.unsubscribeSingle=Yt;function Kt(cr){return(0,et.deleteEndpoint)(tt,"/v1/subscriptions/all",{query:cr})}c.unsubscribeAll=Kt;function ar(cr,ur){return(0,et.getEndpoint)(tt,"/v1/safes",{query:Object.assign(Object.assign({},ur),{safes:cr.join(",")})})}c.getSafeOverviews=ar;function gr(cr,ur){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/contracts/{contractAddress}",{path:{chainId:cr,contractAddress:ur}})}c.getContract=gr})(dist$1);class TXs{constructor(a){this.communicator=a}async getBySafeTxHash(a){if(!a)throw new Error("Invalid safeTxHash");return(await this.communicator.send(Methods.getTxBySafeTxHash,{safeTxHash:a})).data}async signMessage(a){const d={message:a};return(await this.communicator.send(Methods.signMessage,d)).data}async signTypedMessage(a){if(!isObjectEIP712TypedData(a))throw new Error("Invalid typed data");return(await this.communicator.send(Methods.signTypedMessage,{typedData:a})).data}async send({txs:a,params:d}){if(!a||!a.length)throw new Error("No transactions were passed");const et={txs:a,params:d};return(await this.communicator.send(Methods.sendTransactions,et)).data}}const RPC_CALLS={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"},inputFormatters={defaultBlockParam:(c="latest")=>c,returnFullTxObjectParam:(c=!1)=>c,blockNumberToHex:c=>Number.isInteger(c)?`0x${c.toString(16)}`:c};class Eth{constructor(a){this.communicator=a,this.call=this.buildRequest({call:RPC_CALLS.eth_call,formatters:[null,inputFormatters.defaultBlockParam]}),this.getBalance=this.buildRequest({call:RPC_CALLS.eth_getBalance,formatters:[null,inputFormatters.defaultBlockParam]}),this.getCode=this.buildRequest({call:RPC_CALLS.eth_getCode,formatters:[null,inputFormatters.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:RPC_CALLS.eth_getStorageAt,formatters:[null,inputFormatters.blockNumberToHex,inputFormatters.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:RPC_CALLS.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:RPC_CALLS.eth_getBlockByHash,formatters:[null,inputFormatters.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:RPC_CALLS.eth_getBlockByNumber,formatters:[inputFormatters.blockNumberToHex,inputFormatters.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:RPC_CALLS.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:RPC_CALLS.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:RPC_CALLS.eth_getTransactionCount,formatters:[null,inputFormatters.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:RPC_CALLS.eth_gasPrice}),this.getEstimateGas=d=>this.buildRequest({call:RPC_CALLS.eth_estimateGas})([d]),this.setSafeSettings=this.buildRequest({call:RPC_CALLS.safe_setSettings})}buildRequest(a){const{call:d,formatters:et}=a;return async nt=>{et&&Array.isArray(nt)&&et.forEach((gt,wt)=>{gt&&(nt[wt]=gt(nt[wt]))});const tt={call:d,params:nt||[]};return(await this.communicator.send(Methods.rpcCall,tt)).data}}}function execTyped$1(c,a){const d=c.exec(a);return d==null?void 0:d.groups}const tupleRegex$1=/^tuple(?(\[(\d*)\])*)$/;function formatAbiParameter$1(c){let a=c.type;if(tupleRegex$1.test(c.type)&&"components"in c){a="(";const d=c.components.length;for(let nt=0;ntformatAbiParam$1(d,{includeName:a})).join(a?", ":","):""}function formatAbiParam$1(c,{includeName:a}){return c.type.startsWith("tuple")?`(${formatAbiParams$1(c.components,{includeName:a})})${c.type.slice(5)}`:c.type+(a&&c.name?` ${c.name}`:"")}function isHex$1(c,{strict:a=!0}={}){return!c||typeof c!="string"?!1:a?/^0x[0-9a-fA-F]*$/.test(c):c.startsWith("0x")}function size$2(c){return isHex$1(c,{strict:!1})?Math.ceil((c.length-2)/2):c.length}const version$1="1.21.3",getVersion$1=()=>`viem@${version$1}`;let BaseError$1=class Zo extends Error{constructor(a,d={}){var tt;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:getVersion$1()});const et=d.cause instanceof Zo?d.cause.details:(tt=d.cause)!=null&&tt.message?d.cause.message:d.details,nt=d.cause instanceof Zo&&d.cause.docsPath||d.docsPath;this.message=[a||"An error occurred.","",...d.metaMessages?[...d.metaMessages,""]:[],...nt?[`Docs: https://viem.sh${nt}.html${d.docsSlug?`#${d.docsSlug}`:""}`]:[],...et?[`Details: ${et}`]:[],`Version: ${this.version}`].join(` +`))},cryptoBrowserify.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},cryptoBrowserify}var cryptoBrowserifyExports=requireCryptoBrowserify();const index$1=getDefaultExportFromCjs(cryptoBrowserifyExports),nodeCrypto=_mergeNamespaces({__proto__:null,default:index$1},[cryptoBrowserifyExports]);/*! noble-secp256k1 - MIT License (c) 2019 Paul Miller (paulmillr.com) */const _0n$5=BigInt(0),_1n$6=BigInt(1),_2n$4=BigInt(2),_3n$2=BigInt(3),_8n$1=BigInt(8),CURVE=Object.freeze({a:_0n$5,b:BigInt(7),P:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:_1n$6,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee")}),divNearest$1=(c,a)=>(c+a/_2n$4)/a,endo={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar(c){const{n:a}=CURVE,d=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),et=-_1n$6*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),nt=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),tt=d,bt=BigInt("0x100000000000000000000000000000000"),gt=divNearest$1(tt*c,a),wt=divNearest$1(-et*c,a);let St=mod$1(c-gt*d-wt*nt,a),Mt=mod$1(-gt*et-wt*tt,a);const _t=St>bt,Tt=Mt>bt;if(_t&&(St=a-St),Tt&&(Mt=a-Mt),St>bt||Mt>bt)throw new Error("splitScalarEndo: Endomorphism failed, k="+c);return{k1neg:_t,k1:St,k2neg:Tt,k2:Mt}}},fieldLen=32,groupLen=32,hashLen=32,compressedLen=fieldLen+1,uncompressedLen=2*fieldLen+1;function weierstrass$1(c){const{a,b:d}=CURVE,et=mod$1(c*c),nt=mod$1(et*c);return mod$1(nt+a*c+d)}const USE_ENDOMORPHISM=CURVE.a===_0n$5;class ShaError extends Error{constructor(a){super(a)}}function assertJacPoint(c){if(!(c instanceof JacobianPoint))throw new TypeError("JacobianPoint expected")}class JacobianPoint{constructor(a,d,et){this.x=a,this.y=d,this.z=et}static fromAffine(a){if(!(a instanceof Point))throw new TypeError("JacobianPoint#fromAffine: expected Point");return a.equals(Point.ZERO)?JacobianPoint.ZERO:new JacobianPoint(a.x,a.y,_1n$6)}static toAffineBatch(a){const d=invertBatch(a.map(et=>et.z));return a.map((et,nt)=>et.toAffine(d[nt]))}static normalizeZ(a){return JacobianPoint.toAffineBatch(a).map(JacobianPoint.fromAffine)}equals(a){assertJacPoint(a);const{x:d,y:et,z:nt}=this,{x:tt,y:bt,z:gt}=a,wt=mod$1(nt*nt),St=mod$1(gt*gt),Mt=mod$1(d*St),_t=mod$1(tt*wt),Tt=mod$1(mod$1(et*gt)*St),Rt=mod$1(mod$1(bt*nt)*wt);return Mt===_t&&Tt===Rt}negate(){return new JacobianPoint(this.x,mod$1(-this.y),this.z)}double(){const{x:a,y:d,z:et}=this,nt=mod$1(a*a),tt=mod$1(d*d),bt=mod$1(tt*tt),gt=a+tt,wt=mod$1(_2n$4*(mod$1(gt*gt)-nt-bt)),St=mod$1(_3n$2*nt),Mt=mod$1(St*St),_t=mod$1(Mt-_2n$4*wt),Tt=mod$1(St*(wt-_t)-_8n$1*bt),Rt=mod$1(_2n$4*d*et);return new JacobianPoint(_t,Tt,Rt)}add(a){assertJacPoint(a);const{x:d,y:et,z:nt}=this,{x:tt,y:bt,z:gt}=a;if(tt===_0n$5||bt===_0n$5)return this;if(d===_0n$5||et===_0n$5)return a;const wt=mod$1(nt*nt),St=mod$1(gt*gt),Mt=mod$1(d*St),_t=mod$1(tt*wt),Tt=mod$1(mod$1(et*gt)*St),Rt=mod$1(mod$1(bt*nt)*wt),kt=mod$1(_t-Mt),It=mod$1(Rt-Tt);if(kt===_0n$5)return It===_0n$5?this.double():JacobianPoint.ZERO;const Lt=mod$1(kt*kt),Ot=mod$1(kt*Lt),Nt=mod$1(Mt*Lt),Ft=mod$1(It*It-Ot-_2n$4*Nt),jt=mod$1(It*(Nt-Ft)-Tt*Ot),Vt=mod$1(nt*gt*kt);return new JacobianPoint(Ft,jt,Vt)}subtract(a){return this.add(a.negate())}multiplyUnsafe(a){const d=JacobianPoint.ZERO;if(typeof a=="bigint"&&a===_0n$5)return d;let et=normalizeScalar(a);if(et===_1n$6)return this;if(!USE_ENDOMORPHISM){let _t=d,Tt=this;for(;et>_0n$5;)et&_1n$6&&(_t=_t.add(Tt)),Tt=Tt.double(),et>>=_1n$6;return _t}let{k1neg:nt,k1:tt,k2neg:bt,k2:gt}=endo.splitScalar(et),wt=d,St=d,Mt=this;for(;tt>_0n$5||gt>_0n$5;)tt&_1n$6&&(wt=wt.add(Mt)),gt&_1n$6&&(St=St.add(Mt)),Mt=Mt.double(),tt>>=_1n$6,gt>>=_1n$6;return nt&&(wt=wt.negate()),bt&&(St=St.negate()),St=new JacobianPoint(mod$1(St.x*endo.beta),St.y,St.z),wt.add(St)}precomputeWindow(a){const d=USE_ENDOMORPHISM?128/a+1:256/a+1,et=[];let nt=this,tt=nt;for(let bt=0;bt>=_t,kt>wt&&(kt-=Mt,a+=_1n$6);const It=Rt,Lt=Rt+Math.abs(kt)-1,Ot=Tt%2!==0,Nt=kt<0;kt===0?bt=bt.add(constTimeNegate(Ot,nt[It])):tt=tt.add(constTimeNegate(Nt,nt[Lt]))}return{p:tt,f:bt}}multiply(a,d){let et=normalizeScalar(a),nt,tt;if(USE_ENDOMORPHISM){const{k1neg:bt,k1:gt,k2neg:wt,k2:St}=endo.splitScalar(et);let{p:Mt,f:_t}=this.wNAF(gt,d),{p:Tt,f:Rt}=this.wNAF(St,d);Mt=constTimeNegate(bt,Mt),Tt=constTimeNegate(wt,Tt),Tt=new JacobianPoint(mod$1(Tt.x*endo.beta),Tt.y,Tt.z),nt=Mt.add(Tt),tt=_t.add(Rt)}else{const{p:bt,f:gt}=this.wNAF(et,d);nt=bt,tt=gt}return JacobianPoint.normalizeZ([nt,tt])[0]}toAffine(a){const{x:d,y:et,z:nt}=this,tt=this.equals(JacobianPoint.ZERO);a==null&&(a=tt?_8n$1:invert$1(nt));const bt=a,gt=mod$1(bt*bt),wt=mod$1(gt*bt),St=mod$1(d*gt),Mt=mod$1(et*wt),_t=mod$1(nt*bt);if(tt)return Point.ZERO;if(_t!==_1n$6)throw new Error("invZ was invalid");return new Point(St,Mt)}}JacobianPoint.BASE=new JacobianPoint(CURVE.Gx,CURVE.Gy,_1n$6);JacobianPoint.ZERO=new JacobianPoint(_0n$5,_1n$6,_0n$5);function constTimeNegate(c,a){const d=a.negate();return c?d:a}const pointPrecomputes=new WeakMap;class Point{constructor(a,d){this.x=a,this.y=d}_setWindowSize(a){this._WINDOW_SIZE=a,pointPrecomputes.delete(this)}hasEvenY(){return this.y%_2n$4===_0n$5}static fromCompressedHex(a){const d=a.length===32,et=bytesToNumber$1(d?a:a.subarray(1));if(!isValidFieldElement(et))throw new Error("Point is not on curve");const nt=weierstrass$1(et);let tt=sqrtMod$1(nt);const bt=(tt&_1n$6)===_1n$6;d?bt&&(tt=mod$1(-tt)):(a[0]&1)===1!==bt&&(tt=mod$1(-tt));const gt=new Point(et,tt);return gt.assertValidity(),gt}static fromUncompressedHex(a){const d=bytesToNumber$1(a.subarray(1,fieldLen+1)),et=bytesToNumber$1(a.subarray(fieldLen+1,fieldLen*2+1)),nt=new Point(d,et);return nt.assertValidity(),nt}static fromHex(a){const d=ensureBytes$1(a),et=d.length,nt=d[0];if(et===fieldLen)return this.fromCompressedHex(d);if(et===compressedLen&&(nt===2||nt===3))return this.fromCompressedHex(d);if(et===uncompressedLen&&nt===4)return this.fromUncompressedHex(d);throw new Error(`Point.fromHex: received invalid point. Expected 32-${compressedLen} compressed bytes or ${uncompressedLen} uncompressed bytes, not ${et}`)}static fromPrivateKey(a){return Point.BASE.multiply(normalizePrivateKey(a))}static fromSignature(a,d,et){const{r:nt,s:tt}=normalizeSignature$2(d);if(![0,1,2,3].includes(et))throw new Error("Cannot recover: invalid recovery bit");const bt=truncateHash(ensureBytes$1(a)),{n:gt}=CURVE,wt=et===2||et===3?nt+gt:nt,St=invert$1(wt,gt),Mt=mod$1(-bt*St,gt),_t=mod$1(tt*St,gt),Tt=et&1?"03":"02",Rt=Point.fromHex(Tt+numTo32bStr(wt)),kt=Point.BASE.multiplyAndAddUnsafe(Rt,Mt,_t);if(!kt)throw new Error("Cannot recover signature: point at infinify");return kt.assertValidity(),kt}toRawBytes(a=!1){return hexToBytes$3(this.toHex(a))}toHex(a=!1){const d=numTo32bStr(this.x);return a?`${this.hasEvenY()?"02":"03"}${d}`:`04${d}${numTo32bStr(this.y)}`}toHexX(){return this.toHex(!0).slice(2)}toRawX(){return this.toRawBytes(!0).slice(1)}assertValidity(){const a="Point is not on elliptic curve",{x:d,y:et}=this;if(!isValidFieldElement(d)||!isValidFieldElement(et))throw new Error(a);const nt=mod$1(et*et),tt=weierstrass$1(d);if(mod$1(nt-tt)!==_0n$5)throw new Error(a)}equals(a){return this.x===a.x&&this.y===a.y}negate(){return new Point(this.x,mod$1(-this.y))}double(){return JacobianPoint.fromAffine(this).double().toAffine()}add(a){return JacobianPoint.fromAffine(this).add(JacobianPoint.fromAffine(a)).toAffine()}subtract(a){return this.add(a.negate())}multiply(a){return JacobianPoint.fromAffine(this).multiply(a,this).toAffine()}multiplyAndAddUnsafe(a,d,et){const nt=JacobianPoint.fromAffine(this),tt=d===_0n$5||d===_1n$6||this!==Point.BASE?nt.multiplyUnsafe(d):nt.multiply(d),bt=JacobianPoint.fromAffine(a).multiplyUnsafe(et),gt=tt.add(bt);return gt.equals(JacobianPoint.ZERO)?void 0:gt.toAffine()}}Point.BASE=new Point(CURVE.Gx,CURVE.Gy);Point.ZERO=new Point(_0n$5,_0n$5);function sliceDER(c){return Number.parseInt(c[0],16)>=8?"00"+c:c}function parseDERInt(c){if(c.length<2||c[0]!==2)throw new Error(`Invalid signature integer tag: ${bytesToHex$3(c)}`);const a=c[1],d=c.subarray(2,a+2);if(!a||d.length!==a)throw new Error("Invalid signature integer: wrong length");if(d[0]===0&&d[1]<=127)throw new Error("Invalid signature integer: trailing length");return{data:bytesToNumber$1(d),left:c.subarray(a+2)}}function parseDERSignature(c){if(c.length<2||c[0]!=48)throw new Error(`Invalid signature tag: ${bytesToHex$3(c)}`);if(c[1]!==c.length-2)throw new Error("Invalid signature: incorrect length");const{data:a,left:d}=parseDERInt(c.subarray(2)),{data:et,left:nt}=parseDERInt(d);if(nt.length)throw new Error(`Invalid signature: left bytes after parsing: ${bytesToHex$3(nt)}`);return{r:a,s:et}}let Signature$1=class Eo{constructor(a,d){this.r=a,this.s=d,this.assertValidity()}static fromCompact(a){const d=a instanceof Uint8Array,et="Signature.fromCompact";if(typeof a!="string"&&!d)throw new TypeError(`${et}: Expected string or Uint8Array`);const nt=d?bytesToHex$3(a):a;if(nt.length!==128)throw new Error(`${et}: Expected 64-byte hex`);return new Eo(hexToNumber$2(nt.slice(0,64)),hexToNumber$2(nt.slice(64,128)))}static fromDER(a){const d=a instanceof Uint8Array;if(typeof a!="string"&&!d)throw new TypeError("Signature.fromDER: Expected string or Uint8Array");const{r:et,s:nt}=parseDERSignature(d?a:hexToBytes$3(a));return new Eo(et,nt)}static fromHex(a){return this.fromDER(a)}assertValidity(){const{r:a,s:d}=this;if(!isWithinCurveOrder(a))throw new Error("Invalid Signature: r must be 0 < r < n");if(!isWithinCurveOrder(d))throw new Error("Invalid Signature: s must be 0 < s < n")}hasHighS(){const a=CURVE.n>>_1n$6;return this.s>a}normalizeS(){return this.hasHighS()?new Eo(this.r,mod$1(-this.s,CURVE.n)):this}toDERRawBytes(){return hexToBytes$3(this.toDERHex())}toDERHex(){const a=sliceDER(numberToHexUnpadded$1(this.s)),d=sliceDER(numberToHexUnpadded$1(this.r)),et=a.length/2,nt=d.length/2,tt=numberToHexUnpadded$1(et),bt=numberToHexUnpadded$1(nt);return`30${numberToHexUnpadded$1(nt+et+4)}02${bt}${d}02${tt}${a}`}toRawBytes(){return this.toDERRawBytes()}toHex(){return this.toDERHex()}toCompactRawBytes(){return hexToBytes$3(this.toCompactHex())}toCompactHex(){return numTo32bStr(this.r)+numTo32bStr(this.s)}};function concatBytes$4(...c){if(!c.every(et=>et instanceof Uint8Array))throw new Error("Uint8Array list expected");if(c.length===1)return c[0];const a=c.reduce((et,nt)=>et+nt.length,0),d=new Uint8Array(a);for(let et=0,nt=0;eta.toString(16).padStart(2,"0"));function bytesToHex$3(c){if(!(c instanceof Uint8Array))throw new Error("Expected Uint8Array");let a="";for(let d=0;d0)return BigInt(c);if(typeof c=="bigint"&&isWithinCurveOrder(c))return c;throw new TypeError("Expected valid private scalar: 0 < scalar < curve.n")}function mod$1(c,a=CURVE.P){const d=c%a;return d>=_0n$5?d:a+d}function pow2$1(c,a){const{P:d}=CURVE;let et=c;for(;a-- >_0n$5;)et*=et,et%=d;return et}function sqrtMod$1(c){const{P:a}=CURVE,d=BigInt(6),et=BigInt(11),nt=BigInt(22),tt=BigInt(23),bt=BigInt(44),gt=BigInt(88),wt=c*c*c%a,St=wt*wt*c%a,Mt=pow2$1(St,_3n$2)*St%a,_t=pow2$1(Mt,_3n$2)*St%a,Tt=pow2$1(_t,_2n$4)*wt%a,Rt=pow2$1(Tt,et)*Tt%a,kt=pow2$1(Rt,nt)*Rt%a,It=pow2$1(kt,bt)*kt%a,Lt=pow2$1(It,gt)*It%a,Ot=pow2$1(Lt,bt)*kt%a,Nt=pow2$1(Ot,_3n$2)*St%a,Ft=pow2$1(Nt,tt)*Rt%a,jt=pow2$1(Ft,d)*wt%a,Vt=pow2$1(jt,_2n$4);if(Vt*Vt%a!==c)throw new Error("Cannot find square root");return Vt}function invert$1(c,a=CURVE.P){if(c===_0n$5||a<=_0n$5)throw new Error(`invert: expected positive integers, got n=${c} mod=${a}`);let d=mod$1(c,a),et=a,nt=_0n$5,tt=_1n$6;for(;d!==_0n$5;){const gt=et/d,wt=et%d,St=nt-tt*gt;et=d,d=wt,nt=tt,tt=St}if(et!==_1n$6)throw new Error("invert: does not exist");return mod$1(nt,a)}function invertBatch(c,a=CURVE.P){const d=new Array(c.length),et=c.reduce((tt,bt,gt)=>bt===_0n$5?tt:(d[gt]=tt,mod$1(tt*bt,a)),_1n$6),nt=invert$1(et,a);return c.reduceRight((tt,bt,gt)=>bt===_0n$5?tt:(d[gt]=mod$1(tt*d[gt],a),mod$1(tt*bt,a)),nt),d}function bits2int_2(c){const a=c.length*8-groupLen*8,d=bytesToNumber$1(c);return a>0?d>>BigInt(a):d}function truncateHash(c,a=!1){const d=bits2int_2(c);if(a)return d;const{n:et}=CURVE;return d>=et?d-et:d}let _sha256Sync,_hmacSha256Sync;class HmacDrbg{constructor(a,d){if(this.hashLen=a,this.qByteLen=d,typeof a!="number"||a<2)throw new Error("hashLen must be a number");if(typeof d!="number"||d<2)throw new Error("qByteLen must be a number");this.v=new Uint8Array(a).fill(1),this.k=new Uint8Array(a).fill(0),this.counter=0}hmac(...a){return utils$2.hmacSha256(this.k,...a)}hmacSync(...a){return _hmacSha256Sync(this.k,...a)}checkSync(){if(typeof _hmacSha256Sync!="function")throw new ShaError("hmacSha256Sync needs to be set")}incr(){if(this.counter>=1e3)throw new Error("Tried 1,000 k values for sign(), all were invalid");this.counter+=1}async reseed(a=new Uint8Array){this.k=await this.hmac(this.v,Uint8Array.from([0]),a),this.v=await this.hmac(this.v),a.length!==0&&(this.k=await this.hmac(this.v,Uint8Array.from([1]),a),this.v=await this.hmac(this.v))}reseedSync(a=new Uint8Array){this.checkSync(),this.k=this.hmacSync(this.v,Uint8Array.from([0]),a),this.v=this.hmacSync(this.v),a.length!==0&&(this.k=this.hmacSync(this.v,Uint8Array.from([1]),a),this.v=this.hmacSync(this.v))}async generate(){this.incr();let a=0;const d=[];for(;a0)a=BigInt(c);else if(typeof c=="string"){if(c.length!==2*groupLen)throw new Error("Expected 32 bytes of private key");a=hexToNumber$2(c)}else if(c instanceof Uint8Array){if(c.length!==groupLen)throw new Error("Expected 32 bytes of private key");a=bytesToNumber$1(c)}else throw new TypeError("Expected valid private key");if(!isWithinCurveOrder(a))throw new Error("Expected private key: 0 < key < n");return a}function normalizePublicKey(c){return c instanceof Point?(c.assertValidity(),c):Point.fromHex(c)}function normalizeSignature$2(c){if(c instanceof Signature$1)return c.assertValidity(),c;try{return Signature$1.fromDER(c)}catch{return Signature$1.fromCompact(c)}}function getPublicKey(c,a=!1){return Point.fromPrivateKey(c).toRawBytes(a)}function recoverPublicKey(c,a,d,et=!1){return Point.fromSignature(c,a,d).toRawBytes(et)}function isProbPub(c){const a=c instanceof Uint8Array,d=typeof c=="string",et=(a||d)&&c.length;return a?et===compressedLen||et===uncompressedLen:d?et===compressedLen*2||et===uncompressedLen*2:c instanceof Point}function getSharedSecret(c,a,d=!1){if(isProbPub(c))throw new TypeError("getSharedSecret: first arg must be private key");if(!isProbPub(a))throw new TypeError("getSharedSecret: second arg must be public key");const et=normalizePublicKey(a);return et.assertValidity(),et.multiply(normalizePrivateKey(c)).toRawBytes(d)}function bits2int(c){const a=c.length>fieldLen?c.slice(0,fieldLen):c;return bytesToNumber$1(a)}function bits2octets(c){const a=bits2int(c),d=mod$1(a,CURVE.n);return int2octets(d<_0n$5?a:d)}function int2octets(c){return numTo32b(c)}function initSigArgs(c,a,d){if(c==null)throw new Error(`sign: expected valid message hash, not "${c}"`);const et=ensureBytes$1(c),nt=normalizePrivateKey(a),tt=[int2octets(nt),bits2octets(et)];if(d!=null){d===!0&&(d=utils$2.randomBytes(fieldLen));const wt=ensureBytes$1(d);if(wt.length!==fieldLen)throw new Error(`sign: Expected ${fieldLen} bytes of extra data`);tt.push(wt)}const bt=concatBytes$4(...tt),gt=bits2int(et);return{seed:bt,m:gt,d:nt}}function finalizeSig(c,a){const{sig:d,recovery:et}=c,{der:nt,recovered:tt}=Object.assign({canonical:!0,der:!0},a),bt=nt?d.toDERRawBytes():d.toCompactRawBytes();return tt?[bt,et]:bt}function signSync(c,a,d={}){const{seed:et,m:nt,d:tt}=initSigArgs(c,a,d.extraEntropy),bt=new HmacDrbg(hashLen,groupLen);bt.reseedSync(et);let gt;for(;!(gt=kmdToSig(bt.generateSync(),nt,tt,d.canonical));)bt.reseedSync();return finalizeSig(gt,d)}Point.BASE._setWindowSize(8);const crypto$1={node:nodeCrypto,web:typeof self=="object"&&"crypto"in self?self.crypto:void 0},TAGGED_HASH_PREFIXES={},utils$2={bytesToHex:bytesToHex$3,hexToBytes:hexToBytes$3,concatBytes:concatBytes$4,mod:mod$1,invert:invert$1,isValidPrivateKey(c){try{return normalizePrivateKey(c),!0}catch{return!1}},_bigintTo32Bytes:numTo32b,_normalizePrivateKey:normalizePrivateKey,hashToPrivateKey:c=>{c=ensureBytes$1(c);const a=groupLen+8;if(c.length1024)throw new Error("Expected valid bytes of private key as per FIPS 186");const d=mod$1(bytesToNumber$1(c),CURVE.n-_1n$6)+_1n$6;return numTo32b(d)},randomBytes:(c=32)=>{if(crypto$1.web)return crypto$1.web.getRandomValues(new Uint8Array(c));if(crypto$1.node){const{randomBytes:a}=crypto$1.node;return Uint8Array.from(a(c))}else throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>utils$2.hashToPrivateKey(utils$2.randomBytes(groupLen+8)),precompute(c=8,a=Point.BASE){const d=a===Point.BASE?a:new Point(a.x,a.y);return d._setWindowSize(c),d.multiply(_3n$2),d},sha256:async(...c)=>{if(crypto$1.web){const a=await crypto$1.web.subtle.digest("SHA-256",concatBytes$4(...c));return new Uint8Array(a)}else if(crypto$1.node){const{createHash:a}=crypto$1.node,d=a("sha256");return c.forEach(et=>d.update(et)),Uint8Array.from(d.digest())}else throw new Error("The environment doesn't have sha256 function")},hmacSha256:async(c,...a)=>{if(crypto$1.web){const d=await crypto$1.web.subtle.importKey("raw",c,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),et=concatBytes$4(...a),nt=await crypto$1.web.subtle.sign("HMAC",d,et);return new Uint8Array(nt)}else if(crypto$1.node){const{createHmac:d}=crypto$1.node,et=d("sha256",c);return a.forEach(nt=>et.update(nt)),Uint8Array.from(et.digest())}else throw new Error("The environment doesn't have hmac-sha256 function")},sha256Sync:void 0,hmacSha256Sync:void 0,taggedHash:async(c,...a)=>{let d=TAGGED_HASH_PREFIXES[c];if(d===void 0){const et=await utils$2.sha256(Uint8Array.from(c,nt=>nt.charCodeAt(0)));d=concatBytes$4(et,et),TAGGED_HASH_PREFIXES[c]=d}return utils$2.sha256(d,...a)},taggedHashSync:(c,...a)=>{if(typeof _sha256Sync!="function")throw new ShaError("sha256Sync is undefined, you need to set it");let d=TAGGED_HASH_PREFIXES[c];if(d===void 0){const et=_sha256Sync(Uint8Array.from(c,nt=>nt.charCodeAt(0)));d=concatBytes$4(et,et),TAGGED_HASH_PREFIXES[c]=d}return _sha256Sync(d,...a)},_JacobianPoint:JacobianPoint};Object.defineProperties(utils$2,{sha256Sync:{configurable:!1,get(){return _sha256Sync},set(c){_sha256Sync||(_sha256Sync=c)}},hmacSha256Sync:{configurable:!1,get(){return _hmacSha256Sync},set(c){_hmacSha256Sync||(_hmacSha256Sync=c)}}});const ZeroAddress="0x0000000000000000000000000000000000000000",ZeroHash="0x0000000000000000000000000000000000000000000000000000000000000000",BN_0$7=BigInt(0),BN_1$2=BigInt(1),BN_2$2=BigInt(2),BN_27$1=BigInt(27),BN_28$1=BigInt(28),BN_35$1=BigInt(35),_guard$1={};function toUint256(c){return zeroPadValue(toBeArray(c),32)}var ps,bs,ms,Jn;const K0=class K0{constructor(a,d,et,nt){Vr(this,ps,void 0);Vr(this,bs,void 0);Vr(this,ms,void 0);Vr(this,Jn,void 0);assertPrivate(a,_guard$1,"Signature"),yr(this,ps,d),yr(this,bs,et),yr(this,ms,nt),yr(this,Jn,null)}get r(){return or(this,ps)}set r(a){assertArgument(dataLength(a)===32,"invalid r","value",a),yr(this,ps,hexlify(a))}get s(){return or(this,bs)}set s(a){assertArgument(dataLength(a)===32,"invalid s","value",a);const d=hexlify(a);assertArgument(parseInt(d.substring(0,3))<8,"non-canonical s","value",d),yr(this,bs,d)}get v(){return or(this,ms)}set v(a){const d=getNumber(a,"value");assertArgument(d===27||d===28,"invalid v","v",a),yr(this,ms,d)}get networkV(){return or(this,Jn)}get legacyChainId(){const a=this.networkV;return a==null?null:K0.getChainId(a)}get yParity(){return this.v===27?0:1}get yParityAndS(){const a=getBytes(this.s);return this.yParity&&(a[0]|=128),hexlify(a)}get compactSerialized(){return concat$2([this.r,this.yParityAndS])}get serialized(){return concat$2([this.r,this.s,this.yParity?"0x1c":"0x1b"])}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this.s}", yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){const a=new K0(_guard$1,this.r,this.s,this.v);return this.networkV&&yr(a,Jn,this.networkV),a}toJSON(){const a=this.networkV;return{_type:"signature",networkV:a!=null?a.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(a){const d=getBigInt(a,"v");return d==BN_27$1||d==BN_28$1?BN_0$7:(assertArgument(d>=BN_35$1,"invalid EIP-155 v","v",a),(d-BN_35$1)/BN_2$2)}static getChainIdV(a,d){return getBigInt(a)*BN_2$2+BigInt(35+d-27)}static getNormalizedV(a){const d=getBigInt(a);return d===BN_0$7||d===BN_27$1?27:d===BN_1$2||d===BN_28$1?28:(assertArgument(d>=BN_35$1,"invalid v","v",a),d&BN_1$2?27:28)}static from(a){function d(St,Mt){assertArgument(St,Mt,"signature",a)}if(a==null)return new K0(_guard$1,ZeroHash,ZeroHash,27);if(typeof a=="string"){const St=getBytes(a,"signature");if(St.length===64){const Mt=hexlify(St.slice(0,32)),_t=St.slice(32,64),Tt=_t[0]&128?28:27;return _t[0]&=127,new K0(_guard$1,Mt,hexlify(_t),Tt)}if(St.length===65){const Mt=hexlify(St.slice(0,32)),_t=St.slice(32,64);d((_t[0]&128)===0,"non-canonical s");const Tt=K0.getNormalizedV(St[64]);return new K0(_guard$1,Mt,hexlify(_t),Tt)}d(!1,"invalid raw signature length")}if(a instanceof K0)return a.clone();const et=a.r;d(et!=null,"missing r");const nt=toUint256(et),tt=function(St,Mt){if(St!=null)return toUint256(St);if(Mt!=null){d(isHexString(Mt,32),"invalid yParityAndS");const _t=getBytes(Mt);return _t[0]&=127,hexlify(_t)}d(!1,"missing s")}(a.s,a.yParityAndS);d((getBytes(tt)[0]&128)==0,"non-canonical s");const{networkV:bt,v:gt}=function(St,Mt,_t){if(St!=null){const Tt=getBigInt(St);return{networkV:Tt>=BN_35$1?Tt:void 0,v:K0.getNormalizedV(Tt)}}if(Mt!=null)return d(isHexString(Mt,32),"invalid yParityAndS"),{v:getBytes(Mt)[0]&128?28:27};if(_t!=null){switch(getNumber(_t,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}d(!1,"invalid yParity")}d(!1,"missing v")}(a.v,a.yParityAndS,a.yParity),wt=new K0(_guard$1,nt,tt,gt);return bt&&yr(wt,Jn,bt),d(a.yParity==null||getNumber(a.yParity,"sig.yParity")===wt.yParity,"yParity mismatch"),d(a.yParityAndS==null||a.yParityAndS===wt.yParityAndS,"yParityAndS mismatch"),wt}};ps=new WeakMap,bs=new WeakMap,ms=new WeakMap,Jn=new WeakMap;let Signature=K0;utils$2.hmacSha256Sync=function(c,...a){return getBytes(computeHmac("sha256",c,concat$2(a)))};var gn;const Hn=class Hn{constructor(a){Vr(this,gn,void 0);assertArgument(dataLength(a)===32,"invalid private key","privateKey","[REDACTED]"),yr(this,gn,hexlify(a))}get privateKey(){return or(this,gn)}get publicKey(){return Hn.computePublicKey(or(this,gn))}get compressedPublicKey(){return Hn.computePublicKey(or(this,gn),!0)}sign(a){assertArgument(dataLength(a)===32,"invalid digest length","digest",a);const[d,et]=signSync(getBytesCopy(a),getBytesCopy(or(this,gn)),{recovered:!0,canonical:!0}),nt=Signature$1.fromHex(d);return Signature.from({r:toBeHex("0x"+nt.r.toString(16),32),s:toBeHex("0x"+nt.s.toString(16),32),v:et?28:27})}computeSharedSecret(a){const d=Hn.computePublicKey(a);return hexlify(getSharedSecret(getBytesCopy(or(this,gn)),getBytes(d)))}static computePublicKey(a,d){let et=getBytes(a,"key");if(et.length===32){const tt=getPublicKey(et,!!d);return hexlify(tt)}if(et.length===64){const tt=new Uint8Array(65);tt[0]=4,tt.set(et,1),et=tt}const nt=Point.fromHex(et);return hexlify(nt.toRawBytes(d))}static recoverPublicKey(a,d){assertArgument(dataLength(a)===32,"invalid digest length","digest",a);const et=Signature.from(d),nt=Signature$1.fromCompact(getBytesCopy(concat$2([et.r,et.s]))).toDERRawBytes(),tt=recoverPublicKey(getBytesCopy(a),nt,et.yParity);return assertArgument(tt!=null,"invalid signature for digest","signature",d),hexlify(tt)}static addPoints(a,d,et){const nt=Point.fromHex(Hn.computePublicKey(a).substring(2)),tt=Point.fromHex(Hn.computePublicKey(d).substring(2));return"0x"+nt.add(tt).toHex(!!et)}};gn=new WeakMap;let SigningKey=Hn;const BN_0$6=BigInt(0),BN_36=BigInt(36);function getChecksumAddress(c){c=c.toLowerCase();const a=c.substring(2).split(""),d=new Uint8Array(40);for(let nt=0;nt<40;nt++)d[nt]=a[nt].charCodeAt(0);const et=getBytes(keccak256$2(d));for(let nt=0;nt<40;nt+=2)et[nt>>1]>>4>=8&&(a[nt]=a[nt].toUpperCase()),(et[nt>>1]&15)>=8&&(a[nt+1]=a[nt+1].toUpperCase());return"0x"+a.join("")}const ibanLookup={};for(let c=0;c<10;c++)ibanLookup[String(c)]=String(c);for(let c=0;c<26;c++)ibanLookup[String.fromCharCode(65+c)]=String(10+c);const safeDigits=15;function ibanChecksum(c){c=c.toUpperCase(),c=c.substring(4)+c.substring(0,2)+"00";let a=c.split("").map(et=>ibanLookup[et]).join("");for(;a.length>=safeDigits;){let et=a.substring(0,safeDigits);a=parseInt(et,10)%97+a.substring(et.length)}let d=String(98-parseInt(a,10)%97);for(;d.length<2;)d="0"+d;return d}const Base36=function(){const c={};for(let a=0;a<36;a++){const d="0123456789abcdefghijklmnopqrstuvwxyz"[a];c[d]=BigInt(a)}return c}();function fromBase36(c){c=c.toLowerCase();let a=BN_0$6;for(let d=0;da.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 this.type==="string"}get tupleName(){if(this.type!=="tuple")throw TypeError("not a tuple");return or(this,Qn)}get arrayLength(){if(this.type!=="array")throw TypeError("not an array");return or(this,Qn)===!0?-1:or(this,Qn)===!1?this.value.length:null}static from(a,d){return new ln(_gaurd,a,d)}static uint8(a){return n(a,8)}static uint16(a){return n(a,16)}static uint24(a){return n(a,24)}static uint32(a){return n(a,32)}static uint40(a){return n(a,40)}static uint48(a){return n(a,48)}static uint56(a){return n(a,56)}static uint64(a){return n(a,64)}static uint72(a){return n(a,72)}static uint80(a){return n(a,80)}static uint88(a){return n(a,88)}static uint96(a){return n(a,96)}static uint104(a){return n(a,104)}static uint112(a){return n(a,112)}static uint120(a){return n(a,120)}static uint128(a){return n(a,128)}static uint136(a){return n(a,136)}static uint144(a){return n(a,144)}static uint152(a){return n(a,152)}static uint160(a){return n(a,160)}static uint168(a){return n(a,168)}static uint176(a){return n(a,176)}static uint184(a){return n(a,184)}static uint192(a){return n(a,192)}static uint200(a){return n(a,200)}static uint208(a){return n(a,208)}static uint216(a){return n(a,216)}static uint224(a){return n(a,224)}static uint232(a){return n(a,232)}static uint240(a){return n(a,240)}static uint248(a){return n(a,248)}static uint256(a){return n(a,256)}static uint(a){return n(a,256)}static int8(a){return n(a,-8)}static int16(a){return n(a,-16)}static int24(a){return n(a,-24)}static int32(a){return n(a,-32)}static int40(a){return n(a,-40)}static int48(a){return n(a,-48)}static int56(a){return n(a,-56)}static int64(a){return n(a,-64)}static int72(a){return n(a,-72)}static int80(a){return n(a,-80)}static int88(a){return n(a,-88)}static int96(a){return n(a,-96)}static int104(a){return n(a,-104)}static int112(a){return n(a,-112)}static int120(a){return n(a,-120)}static int128(a){return n(a,-128)}static int136(a){return n(a,-136)}static int144(a){return n(a,-144)}static int152(a){return n(a,-152)}static int160(a){return n(a,-160)}static int168(a){return n(a,-168)}static int176(a){return n(a,-176)}static int184(a){return n(a,-184)}static int192(a){return n(a,-192)}static int200(a){return n(a,-200)}static int208(a){return n(a,-208)}static int216(a){return n(a,-216)}static int224(a){return n(a,-224)}static int232(a){return n(a,-232)}static int240(a){return n(a,-240)}static int248(a){return n(a,-248)}static int256(a){return n(a,-256)}static int(a){return n(a,-256)}static bytes1(a){return b(a,1)}static bytes2(a){return b(a,2)}static bytes3(a){return b(a,3)}static bytes4(a){return b(a,4)}static bytes5(a){return b(a,5)}static bytes6(a){return b(a,6)}static bytes7(a){return b(a,7)}static bytes8(a){return b(a,8)}static bytes9(a){return b(a,9)}static bytes10(a){return b(a,10)}static bytes11(a){return b(a,11)}static bytes12(a){return b(a,12)}static bytes13(a){return b(a,13)}static bytes14(a){return b(a,14)}static bytes15(a){return b(a,15)}static bytes16(a){return b(a,16)}static bytes17(a){return b(a,17)}static bytes18(a){return b(a,18)}static bytes19(a){return b(a,19)}static bytes20(a){return b(a,20)}static bytes21(a){return b(a,21)}static bytes22(a){return b(a,22)}static bytes23(a){return b(a,23)}static bytes24(a){return b(a,24)}static bytes25(a){return b(a,25)}static bytes26(a){return b(a,26)}static bytes27(a){return b(a,27)}static bytes28(a){return b(a,28)}static bytes29(a){return b(a,29)}static bytes30(a){return b(a,30)}static bytes31(a){return b(a,31)}static bytes32(a){return b(a,32)}static address(a){return new ln(_gaurd,"address",a)}static bool(a){return new ln(_gaurd,"bool",!!a)}static bytes(a){return new ln(_gaurd,"bytes",a)}static string(a){return new ln(_gaurd,"string",a)}static array(a,d){throw new Error("not implemented yet")}static tuple(a,d){throw new Error("not implemented yet")}static overrides(a){return new ln(_gaurd,"overrides",Object.assign({},a))}static isTyped(a){return a&&typeof a=="object"&&"_typedSymbol"in a&&a._typedSymbol===_typedSymbol}static dereference(a,d){if(ln.isTyped(a)){if(a.type!==d)throw new Error(`invalid type: expecetd ${d}, got ${a.type}`);return a.value}return a}};Qn=new WeakMap;let Typed=ln;class AddressCoder extends Coder{constructor(a){super("address","address",a,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(a,d){let et=Typed.dereference(d,"string");try{et=getAddress$1(et)}catch(nt){return this._throwError(nt.message,d)}return a.writeValue(et)}decode(a){return getAddress$1(toBeHex(a.readValue(),20))}}class AnonymousCoder extends Coder{constructor(d){super(d.name,d.type,"_",d.dynamic);Gr(this,"coder");this.coder=d}defaultValue(){return this.coder.defaultValue()}encode(d,et){return this.coder.encode(d,et)}decode(d){return this.coder.decode(d)}}function pack(c,a,d){let et=[];if(Array.isArray(d))et=d;else if(d&&typeof d=="object"){let wt={};et=a.map(St=>{const Mt=St.localName;return assert$s(Mt,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:St},value:d}),assert$s(!wt[Mt],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:St},value:d}),wt[Mt]=!0,d[Mt]})}else assertArgument(!1,"invalid tuple value","tuple",d);assertArgument(a.length===et.length,"types/value length mismatch","tuple",d);let nt=new Writer,tt=new Writer,bt=[];a.forEach((wt,St)=>{let Mt=et[St];if(wt.dynamic){let _t=tt.length;wt.encode(tt,Mt);let Tt=nt.writeUpdatableValue();bt.push(Rt=>{Tt(Rt+_t)})}else wt.encode(nt,Mt)}),bt.forEach(wt=>{wt(nt.length)});let gt=c.appendWriter(nt);return gt+=c.appendWriter(tt),gt}function unpack(c,a){let d=[],et=[],nt=c.subReader(0);return a.forEach(tt=>{let bt=null;if(tt.dynamic){let gt=c.readIndex(),wt=nt.subReader(gt);try{bt=tt.decode(wt)}catch(St){if(isError$1(St,"BUFFER_OVERRUN"))throw St;bt=St,bt.baseType=tt.name,bt.name=tt.localName,bt.type=tt.type}}else try{bt=tt.decode(c)}catch(gt){if(isError$1(gt,"BUFFER_OVERRUN"))throw gt;bt=gt,bt.baseType=tt.name,bt.name=tt.localName,bt.type=tt.type}if(bt==null)throw new Error("investigate");d.push(bt),et.push(tt.localName||null)}),Result.fromItems(d,et)}class ArrayCoder extends Coder{constructor(d,et,nt){const tt=d.type+"["+(et>=0?et:"")+"]",bt=et===-1||d.dynamic;super("array",tt,nt,bt);Gr(this,"coder");Gr(this,"length");defineProperties(this,{coder:d,length:et})}defaultValue(){const d=this.coder.defaultValue(),et=[];for(let nt=0;ntbt||nt<-(bt+BN_1$1))&&this._throwError("value out-of-bounds",et),nt=toTwos(nt,8*WordSize)}else(ntmask(tt,this.size*8))&&this._throwError("value out-of-bounds",et);return d.writeValue(nt)}decode(d){let et=mask(d.readValue(),this.size*8);return this.signed&&(et=fromTwos(et,this.size*8)),et}}class StringCoder extends DynamicBytesCoder{constructor(a){super("string",a)}defaultValue(){return""}encode(a,d){return super.encode(a,toUtf8Bytes(Typed.dereference(d,"string")))}decode(a){return toUtf8String(super.decode(a))}}class TupleCoder extends Coder{constructor(d,et){let nt=!1;const tt=[];d.forEach(gt=>{gt.dynamic&&(nt=!0),tt.push(gt.type)});const bt="tuple("+tt.join(",")+")";super("tuple",bt,et,nt);Gr(this,"coders");defineProperties(this,{coders:Object.freeze(d.slice())})}defaultValue(){const d=[];this.coders.forEach(nt=>{d.push(nt.defaultValue())});const et=this.coders.reduce((nt,tt)=>{const bt=tt.localName;return bt&&(nt[bt]||(nt[bt]=0),nt[bt]++),nt},{});return this.coders.forEach((nt,tt)=>{let bt=nt.localName;!bt||et[bt]!==1||(bt==="length"&&(bt="_length"),d[bt]==null&&(d[bt]=d[tt]))}),Object.freeze(d)}encode(d,et){const nt=Typed.dereference(et,"tuple");return pack(d,this.coders,nt)}decode(d){return unpack(d,this.coders)}}function id$1(c){return keccak256$2(toUtf8Bytes(c))}function decode_arithmetic(c){let a=0;function d(){return c[a++]<<8|c[a++]}let et=d(),nt=1,tt=[0,1];for(let Vt=1;Vt>--wt&1}const _t=31,Tt=2**_t,Rt=Tt>>>1,kt=Rt>>1,It=Tt-1;let Lt=0;for(let Vt=0;Vt<_t;Vt++)Lt=Lt<<1|Mt();let Ot=[],Nt=0,Ft=Tt;for(;;){let Vt=Math.floor(((Lt-Nt+1)*nt-1)/Ft),Jt=0,ir=et;for(;ir-Jt>1;){let lr=Jt+ir>>>1;Vt>>1|Mt(),rr=rr<<1^Rt,er=(er^Rt)<<1|Rt|1;Nt=rr,Ft=1+er-rr}let jt=et-4;return Ot.map(Vt=>{switch(Vt-jt){case 3:return jt+65792+(c[gt++]<<16|c[gt++]<<8|c[gt++]);case 2:return jt+256+(c[gt++]<<8|c[gt++]);case 1:return jt+c[gt++];default:return Vt-1}})}function read_payload(c){let a=0;return()=>c[a++]}function read_compressed_payload(c){return read_payload(decode_arithmetic(unsafe_atob(c)))}function unsafe_atob(c){let a=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((nt,tt)=>a[nt.charCodeAt(0)]=tt);let d=c.length,et=new Uint8Array(6*d>>3);for(let nt=0,tt=0,bt=0,gt=0;nt=8&&(et[tt++]=gt>>(bt-=8));return et}function signed(c){return c&1?~c>>1:c>>1}function read_deltas(c,a){let d=Array(c);for(let et=0,nt=0;et{let a=read_sorted(c);if(a.length)return a})}function read_mapped(c){let a=[];for(;;){let d=c();if(d==0)break;a.push(read_linear_table(d,c))}for(;;){let d=c()-1;if(d<0)break;a.push(read_replacement_table(d,c))}return a.flat()}function read_array_while(c){let a=[];for(;;){let d=c(a.length);if(!d)break;a.push(d)}return a}function read_transposed(c,a,d){let et=Array(c).fill().map(()=>[]);for(let nt=0;ntet[bt].push(tt));return et}function read_linear_table(c,a){let d=1+a(),et=a(),nt=read_array_while(a);return read_transposed(nt.length,1+c,a).flatMap((bt,gt)=>{let[wt,...St]=bt;return Array(nt[gt]).fill().map((Mt,_t)=>{let Tt=_t*et;return[wt+_t*d,St.map(Rt=>Rt+Tt)]})})}function read_replacement_table(c,a){let d=1+a();return read_transposed(d,1+c,a).map(nt=>[nt[0],nt.slice(1)])}var r$1=read_compressed_payload("AEgSbwjEDVYByQKaAQsBOQDpATQAngDUAHsAoABoANQAagCNAEQAhABMAHIAOwA9ACsANgAmAGIAHgAvACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGAAeABMAFwAXAA0ADgAWAA8AFAAVBFsF1QEXE0o3xAXUALIArkABaACmAgPGAK6AMDAwMAE/qAYK7P4HQAblMgVYBVkAPSw5Afa3EgfJwgAPA8meNALGCjACjqIChtk/j2+KAsXMAoPzASDgCgDyrgFCAi6OCkCQAOQA4woWABjVuskNDD6eBBx4AP4COhi+D+wKBirqBgSCaA0cBy4ArABqku+mnIAAXAaUJAbqABwAPAyUFvyp/Mo8INAIvCoDshQ8APcubKQAon4ZABgEJtgXAR4AuhnOBPsKIE04CZgJiR8cVlpM5INDABQADQAWAA9sVQAiAA8ASO8W2T30OVnKluYvChEeX05ZPe0AFAANABYAD2wgXUCYAMPsABwAOgzGFryp/AHauQVcBeMC0KACxLEKTR2kZhR0Gm5M9gC8DmgC4gAMLjSKF8qSAoF8ARMcAL4OaALiAAwuAUlQJpJMCwMt/AUpCthqGK4B2EQAciwSeAIyFiIDKCi6OGwAOuIB9iYAyA7MtgEcZIIAsgYABgCK1EoFHNZsGACoKNIBogAAAAAAKy4DnABoAQoaPu43dQQZGACrAcgCIgDgLBJ0OvRQsTOiKDVJBfsoBVoFWbC5BWo7XkITO1hCmHuUZmCh+QwUA8YIJvJ4JASkTAJUVAJ2HKwoAZCkpjZcA0YYBIRiCgDSBqxAMCQHKgI6XgBsAWIgcgCEHhoAlgFKuAAoahgBsMYDOC4iRFQBcFoGZgJmAPJKGAMqAgYASkIArABeAHQALLYGCPTwGo6AAAAKIgAqALQcSAHSAdwIDDKXeYHpAAsAEgA1AD4AOTR3etTBEGAQXQJNCkxtOxUMAq0PpwvmERYM0irM09kANKoH7ANUB+wDVANUB+wH7ANUB+wDVANUA1QDVBwL8BvUwRBgD0kEbgWPBYwE1wiEJkoRggcpCNNUDnQfHEgDRgD9IyZJHTuUMwwlQ0wNTQQH/TZDbKh9OQNIMaxU9pCjA8wyUDltAh5yEqEAKw90HTW2Tn96SHGhCkxPr7WASWNOaAK/Oqk/+QoiCZRvvHdPBj4QGCeiEPQMMAGyATgN6kvVBO4GOATGH3oZFg/KlZkIoi3aDOom4C6egFcj8iqABepL8TzaC0pRZQ9WC2IJ4DpggUsDHgEKIogK2g02CGoQ8ArGaA3iEUIHNgPSSZcAogb+Cw4dMhWyJg1iqQsGOXQG+BrzC4wmrBMmevkF0BoeBkoBJhr8AMwu5IWtWi5cGU9cBgALIiPEFKVQHQ0iQLR4RRoYBxIlpgKOQ21KhFEzHpAh8zw6DWMuEFF5B/I8AhlMC348m0aoRQsRzz6KPUUiRkwpBDJ8LCwniAnMD4IMtnxvAVYJHgmuDG4TLhEUN8IINgcWKpchJxIIHkaSYJcE9JwD8BPOAwgFPAk+BxADshwqEysVJgUKgSHUAvA20i6wAoxWfQEUBcgPIh/cEE1H3Q7mCJgCYgOAJegAKhUeABQimAhAYABcj9VTAi7ICMRqaSNxA2QU5F4RcAeODlQHpBwwFbwc3nDFXgiGBSigrAlYAXIJlgFcBOAIBjVYjJ0gPmdQi1UYmCBeQTxd+QIuDGIVnES6h3UCiA9oEhgBMgFwBzYM/gJ0EeoRaBCSCOiGATWyM/U6IgRMIYAgDgokA0xsywskJvYM9WYBoBJfAwk0OnfrZ6hgsyEX+gcWMsJBXSHuC49PygyZGr4YP1QrGeEHvAPwGvAn50FUBfwDoAAQOkoz6wS6C2YIiAk8AEYOoBQH1BhnCm6MzQEuiAG0lgNUjoACbIwGNAcIAGQIhAV24gAaAqQIoAACAMwDVAA2AqoHmgAWAII+AToDJCwBHuICjAOQCC7IAZIsAfAmBBjADBIA9DRuRwLDrgKAZ2afBdpVAosCRjIBSiIEAktETgOsbt4A2ABIBhDcRAESqEfIF+BAAdxsKADEAPgAAjIHAj4BygHwagC0AVwLLgmfsLIBSuYmAIAAEmgB1AKGANoAMgB87gFQAEoFVvYF0AJMRgEOLhUoVF4BuAMcATABCgB2BsiKosYEHARqB9ACEBgV3gLvKweyAyLcE8pCwgK921IAMhMKNQqkCqNgWF0wAy5vPU0ACx+lPsQ/SwVOO1A7VTtQO1U7UDtVO1A7VTtQO1UDlLzfvN8KaV9CYegMow3RRMU6RhPYYE5gLxPFLbQUvhXLJVMZOhq5JwIl4VUGDwEt0GYtCCk0che5ADwpZYM+Y4MeLQpIHORTjlT1LRgArkufM6wNqRsSRD0FRHXqYicWCwofAmR+AmI/WEqsWDcdAqH0AmiVAmYGAp+BOBgIAmY4AmYjBGsEfAN/EAN+jzkDOXQUOX86ICACbBoCMjM4BwJtxAJtq+yHMGRCKAFkANsA3gBHAgeVDIoA+wi/AAqyAncsAnafPAJ5SEACeLcaWdhFq0bwAnw8AnrFAn0GAnztR/1IemAhACgSSVVKWBIUSskC0P4C0MlLJAOITAOH40TCkS8C8p5dAAMDq0vLTCoiAMxNSU2sAos8AorVvhgEGkBkArQCjjQCjlk9lH4CjtYCjll1UbFTMgdS0VSCApP4ApMJAOYAGVUbVaxVzQMsGCmSgzLeeGNFODYCl5wC769YHqUAViIClowClnmZAKZZqVoGfkoAOAKWsgKWS1xBXM4CmcgCmWFcx10EFgKcmDm/OpoCnBMCn5gCnrWHABoMLicMAp3uAp6PALI6YTFh7AKe0AKgawGmAp6cHAKeS6JjxWQkIigCJ6wCJnsCoPgCoEnUAqYsAqXLAqf8AHoCp+9oeWiuAABGahlqzgKs4AKsqwKtZAKs/wJXGgJV2QKx3tQDH0tslAKyugoCsuUUbN1tYG1FXAMlygK2WTg8bo0DKUICuFsCuUQSArkndHAzcN4CvRYDLa8DMg4CvoVx/wMzbgK+F3Mfc0wCw8gCwwFzf3RIMkJ03QM8pAM8lwM9vALFeQLGRALGDYYCyGZOAshBAslMAskrAmSaAt3PeHZeeKt5IkvNAxigZv8CYfEZ8JUhewhej164DgLPaALPaSxIUM/wEJwAw6oCz3ABJucDTg9+SAIC3CQC24cC0kwDUlkDU1wA/gNViYCGPMgT6l1CcoLLg4oC2sQC2duEDYRGpzkDhqIALANkC4ZuVvYAUgLfYgLetXB0AuIs7REB8y0kAfSYAfLPhALr8ALpbXYC6vYC6uEA9kQBtgLuhgLrmZanlwAC7jwDhd2YdnDdcZ4C8wAAZgOOE5mQAvcQA5FrA5KEAveVAvnWAvhjmhmaqLg0mxsDnYAC/vcBGAA2nxmfsAMFigOmZwOm1gDOwgMGZ6GFogIGAwxGAQwBHAdqBl62ZAIAuARovA6IHrAKABRyNgAgAzASSgOGfAFgJB4AjOwAHgDmoAScjgi0BhygwgCoBRK86h4+PxZ5BWk4P0EsQiJCtV9yEl+9AJbGBTMAkE0am7o7J2AzErrQDjAYxxiKyfcFWAVZBVgFWQVkBVkFWAVZBVgFWQVYBVkFWAVZRxYI2IZoAwMDCmVe6iwEygOyBjC8vAC8BKi8AOhBKhazBUc+aj5xQkBCt192OF/pAFgSM6wAjP/MbMv9puhGez4nJAUsFyg3Nn5u32vB8hnDLGoBbNdvMRgFYAVrycLJuQjQSlwBAQEKfV5+jL8AND+CAAQW0gbmriQGAIzEDAMCDgDlZh4+JSBLQrJCvUI5JF8oYDcoOSQJwj4KRT9EPnk+gj5xPnICikK9SkM8X8xPUGtOCy1sVTBrDG8gX+E0OxwJaJwKYyQsPR4nQqxCvSzMAsv9X8oPIC8KCQoAACN+nt9rOy5LGMmsya0JZsLMzQphQWAP5hCkEgCTjh5GQiYbqm06zjkKND9EPnFCQBwICx5NSG1cLS5a4rwTCn7uHixCQBxeCUsKDzRVREM4BTtEnC0KghwuQkAb9glUIyQZMTIBBo9i8F8KcmTKYAxgLiRvAERgGjoDHB9gtAcDbBFmT2BOEgIAZOhgFmCWYH5gtGBMYJJpFhgGtg/cVqq8WwtDF6wBvCzOwgMgFgEdBB8BegJtMDGWU4EBiwq5SBsA5SR0jwvLDqdN6wGcAoidUAVBYAD4AD4LATUXWHsMpg0lILuwSABQDTUAFhO4NVUC0wxLZhEcANlPBnYECx9bADIAtwKbKAsWcKwzOaAaAVwBhwn9A9ruEAarBksGugAey1aqWwq7YhOKCy1ADrwBvAEjA0hbKSkpIR8gIi0TJwciDY4AVQJvWJFKlgJvIA9ySAHUdRDPUiEaqrFN6wcSBU1gAPgAPgsBewAHJW0LiAymOTEuyLBXDgwAYL0MAGRKaFAiIhzAADIAtwKbKC08D88CkRh8ULxYyXRzjtilnA72mhU+G+0S2hIHDxwByAk7EJQGESwNNwwAPAC0zwEDAKUA4gCbizAAFQBcG8cvbXcrDsIRAzwlRNTiHR8MG34CfATCC6vxbQA4Oi4Opzkuz6IdB7wKABA7Ls8SGgB9rNsdD7wbSBzOoncfAT4qYB0C7KAJBE3z5R9mDL0M+wg9Cj8ABcELPgJMDbwIvQ09CT0KvS7PoisOvAaYAhwPjBriBBwLvBY8AKELPBC8BRihe90AO2wMPQACpwm9BRzR9QYFB2/LBnwAB7wSXBISvQECAOsCAAB1FVwHFswV/HAXvBg8AC68AuyovAAevAJWISuAAAG8AALkFT0VvCvso7zJqDwEAp8nTAACXADn3hm8CaVcD7/FAPUafAiiBQv/cQDfvKe8GNwavKOMeXMG/KmchAASvAcbDAADlABtvAcAC7ynPAIaPLsIopzLDvwHwak8AOF8L7dtvwNJAAPsABW8AAb8AAm8AGmMABq8AA68Axi8jmoV/AABXAAObAAuTB8ABrwAF7wIIgANSwC6vCcAA7wADpwq7ACyWwAcHAAbvAAB7AqiAAXHCxYV3AAHnABCvAEDAGm8AAt8AB28AAi8CaIABcsAbqAZ1gCSCCIABcsAATwAB9wAHZwIIgAGmwAJfAAbLABtHADmvIEACFwACDwAFLwAaPwJIgAGywDjjAAJPAuiDsX7YAAHPABunUBJAEgACrwFAAM8AAmuAzgABxwAGXwAAgym/AAKHAAKPAAJ/KfsBrwACRwAAwwAEDwBABQ8ABFsAA+MAA3sAA28ABkMBxYcABU8AG6cFrQBvAC7ABM8BABpLAsA4UwAAjwABFMAF3wFHAAG0QAYvB8BfClTADpGALAJBw4McwApK3EBpQYIXwJtJA0ACghwTG1gK4oggRVjLjcDogq1AALZABcC/ARvAXdzSFMVIgNQAhY/AS0GBHRHvnxTe0EAKgAyAvwAVAvcAHyRLQEsAHfmDhIzRwJLAFgGAAJRAQiLzQB5PAQhpgBbANcWAJZpOCCMAM5ssgDQ1RcJw3Z0HBlXHgrSAYmRrCNUVE5JEz3DivoAgB04QSos4RKYUABzASosMSlDGhADMVYE+MbvAExm3QBrAnICQBF7Osh4LzXWBhETIAUVCK6v/xPNACYAAQIbAIYAiQCONgDjALQA1QCdPQC7AKsApgChAOcAnwDTAJwA4AEBAPwAwAB6AFsAywDNAPwA1wDrAIkAogEqAOMA2ADVBAIIKzTT09PTtb/bzM/NQjEWAUsBVS5GAVMBYgFhAVQBRUpCRGcMAUwUBgkEMzcMBwAgDSQmKCs3OTk8PDw9Pg0/HVBQUFBSUlFSKFNUVlVVHFxgYF9hYCNlZ29ucXFxcXFxc3Nzc3Nzc3Nzc3N1dXZ1dFsAPesAQgCTAHEAKwBf8QCHAFAAUAAwAm/oAIT+8fEAXQCM6wCYAEgAWwBd+PipAH4AfgBiAE8AqgAdAK8AfAI5AjwA9QDgAPcA9wDhAPgA4gDiAOEA3wAoAnQBSgE5ATcBTQE3ATcBNwEyATEBMQExARUBURAAKgkBAEwYCxcEFhcPAIcAjwCfAEoAYxkCKgBvAGgAkAMOAyArAxpCP0gqAIoCSADAAlACnQC5Ao8CjwKPAo8CjwKPAoQCjwKPAo8CjwKPAo8CjgKOApECmQKQAo8CjwKNAo0CjQKNAosCjgJuAc0CkAKYAo8CjwKOF3oMAPcGA5gCWgIzGAFNETYC2xILLBQBRzgUTpIBdKU9AWJaAP4DOkgA/wCSKh4ZkGsAKmEAagAvAIoDlcyM8K+FWwa7LA/DEgKe1nUrCwQkWwGzAN5/gYB/gX+Cg4N/hIeFf4aJh4GIg4mDin+Lf4x/jYuOf49/kIORf5J/k3+Uf5WElomXg5h/AIMloQCEBDwEOQQ7BD4EPARCBD8EOgRABEIEQQQ9BD8EQgCkA4gAylIA0AINAPdbAPcBGgD3APUA9QD2APXVhSRmvwD3APUA9QD2APUdAIpbAPcAigEaAPcAigLtAPcAitWFJGa/HQD4WwEaAPcA9wD1APUA9gD1APgA9QD1APYA9dWFJGa/HQCKWwEaAPcAigD3AIoC7QD3AIrVhSRmvx0CRAE3AksBOgJMwgOfAu0Dn9WFJGa/HQCKWwEaA58AigOfAIoC7QOfAIrVhSRmvx0EMQCKBDIAigeOMm4hLQCKAT9vBCQA/gDHWwMAVVv/FDMDAIoDPtkASgMAigMAl2dBtv/TrfLzakaPh3aztmIuZQrR3ER2n5Yo+qNR2jK/aP/V04UK1njIJXLgkab9PjOxyJDVbIN3R/FZLoZVl2kYFQIZ7V6LpRqGDt9OdDohnJKp5yX/HLj0voPpLrneDaN11t5W3sSM4ALscgSw8fyWLVkKa/cNcQmjYOgTLZUgOLi2F05g4TR0RfgZ4PBdntxdV3qvdxQt8DeaMMgjJMgwUxYN3tUNpUNx21AvwADDAIa0+raTWaoBXmShAl5AThpMi282o+WzOKMlxjHj7a+DI6AM6VI9w+xyh3Eyg/1XvPmbqjeg2MGXugHt8wW03DQMRTd5iqqOhjLvyOCcKtViGwAHVLyl86KqvxVX7MxSW8HLq6KCrLpB8SspAOHO9IuOwCh9poLoMEha9CHCxlRAXJNDobducWjqhFHqCkzjTM2V9CHslwq4iU19IxqhIFZMve15lDTiMVZIPdADXGxTqzSTv0dDWyk1ht430yvaYCy9qY0MQ3cC5c1uw4mHcTGkMHTAGC99TkNXFAiLQgw9ZWhwKJjGCe+J5FIaMpYhhyUnEgfrF3zEtzn40DdgCIJUJfZ0mo3eXsDwneJ8AYCr7Vx2eHFnt2H6ZEyAHs9JoQ4Lzh5zBoGOGwAz37NOPuqSNmZf51hBEovtpm2T1wI79OBWDyvCFYkONqAKGVYgIL0F+uxTcMLSPtFbiNDbBPFgip8MGDmLLHbSyGXdCMO6f7teiW9EEmorZ+75KzanZwvUySgjoUQBTfHlOIerJs6Y9wLlgDw18AB1ne0tZRNgGjcrqHbtubSUooEpy4hWpDzTSrmvqw0H9AoXQLolMt9eOM+l9RitBB1OBnrdC1XL4yLFyXqZSgZhv7FnnDEXLUeffb4nVDqYTLY6X7gHVaK4ZZlepja2Oe6OhLDI/Ve5SQTCmJdH3HJeb14cw99XsBQAlDy5s5kil2sGezZA3tFok2IsNja7QuFgM30Hff3NGSsSVFYZLOcTBOvlPx8vLhjJrSI7xrNMA/BOzpBIJrdR1+v+zw4RZ7ry6aq4/tFfvPQxQCPDsXlcRvIZYl+E5g3kJ+zLMZon0yElBvEOQTh6SaAdIO6BwdqJqfvgU+e8Y65FQhdiHkZMVt9/39N2jGd26J6cNjq8cQIyp6RonRPgVn2fl89uRDcQ27GacaN0MPrcNyRlbUWelKfDfyrNVVGBG5sjd3jXzTx06ywyzuWn5jbvEfPPCTbpClkgEu9oPLKICxU5HuDe3jA1XnvU85IYYhaEtOU1YVWYhEFsa4/TQj3rHdsU2da2eVbF8YjSI0m619/8bLMZu3xildwqM7zf1cjn4Whx0PSYXcY5bR7wEQfGC7CTOXwZdmsdTO8q3uGm7Rh/RfCWwpzBHCAaVfjxgibL5vUeL0pH6bzDmI9yCXKC/okkmbc28OJvI87L/bjFzpq0DHepw4kT1Od+fL7cyuFaRgfaUWB2++TCFvz11J0leEtrGkpccfX9z2LY39sph4PBHCjNOOkd0ybUm+ZzS8GkFbqMpq8uiX2yHpa0jllTLfGTDBMYR6FT5FWLLDPMkYxt1Q0eyMvxJWztDjy0m6VvZPvamrFXjHmPpU6WxrZqH6WW//I37RwvqPQhPz8I3RPuXAk1C94ZprQWm9iGM/KgiGDO6SV9sjp+Jmk4TBajMNJ5zzWZ1k1jrteQQBp9C2dOvmbIeeEME8y573Q8TgGe+ZCzutM45gYLBzYm2LNvgq2kebAbMpHRDSyh6dQ27GbsAAdCqQVVXWC1C+zpwBM2Lr4eqtobmmu1vJEDlIQR1iN8CUWpztq50z7FFQBn3SKViX6wSqzVQCoYvAjByjeSa+h1PRnYWvBinTDB9cHt4eqDsPS4jcD3FwXJKT0RQsl8EvslI2SFaz2OtmYLFV8FwgvWroZ3fKmh7btewX9tfL2upXsrsqpLJzpzNGyNlnuZyetg7DIOxQTMBR7dqlrTlZ6FWi1g4j1NSjA2j1Yd7fzTH6k9LxCyUCneAKYCU581bnvKih6KJTeTeCX4Zhme/QIz7w2o+AdSgtLAkdrLS9nfweYEqrMLsrGGSWXtgWamAWp6+x6GM/Z8jNw3BqPNQ39hrzYLECn3tPvh/LqKbRSCiDGauDKBBj/kGbpnM1Bb/my8hv4NWStclkwjfl57y4oNDgw1JAG9VOti3QVVoSziMEsSdfEjaCPIDb7SgpLXykQsM+nbqbt97I0mIlzWv0uqFobLMAq8Rd9pszUBKxFhBPwOjf//gVOz2r7URJ2OnpviCXv9iz3a4X/YLBYbXoYwxBv/Kq0a5s4utQHzoTerJ7PmFW/no/ZAsid/hRIV82tD+Qabh5F1ssIM8Ri3chu0PuPD3sSJRMjDoxLAbwUbroiPAz/V52e8s3DIixxlO7OrvhMj3qfzA0kKxzwicr5wJmZwJxTXgrwYsqhRvpgC2Nfdyd+TYYxJSZgk+gk2g9KyHSlwQVAyPtWWgvVGyVBqsU2LpDlLNosSAtolC1uBKt5pQZLhAxTjeGCWIC/HVpagc5rRwkgpCHKEsjA8d+scp8aiMewwQBhp5dYTV5t/Nvl+HbDMu8F3S0psPyZb1bSnqlHPFUnMQeQqSqwDBT23fJO9gO3aVaa1icrXU0PKwlMM5K+iL3ATcVq2fFWKk0irCTF4LDVDG4gUpkyplq6efcZS+WDR1woApjD18x+2JQR9oOXzuA7uy4b+/91WsJd/tSd1QcAH8PVPXApieA37B7YXPhDPH1azP3PKR+HfHmOoDYLeuKsIi/ssSsdYs62qJo14Hw1P2N/6zpr8F3FTWmJ4ysAVcl84Iv/tl///Z8FaAWbBQbyMNDZjrZ2JwdRjtd1jOeNumSodFtr4/Zf45iRJf/8HSW+KIB/+GlKu8Rv1BPLr/4duoL+kFPRqrstEr41gfJupoJRf4hcYDWX93FOcfEBiIivxtjtV8g7mvOReiamYWKE7vfPbv3v2L9Kwq3cIDFGLyhyfOGuf/9vA5muH6Pjg7B4SUj2ydDXra9fSBI+DrsNHA6l51wfHssJb+11TfNk7B8OleUe3Y+ZmHboMFHdv7FFP2cfISFyeAQR0sk/Xv62HBTdW4HmnGSLFk/cqyWVVFJkdIIa+4hos3JRHcqLoRKM5h2Qtk1RZtzISMtlXTfTqIc77YsCCgQD0r61jtxskCctwJOtjE/pL8wC4LBD4AZFjh2wzzFCrT/PNqW0/DeBbkfMfzVm9yy06WiF+1mTdNNEAytVtohBKg3brWd2VQa+aF+cQ0mW5CvbwOlWCT07liX226PjiVLwFCRs/Ax2/u+ZNPjrNFIWIPf5GjHyUKp60OeXe9F01f7IaPf/SDTvyDAf7LSWWejtiZcsqtWZjrdn6A2MqBwnSeKhrZOlUMmgMionmiCIvXqKZfmhGZ1MwD3uMF4n9KJcfWLA3cL5pq48tm5NDYNh3SS/TKUtmFSlQR89MR4+kxcqJgpGbhm9gXneDELkyqAN5nitmIzTscKeJRXqd64RiaOALR2d295NWwbjHRNG2AU5oR9OS2oJg/5CY6BFPc1JvD2Mxdhp2/MZdI8dLePxiP4KRIp8VXmqfg+jqd/RNG7GNuq1U2SiI4735Bdc0MVFx6mH5UOWEa5HuhYykd6t4M1gYLVS8m1B+9bUqi5DziQq7qT8d94cxB6AB4WqMCOF/zPPtRSZUUaMSsvHOWxGASufywTX8ogy6HgUf9p+Z30wUEosl8qgmwm6o2AV6nO9HKQjRHpN6SUegI5pvR61RLnUJ1lqCtmfcsRQutEizVpAaPXN7xMp5UQ5OSZK6tniCK9CpyMd7LjR6+MxfoMEDPpWdf2p2m5N3KO4QMxf+V7vGdYjemQczQ+m2MGIkFNYDMf0Yop2eSx81sP36WHUczqEhKysp2iJSYAvfgJjinKwToPvRKb+HBi+7cJ96S5ngfLOXaHAFRLkulo4TnXTFO51gX0TCCo4ZUHdbpdgkMEwUZAPjh6M+hA8DzycbtxAgH3uD6i0nN1aTiIuQ4BYCE9dEHHwAmINU+4YEWx4EC3OZwFGfYZMPLScVlb+BAAJeARUh+gdWA3/gRqCrf1jecgqeFf1MdzrrP4SVlGm5mMihSP+zYYksAB7O+SBPwNQqSNMiLnkviY/klwgcRmvqtCqeWeA0gjuir4CMZqmw/ntP6M+l0pdN8/P9xI53aP7x/zavJbbKOz8VzO/nXxIr1tjparMnqd6iWdByHKw4lF4p/u57Yv07WeZPDnRl7wgmDVZZ44fQsjdYO/gmXQ+940PRGst8UMQApFC4OOV22e4N+lVOPyFLAOj4t8R3PFw/FjbSWy0ELuAFReNkee8ORcBOT2NPDcs7OfpUmzvn/F9Czk9o9naMyVYy/j8I5qVFmQDFcptBp65J/+sJA3w/j6y/eqUkKxTsf0CZjtNdRSBEmJ2tmfgmJbqpcsSagk+Ul9qdyV+NnqFBIJZFCB1XwPvWGDBOjVUmpWGHsWA5uDuMgLUNKZ4vlq5qfzY1LnRhCc/mh5/EX+hzuGdDy5aYYx4BAdwTTeZHcZpl3X0YyuxZFWNE6wFNppYs3LcFJePOyfKZ8KYb7dmRyvDOcORLPH0sytC6mH1US3JVj6paYM1GEr+CUmyHRnabHPqLlh6Kl0/BWd3ebziDfvpRQpPoR7N+LkUeYWtQ6Rn5v5+NtNeBPs2+DKDlzEVR5aYbTVPrZekJsZ9UC9qtVcP99thVIt1GREnN8zXP8mBfzS+wKYym8fcW6KqrE702Zco+hFQAEIR7qimo7dd7wO8B7R+QZPTuCWm1UAwblDTyURSbd85P4Pz+wBpQyGPeEpsEvxxIZkKsyfSOUcfE3UqzMFwZKYijb7sOkzpou+tC4bPXey5GI1GUAg9c3vLwIwAhcdPHRsYvpAfzkZHWY20vWxxJO0lvKfj6sG2g/pJ1vd/X2EBZkyEjLN4nUZOpOO7MewyHCrxQK8d5aF7rCeQlFX+XksK6l6z971BPuJqwdjj68ULOj9ZTDdOLopMdOLL0PFSS792SXE/EC9EDnIXZGYhr52aQb+9b2zEdBSnpkxAdBUkwJDqGCpZk/HkRidjdp0zKv/Cm52EenmfeKX6HkLUJgMbTTxxIZkIeL/6xuAaAAHbA7mONVduTHNX/UJj1nJEaI7f3HlUyiqKn7VfBE+bdb4HWln1HPJx001Ulq1tOxFf8WZEARvq5Da1+pE7fPVxLntGACz3nkoLsKcPdUqdCwwiyWkmXTd5+bv3j7HaReRt3ESn783Ew3SWsvkEjKtbocNksbrLmV+GVZn1+Uneo35MT1/4r8fngQX5/ptORfgmWfF6KSB/ssJmUSijXxQqUpzkANEkSkYgYj560OOjJr6uqckFuO15TRNgABEwNDjus1V3q2huLPYERMCLXUNmJJpbMrUQsSO7Qnxta55TvPWL6gWmMOvFknqETzqzFVO8SVkovEdYatypLGmDy9VWfgAc0KyIChiOhbd7UlbAeVLPZyEDp4POXKBwN/KP5pT6Cyqs6yaI00vXMn1ubk9OWT9Q/O2t/C25qlnO/zO0xcBzpMBCAB8vsdsh3U8fnPX1XlPEWfaYJxKVaTUgfCESWl4CCkIyjE6iQ5JFcwU6S4/IH0/Agacp8d5Gzq2+GzPnJ7+sqk40mfFQpKrDbAKwLlr3ONEati2k/ycLMSUu7V/7BBkDlNyXoN9tvqXCbbMc4SSQXgC/DBUY9QjtrCtQ+susEomCq8xcNJNNMWCH31GtlTw2BdCXkJBjT+/QNWlBWwQ5SWCh1LdQ99QVii/DyTxjSR6rmdap3l3L3aiplQpPYlrzNm9er88fXd2+ao+YdUNjtqmxiVxmyYPzJxl67OokDcTezEGqldkGgPbRdXA+fGcuZVkembZByo7J1dMnkGNjwwCny+FNcVcWvWYL9mg8oF7jACVWI3bA64EXpdM8bSIEVIAs5JJH+LHXgnCsgcMGPZyAAVBncvbLiexzg9YozcytjPXVlAbQAC7Tc4S0C8QN4LlAGjj4pQAVWrwkaDoUYGxxvkCWKRRHkdzJB5zpREleBDL1oDKEvAqmkDibVC4kTqF89YO6laUjgtJPebBfzr16tg4t10GmN1sJ5vezk2sUOq8blCn5mPZyT3ltaDcddKupQjqusNM9wtFVD0ABzv17fZDn7GPT1nkCtdcgYejcK1qOcTGtPxnCX1rErEjVWCnEJv5HaOAUjgpiKQjUKkQi64D5g2COgwas8FcgIl0Pw95H9dWxE3QG0VbMNffh6BPlAojLDf4es2/5Xfq7hw5NGcON2g8Qsy2UQm94KddKyy3kdJxWgpNaEc15xcylbLC3vnT26u8qS90qc2MU8LdOJc5VPF5KnSpXIhnj1eJJ/jszjZ01oR6JDFJRoeTPO/wh4IPFbdG9KljuSzeuI92p8JF/bpgDE8wG86/W2EBKgPrmzdLijxssQn8mM44ky/KLGOJcrSwXIpZa/Z3v7W6HCRk7ewds99LTsUW1LbeJytw8Q/BFZVZyfO9BUHOCe2suuEkO8DU4fLX0IQSQ2TdOkKXDtPf3sNV9tYhYFueuPRhfQlEEy+aYM/MCz7diDNmFSswYYlZZPmKr2Q5AxLsSVEqqBtn6hVl1BCFOFExnqnIsmyY/NA8jXnDaNzr7Zv3hu+I1Mf/PJjk0gALN2G8ABzdf9FNvWHvZHhv6xIoDCXf964MxG92vGZtx/LYU5PeZqgly8tT5tGeQGeJzMMsJc5p+a5Rn2PtEhiRzo/5Owjy1n0Lzx3ev8GHQmeWb8vagG6O5Qk5nrZuQTiKODI4UqL0LLAusS2Ve7j1Ivdxquu1BR9Rc4QkOiUPwQXJv6du2E8i5pDhVoQpUhyMWGUT2O2YODIhjAfI71gxep5r5zAY7GBUZpy51hAw0pcCCrhOmU8Wp6ujQTdZQsCjtq6SHX8QAMNiPCIIkoxhHEZPgsBcOlP4aErJZPhF7qvx6gHrn8hEwPwYbx8YmT/n7lbcmTip1v8kgsrIjFTAlvLY4Nuil0KDmgz3svYs0ZJ3O3Is/vSx4xpxF1e2VAtZE8dJxGYEIhCSuPvCjP54l/NSNDnwlKvAW8mG+AQkgp7a87Igh26uKMFGD0PoPHTSvoWxiHuk+su8XkQiHIjeYKl/RdcOHpxhQH3zHCNE3aARm83Bl6zGxU/vMltlVPQhubcqhW4RYkl6uXk5JdP/QpzaKFpw2M8zvysv2qj7xaQECuu2akM0Cssj/uB9+wDR7uA6XOnLNaoczalHoMj33eiiu+DRaFsUmlmUZuh9bjDY4INMNSSAivSh03uJvny4Gj+D+neudoa7iJi7c4VFlZ/J5gUR82308zSNAt/ZroBXDWw0fV3eVPAn3aX0mtJabF6RsUZmL+Ehn+wn51/4QipMjD+6y64t7bjL6bjENan2prQ4h7++hBJ9NXvX8CUocJqMC937IasLzm5K0qwXeFMAimMHkEIQIQI2LrQ9sLBfXuyp66zWvlsh74GPv7Xpabj993pRNNDuFud5oIcn/92isbADXdpRPbjmbCNOrwRbxGZx2XmYNGMiV5kjF4IKyxCBvKier9U4uVoheCdmk83rp5G0PihAm2fAtczI4b9BWqX+nrZTrJX5kSwQddi93NQrXG+Cl3eBGNkM77VBsMpEolhXex1MVvMkZN9fG59GGbciH11FEXaY1MxrArovaSjE/lUUqBg2cZBNmiWbvzCHCPJ4RVGFK2dTbObM1m+gJyEX53fa7u3+TZpm74mNEzWbkVL4vjNwfL9uzRCu1cgbrNx5Yv5dDruNrIOgwIk+UZWwJfdbu/WHul6PMmRflVCIzd7B37Pgm/Up/NuCiQW7RXyafevN3AL6ycciCc4ZPlTRzEu+aURGlUBOJbUEsheX7PPyrrhdUt5JAG12EEEZpY/N3Vhbl5uLAfT0CbC2XmpnryFkxZmBTs5prvEeuf0bn73i3O82WTiQtJWEPLsBXnQmdnKhB06NbbhLtlTZYJMxDMJpFeajSNRDB2v61BMUHqXggUwRJ19m6p5zl51v11q34T74lTXdJURuV6+bg2D6qpfGnLy7KGLuLZngobM4pIouz4+n0/UzFKxDgLM4h+fUwKZozQ9UGrHjcif51Ruonz7oIVZ56xWtZS8z7u5zay6J2LD4gCYh2RXoBRLDKsUlZ80R8kmoxlJiL8aZCy2wCAonnucFxCLT1HKoMhbPKt34D97EXPPh0joO93iJVF1Uruew61Qoy3ZUVNX9uIJDt9AQWKLLo+mSzmTibyLHq0D6hhzpvgUgI6ekyVEL3FD+Fi5R3A8MRHPXspN1VyKkfRlC+OGiNgPC4NREZpFETgVmdXrQ2TxChuS3aY+Ndc7CiYv5+CmzfiqeZrWIQJW/C4RvjbGUoJFf1K6ZdR2xL/bG4kVq1+I4jQWX+26YUijpp+lpN7o5c6ZodXJCF56UkFGsqz44sIg8jrdWvbjRCxi2Bk0iyM3a7ecAV93zB6h1Ei38c0s6+8nrbkopArccGP8vntQe1bFeEh2nJIFOHX/k3/UHb5PtKGpnzbkmnRETMX+9X/QduLZWw/feklW/kH/JnzToJe9Kgu9Hct1UGbH5BPCLo4OOtQnZonW0xnyCcdtKyPQ/sbLiSTYJdSx4sJqWLMnfn6fIqPB3WAgk00J+fCOkomPHqtS67pf0mFmKoItYZUlJu6BihSZ8qve8+/X+LX1MhQXF95AshfUleCtmdn6l6QFXzLg2sgLn1oyVFuZecv7fzsIHzoRlAGp0gwYDOn1S4qabWvB5xUaE+Svw4KmjWtxdnuQbI32dw87D4N95u8qQRJTSQg0wLxOLkxSrPMLEn1UIhNKjAa9VLs3WLaXGrtCIt8bKY2AQP/ZdyRU6zT/E8qP2ltyBE2CCZPgWgEYDoJJO4n92y61ylNaSFXKohJhLjkfvYWm592539sIpmBNLlDo1bExFBfmHJJ0lFEiC/fj8v42OoMC9Mo3whIoWvyHfq6Uacqq55mzFf/EGC+NP/gHjhd6urc6R0hES27VXux7UY8CGKPohplWIZtTrFSaPWslCWy78E22Pw8fvReSUZx/txqLtHrFqg1DY/Eus6Iq1heZdrdcqE0/c971Bz1HW/XNXHsXpUIbI4kHdOfCc6T5zHZzvzQJB0ggMFL6IGPAilU9bj/ASdPk6fNvNtZqPuwEDhMBtBnhCexo6D6VAGIOPvJPPV523Y8R8a9vCqZbswSZKzOT1291BsUbmUWehtbb1fdRX9hiJKXvwr1QX6GjnZMgyMvnwOo2Dr24amr7FqEAbVeJAjRNOceM2EQ1Mna9fInqPJ5mh5X8CzT1aDOv08An0blz0fF5Gq4mS2cwq5glwIOlY5nznE8X4j/UdZ3FJsVIXte1JH0A7iibuPfazStM5O/Vo3KXIpXBeGORV0M9XDXFvsYZUHGvFCUubWzTw248EHE0cpQM2zNg6rjavreq3NHCAWsoZ7wvVy7l5gvtKRmIj1MnvfWEm0yFnGcuOq192350a5WefpfKCcX3Sn+AgHU+qnpstNtddbdVebagJU390lq9ko4aI9rqdaWXYG8tv5O/ZQHSqDRYHC6zfH10l5z++opso7aOSaIczlQ13iAzXvLdEu0V7kwNUZ1c8Y8aq7SeIEe5p902FlNkW8DnwHyueHchbK8vVFJfmr9mz7P8nUSccl1ULaoWMRSI1ls32kvlK0h46h3J25Yd9AzfcJbp9qYF/SEt3H5j69mMdcsNxZcAzT/A89ov3tglTX54y/EwjMfuoDoxPwLJDm5I7q6F9Kp469yNy1zSxz0N4HbRRBj9xFFuogvBspv7DXUNIsGxTINEQfmctb42XImWAODgARNo7dfcTqFKq6aTfivmvunLmzP9f8yLsJvXD3JbcPcDGNriMAcjzeDTNr65t8YB5tsnFDFLa0Uwmd2OvUdkLMX9TsAUYUfooSv47sw5J88j7CpahRjjO3/UhOXjTS39W5YZAel2KTbQd1h7INOw9P23GW7GDAe4agIUFHP48MZr7ubq0efFmmtwYMyk7D0r1oeG/CGOODgb9Ur+JMHxkwzPbtCX2ZnENQuI0RN5SyTIZuoY4XS9Rd/tPe3vNAZGSHM/YYwqs9xkkENx0O+eC2YVW1cwOJ3ckE890nbQeHLKlW15L0P0W2VliyYrfNr0nrIYddoRyGaCtj4OYd2MT7ebApqZOAQIaSHJM4mphhfjNjtnjg6YRyx9qM2FT3xOiYIMqXPFWdzhSgFF8ItocqVV09CmIoO8k6U/oJB7++wSX/YksxfPXHyjSgAGZOj1aKEq9fSvXBqtp2wu8/FxEf5AxapAD06pPGuLVUYLdgEzHR8wqRGYEwiUO9MyYbgswstuLYhwYFpSVKOdzAihZ9LuHtD598EGhINU9xc9xhL+QgTLAstmPIvvm2xyRw/WTUPXkP3ZHu6GyPmj5xFH9/QGpkglKXRVUBgVmLOJx8uZO2AstxQYocZH2JhORlxawj66BAXUEs7K/gPxINIRAFyK3WLuyq9oBTF9wEbnmCot82WjIg7CPNwYK3KrZMrKAz5yFszg4wCVLJVnIL8+OYA0xRDH8cHQjQUiQ2i1mr/be32k/3Xej9sdf3iuGvZHyLFSJvPSqz/wltnxumTJYKZsrWXtx/Rmu39jjV9lFaJttfFn57/No2h/unsJmMHbrnZ8csxkp5HQ4xR1s0HH+t3Iz82a3iQWTUDGq/+l2W3TUYLE8zNdL8Y+5oXaIH/Y2UUcX67cXeN4WvENZjz4+8q7vjhowOI3rSjFhGZ6KzwmU7+5nFV+kGWAZ5z2UWvzq0TK0pk1hPwAN4jbw//1CApRvIaIjhSGhioY6TUmsToek9cF9XjJdHvLPcyyCV3lbR5Jiz/ts46ay2F820VjTXvllElwrGzKcNSyvQlWDXdwrUINXmHorAM3fE19ngLZmgeUaCJLsSITf2VcfAOuWwX7mTPdP8Zb/04KqRniufCpwnDUk7sP0RX6cud/sanFMagnzKInSRVey0YzlVSOtA/AjrofmSH6RYbJQ8b4NDeTkIGc6247+Mnbez/qhJ9GAv9fGNFercPnnrf285Qgs+UqThLRgflcAKFuqWhLzZaR4QqvSwa3xe0LPkqj9xJWub195r7NrrR0e78FR+0mRBNMPsraqZctAUVAJfYKehTDV1MGGQSeDsOK9J3sbUuKRIS/WilX/64CBms9jCZocBlsBSZaIAjWm/SUZ8daWL2a/cJFyUOFqE3Epc2RWbtjNyPwOGpWtzu32kUooUqsJud7IV4E8rstUBXM7tGEtBx99x60g1duhyvxeKJSl8s5E34HTMmADT0836aEdg5Dv9rVyCz8i2REOmiz6wtIVFN0HsjAoN37SrY0bV1Ms8CRUILhvZvvRaDzoVCaSI0u8EPuTe4b7OPowgRGODl22UBBmHSTUY8e4DyL+Bc7bngo+2T8HtNvzyATSL5iJZgFPKpmUyZv54vVL90+/RQGATUmNKnrIvcJMYON9fl83naW5sf6hRkbbTC9RUEE6XADwjgA46wWfUQ+QWZl0J4PVTWAln/YfAz/SV3q3J9+yCYDleruoN5uoc/wT2f4YONGTb6zTGq3V+3JqzmCOjwebKln+fExVLN7sqtqfMnsKVXWbb2Ai5m3D/fCTgX7oKYzTZvj+m28XnDqPbXuP4MyWdmPezcesdrh7rCzA7BWdObiuyDEKjjzBbQ0qnuwjliz+b+j7aPMKlkXyIznV3tGzAfYwIbzGGt098oh4eq3ruDjdgHtjxfFCjHrjjRbHajoz/YOY4raojPFQ910GIlBV7hq47UDgpyajBxQUmD8NctiLV1rTSLAEsQDLTeRKcmPBMVMFF0SPBBhZ5oXoxtD3lMhuAQXmA+57OcciczVW9e9zwSIAHS+FJmvfXMJGF1dMBsIUMaPjvgaVqUc3p32qVCMQYFEiRLzlVSOGMCmv/HJIxAHe3mL/XnoZ1IkWLeRZfgyByjnDbbeRK5KL7bYHSVJZ9UFq+yCiNKeRUaYjgbC3hVUvfJAhy/QNl/JqLKVvGMk9ZcfyGidNeo/VTxK9vUpodzfQI9Z2eAre4nmrkzgxKSnT5IJ1D69oHuUS5hp7pK9IAWuNrAOtOH0mAuwCrY8mXAtVXUeaNK3OXr6PRvmWg4VQqFSy+a1GZfFYgdsJELG8N0kvqmzvwZ02Plf5fH9QTy6br0oY/IDsEA+GBf9pEVWCIuBCjsup3LDSDqI+5+0IKSUFr7A96A2f0FbcU9fqljdqvsd8sG55KcKloHIFZem2Wb6pCLXybnVSB0sjCXzdS8IKvE");const FENCED=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),NSM_MAX=4;function hex_cp(c){return c.toString(16).toUpperCase().padStart(2,"0")}function quote_cp(c){return`{${hex_cp(c)}}`}function explode_cp(c){let a=[];for(let d=0,et=c.length;d>24&255}function unpack_cp(c){return c&16777215}const SHIFTED_RANK=new Map(read_sorted_arrays(r).flatMap((c,a)=>c.map(d=>[d,a+1<<24]))),EXCLUSIONS=new Set(read_sorted(r)),DECOMP=new Map,RECOMP=new Map;for(let[c,a]of read_mapped(r)){if(!EXCLUSIONS.has(c)&&a.length==2){let[d,et]=a,nt=RECOMP.get(d);nt||(nt=new Map,RECOMP.set(d,nt)),nt.set(et,c)}DECOMP.set(c,a.reverse())}const S0=44032,L0=4352,V0=4449,T0=4519,L_COUNT=19,V_COUNT=21,T_COUNT=28,N_COUNT=V_COUNT*T_COUNT,S_COUNT=L_COUNT*N_COUNT,S1=S0+S_COUNT,L1=L0+L_COUNT,V1=V0+V_COUNT,T1=T0+T_COUNT;function is_hangul(c){return c>=S0&&c=L0&&c=V0&&aT0&&a0&&nt(T0+St)}else{let bt=DECOMP.get(tt);bt?d.push(...bt):nt(tt)}if(!d.length)break;tt=d.pop()}if(et&&a.length>1){let tt=unpack_cc(a[0]);for(let bt=1;bt0&&nt>=bt)bt==0?(a.push(et,...d),d.length=0,et=gt):d.push(gt),nt=bt;else{let wt=compose_pair(et,gt);wt>=0?et=wt:nt==0&&bt==0?(a.push(et),et=gt):(d.push(gt),nt=bt)}}return et>=0&&a.push(et,...d),a}function nfd(c){return decomposed(c).map(unpack_cp)}function nfc(c){return composed_from_decomposed(decomposed(c))}const FE0F=65039,STOP_CH=".",UNIQUE_PH=1,HYPHEN=45;function read_set(){return new Set(read_sorted(r$1))}const MAPPED=new Map(read_mapped(r$1)),IGNORED=read_set(),CM=read_set(),NSM=new Set(read_sorted(r$1).map(function(c){return this[c]},[...CM])),ESCAPE=read_set();read_set();const CHUNKS=read_sorted_arrays(r$1);function read_chunked(){return new Set([read_sorted(r$1).map(c=>CHUNKS[c]),read_sorted(r$1)].flat(2))}const UNRESTRICTED=r$1(),GROUPS=read_array_while(c=>{let a=read_array_while(r$1).map(d=>d+96);if(a.length){let d=c>=UNRESTRICTED;a[0]-=32,a=str_from_cps(a),d&&(a=`Restricted[${a}]`);let et=read_chunked(),nt=read_chunked(),tt=[...et,...nt].sort((gt,wt)=>gt-wt),bt=!r$1();return{N:a,P:et,M:bt,R:d,V:new Set(tt)}}}),WHOLE_VALID=read_set(),WHOLE_MAP=new Map;[...WHOLE_VALID,...read_set()].sort((c,a)=>c-a).map((c,a,d)=>{let et=r$1(),nt=d[a]=et?d[a-et]:{V:[],M:new Map};nt.V.push(c),WHOLE_VALID.has(c)||WHOLE_MAP.set(c,nt)});for(let{V:c,M:a}of new Set(WHOLE_MAP.values())){let d=[];for(let nt of c){let tt=GROUPS.filter(gt=>gt.V.has(nt)),bt=d.find(({G:gt})=>tt.some(wt=>gt.has(wt)));bt||(bt={G:new Set,V:[]},d.push(bt)),bt.V.push(nt),tt.forEach(gt=>bt.G.add(gt))}let et=d.flatMap(({G:nt})=>[...nt]);for(let{G:nt,V:tt}of d){let bt=new Set(et.filter(gt=>!nt.has(gt)));for(let gt of tt)a.set(gt,bt)}}let union=new Set,multi=new Set;for(let c of GROUPS)for(let a of c.V)(union.has(a)?multi:union).add(a);for(let c of union)!WHOLE_MAP.has(c)&&!multi.has(c)&&WHOLE_MAP.set(c,UNIQUE_PH);const VALID=new Set([...union,...nfd(union)]),EMOJI_SORTED=read_sorted(r$1),EMOJI_ROOT=read_emoji_trie([]);function read_emoji_trie(c){let a=read_array_while(()=>{let gt=read_sorted(r$1).map(wt=>EMOJI_SORTED[wt]);if(gt.length)return read_emoji_trie(gt)}).sort((gt,wt)=>wt.Q.size-gt.Q.size),d=r$1(),et=d%3;d=d/3|0;let nt=d&1;d>>=1;let tt=d&1,bt=d&2;return{B:a,V:et,F:nt,S:tt,C:bt,Q:new Set(c)}}class Emoji extends Array{get is_emoji(){return!0}}function safe_str_from_cps(c,a=quote_cp){let d=[];is_combining_mark(c[0])&&d.push("◌");let et=0,nt=c.length;for(let tt=0;tt=4&&c[2]==HYPHEN&&c[3]==HYPHEN)throw new Error("invalid label extension")}function check_leading_underscore(c){for(let d=c.lastIndexOf(95);d>0;)if(c[--d]!==95)throw new Error("underscore allowed only at start")}function check_fenced(c){let a=c[0],d=FENCED.get(a);if(d)throw error_placement(`leading ${d}`);let et=c.length,nt=-1;for(let tt=1;tt{let nt=explode_cp(et),tt={input:nt,offset:d};d+=nt.length+1;let bt;try{let gt=tt.tokens=process(nt,nfc),wt=gt.length,St;if(wt){let Mt=gt[0],_t=wt>1||Mt.is_emoji;if(!_t&&Mt.every(Tt=>Tt<128))bt=Mt,check_leading_underscore(bt),check_label_extension(bt),St="ASCII";else if(_t&&(tt.emoji=!0,Mt=gt.flatMap(Tt=>Tt.is_emoji?[]:Tt)),bt=gt.flatMap(Tt=>!a&&Tt.is_emoji?filter_fe0f(Tt):Tt),check_leading_underscore(bt),!Mt.length)St="Emoji";else{if(CM.has(bt[0]))throw error_placement("leading combining mark");for(let kt=1;ktbt.has(gt)):[...bt],!d.length)return}else et.push(nt)}if(d){for(let nt of d)if(et.every(tt=>nt.V.has(tt)))throw new Error(`whole-script confusable: ${c.N}/${nt.N}`)}}function determine_group(c){let a=GROUPS;for(let d of c){let et=a.filter(nt=>nt.V.has(d));if(!et.length)throw a===GROUPS?error_disallowed(d):error_group_member(a[0],d);if(a=et,et.length==1)break}return a}function flatten(c){return c.map(({input:a,error:d,output:et})=>{if(d){let nt=d.message;throw new Error(c.length==1?nt:`Invalid label ${bidi_qq(safe_str_from_cps(a))}: ${nt}`)}return str_from_cps(et)}).join(STOP_CH)}function error_disallowed(c){return new Error(`disallowed character: ${quoted_cp(c)}`)}function error_group_member(c,a){let d=quoted_cp(a),et=GROUPS.find(nt=>nt.P.has(a));return et&&(d=`${et.N} ${d}`),new Error(`illegal mixture: ${c.N} + ${d}`)}function error_placement(c){return new Error(`illegal placement: ${c}`)}function check_group(c,a){let{V:d,M:et}=c;for(let nt of a)if(!d.has(nt))throw error_group_member(c,nt);if(et){let nt=nfd(a);for(let tt=1,bt=nt.length;ttNSM_MAX)throw new Error(`non-spacing marks: too many ${bidi_qq(safe_str_from_cps(nt.slice(tt-1,gt)))} (${gt-tt}/${NSM_MAX})`);tt=gt}}}function process(c,a){let d=[],et=[];for(c=c.slice().reverse();c.length;){let nt=consume_emoji_reversed(c);if(nt)et.length&&(d.push(a(et)),et=[]),d.push(nt);else{let tt=c.pop();if(VALID.has(tt))et.push(tt);else{let bt=MAPPED.get(tt);if(bt)et.push(...bt);else if(!IGNORED.has(tt))throw error_disallowed(tt)}}}return et.length&&d.push(a(et)),d}function filter_fe0f(c){return c.filter(a=>a!=FE0F)}function consume_emoji_reversed(c,a){let d=EMOJI_ROOT,et,nt,tt=[],bt=c.length;for(a&&(a.length=0);bt;){let gt=c[--bt];if(d=d.B.find(wt=>wt.Q.has(gt)),!d)break;if(d.S)nt=gt;else if(d.C&>===nt)break;tt.push(gt),d.F&&(tt.push(FE0F),bt>0&&c[bt-1]==FE0F&&bt--),d.V&&(et=conform_emoji_copy(tt,d),a&&a.push(...c.slice(bt).reverse()),c.length=bt)}return et}function conform_emoji_copy(c,a){let d=Emoji.from(c);return a.V==2&&d.splice(1,1),d}const Zeros=new Uint8Array(32);Zeros.fill(0);function checkComponent(c){return assertArgument(c.length!==0,"invalid ENS name; empty component","comp",c),c}function ensNameSplit(c){const a=toUtf8Bytes(ensNormalize(c)),d=[];if(c.length===0)return d;let et=0;for(let nt=0;nt{if(a.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const d=new Uint8Array(a.length+1);return d.set(a,1),d[0]=d.length-1,d})))+"00"}function accessSetify(c,a){return{address:getAddress$1(c),storageKeys:a.map((d,et)=>(assertArgument(isHexString(d,32),"invalid slot",`storageKeys[${et}]`,d),d.toLowerCase()))}}function accessListify(c){if(Array.isArray(c))return c.map((d,et)=>Array.isArray(d)?(assertArgument(d.length===2,"invalid slot set",`value[${et}]`,d),accessSetify(d[0],d[1])):(assertArgument(d!=null&&typeof d=="object","invalid address-slot set","value",c),accessSetify(d.address,d.storageKeys)));assertArgument(c!=null&&typeof c=="object","invalid access list","value",c);const a=Object.keys(c).map(d=>{const et=c[d].reduce((nt,tt)=>(nt[tt]=!0,nt),{});return accessSetify(d,Object.keys(et).sort())});return a.sort((d,et)=>d.address.localeCompare(et.address)),a}function computeAddress(c){let a;return typeof c=="string"?a=SigningKey.computePublicKey(c,!1):a=c.publicKey,getAddress$1(keccak256$2("0x"+a.substring(4)).substring(26))}function recoverAddress(c,a){return computeAddress(SigningKey.recoverPublicKey(c,a))}const BN_0$4=BigInt(0),BN_2$1=BigInt(2),BN_27=BigInt(27),BN_28=BigInt(28),BN_35=BigInt(35),BN_MAX_UINT=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function handleAddress(c){return c==="0x"?null:getAddress$1(c)}function handleAccessList(c,a){try{return accessListify(c)}catch(d){assertArgument(!1,d.message,a,c)}}function handleNumber(c,a){return c==="0x"?0:getNumber(c,a)}function handleUint(c,a){if(c==="0x")return BN_0$4;const d=getBigInt(c,a);return assertArgument(d<=BN_MAX_UINT,"value exceeds uint size",a,d),d}function formatNumber(c,a){const d=getBigInt(c,"value"),et=toBeArray(d);return assertArgument(et.length<=32,"value too large",`tx.${a}`,d),et}function formatAccessList(c){return accessListify(c).map(a=>[a.address,a.storageKeys])}function _parseLegacy(c){const a=decodeRlp(c);assertArgument(Array.isArray(a)&&(a.length===9||a.length===6),"invalid field count for legacy transaction","data",c);const d={type:0,nonce:handleNumber(a[0],"nonce"),gasPrice:handleUint(a[1],"gasPrice"),gasLimit:handleUint(a[2],"gasLimit"),to:handleAddress(a[3]),value:handleUint(a[4],"value"),data:hexlify(a[5]),chainId:BN_0$4};if(a.length===6)return d;const et=handleUint(a[6],"v"),nt=handleUint(a[7],"r"),tt=handleUint(a[8],"s");if(nt===BN_0$4&&tt===BN_0$4)d.chainId=et;else{let bt=(et-BN_35)/BN_2$1;bt=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),assert$s(!d||this.type!==0&&this.type!==1,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),assert$s(this.type!==0||!et,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const nt=[];return this.type!=null?nt.push(this.type):d?nt.push(2):a?(nt.push(1),et||nt.push(0)):et?(nt.push(1),nt.push(2)):(nt.push(0),nt.push(1),nt.push(2)),nt.sort(),nt}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}clone(){return _n.from(this)}toJSON(){const a=d=>d==null?null:d.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:a(this.gasLimit),gasPrice:a(this.gasPrice),maxPriorityFeePerGas:a(this.maxPriorityFeePerGas),maxFeePerGas:a(this.maxFeePerGas),value:a(this.value),chainId:a(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(a){if(a==null)return new _n;if(typeof a=="string"){const et=getBytes(a);if(et[0]>=127)return _n.from(_parseLegacy(et));switch(et[0]){case 1:return _n.from(_parseEip2930(et));case 2:return _n.from(_parseEip1559(et))}assert$s(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const d=new _n;return a.type!=null&&(d.type=a.type),a.to!=null&&(d.to=a.to),a.nonce!=null&&(d.nonce=a.nonce),a.gasLimit!=null&&(d.gasLimit=a.gasLimit),a.gasPrice!=null&&(d.gasPrice=a.gasPrice),a.maxPriorityFeePerGas!=null&&(d.maxPriorityFeePerGas=a.maxPriorityFeePerGas),a.maxFeePerGas!=null&&(d.maxFeePerGas=a.maxFeePerGas),a.data!=null&&(d.data=a.data),a.value!=null&&(d.value=a.value),a.chainId!=null&&(d.chainId=a.chainId),a.signature!=null&&(d.signature=Signature.from(a.signature)),a.accessList!=null&&(d.accessList=a.accessList),a.hash!=null&&(assertArgument(d.isSigned(),"unsigned transaction cannot define hash","tx",a),assertArgument(d.hash===a.hash,"hash mismatch","tx",a)),a.from!=null&&(assertArgument(d.isSigned(),"unsigned transaction cannot define from","tx",a),assertArgument(d.from.toLowerCase()===(a.from||"").toLowerCase(),"from mismatch","tx",a)),d}};yn=new WeakMap,gs=new WeakMap,ys=new WeakMap,vs=new WeakMap,ws=new WeakMap,xs=new WeakMap,Es=new WeakMap,$s=new WeakMap,Ss=new WeakMap,Ms=new WeakMap,As=new WeakMap,_s=new WeakMap;let Transaction=_n;const padding=new Uint8Array(32);padding.fill(0);const BN__1=BigInt(-1),BN_0$3=BigInt(0),BN_1=BigInt(1),BN_MAX_UINT256=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function hexPadRight(c){const a=getBytes(c),d=a.length%32;return d?concat$2([a,padding.slice(d)]):hexlify(a)}const hexTrue=toBeHex(BN_1,32),hexFalse=toBeHex(BN_0$3,32),domainFieldTypes={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},domainFieldNames=["name","version","chainId","verifyingContract","salt"];function checkString(c){return function(a){return assertArgument(typeof a=="string",`invalid domain value for ${JSON.stringify(c)}`,`domain.${c}`,a),a}}const domainChecks={name:checkString("name"),version:checkString("version"),chainId:function(c){const a=getBigInt(c,"domain.chainId");return assertArgument(a>=0,"invalid chain ID","domain.chainId",c),Number.isSafeInteger(a)?Number(a):toQuantity(a)},verifyingContract:function(c){try{return getAddress$1(c).toLowerCase()}catch{}assertArgument(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",c)},salt:function(c){const a=getBytes(c,"domain.salt");return assertArgument(a.length===32,'invalid domain value "salt"',"domain.salt",c),hexlify(a)}};function getBaseEncoder(c){{const a=c.match(/^(u?)int(\d*)$/);if(a){const d=a[1]==="",et=parseInt(a[2]||"256");assertArgument(et%8===0&&et!==0&&et<=256&&(a[2]==null||a[2]===String(et)),"invalid numeric width","type",c);const nt=mask(BN_MAX_UINT256,d?et-1:et),tt=d?(nt+BN_1)*BN__1:BN_0$3;return function(bt){const gt=getBigInt(bt,"value");return assertArgument(gt>=tt&><=nt,`value out-of-bounds for ${c}`,"value",gt),toBeHex(d?toTwos(gt,256):gt,32)}}}{const a=c.match(/^bytes(\d+)$/);if(a){const d=parseInt(a[1]);return assertArgument(d!==0&&d<=32&&a[1]===String(d),"invalid bytes width","type",c),function(et){const nt=getBytes(et);return assertArgument(nt.length===d,`invalid length for ${c}`,"value",et),hexPadRight(et)}}}switch(c){case"address":return function(a){return zeroPadValue(getAddress$1(a),32)};case"bool":return function(a){return a?hexTrue:hexFalse};case"bytes":return function(a){return keccak256$2(a)};case"string":return function(a){return id$1(a)}}return null}function encodeType$2(c,a){return`${c}(${a.map(({name:d,type:et})=>et+" "+d).join(",")})`}var so,vn,Ps,To,r1;const j0=class j0{constructor(a){Vr(this,To);Gr(this,"primaryType");Vr(this,so,void 0);Vr(this,vn,void 0);Vr(this,Ps,void 0);yr(this,so,JSON.stringify(a)),yr(this,vn,new Map),yr(this,Ps,new Map);const d=new Map,et=new Map,nt=new Map;Object.keys(a).forEach(gt=>{d.set(gt,new Set),et.set(gt,[]),nt.set(gt,new Set)});for(const gt in a){const wt=new Set;for(const St of a[gt]){assertArgument(!wt.has(St.name),`duplicate variable name ${JSON.stringify(St.name)} in ${JSON.stringify(gt)}`,"types",a),wt.add(St.name);const Mt=St.type.match(/^([^\x5b]*)(\x5b|$)/)[1]||null;assertArgument(Mt!==gt,`circular type reference to ${JSON.stringify(Mt)}`,"types",a),!getBaseEncoder(Mt)&&(assertArgument(et.has(Mt),`unknown type ${JSON.stringify(Mt)}`,"types",a),et.get(Mt).push(gt),d.get(gt).add(Mt))}}const tt=Array.from(et.keys()).filter(gt=>et.get(gt).length===0);assertArgument(tt.length!==0,"missing primary type","types",a),assertArgument(tt.length===1,`ambiguous primary types or unused types: ${tt.map(gt=>JSON.stringify(gt)).join(", ")}`,"types",a),defineProperties(this,{primaryType:tt[0]});function bt(gt,wt){assertArgument(!wt.has(gt),`circular type reference to ${JSON.stringify(gt)}`,"types",a),wt.add(gt);for(const St of d.get(gt))if(et.has(St)){bt(St,wt);for(const Mt of wt)nt.get(Mt).add(St)}wt.delete(gt)}bt(this.primaryType,new Set);for(const[gt,wt]of nt){const St=Array.from(wt);St.sort(),or(this,vn).set(gt,encodeType$2(gt,a[gt])+St.map(Mt=>encodeType$2(Mt,a[Mt])).join(""))}}get types(){return JSON.parse(or(this,so))}getEncoder(a){let d=or(this,Ps).get(a);return d||(d=Wr(this,To,r1).call(this,a),or(this,Ps).set(a,d)),d}encodeType(a){const d=or(this,vn).get(a);return assertArgument(d,`unknown type: ${JSON.stringify(a)}`,"name",a),d}encodeData(a,d){return this.getEncoder(a)(d)}hashStruct(a,d){return keccak256$2(this.encodeData(a,d))}encode(a){return this.encodeData(this.primaryType,a)}hash(a){return this.hashStruct(this.primaryType,a)}_visit(a,d,et){if(getBaseEncoder(a))return et(a,d);const nt=a.match(/^(.*)(\x5b(\d*)\x5d)$/);if(nt)return assertArgument(!nt[3]||parseInt(nt[3])===d.length,`array length mismatch; expected length ${parseInt(nt[3])}`,"value",d),d.map(bt=>this._visit(nt[1],bt,et));const tt=this.types[a];if(tt)return tt.reduce((bt,{name:gt,type:wt})=>(bt[gt]=this._visit(wt,d[gt],et),bt),{});assertArgument(!1,`unknown type: ${a}`,"type",a)}visit(a,d){return this._visit(this.primaryType,a,d)}static from(a){return new j0(a)}static getPrimaryType(a){return j0.from(a).primaryType}static hashStruct(a,d,et){return j0.from(d).hashStruct(a,et)}static hashDomain(a){const d=[];for(const et in a){if(a[et]==null)continue;const nt=domainFieldTypes[et];assertArgument(nt,`invalid typed-data domain key: ${JSON.stringify(et)}`,"domain",a),d.push({name:et,type:nt})}return d.sort((et,nt)=>domainFieldNames.indexOf(et.name)-domainFieldNames.indexOf(nt.name)),j0.hashStruct("EIP712Domain",{EIP712Domain:d},a)}static encode(a,d,et){return concat$2(["0x1901",j0.hashDomain(a),j0.from(d).hash(et)])}static hash(a,d,et){return keccak256$2(j0.encode(a,d,et))}static async resolveNames(a,d,et,nt){a=Object.assign({},a);for(const gt in a)a[gt]==null&&delete a[gt];const tt={};a.verifyingContract&&!isHexString(a.verifyingContract,20)&&(tt[a.verifyingContract]="0x");const bt=j0.from(d);bt.visit(et,(gt,wt)=>(gt==="address"&&!isHexString(wt,20)&&(tt[wt]="0x"),wt));for(const gt in tt)tt[gt]=await nt(gt);return a.verifyingContract&&tt[a.verifyingContract]&&(a.verifyingContract=tt[a.verifyingContract]),et=bt.visit(et,(gt,wt)=>gt==="address"&&tt[wt]?tt[wt]:wt),{domain:a,value:et}}static getPayload(a,d,et){j0.hashDomain(a);const nt={},tt=[];domainFieldNames.forEach(wt=>{const St=a[wt];St!=null&&(nt[wt]=domainChecks[wt](St),tt.push({name:wt,type:domainFieldTypes[wt]}))});const bt=j0.from(d),gt=Object.assign({},d);return assertArgument(gt.EIP712Domain==null,"types must not contain EIP712Domain type","types.EIP712Domain",d),gt.EIP712Domain=tt,bt.encode(et),{types:gt,domain:nt,primaryType:bt.primaryType,message:bt.visit(et,(wt,St)=>{if(wt.match(/^bytes(\d*)/))return hexlify(getBytes(St));if(wt.match(/^u?int/))return getBigInt(St).toString();switch(wt){case"address":return St.toLowerCase();case"bool":return!!St;case"string":return assertArgument(typeof St=="string","invalid string","value",St),St}assertArgument(!1,"unsupported type","type",wt)})}}};so=new WeakMap,vn=new WeakMap,Ps=new WeakMap,To=new WeakSet,r1=function(a){{const nt=getBaseEncoder(a);if(nt)return nt}const d=a.match(/^(.*)(\x5b(\d*)\x5d)$/);if(d){const nt=d[1],tt=this.getEncoder(nt);return bt=>{assertArgument(!d[3]||parseInt(d[3])===bt.length,`array length mismatch; expected length ${parseInt(d[3])}`,"value",bt);let gt=bt.map(tt);return or(this,vn).has(nt)&&(gt=gt.map(keccak256$2)),keccak256$2(concat$2(gt))}}const et=this.types[a];if(et){const nt=id$1(or(this,vn).get(a));return tt=>{const bt=et.map(({name:gt,type:wt})=>{const St=this.getEncoder(wt)(tt[gt]);return or(this,vn).has(wt)?keccak256$2(St):St});return bt.unshift(nt),concat$2(bt)}}assertArgument(!1,`unknown type: ${a}`,"type",a)};let TypedDataEncoder=j0;function setify(c){const a=new Set;return c.forEach(d=>a.add(d)),Object.freeze(a)}const _kwVisibDeploy="external public payable",KwVisibDeploy=setify(_kwVisibDeploy.split(" ")),_kwVisib="constant external internal payable private public pure view",KwVisib=setify(_kwVisib.split(" ")),_kwTypes="constructor error event fallback function receive struct",KwTypes=setify(_kwTypes.split(" ")),_kwModifiers="calldata memory storage payable indexed",KwModifiers=setify(_kwModifiers.split(" ")),_kwOther="tuple returns",_keywords=[_kwTypes,_kwModifiers,_kwOther,_kwVisib].join(" "),Keywords=setify(_keywords.split(" ")),SimpleTokens={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},regexWhitespacePrefix=new RegExp("^(\\s*)"),regexNumberPrefix=new RegExp("^([0-9]+)"),regexIdPrefix=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),regexId=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),regexType=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");var P0,X0,oo,Ho;const Ro=class Ro{constructor(a){Vr(this,oo);Vr(this,P0,void 0);Vr(this,X0,void 0);yr(this,P0,0),yr(this,X0,a.slice())}get offset(){return or(this,P0)}get length(){return or(this,X0).length-or(this,P0)}clone(){return new Ro(or(this,X0))}reset(){yr(this,P0,0)}popKeyword(a){const d=this.peek();if(d.type!=="KEYWORD"||!a.has(d.text))throw new Error(`expected keyword ${d.text}`);return this.pop().text}popType(a){if(this.peek().type!==a)throw new Error(`expected ${a}; got ${JSON.stringify(this.peek())}`);return this.pop().text}popParen(){const a=this.peek();if(a.type!=="OPEN_PAREN")throw new Error("bad start");const d=Wr(this,oo,Ho).call(this,or(this,P0)+1,a.match+1);return yr(this,P0,a.match+1),d}popParams(){const a=this.peek();if(a.type!=="OPEN_PAREN")throw new Error("bad start");const d=[];for(;or(this,P0)=or(this,X0).length)throw new Error("out-of-bounds");return or(this,X0)[or(this,P0)]}peekKeyword(a){const d=this.peekType("KEYWORD");return d!=null&&a.has(d)?d:null}peekType(a){if(this.length===0)return null;const d=this.peek();return d.type===a?d.text:null}pop(){const a=this.peek();return Ws(this,P0)._++,a}toString(){const a=[];for(let d=or(this,P0);d`}};P0=new WeakMap,X0=new WeakMap,oo=new WeakSet,Ho=function(a=0,d=0){return new Ro(or(this,X0).slice(a,d).map(et=>Object.freeze(Object.assign({},et,{match:et.match-a,linkBack:et.linkBack-a,linkNext:et.linkNext-a}))))};let TokenString=Ro;function lex(c){const a=[],d=bt=>{const gt=tt0&&a[a.length-1].type==="NUMBER"){const _t=a.pop().text;Mt=_t+Mt,a[a.length-1].value=getNumber(_t)}if(a.length===0||a[a.length-1].type!=="BRACKET")throw new Error("missing opening bracket");a[a.length-1].text+=Mt}continue}if(gt=bt.match(regexIdPrefix),gt){if(wt.text=gt[1],tt+=wt.text.length,Keywords.has(wt.text)){wt.type="KEYWORD";continue}if(wt.text.match(regexType)){wt.type="TYPE";continue}wt.type="ID";continue}if(gt=bt.match(regexNumberPrefix),gt){wt.text=gt[1],wt.type="NUMBER",tt+=wt.text.length;continue}throw new Error(`unexpected token ${JSON.stringify(bt[0])} at position ${tt}`)}return new TokenString(a.map(bt=>Object.freeze(bt)))}function allowSingle(c,a){let d=[];for(const et in a.keys())c.has(et)&&d.push(et);if(d.length>1)throw new Error(`conflicting types: ${d.join(", ")}`)}function consumeName(c,a){if(a.peekKeyword(KwTypes)){const d=a.pop().text;if(d!==c)throw new Error(`expected ${c}, got ${d}`)}return a.popType("ID")}function consumeKeywords(c,a){const d=new Set;for(;;){const et=c.peekType("KEYWORD");if(et==null||a&&!a.has(et))break;if(c.pop(),d.has(et))throw new Error(`duplicate keywords: ${JSON.stringify(et)}`);d.add(et)}return Object.freeze(d)}function consumeMutability(c){let a=consumeKeywords(c,KwVisib);return allowSingle(a,setify("constant payable nonpayable".split(" "))),allowSingle(a,setify("pure view payable nonpayable".split(" "))),a.has("view")?"view":a.has("pure")?"pure":a.has("payable")?"payable":a.has("nonpayable")?"nonpayable":a.has("constant")?"view":"nonpayable"}function consumeParams(c,a){return c.popParams().map(d=>ParamType.from(d,a))}function consumeGas(c){if(c.peekType("AT")){if(c.pop(),c.peekType("NUMBER"))return getBigInt(c.pop().text);throw new Error("invalid gas")}return null}function consumeEoi(c){if(c.length)throw new Error(`unexpected tokens: ${c.toString()}`)}const regexArrayType=new RegExp(/^(.*)\[([0-9]*)\]$/);function verifyBasicType(c){const a=c.match(regexType);if(assertArgument(a,"invalid type","type",c),c==="uint")return"uint256";if(c==="int")return"int256";if(a[2]){const d=parseInt(a[2]);assertArgument(d!==0&&d<=32,"invalid bytes length","type",c)}else if(a[3]){const d=parseInt(a[3]);assertArgument(d!==0&&d<=256&&d%8===0,"invalid numeric width","type",c)}return c}const _guard={},internal$1=Symbol.for("_ethers_internal"),ParamTypeInternal="_ParamTypeInternal",ErrorFragmentInternal="_ErrorInternal",EventFragmentInternal="_EventInternal",ConstructorFragmentInternal="_ConstructorInternal",FallbackFragmentInternal="_FallbackInternal",FunctionFragmentInternal="_FunctionInternal",StructFragmentInternal="_StructInternal";var Cs,$o;const U0=class U0{constructor(a,d,et,nt,tt,bt,gt,wt){Vr(this,Cs);Gr(this,"name");Gr(this,"type");Gr(this,"baseType");Gr(this,"indexed");Gr(this,"components");Gr(this,"arrayLength");Gr(this,"arrayChildren");if(assertPrivate(a,_guard,"ParamType"),Object.defineProperty(this,internal$1,{value:ParamTypeInternal}),bt&&(bt=Object.freeze(bt.slice())),nt==="array"){if(gt==null||wt==null)throw new Error("")}else if(gt!=null||wt!=null)throw new Error("");if(nt==="tuple"){if(bt==null)throw new Error("")}else if(bt!=null)throw new Error("");defineProperties(this,{name:d,type:et,baseType:nt,indexed:tt,components:bt,arrayLength:gt,arrayChildren:wt})}format(a){if(a==null&&(a="sighash"),a==="json"){const et=this.name||"";if(this.isArray()){const tt=JSON.parse(this.arrayChildren.format("json"));return tt.name=et,tt.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(tt)}const nt={type:this.baseType==="tuple"?"tuple":this.type,name:et};return typeof this.indexed=="boolean"&&(nt.indexed=this.indexed),this.isTuple()&&(nt.components=this.components.map(tt=>JSON.parse(tt.format(a)))),JSON.stringify(nt)}let d="";return this.isArray()?(d+=this.arrayChildren.format(a),d+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?(a!=="sighash"&&(d+=this.type),d+="("+this.components.map(et=>et.format(a)).join(a==="full"?", ":",")+")"):d+=this.type,a!=="sighash"&&(this.indexed===!0&&(d+=" indexed"),a==="full"&&this.name&&(d+=" "+this.name)),d}isArray(){return this.baseType==="array"}isTuple(){return this.baseType==="tuple"}isIndexable(){return this.indexed!=null}walk(a,d){if(this.isArray()){if(!Array.isArray(a))throw new Error("invalid array value");if(this.arrayLength!==-1&&a.length!==this.arrayLength)throw new Error("array is wrong length");const et=this;return a.map(nt=>et.arrayChildren.walk(nt,d))}if(this.isTuple()){if(!Array.isArray(a))throw new Error("invalid tuple value");if(a.length!==this.components.length)throw new Error("array is wrong length");const et=this;return a.map((nt,tt)=>et.components[tt].walk(nt,d))}return d(this.type,a)}async walkAsync(a,d){const et=[],nt=[a];return Wr(this,Cs,$o).call(this,et,a,d,tt=>{nt[0]=tt}),et.length&&await Promise.all(et),nt[0]}static from(a,d){if(U0.isParamType(a))return a;if(typeof a=="string")try{return U0.from(lex(a),d)}catch{assertArgument(!1,"invalid param type","obj",a)}else if(a instanceof TokenString){let gt="",wt="",St=null;consumeKeywords(a,setify(["tuple"])).has("tuple")||a.peekType("OPEN_PAREN")?(wt="tuple",St=a.popParams().map(It=>U0.from(It)),gt=`tuple(${St.map(It=>It.format()).join(",")})`):(gt=verifyBasicType(a.popType("TYPE")),wt=gt);let Mt=null,_t=null;for(;a.length&&a.peekType("BRACKET");){const It=a.pop();Mt=new U0(_guard,"",gt,wt,null,St,_t,Mt),_t=It.value,gt+=It.text,wt="array",St=null}let Tt=null;if(consumeKeywords(a,KwModifiers).has("indexed")){if(!d)throw new Error("");Tt=!0}const kt=a.peekType("ID")?a.pop().text:"";if(a.length)throw new Error("leftover tokens");return new U0(_guard,kt,gt,wt,Tt,St,_t,Mt)}const et=a.name;assertArgument(!et||typeof et=="string"&&et.match(regexId),"invalid name","obj.name",et);let nt=a.indexed;nt!=null&&(assertArgument(d,"parameter cannot be indexed","obj.indexed",a.indexed),nt=!!nt);let tt=a.type,bt=tt.match(regexArrayType);if(bt){const gt=parseInt(bt[2]||"-1"),wt=U0.from({type:bt[1],components:a.components});return new U0(_guard,et||"",tt,"array",nt,null,gt,wt)}if(tt==="tuple"||tt.startsWith("tuple(")||tt.startsWith("(")){const gt=a.components!=null?a.components.map(St=>U0.from(St)):null;return new U0(_guard,et||"",tt,"tuple",nt,gt,null,null)}return tt=verifyBasicType(a.type),new U0(_guard,et||"",tt,tt,nt,null,null,null)}static isParamType(a){return a&&a[internal$1]===ParamTypeInternal}};Cs=new WeakSet,$o=function(a,d,et,nt){if(this.isArray()){if(!Array.isArray(d))throw new Error("invalid array value");if(this.arrayLength!==-1&&d.length!==this.arrayLength)throw new Error("array is wrong length");const bt=this.arrayChildren,gt=d.slice();gt.forEach((wt,St)=>{var Mt;Wr(Mt=bt,Cs,$o).call(Mt,a,wt,et,_t=>{gt[St]=_t})}),nt(gt);return}if(this.isTuple()){const bt=this.components;let gt;if(Array.isArray(d))gt=d.slice();else{if(d==null||typeof d!="object")throw new Error("invalid tuple value");gt=bt.map(wt=>{if(!wt.name)throw new Error("cannot use object value with unnamed components");if(!(wt.name in d))throw new Error(`missing value for component ${wt.name}`);return d[wt.name]})}if(gt.length!==this.components.length)throw new Error("array is wrong length");gt.forEach((wt,St)=>{var Mt;Wr(Mt=bt[St],Cs,$o).call(Mt,a,wt,et,_t=>{gt[St]=_t})}),nt(gt);return}const tt=et(this.type,d);tt.then?a.push(async function(){nt(await tt)}()):nt(tt)};let ParamType=U0;class Fragment{constructor(a,d,et){Gr(this,"type");Gr(this,"inputs");assertPrivate(a,_guard,"Fragment"),et=Object.freeze(et.slice()),defineProperties(this,{type:d,inputs:et})}static from(a){if(typeof a=="string"){try{Fragment.from(JSON.parse(a))}catch{}return Fragment.from(lex(a))}if(a instanceof TokenString)switch(a.peekKeyword(KwTypes)){case"constructor":return ConstructorFragment.from(a);case"error":return ErrorFragment.from(a);case"event":return EventFragment.from(a);case"fallback":case"receive":return FallbackFragment.from(a);case"function":return FunctionFragment.from(a);case"struct":return StructFragment.from(a)}else if(typeof a=="object"){switch(a.type){case"constructor":return ConstructorFragment.from(a);case"error":return ErrorFragment.from(a);case"event":return EventFragment.from(a);case"fallback":case"receive":return FallbackFragment.from(a);case"function":return FunctionFragment.from(a);case"struct":return StructFragment.from(a)}assert$s(!1,`unsupported type: ${a.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}assertArgument(!1,"unsupported frgament object","obj",a)}static isConstructor(a){return ConstructorFragment.isFragment(a)}static isError(a){return ErrorFragment.isFragment(a)}static isEvent(a){return EventFragment.isFragment(a)}static isFunction(a){return FunctionFragment.isFragment(a)}static isStruct(a){return StructFragment.isFragment(a)}}class NamedFragment extends Fragment{constructor(d,et,nt,tt){super(d,et,tt);Gr(this,"name");assertArgument(typeof nt=="string"&&nt.match(regexId),"invalid identifier","name",nt),tt=Object.freeze(tt.slice()),defineProperties(this,{name:nt})}}function joinParams(c,a){return"("+a.map(d=>d.format(c)).join(c==="full"?", ":",")+")"}class ErrorFragment extends NamedFragment{constructor(a,d,et){super(a,"error",d,et),Object.defineProperty(this,internal$1,{value:ErrorFragmentInternal})}get selector(){return id$1(this.format("sighash")).substring(0,10)}format(a){if(a==null&&(a="sighash"),a==="json")return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(et=>JSON.parse(et.format(a)))});const d=[];return a!=="sighash"&&d.push("error"),d.push(this.name+joinParams(a,this.inputs)),d.join(" ")}static from(a){if(ErrorFragment.isFragment(a))return a;if(typeof a=="string")return ErrorFragment.from(lex(a));if(a instanceof TokenString){const d=consumeName("error",a),et=consumeParams(a);return consumeEoi(a),new ErrorFragment(_guard,d,et)}return new ErrorFragment(_guard,a.name,a.inputs?a.inputs.map(ParamType.from):[])}static isFragment(a){return a&&a[internal$1]===ErrorFragmentInternal}}class EventFragment extends NamedFragment{constructor(d,et,nt,tt){super(d,"event",et,nt);Gr(this,"anonymous");Object.defineProperty(this,internal$1,{value:EventFragmentInternal}),defineProperties(this,{anonymous:tt})}get topicHash(){return id$1(this.format("sighash"))}format(d){if(d==null&&(d="sighash"),d==="json")return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(nt=>JSON.parse(nt.format(d)))});const et=[];return d!=="sighash"&&et.push("event"),et.push(this.name+joinParams(d,this.inputs)),d!=="sighash"&&this.anonymous&&et.push("anonymous"),et.join(" ")}static getTopicHash(d,et){return et=(et||[]).map(tt=>ParamType.from(tt)),new EventFragment(_guard,d,et,!1).topicHash}static from(d){if(EventFragment.isFragment(d))return d;if(typeof d=="string")try{return EventFragment.from(lex(d))}catch{assertArgument(!1,"invalid event fragment","obj",d)}else if(d instanceof TokenString){const et=consumeName("event",d),nt=consumeParams(d,!0),tt=!!consumeKeywords(d,setify(["anonymous"])).has("anonymous");return consumeEoi(d),new EventFragment(_guard,et,nt,tt)}return new EventFragment(_guard,d.name,d.inputs?d.inputs.map(et=>ParamType.from(et,!0)):[],!!d.anonymous)}static isFragment(d){return d&&d[internal$1]===EventFragmentInternal}}class ConstructorFragment extends Fragment{constructor(d,et,nt,tt,bt){super(d,et,nt);Gr(this,"payable");Gr(this,"gas");Object.defineProperty(this,internal$1,{value:ConstructorFragmentInternal}),defineProperties(this,{payable:tt,gas:bt})}format(d){if(assert$s(d!=null&&d!=="sighash","cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),d==="json")return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(nt=>JSON.parse(nt.format(d)))});const et=[`constructor${joinParams(d,this.inputs)}`];return et.push(this.payable?"payable":"nonpayable"),this.gas!=null&&et.push(`@${this.gas.toString()}`),et.join(" ")}static from(d){if(ConstructorFragment.isFragment(d))return d;if(typeof d=="string")try{return ConstructorFragment.from(lex(d))}catch{assertArgument(!1,"invalid constuctor fragment","obj",d)}else if(d instanceof TokenString){consumeKeywords(d,setify(["constructor"]));const et=consumeParams(d),nt=!!consumeKeywords(d,KwVisibDeploy).has("payable"),tt=consumeGas(d);return consumeEoi(d),new ConstructorFragment(_guard,"constructor",et,nt,tt)}return new ConstructorFragment(_guard,"constructor",d.inputs?d.inputs.map(ParamType.from):[],!!d.payable,d.gas!=null?d.gas:null)}static isFragment(d){return d&&d[internal$1]===ConstructorFragmentInternal}}class FallbackFragment extends Fragment{constructor(d,et,nt){super(d,"fallback",et);Gr(this,"payable");Object.defineProperty(this,internal$1,{value:FallbackFragmentInternal}),defineProperties(this,{payable:nt})}format(d){const et=this.inputs.length===0?"receive":"fallback";if(d==="json"){const nt=this.payable?"payable":"nonpayable";return JSON.stringify({type:et,stateMutability:nt})}return`${et}()${this.payable?" payable":""}`}static from(d){if(FallbackFragment.isFragment(d))return d;if(typeof d=="string")try{return FallbackFragment.from(lex(d))}catch{assertArgument(!1,"invalid fallback fragment","obj",d)}else if(d instanceof TokenString){const et=d.toString(),nt=d.peekKeyword(setify(["fallback","receive"]));if(assertArgument(nt,"type must be fallback or receive","obj",et),d.popKeyword(setify(["fallback","receive"]))==="receive"){const wt=consumeParams(d);return assertArgument(wt.length===0,"receive cannot have arguments","obj.inputs",wt),consumeKeywords(d,setify(["payable"])),consumeEoi(d),new FallbackFragment(_guard,[],!0)}let bt=consumeParams(d);bt.length?assertArgument(bt.length===1&&bt[0].type==="bytes","invalid fallback inputs","obj.inputs",bt.map(wt=>wt.format("minimal")).join(", ")):bt=[ParamType.from("bytes")];const gt=consumeMutability(d);if(assertArgument(gt==="nonpayable"||gt==="payable","fallback cannot be constants","obj.stateMutability",gt),consumeKeywords(d,setify(["returns"])).has("returns")){const wt=consumeParams(d);assertArgument(wt.length===1&&wt[0].type==="bytes","invalid fallback outputs","obj.outputs",wt.map(St=>St.format("minimal")).join(", "))}return consumeEoi(d),new FallbackFragment(_guard,bt,gt==="payable")}if(d.type==="receive")return new FallbackFragment(_guard,[],!0);if(d.type==="fallback"){const et=[ParamType.from("bytes")],nt=d.stateMutability==="payable";return new FallbackFragment(_guard,et,nt)}assertArgument(!1,"invalid fallback description","obj",d)}static isFragment(d){return d&&d[internal$1]===FallbackFragmentInternal}}class FunctionFragment extends NamedFragment{constructor(d,et,nt,tt,bt,gt){super(d,"function",et,tt);Gr(this,"constant");Gr(this,"outputs");Gr(this,"stateMutability");Gr(this,"payable");Gr(this,"gas");Object.defineProperty(this,internal$1,{value:FunctionFragmentInternal}),bt=Object.freeze(bt.slice()),defineProperties(this,{constant:nt==="view"||nt==="pure",gas:gt,outputs:bt,payable:nt==="payable",stateMutability:nt})}get selector(){return id$1(this.format("sighash")).substring(0,10)}format(d){if(d==null&&(d="sighash"),d==="json")return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(nt=>JSON.parse(nt.format(d))),outputs:this.outputs.map(nt=>JSON.parse(nt.format(d)))});const et=[];return d!=="sighash"&&et.push("function"),et.push(this.name+joinParams(d,this.inputs)),d!=="sighash"&&(this.stateMutability!=="nonpayable"&&et.push(this.stateMutability),this.outputs&&this.outputs.length&&(et.push("returns"),et.push(joinParams(d,this.outputs))),this.gas!=null&&et.push(`@${this.gas.toString()}`)),et.join(" ")}static getSelector(d,et){return et=(et||[]).map(tt=>ParamType.from(tt)),new FunctionFragment(_guard,d,"view",et,[],null).selector}static from(d){if(FunctionFragment.isFragment(d))return d;if(typeof d=="string")try{return FunctionFragment.from(lex(d))}catch{assertArgument(!1,"invalid function fragment","obj",d)}else if(d instanceof TokenString){const nt=consumeName("function",d),tt=consumeParams(d),bt=consumeMutability(d);let gt=[];consumeKeywords(d,setify(["returns"])).has("returns")&&(gt=consumeParams(d));const wt=consumeGas(d);return consumeEoi(d),new FunctionFragment(_guard,nt,bt,tt,gt,wt)}let et=d.stateMutability;return et==null&&(et="payable",typeof d.constant=="boolean"?(et="view",d.constant||(et="payable",typeof d.payable=="boolean"&&!d.payable&&(et="nonpayable"))):typeof d.payable=="boolean"&&!d.payable&&(et="nonpayable")),new FunctionFragment(_guard,d.name,et,d.inputs?d.inputs.map(ParamType.from):[],d.outputs?d.outputs.map(ParamType.from):[],d.gas!=null?d.gas:null)}static isFragment(d){return d&&d[internal$1]===FunctionFragmentInternal}}class StructFragment extends NamedFragment{constructor(a,d,et){super(a,"struct",d,et),Object.defineProperty(this,internal$1,{value:StructFragmentInternal})}format(){throw new Error("@TODO")}static from(a){if(typeof a=="string")try{return StructFragment.from(lex(a))}catch{assertArgument(!1,"invalid struct fragment","obj",a)}else if(a instanceof TokenString){const d=consumeName("struct",a),et=consumeParams(a);return consumeEoi(a),new StructFragment(_guard,d,et)}return new StructFragment(_guard,a.name,a.inputs?a.inputs.map(ParamType.from):[])}static isFragment(a){return a&&a[internal$1]===StructFragmentInternal}}const PanicReasons$1=new Map;PanicReasons$1.set(0,"GENERIC_PANIC");PanicReasons$1.set(1,"ASSERT_FALSE");PanicReasons$1.set(17,"OVERFLOW");PanicReasons$1.set(18,"DIVIDE_BY_ZERO");PanicReasons$1.set(33,"ENUM_RANGE_ERROR");PanicReasons$1.set(34,"BAD_STORAGE_DATA");PanicReasons$1.set(49,"STACK_UNDERFLOW");PanicReasons$1.set(50,"ARRAY_RANGE_ERROR");PanicReasons$1.set(65,"OUT_OF_MEMORY");PanicReasons$1.set(81,"UNINITIALIZED_FUNCTION_CALL");const paramTypeBytes=new RegExp(/^bytes([0-9]*)$/),paramTypeNumber=new RegExp(/^(u?int)([0-9]*)$/);let defaultCoder=null;function getBuiltinCallException(c,a,d,et){let nt="missing revert data",tt=null;const bt=null;let gt=null;if(d){nt="execution reverted";const St=getBytes(d);if(d=hexlify(d),St.length===0)nt+=" (no data present; likely require(false) occurred",tt="require(false)";else if(St.length%32!==4)nt+=" (could not decode reason; invalid data length)";else if(hexlify(St.slice(0,4))==="0x08c379a0")try{tt=et.decode(["string"],St.slice(4))[0],gt={signature:"Error(string)",name:"Error",args:[tt]},nt+=`: ${JSON.stringify(tt)}`}catch{nt+=" (could not decode reason; invalid string data)"}else if(hexlify(St.slice(0,4))==="0x4e487b71")try{const Mt=Number(et.decode(["uint256"],St.slice(4))[0]);gt={signature:"Panic(uint256)",name:"Panic",args:[Mt]},tt=`Panic due to ${PanicReasons$1.get(Mt)||"UNKNOWN"}(${Mt})`,nt+=`: ${tt}`}catch{nt+=" (could not decode panic code)"}else nt+=" (unknown custom error)"}const wt={to:a.to?getAddress$1(a.to):null,data:a.data||"0x"};return a.from&&(wt.from=getAddress$1(a.from)),makeError(nt,"CALL_EXCEPTION",{action:c,data:d,reason:tt,transaction:wt,invocation:bt,revert:gt})}var Tn,rs;const Bo=class Bo{constructor(){Vr(this,Tn)}getDefaultValue(a){const d=a.map(nt=>Wr(this,Tn,rs).call(this,ParamType.from(nt)));return new TupleCoder(d,"_").defaultValue()}encode(a,d){assertArgumentCount(d.length,a.length,"types/values length mismatch");const et=a.map(bt=>Wr(this,Tn,rs).call(this,ParamType.from(bt))),nt=new TupleCoder(et,"_"),tt=new Writer;return nt.encode(tt,d),tt.data}decode(a,d,et){const nt=a.map(bt=>Wr(this,Tn,rs).call(this,ParamType.from(bt)));return new TupleCoder(nt,"_").decode(new Reader(d,et))}static defaultAbiCoder(){return defaultCoder==null&&(defaultCoder=new Bo),defaultCoder}static getBuiltinCallException(a,d,et){return getBuiltinCallException(a,d,et,Bo.defaultAbiCoder())}};Tn=new WeakSet,rs=function(a){if(a.isArray())return new ArrayCoder(Wr(this,Tn,rs).call(this,a.arrayChildren),a.arrayLength,a.name);if(a.isTuple())return new TupleCoder(a.components.map(et=>Wr(this,Tn,rs).call(this,et)),a.name);switch(a.baseType){case"address":return new AddressCoder(a.name);case"bool":return new BooleanCoder(a.name);case"string":return new StringCoder(a.name);case"bytes":return new BytesCoder(a.name);case"":return new NullCoder(a.name)}let d=a.type.match(paramTypeNumber);if(d){let et=parseInt(d[2]||"256");return assertArgument(et!==0&&et<=256&&et%8===0,"invalid "+d[1]+" bit length","param",a),new NumberCoder(et/8,d[1]==="int",a.name)}if(d=a.type.match(paramTypeBytes),d){let et=parseInt(d[1]);return assertArgument(et!==0&&et<=32,"invalid bytes length","param",a),new FixedBytesCoder(et,a.name)}assertArgument(!1,"invalid type","type",a.type)};let AbiCoder=Bo;class LogDescription{constructor(a,d,et){Gr(this,"fragment");Gr(this,"name");Gr(this,"signature");Gr(this,"topic");Gr(this,"args");const nt=a.name,tt=a.format();defineProperties(this,{fragment:a,name:nt,signature:tt,topic:d,args:et})}}class TransactionDescription{constructor(a,d,et,nt){Gr(this,"fragment");Gr(this,"name");Gr(this,"args");Gr(this,"signature");Gr(this,"selector");Gr(this,"value");const tt=a.name,bt=a.format();defineProperties(this,{fragment:a,name:tt,args:et,signature:bt,selector:d,value:nt})}}class ErrorDescription{constructor(a,d,et){Gr(this,"fragment");Gr(this,"name");Gr(this,"args");Gr(this,"signature");Gr(this,"selector");const nt=a.name,tt=a.format();defineProperties(this,{fragment:a,name:nt,args:et,signature:tt,selector:d})}}class Indexed{constructor(a){Gr(this,"hash");Gr(this,"_isIndexed");defineProperties(this,{hash:a,_isIndexed:!0})}static isIndexed(a){return!!(a&&a._isIndexed)}}const PanicReasons={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"},BuiltinErrors={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:c=>`reverted with reason string ${JSON.stringify(c)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:c=>{let a="unknown panic code";return c>=0&&c<=255&&PanicReasons[c.toString()]&&(a=PanicReasons[c.toString()]),`reverted with panic code 0x${c.toString(16)} (${a})`}}};var rn,nn,an,C0,Ts,So,Rs,Mo;const is=class is{constructor(a){Vr(this,Ts);Vr(this,Rs);Gr(this,"fragments");Gr(this,"deploy");Gr(this,"fallback");Gr(this,"receive");Vr(this,rn,void 0);Vr(this,nn,void 0);Vr(this,an,void 0);Vr(this,C0,void 0);let d=[];typeof a=="string"?d=JSON.parse(a):d=a,yr(this,an,new Map),yr(this,rn,new Map),yr(this,nn,new Map);const et=[];for(const bt of d)try{et.push(Fragment.from(bt))}catch(gt){console.log("EE",gt)}defineProperties(this,{fragments:Object.freeze(et)});let nt=null,tt=!1;yr(this,C0,this.getAbiCoder()),this.fragments.forEach((bt,gt)=>{let wt;switch(bt.type){case"constructor":if(this.deploy){console.log("duplicate definition - constructor");return}defineProperties(this,{deploy:bt});return;case"fallback":bt.inputs.length===0?tt=!0:(assertArgument(!nt||bt.payable!==nt.payable,"conflicting fallback fragments",`fragments[${gt}]`,bt),nt=bt,tt=nt.payable);return;case"function":wt=or(this,an);break;case"event":wt=or(this,nn);break;case"error":wt=or(this,rn);break;default:return}const St=bt.format();wt.has(St)||wt.set(St,bt)}),this.deploy||defineProperties(this,{deploy:ConstructorFragment.from("constructor()")}),defineProperties(this,{fallback:nt,receive:tt})}format(a){const d=a?"minimal":"full";return this.fragments.map(nt=>nt.format(d))}formatJson(){const a=this.fragments.map(d=>d.format("json"));return JSON.stringify(a.map(d=>JSON.parse(d)))}getAbiCoder(){return AbiCoder.defaultAbiCoder()}getFunctionName(a){const d=Wr(this,Ts,So).call(this,a,null,!1);return assertArgument(d,"no matching function","key",a),d.name}hasFunction(a){return!!Wr(this,Ts,So).call(this,a,null,!1)}getFunction(a,d){return Wr(this,Ts,So).call(this,a,d||null,!0)}forEachFunction(a){const d=Array.from(or(this,an).keys());d.sort((et,nt)=>et.localeCompare(nt));for(let et=0;etet.localeCompare(nt));for(let et=0;et1){const tt=nt.map(bt=>JSON.stringify(bt.format())).join(", ");assertArgument(!1,`ambiguous error description (i.e. ${tt})`,"name",a)}return nt[0]}if(a=ErrorFragment.from(a).format(),a==="Error(string)")return ErrorFragment.from("error Error(string)");if(a==="Panic(uint256)")return ErrorFragment.from("error Panic(uint256)");const et=or(this,rn).get(a);return et||null}forEachError(a){const d=Array.from(or(this,rn).keys());d.sort((et,nt)=>et.localeCompare(nt));for(let et=0;ettt.type==="string"?id$1(bt):tt.type==="bytes"?keccak256$2(hexlify(bt)):(tt.type==="bool"&&typeof bt=="boolean"?bt=bt?"0x01":"0x00":tt.type.match(/^u?int/)?bt=toBeHex(bt):tt.type.match(/^bytes/)?bt=zeroPadBytes(bt,32):tt.type==="address"&&or(this,C0).encode(["address"],[bt]),zeroPadValue(hexlify(bt),32));for(d.forEach((tt,bt)=>{const gt=a.inputs[bt];if(!gt.indexed){assertArgument(tt==null,"cannot filter non-indexed parameters; must be null","contract."+gt.name,tt);return}tt==null?et.push(null):gt.baseType==="array"||gt.baseType==="tuple"?assertArgument(!1,"filtering with tuples or arrays not supported","contract."+gt.name,tt):Array.isArray(tt)?et.push(tt.map(wt=>nt(gt,wt))):et.push(nt(gt,tt))});et.length&&et[et.length-1]===null;)et.pop();return et}encodeEventLog(a,d){if(typeof a=="string"){const bt=this.getEvent(a);assertArgument(bt,"unknown event","eventFragment",a),a=bt}const et=[],nt=[],tt=[];return a.anonymous||et.push(a.topicHash),assertArgument(d.length===a.inputs.length,"event arguments/values mismatch","values",d),a.inputs.forEach((bt,gt)=>{const wt=d[gt];if(bt.indexed)if(bt.type==="string")et.push(id$1(wt));else if(bt.type==="bytes")et.push(keccak256$2(wt));else{if(bt.baseType==="tuple"||bt.baseType==="array")throw new Error("not implemented");et.push(or(this,C0).encode([bt.type],[wt]))}else nt.push(bt),tt.push(wt)}),{data:or(this,C0).encode(nt,tt),topics:et}}decodeEventLog(a,d,et){if(typeof a=="string"){const Rt=this.getEvent(a);assertArgument(Rt,"unknown event","eventFragment",a),a=Rt}if(et!=null&&!a.anonymous){const Rt=a.topicHash;assertArgument(isHexString(et[0],32)&&et[0].toLowerCase()===Rt,"fragment/topic mismatch","topics[0]",et[0]),et=et.slice(1)}const nt=[],tt=[],bt=[];a.inputs.forEach((Rt,kt)=>{Rt.indexed?Rt.type==="string"||Rt.type==="bytes"||Rt.baseType==="tuple"||Rt.baseType==="array"?(nt.push(ParamType.from({type:"bytes32",name:Rt.name})),bt.push(!0)):(nt.push(Rt),bt.push(!1)):(tt.push(Rt),bt.push(!1))});const gt=et!=null?or(this,C0).decode(nt,concat$2(et)):null,wt=or(this,C0).decode(tt,d,!0),St=[],Mt=[];let _t=0,Tt=0;return a.inputs.forEach((Rt,kt)=>{let It=null;if(Rt.indexed)if(gt==null)It=new Indexed(null);else if(bt[kt])It=new Indexed(gt[Tt++]);else try{It=gt[Tt++]}catch(Lt){It=Lt}else try{It=wt[_t++]}catch(Lt){It=Lt}St.push(It),Mt.push(Rt.name||null)}),Result.fromItems(St,Mt)}parseTransaction(a){const d=getBytes(a.data,"tx.data"),et=getBigInt(a.value!=null?a.value:0,"tx.value"),nt=this.getFunction(hexlify(d.slice(0,4)));if(!nt)return null;const tt=or(this,C0).decode(nt.inputs,d.slice(4));return new TransactionDescription(nt,nt.selector,tt,et)}parseCallResult(a){throw new Error("@TODO")}parseLog(a){const d=this.getEvent(a.topics[0]);return!d||d.anonymous?null:new LogDescription(d,d.topicHash,this.decodeEventLog(d,a.data,a.topics))}parseError(a){const d=hexlify(a),et=this.getError(dataSlice(d,0,4));if(!et)return null;const nt=or(this,C0).decode(et.inputs,dataSlice(d,4));return new ErrorDescription(et,et.selector,nt)}static from(a){return a instanceof is?a:typeof a=="string"?new is(JSON.parse(a)):typeof a.format=="function"?new is(a.format("json")):new is(a)}};rn=new WeakMap,nn=new WeakMap,an=new WeakMap,C0=new WeakMap,Ts=new WeakSet,So=function(a,d,et){if(isHexString(a)){const tt=a.toLowerCase();for(const bt of or(this,an).values())if(tt===bt.selector)return bt;return null}if(a.indexOf("(")===-1){const tt=[];for(const[bt,gt]of or(this,an))bt.split("(")[0]===a&&tt.push(gt);if(d){const bt=d.length>0?d[d.length-1]:null;let gt=d.length,wt=!0;Typed.isTyped(bt)&&bt.type==="overrides"&&(wt=!1,gt--);for(let St=tt.length-1;St>=0;St--){const Mt=tt[St].inputs.length;Mt!==gt&&(!wt||Mt!==gt-1)&&tt.splice(St,1)}for(let St=tt.length-1;St>=0;St--){const Mt=tt[St].inputs;for(let _t=0;_t=Mt.length){if(d[_t].type==="overrides")continue;tt.splice(St,1);break}if(d[_t].type!==Mt[_t].baseType){tt.splice(St,1);break}}}}if(tt.length===1&&d&&d.length!==tt[0].inputs.length){const bt=d[d.length-1];(bt==null||Array.isArray(bt)||typeof bt!="object")&&tt.splice(0,1)}if(tt.length===0)return null;if(tt.length>1&&et){const bt=tt.map(gt=>JSON.stringify(gt.format())).join(", ");assertArgument(!1,`ambiguous function description (i.e. matches ${bt})`,"key",a)}return tt[0]}const nt=or(this,an).get(FunctionFragment.from(a).format());return nt||null},Rs=new WeakSet,Mo=function(a,d,et){if(isHexString(a)){const tt=a.toLowerCase();for(const bt of or(this,nn).values())if(tt===bt.topicHash)return bt;return null}if(a.indexOf("(")===-1){const tt=[];for(const[bt,gt]of or(this,nn))bt.split("(")[0]===a&&tt.push(gt);if(d){for(let bt=tt.length-1;bt>=0;bt--)tt[bt].inputs.length=0;bt--){const gt=tt[bt].inputs;for(let wt=0;wt1&&et){const bt=tt.map(gt=>JSON.stringify(gt.format())).join(", ");assertArgument(!1,`ambiguous event description (i.e. matches ${bt})`,"key",a)}return tt[0]}const nt=or(this,nn).get(EventFragment.from(a).format());return nt||null};let Interface=is;const BN_0$2=BigInt(0);function getValue(c){return c??null}function toJson(c){return c==null?null:c.toString()}class FeeData{constructor(a,d,et){Gr(this,"gasPrice");Gr(this,"maxFeePerGas");Gr(this,"maxPriorityFeePerGas");defineProperties(this,{gasPrice:getValue(a),maxFeePerGas:getValue(d),maxPriorityFeePerGas:getValue(et)})}toJSON(){const{gasPrice:a,maxFeePerGas:d,maxPriorityFeePerGas:et}=this;return{_type:"FeeData",gasPrice:toJson(a),maxFeePerGas:toJson(d),maxPriorityFeePerGas:toJson(et)}}}function copyRequest(c){const a={};c.to&&(a.to=c.to),c.from&&(a.from=c.from),c.data&&(a.data=hexlify(c.data));const d="chainId,gasLimit,gasPrice,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const nt of d)!(nt in c)||c[nt]==null||(a[nt]=getBigInt(c[nt],`request.${nt}`));const et="type,nonce".split(/,/);for(const nt of et)!(nt in c)||c[nt]==null||(a[nt]=getNumber(c[nt],`request.${nt}`));return c.accessList&&(a.accessList=accessListify(c.accessList)),"blockTag"in c&&(a.blockTag=c.blockTag),"enableCcipRead"in c&&(a.enableCcipRead=!!c.enableCcipRead),"customData"in c&&(a.customData=c.customData),a}var wn;class Block{constructor(a,d){Gr(this,"provider");Gr(this,"number");Gr(this,"hash");Gr(this,"timestamp");Gr(this,"parentHash");Gr(this,"nonce");Gr(this,"difficulty");Gr(this,"gasLimit");Gr(this,"gasUsed");Gr(this,"miner");Gr(this,"extraData");Gr(this,"baseFeePerGas");Vr(this,wn,void 0);yr(this,wn,a.transactions.map(et=>typeof et!="string"?new TransactionResponse(et,d):et)),defineProperties(this,{provider:d,hash:getValue(a.hash),number:a.number,timestamp:a.timestamp,parentHash:a.parentHash,nonce:a.nonce,difficulty:a.difficulty,gasLimit:a.gasLimit,gasUsed:a.gasUsed,miner:a.miner,extraData:a.extraData,baseFeePerGas:getValue(a.baseFeePerGas)})}get transactions(){return or(this,wn).map(a=>typeof a=="string"?a:a.hash)}get prefetchedTransactions(){const a=or(this,wn).slice();return a.length===0?[]:(assert$s(typeof a[0]=="object","transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),a)}toJSON(){const{baseFeePerGas:a,difficulty:d,extraData:et,gasLimit:nt,gasUsed:tt,hash:bt,miner:gt,nonce:wt,number:St,parentHash:Mt,timestamp:_t,transactions:Tt}=this;return{_type:"Block",baseFeePerGas:toJson(a),difficulty:toJson(d),extraData:et,gasLimit:toJson(nt),gasUsed:toJson(tt),hash:bt,miner:gt,nonce:wt,number:St,parentHash:Mt,timestamp:_t,transactions:Tt}}[Symbol.iterator](){let a=0;const d=this.transactions;return{next:()=>anew Log(nt,d))));let et=BN_0$2;a.effectiveGasPrice!=null?et=a.effectiveGasPrice:a.gasPrice!=null&&(et=a.gasPrice),defineProperties(this,{provider:d,to:a.to,from:a.from,contractAddress:a.contractAddress,hash:a.hash,index:a.index,blockHash:a.blockHash,blockNumber:a.blockNumber,logsBloom:a.logsBloom,gasUsed:a.gasUsed,cumulativeGasUsed:a.cumulativeGasUsed,gasPrice:et,type:a.type,status:a.status,root:a.root})}get logs(){return or(this,fo)}toJSON(){const{to:a,from:d,contractAddress:et,hash:nt,index:tt,blockHash:bt,blockNumber:gt,logsBloom:wt,logs:St,status:Mt,root:_t}=this;return{_type:"TransactionReceipt",blockHash:bt,blockNumber:gt,contractAddress:et,cumulativeGasUsed:toJson(this.cumulativeGasUsed),from:d,gasPrice:toJson(this.gasPrice),gasUsed:toJson(this.gasUsed),hash:nt,index:tt,logs:St,logsBloom:wt,root:_t,status:Mt,to:a}}get length(){return this.logs.length}[Symbol.iterator](){let a=0;return{next:()=>a{if(gt)return null;const{blockNumber:Tt,nonce:Rt}=await resolveProperties({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(Rt{if(Tt==null||Tt.status!==0)return Tt;assert$s(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:Tt.to,from:Tt.from,data:""},receipt:Tt})},Mt=await this.provider.getTransactionReceipt(this.hash);if(et===0)return St(Mt);if(Mt){if(await Mt.confirmations()>=et)return St(Mt)}else if(await wt(),et===0)return null;return await new Promise((Tt,Rt)=>{const kt=[],It=()=>{kt.forEach(Ot=>Ot())};if(kt.push(()=>{gt=!0}),nt>0){const Ot=setTimeout(()=>{It(),Rt(makeError("wait for transaction timeout","TIMEOUT"))},nt);kt.push(()=>{clearTimeout(Ot)})}const Lt=async Ot=>{if(await Ot.confirmations()>=et){It();try{Tt(St(Ot))}catch(Nt){Rt(Nt)}}};if(kt.push(()=>{this.provider.off(this.hash,Lt)}),this.provider.on(this.hash,Lt),tt>=0){const Ot=async()=>{try{await wt()}catch(Nt){if(isError$1(Nt,"TRANSACTION_REPLACED")){It(),Rt(Nt);return}}gt||this.provider.once("block",Ot)};kt.push(()=>{this.provider.off("block",Ot)}),this.provider.once("block",Ot)}})}isMined(){return this.blockHash!=null}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}removedEvent(){return assert$s(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),createRemovedTransactionFilter(this)}reorderedEvent(a){return assert$s(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),assert$s(!a||a.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),createReorderedTransactionFilter(this,a)}replaceableTransaction(a){assertArgument(Number.isInteger(a)&&a>=0,"invalid startBlock","startBlock",a);const d=new Xo(this,this.provider);return yr(d,Rn,a),d}};Rn=new WeakMap;let TransactionResponse=Xo;function createOrphanedBlockFilter(c){return{orphan:"drop-block",hash:c.hash,number:c.number}}function createReorderedTransactionFilter(c,a){return{orphan:"reorder-transaction",tx:c,other:a}}function createRemovedTransactionFilter(c){return{orphan:"drop-transaction",tx:c}}function createRemovedLogFilter(c){return{orphan:"drop-log",log:{transactionHash:c.transactionHash,blockHash:c.blockHash,blockNumber:c.blockNumber,address:c.address,data:c.data,topics:Object.freeze(c.topics.slice()),index:c.index}}}class EventLog extends Log{constructor(d,et,nt){super(d,d.provider);Gr(this,"interface");Gr(this,"fragment");Gr(this,"args");const tt=et.decodeEventLog(nt,d.data,d.topics);defineProperties(this,{args:tt,fragment:nt,interface:et})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}class UndecodedEventLog extends Log{constructor(d,et){super(d,d.provider);Gr(this,"error");defineProperties(this,{error:et})}}var Bs;class ContractTransactionReceipt extends TransactionReceipt{constructor(d,et,nt){super(nt,et);Vr(this,Bs,void 0);yr(this,Bs,d)}get logs(){return super.logs.map(d=>{const et=d.topics.length?or(this,Bs).getEvent(d.topics[0]):null;if(et)try{return new EventLog(d,or(this,Bs),et)}catch(nt){return new UndecodedEventLog(d,nt)}return d})}}Bs=new WeakMap;var co;class ContractTransactionResponse extends TransactionResponse{constructor(d,et,nt){super(nt,et);Vr(this,co,void 0);yr(this,co,d)}async wait(d){const et=await super.wait(d);return et==null?null:new ContractTransactionReceipt(or(this,co),this.provider,et)}}co=new WeakMap;class ContractUnknownEventPayload extends EventPayload{constructor(d,et,nt,tt){super(d,et,nt);Gr(this,"log");defineProperties(this,{log:tt})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}class ContractEventPayload extends ContractUnknownEventPayload{constructor(a,d,et,nt,tt){super(a,d,et,new EventLog(tt,a.interface,nt));const bt=a.interface.decodeEventLog(nt,this.log.data,this.log.topics);defineProperties(this,{args:bt,fragment:nt})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}const BN_0$1=BigInt(0);function canCall(c){return c&&typeof c.call=="function"}function canEstimate(c){return c&&typeof c.estimateGas=="function"}function canResolve(c){return c&&typeof c.resolveName=="function"}function canSend(c){return c&&typeof c.sendTransaction=="function"}var lo;class PreparedTopicFilter{constructor(a,d,et){Vr(this,lo,void 0);Gr(this,"fragment");if(defineProperties(this,{fragment:d}),d.inputs.lengthet[wt]==null?null:gt.walkAsync(et[wt],(Mt,_t)=>Mt==="address"?Array.isArray(_t)?Promise.all(_t.map(Tt=>resolveAddress(Tt,tt))):resolveAddress(_t,tt):_t)));return a.interface.encodeFilterTopics(d,bt)}())}getTopicFilter(){return or(this,lo)}}lo=new WeakMap;function getRunner(c,a){return c==null?null:typeof c[a]=="function"?c:c.provider&&typeof c.provider[a]=="function"?c.provider:null}function getProvider$1(c){return c==null?null:c.provider||null}async function copyOverrides(c,a){const d=Typed.dereference(c,"overrides");assertArgument(typeof d=="object","invalid overrides parameter","overrides",c);const et=copyRequest(d);return assertArgument(et.to==null||(a||[]).indexOf("to")>=0,"cannot override to","overrides.to",et.to),assertArgument(et.data==null||(a||[]).indexOf("data")>=0,"cannot override data","overrides.data",et.data),et.from&&(et.from=await resolveAddress(et.from)),et}async function resolveArgs(c,a,d){const et=getRunner(c,"resolveName"),nt=canResolve(et)?et:null;return await Promise.all(a.map((tt,bt)=>tt.walkAsync(d[bt],(gt,wt)=>(wt=Typed.dereference(wt,gt),gt==="address"?resolveAddress(wt,nt):wt))))}function buildWrappedFallback(c){const a=async function(bt){const gt=await copyOverrides(bt,["data"]);gt.to=await c.getAddress();const wt=c.interface,St=getBigInt(gt.value||BN_0$1,"overrides.value")===BN_0$1,Mt=(gt.data||"0x")==="0x";wt.fallback&&!wt.fallback.payable&&wt.receive&&!Mt&&!St&&assertArgument(!1,"cannot send data to receive or send value to non-payable fallback","overrides",bt),assertArgument(wt.fallback||Mt,"cannot send data to receive-only contract","overrides.data",gt.data);const _t=wt.receive||wt.fallback&&wt.fallback.payable;return assertArgument(_t||St,"cannot send value to non-payable fallback","overrides.value",gt.value),assertArgument(wt.fallback||Mt,"cannot send data to receive-only contract","overrides.data",gt.data),gt},d=async function(bt){const gt=getRunner(c.runner,"call");assert$s(canCall(gt),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const wt=await a(bt);try{return await gt.call(wt)}catch(St){throw isCallException(St)&&St.data?c.interface.makeError(St.data,wt):St}},et=async function(bt){const gt=c.runner;assert$s(canSend(gt),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const wt=await gt.sendTransaction(await a(bt)),St=getProvider$1(c.runner);return new ContractTransactionResponse(c.interface,St,wt)},nt=async function(bt){const gt=getRunner(c.runner,"estimateGas");return assert$s(canEstimate(gt),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await gt.estimateGas(await a(bt))},tt=async bt=>await et(bt);return defineProperties(tt,{_contract:c,estimateGas:nt,populateTransaction:a,send:et,staticCall:d}),tt}function buildWrappedMethod(c,a){const d=function(...St){const Mt=c.interface.getFunction(a,St);return assert$s(Mt,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:a,args:St}}),Mt},et=async function(...St){const Mt=d(...St);let _t={};if(Mt.inputs.length+1===St.length&&(_t=await copyOverrides(St.pop())),Mt.inputs.length!==St.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const Tt=await resolveArgs(c.runner,Mt.inputs,St);return Object.assign({},_t,await resolveProperties({to:c.getAddress(),data:c.interface.encodeFunctionData(Mt,Tt)}))},nt=async function(...St){const Mt=await gt(...St);return Mt.length===1?Mt[0]:Mt},tt=async function(...St){const Mt=c.runner;assert$s(canSend(Mt),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const _t=await Mt.sendTransaction(await et(...St)),Tt=getProvider$1(c.runner);return new ContractTransactionResponse(c.interface,Tt,_t)},bt=async function(...St){const Mt=getRunner(c.runner,"estimateGas");return assert$s(canEstimate(Mt),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await Mt.estimateGas(await et(...St))},gt=async function(...St){const Mt=getRunner(c.runner,"call");assert$s(canCall(Mt),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const _t=await et(...St);let Tt="0x";try{Tt=await Mt.call(_t)}catch(kt){throw isCallException(kt)&&kt.data?c.interface.makeError(kt.data,_t):kt}const Rt=d(...St);return c.interface.decodeFunctionResult(Rt,Tt)},wt=async(...St)=>d(...St).constant?await nt(...St):await tt(...St);return defineProperties(wt,{name:c.interface.getFunctionName(a),_contract:c,_key:a,getFragment:d,estimateGas:bt,populateTransaction:et,send:tt,staticCall:nt,staticCallResult:gt}),Object.defineProperty(wt,"fragment",{configurable:!1,enumerable:!0,get:()=>{const St=c.interface.getFunction(a);return assert$s(St,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:a}}),St}}),wt}function buildWrappedEvent(c,a){const d=function(...nt){const tt=c.interface.getEvent(a,nt);return assert$s(tt,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:a,args:nt}}),tt},et=function(...nt){return new PreparedTopicFilter(c,d(...nt),nt)};return defineProperties(et,{name:c.interface.getEventName(a),_contract:c,_key:a,getFragment:d}),Object.defineProperty(et,"fragment",{configurable:!1,enumerable:!0,get:()=>{const nt=c.interface.getEvent(a);return assert$s(nt,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:a}}),nt}}),et}const internal=Symbol.for("_ethersInternal_contract"),internalValues=new WeakMap;function setInternal(c,a){internalValues.set(c[internal],a)}function getInternal(c){return internalValues.get(c[internal])}function isDeferred(c){return c&&typeof c=="object"&&"getTopicFilter"in c&&typeof c.getTopicFilter=="function"&&c.fragment}async function getSubInfo(c,a){let d,et=null;if(Array.isArray(a)){const tt=function(bt){if(isHexString(bt,32))return bt;const gt=c.interface.getEvent(bt);return assertArgument(gt,"unknown fragment","name",bt),gt.topicHash};d=a.map(bt=>bt==null?null:Array.isArray(bt)?bt.map(tt):tt(bt))}else a==="*"?d=[null]:typeof a=="string"?isHexString(a,32)?d=[a]:(et=c.interface.getEvent(a),assertArgument(et,"unknown fragment","event",a),d=[et.topicHash]):isDeferred(a)?d=await a.getTopicFilter():"fragment"in a?(et=a.fragment,d=[et.topicHash]):assertArgument(!1,"unknown event name","event",a);d=d.map(tt=>{if(tt==null)return null;if(Array.isArray(tt)){const bt=Array.from(new Set(tt.map(gt=>gt.toLowerCase())).values());return bt.length===1?bt[0]:(bt.sort(),bt)}return tt.toLowerCase()});const nt=d.map(tt=>tt==null?"null":Array.isArray(tt)?tt.join("|"):tt).join("&");return{fragment:et,tag:nt,topics:d}}async function hasSub(c,a){const{subs:d}=getInternal(c);return d.get((await getSubInfo(c,a)).tag)||null}async function getSub(c,a,d){const et=getProvider$1(c.runner);assert$s(et,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:a});const{fragment:nt,tag:tt,topics:bt}=await getSubInfo(c,d),{addr:gt,subs:wt}=getInternal(c);let St=wt.get(tt);if(!St){const _t={address:gt||c,topics:bt},Tt=Lt=>{let Ot=nt;if(Ot==null)try{Ot=c.interface.getEvent(Lt.topics[0])}catch{}if(Ot){const Nt=Ot,Ft=nt?c.interface.decodeEventLog(nt,Lt.data,Lt.topics):[];emit(c,d,Ft,jt=>new ContractEventPayload(c,jt,d,Nt,Lt))}else emit(c,d,[],Nt=>new ContractUnknownEventPayload(c,Nt,d,Lt))};let Rt=[];St={tag:tt,listeners:[],start:()=>{Rt.length||Rt.push(et.on(_t,Tt))},stop:async()=>{if(Rt.length==0)return;let Lt=Rt;Rt=[],await Promise.all(Lt),et.off(_t,Tt)}},wt.set(tt,St)}return St}let lastEmit=Promise.resolve();async function _emit(c,a,d,et){await lastEmit;const nt=await hasSub(c,a);if(!nt)return!1;const tt=nt.listeners.length;return nt.listeners=nt.listeners.filter(({listener:bt,once:gt})=>{const wt=Array.from(d);et&&wt.push(et(gt?null:bt));try{bt.call(c,...wt)}catch{}return!gt}),nt.listeners.length===0&&(nt.stop(),getInternal(c).subs.delete(nt.tag)),tt>0}async function emit(c,a,d,et){try{await lastEmit}catch{}const nt=_emit(c,a,d,et);return lastEmit=nt,await nt}const passProperties=["then"];var o1;const Qs=class Qs{constructor(a,d,et,nt){Gr(this,"target");Gr(this,"interface");Gr(this,"runner");Gr(this,"filters");Gr(this,o1);Gr(this,"fallback");assertArgument(typeof a=="string"||isAddressable(a),"invalid value for Contract target","target",a),et==null&&(et=null);const tt=Interface.from(d);defineProperties(this,{target:a,runner:et,interface:tt}),Object.defineProperty(this,internal,{value:{}});let bt,gt=null,wt=null;if(nt){const _t=getProvider$1(et);wt=new ContractTransactionResponse(this.interface,_t,nt)}let St=new Map;if(typeof a=="string")if(isHexString(a))gt=a,bt=Promise.resolve(a);else{const _t=getRunner(et,"resolveName");if(!canResolve(_t))throw makeError("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});bt=_t.resolveName(a).then(Tt=>{if(Tt==null)throw makeError("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:a});return getInternal(this).addr=Tt,Tt})}else bt=a.getAddress().then(_t=>{if(_t==null)throw new Error("TODO");return getInternal(this).addr=_t,_t});setInternal(this,{addrPromise:bt,addr:gt,deployTx:wt,subs:St});const Mt=new Proxy({},{get:(_t,Tt,Rt)=>{if(typeof Tt=="symbol"||passProperties.indexOf(Tt)>=0)return Reflect.get(_t,Tt,Rt);try{return this.getEvent(Tt)}catch(kt){if(!isError$1(kt,"INVALID_ARGUMENT")||kt.argument!=="key")throw kt}},has:(_t,Tt)=>passProperties.indexOf(Tt)>=0?Reflect.has(_t,Tt):Reflect.has(_t,Tt)||this.interface.hasEvent(String(Tt))});return defineProperties(this,{filters:Mt}),defineProperties(this,{fallback:tt.receive||tt.fallback?buildWrappedFallback(this):null}),new Proxy(this,{get:(_t,Tt,Rt)=>{if(typeof Tt=="symbol"||Tt in _t||passProperties.indexOf(Tt)>=0)return Reflect.get(_t,Tt,Rt);try{return _t.getFunction(Tt)}catch(kt){if(!isError$1(kt,"INVALID_ARGUMENT")||kt.argument!=="key")throw kt}},has:(_t,Tt)=>typeof Tt=="symbol"||Tt in _t||passProperties.indexOf(Tt)>=0?Reflect.has(_t,Tt):_t.interface.hasFunction(Tt)})}connect(a){return new Qs(this.target,this.interface,a)}attach(a){return new Qs(a,this.interface,this.runner)}async getAddress(){return await getInternal(this).addrPromise}async getDeployedCode(){const a=getProvider$1(this.runner);assert$s(a,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const d=await a.getCode(await this.getAddress());return d==="0x"?null:d}async waitForDeployment(){const a=this.deploymentTransaction();if(a)return await a.wait(),this;if(await this.getDeployedCode()!=null)return this;const et=getProvider$1(this.runner);return assert$s(et!=null,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((nt,tt)=>{const bt=async()=>{try{if(await this.getDeployedCode()!=null)return nt(this);et.once("block",bt)}catch(gt){tt(gt)}};bt()})}deploymentTransaction(){return getInternal(this).deployTx}getFunction(a){return typeof a!="string"&&(a=a.format()),buildWrappedMethod(this,a)}getEvent(a){return typeof a!="string"&&(a=a.format()),buildWrappedEvent(this,a)}async queryTransaction(a){throw new Error("@TODO")}async queryFilter(a,d,et){d==null&&(d=0),et==null&&(et="latest");const{addr:nt,addrPromise:tt}=getInternal(this),bt=nt||await tt,{fragment:gt,topics:wt}=await getSubInfo(this,a),St={address:bt,topics:wt,fromBlock:d,toBlock:et},Mt=getProvider$1(this.runner);return assert$s(Mt,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await Mt.getLogs(St)).map(_t=>{let Tt=gt;if(Tt==null)try{Tt=this.interface.getEvent(_t.topics[0])}catch{}if(Tt)try{return new EventLog(_t,this.interface,Tt)}catch(Rt){return new UndecodedEventLog(_t,Rt)}return new Log(_t,Mt)})}async on(a,d){const et=await getSub(this,"on",a);return et.listeners.push({listener:d,once:!1}),et.start(),this}async once(a,d){const et=await getSub(this,"once",a);return et.listeners.push({listener:d,once:!0}),et.start(),this}async emit(a,...d){return await emit(this,a,d,null)}async listenerCount(a){if(a){const nt=await hasSub(this,a);return nt?nt.listeners.length:0}const{subs:d}=getInternal(this);let et=0;for(const{listeners:nt}of d.values())et+=nt.length;return et}async listeners(a){if(a){const nt=await hasSub(this,a);return nt?nt.listeners.map(({listener:tt})=>tt):[]}const{subs:d}=getInternal(this);let et=[];for(const{listeners:nt}of d.values())et=et.concat(nt.map(({listener:tt})=>tt));return et}async off(a,d){const et=await hasSub(this,a);if(!et)return this;if(d){const nt=et.listeners.map(({listener:tt})=>tt).indexOf(d);nt>=0&&et.listeners.splice(nt,1)}return(d==null||et.listeners.length===0)&&(et.stop(),getInternal(this).subs.delete(et.tag)),this}async removeAllListeners(a){if(a){const d=await hasSub(this,a);if(!d)return this;d.stop(),getInternal(this).subs.delete(d.tag)}else{const{subs:d}=getInternal(this);for(const{tag:et,stop:nt}of d.values())nt(),d.delete(et)}return this}async addListener(a,d){return await this.on(a,d)}async removeListener(a,d){return await this.off(a,d)}static buildClass(a){class d extends Qs{constructor(nt,tt=null){super(nt,a,tt)}}return d}static from(a,d,et){return et==null&&(et=null),new this(a,d,et)}};o1=internal;let BaseContract=Qs;function _ContractBase(){return BaseContract}class Contract extends _ContractBase(){}function getIpfsLink(c){return c.match(/^ipfs:\/\/ipfs\//i)?c=c.substring(12):c.match(/^ipfs:\/\//i)?c=c.substring(7):assertArgument(!1,"unsupported IPFS format","link",c),`https://gateway.ipfs.io/ipfs/${c}`}class MulticoinProviderPlugin{constructor(a){Gr(this,"name");defineProperties(this,{name:a})}connect(a){return this}supportsCoinType(a){return!1}async encodeAddress(a,d){throw new Error("unsupported coin")}async decodeAddress(a,d){throw new Error("unsupported coin")}}const matcherIpfs=new RegExp("^(ipfs)://(.*)$","i"),matchers=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),matcherIpfs,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];var Bn,Xn,kn,ns,ko,n1;const as=class as{constructor(a,d,et){Vr(this,kn);Gr(this,"provider");Gr(this,"address");Gr(this,"name");Vr(this,Bn,void 0);Vr(this,Xn,void 0);defineProperties(this,{provider:a,address:d,name:et}),yr(this,Bn,null),yr(this,Xn,new Contract(d,["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)"],a))}async supportsWildcard(){return or(this,Bn)==null&&yr(this,Bn,(async()=>{try{return await or(this,Xn).supportsInterface("0x9061b923")}catch(a){if(isError$1(a,"CALL_EXCEPTION"))return!1;throw yr(this,Bn,null),a}})()),await or(this,Bn)}async getAddress(a){if(a==null&&(a=60),a===60)try{const tt=await Wr(this,kn,ns).call(this,"addr(bytes32)");return tt==null||tt===ZeroAddress?null:tt}catch(tt){if(isError$1(tt,"CALL_EXCEPTION"))return null;throw tt}if(a>=0&&a<2147483648){let tt=a+2147483648;const bt=await Wr(this,kn,ns).call(this,"addr(bytes32,uint)",[tt]);if(isHexString(bt,20))return getAddress$1(bt)}let d=null;for(const tt of this.provider.plugins)if(tt instanceof MulticoinProviderPlugin&&tt.supportsCoinType(a)){d=tt;break}if(d==null)return null;const et=await Wr(this,kn,ns).call(this,"addr(bytes32,uint)",[a]);if(et==null||et==="0x")return null;const nt=await d.decodeAddress(a,et);if(nt!=null)return nt;assert$s(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${a})`,info:{coinType:a,data:et}})}async getText(a){const d=await Wr(this,kn,ns).call(this,"text(bytes32,string)",[a]);return d==null||d==="0x"?null:d}async getContentHash(){const a=await Wr(this,kn,ns).call(this,"contenthash(bytes32)");if(a==null||a==="0x")return null;const d=a.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(d){const nt=d[1]==="e3010170"?"ipfs":"ipns",tt=parseInt(d[4],16);if(d[5].length===tt*2)return`${nt}://${encodeBase58("0x"+d[2])}`}const et=a.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(et&&et[1].length===64)return`bzz://${et[1]}`;assert$s(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:a}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const a=[{type:"name",value:this.name}];try{const d=await this.getText("avatar");if(d==null)return a.push({type:"!avatar",value:""}),{url:null,linkage:a};a.push({type:"avatar",value:d});for(let et=0;et{if(!Array.isArray(a))throw new Error("not an array");return a.map(d=>c(d))}}function object(c,a){return d=>{const et={};for(const nt in c){let tt=nt;if(a&&nt in a&&!(tt in d)){for(const bt of a[nt])if(bt in d){tt=bt;break}}try{const bt=c[nt](d[tt]);bt!==void 0&&(et[nt]=bt)}catch(bt){const gt=bt instanceof Error?bt.message:"not-an-error";assert$s(!1,`invalid value for value.${nt} (${gt})`,"BAD_DATA",{value:d})}}return et}}function formatBoolean(c){switch(c){case!0:case"true":return!0;case!1:case"false":return!1}assertArgument(!1,`invalid boolean; ${JSON.stringify(c)}`,"value",c)}function formatData(c){return assertArgument(isHexString(c,!0),"invalid data","value",c),c}function formatHash(c){return assertArgument(isHexString(c,32),"invalid hash","value",c),c}const _formatLog=object({address:getAddress$1,blockHash:formatHash,blockNumber:getNumber,data:formatData,index:getNumber,removed:allowNull(formatBoolean,!1),topics:arrayOf(formatHash),transactionHash:formatHash,transactionIndex:getNumber},{index:["logIndex"]});function formatLog$1(c){return _formatLog(c)}const _formatBlock=object({hash:allowNull(formatHash),parentHash:formatHash,number:getNumber,timestamp:getNumber,nonce:allowNull(formatData),difficulty:getBigInt,gasLimit:getBigInt,gasUsed:getBigInt,miner:allowNull(getAddress$1),extraData:formatData,baseFeePerGas:allowNull(getBigInt)});function formatBlock$1(c){const a=_formatBlock(c);return a.transactions=c.transactions.map(d=>typeof d=="string"?d:formatTransactionResponse(d)),a}const _formatReceiptLog=object({transactionIndex:getNumber,blockNumber:getNumber,transactionHash:formatHash,address:getAddress$1,topics:arrayOf(formatHash),data:formatData,index:getNumber,blockHash:formatHash},{index:["logIndex"]});function formatReceiptLog(c){return _formatReceiptLog(c)}const _formatTransactionReceipt=object({to:allowNull(getAddress$1,null),from:allowNull(getAddress$1,null),contractAddress:allowNull(getAddress$1,null),index:getNumber,root:allowNull(hexlify),gasUsed:getBigInt,logsBloom:allowNull(formatData),blockHash:formatHash,hash:formatHash,logs:arrayOf(formatReceiptLog),blockNumber:getNumber,cumulativeGasUsed:getBigInt,effectiveGasPrice:allowNull(getBigInt),status:allowNull(getNumber),type:allowNull(getNumber,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function formatTransactionReceipt$1(c){return _formatTransactionReceipt(c)}function formatTransactionResponse(c){c.to&&getBigInt(c.to)===BN_0&&(c.to="0x0000000000000000000000000000000000000000");const a=object({hash:formatHash,type:d=>d==="0x"||d==null?0:getNumber(d),accessList:allowNull(accessListify,null),blockHash:allowNull(formatHash,null),blockNumber:allowNull(getNumber,null),transactionIndex:allowNull(getNumber,null),from:getAddress$1,gasPrice:allowNull(getBigInt),maxPriorityFeePerGas:allowNull(getBigInt),maxFeePerGas:allowNull(getBigInt),gasLimit:getBigInt,to:allowNull(getAddress$1,null),value:getBigInt,nonce:getNumber,data:formatData,creates:allowNull(getAddress$1,null),chainId:allowNull(getBigInt,null)},{data:["input"],gasLimit:["gas"]})(c);if(a.to==null&&a.creates==null&&(a.creates=getCreateAddress(a)),(c.type===1||c.type===2)&&c.accessList==null&&(a.accessList=[]),c.signature?a.signature=Signature.from(c.signature):a.signature=Signature.from(c),a.chainId==null){const d=a.signature.legacyChainId;d!=null&&(a.chainId=d)}return a.blockHash&&getBigInt(a.blockHash)===BN_0&&(a.blockHash=null),a}const EnsAddress="0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";class NetworkPlugin{constructor(a){Gr(this,"name");defineProperties(this,{name:a})}clone(){return new NetworkPlugin(this.name)}}class GasCostPlugin extends NetworkPlugin{constructor(d,et){d==null&&(d=0);super(`org.ethers.network.plugins.GasCost#${d||0}`);Gr(this,"effectiveBlock");Gr(this,"txBase");Gr(this,"txCreate");Gr(this,"txDataZero");Gr(this,"txDataNonzero");Gr(this,"txAccessListStorageKey");Gr(this,"txAccessListAddress");const nt={effectiveBlock:d};function tt(bt,gt){let wt=(et||{})[bt];wt==null&&(wt=gt),assertArgument(typeof wt=="number",`invalud value for ${bt}`,"costs",et),nt[bt]=wt}tt("txBase",21e3),tt("txCreate",32e3),tt("txDataZero",4),tt("txDataNonzero",16),tt("txAccessListStorageKey",1900),tt("txAccessListAddress",2400),defineProperties(this,nt)}clone(){return new GasCostPlugin(this.effectiveBlock,this)}}class EnsPlugin extends NetworkPlugin{constructor(d,et){super("org.ethers.plugins.network.Ens");Gr(this,"address");Gr(this,"targetNetwork");defineProperties(this,{address:d||EnsAddress,targetNetwork:et??1})}clone(){return new EnsPlugin(this.address,this.targetNetwork)}}var uo,ho;class FetchUrlFeeDataNetworkPlugin extends NetworkPlugin{constructor(d,et){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin");Vr(this,uo,void 0);Vr(this,ho,void 0);yr(this,uo,d),yr(this,ho,et)}get url(){return or(this,uo)}get processFunc(){return or(this,ho)}clone(){return this}}uo=new WeakMap,ho=new WeakMap;const Networks=new Map;var ks,Is,In;const ss=class ss{constructor(a,d){Vr(this,ks,void 0);Vr(this,Is,void 0);Vr(this,In,void 0);yr(this,ks,a),yr(this,Is,getBigInt(d)),yr(this,In,new Map)}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return or(this,ks)}set name(a){yr(this,ks,a)}get chainId(){return or(this,Is)}set chainId(a){yr(this,Is,getBigInt(a,"chainId"))}matches(a){if(a==null)return!1;if(typeof a=="string"){try{return this.chainId===getBigInt(a)}catch{}return this.name===a}if(typeof a=="number"||typeof a=="bigint"){try{return this.chainId===getBigInt(a)}catch{}return!1}if(typeof a=="object"){if(a.chainId!=null){try{return this.chainId===getBigInt(a.chainId)}catch{}return!1}return a.name!=null?this.name===a.name:!1}return!1}get plugins(){return Array.from(or(this,In).values())}attachPlugin(a){if(or(this,In).get(a.name))throw new Error(`cannot replace existing plugin: ${a.name} `);return or(this,In).set(a.name,a.clone()),this}getPlugin(a){return or(this,In).get(a)||null}getPlugins(a){return this.plugins.filter(d=>d.name.split("#")[0]===a)}clone(){const a=new ss(this.name,this.chainId);return this.plugins.forEach(d=>{a.attachPlugin(d.clone())}),a}computeIntrinsicGas(a){const d=this.getPlugin("org.ethers.plugins.network.GasCost")||new GasCostPlugin;let et=d.txBase;if(a.to==null&&(et+=d.txCreate),a.data)for(let nt=2;nt9){let nt=BigInt(et[1].substring(0,9));et[1].substring(9).match(/^0+$/)||nt++,et[1]=nt.toString()}return BigInt(et[0]+et[1])}function getGasStationPlugin(c){return new FetchUrlFeeDataNetworkPlugin(c,async(a,d,et)=>{et.setHeader("User-Agent","ethers");let nt;try{const[tt,bt]=await Promise.all([et.send(),a()]);nt=tt;const gt=nt.bodyJson.standard;return{gasPrice:bt.gasPrice,maxFeePerGas:parseUnits(gt.maxFee,9),maxPriorityFeePerGas:parseUnits(gt.maxPriorityFee,9)}}catch(tt){assert$s(!1,`error encountered with polygon gas station (${JSON.stringify(et.url)})`,"SERVER_ERROR",{request:et,response:nt,error:tt})}})}function getPriorityFeePlugin(c){return new FetchUrlFeeDataNetworkPlugin("data:",async(a,d,et)=>{const nt=await a();if(nt.maxFeePerGas==null||nt.maxPriorityFeePerGas==null)return nt;const tt=nt.maxFeePerGas-nt.maxPriorityFeePerGas;return{gasPrice:nt.gasPrice,maxFeePerGas:tt+c,maxPriorityFeePerGas:c}})}let injected=!1;function injectCommonNetworks(){if(injected)return;injected=!0;function c(a,d,et){const nt=function(){const tt=new Network(a,d);return et.ensNetwork!=null&&tt.attachPlugin(new EnsPlugin(null,et.ensNetwork)),tt.attachPlugin(new GasCostPlugin),(et.plugins||[]).forEach(bt=>{tt.attachPlugin(bt)}),tt};Network.register(a,nt),Network.register(d,nt),et.altNames&&et.altNames.forEach(tt=>{Network.register(tt,nt)})}c("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),c("ropsten",3,{ensNetwork:3}),c("rinkeby",4,{ensNetwork:4}),c("goerli",5,{ensNetwork:5}),c("kovan",42,{ensNetwork:42}),c("sepolia",11155111,{}),c("classic",61,{}),c("classicKotti",6,{}),c("arbitrum",42161,{ensNetwork:1}),c("arbitrum-goerli",421613,{}),c("bnb",56,{ensNetwork:1}),c("bnbt",97,{}),c("linea",59144,{ensNetwork:1}),c("linea-goerli",59140,{}),c("matic",137,{ensNetwork:1,plugins:[getGasStationPlugin("https://gasstation.polygon.technology/v2")]}),c("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[getGasStationPlugin("https://gasstation-testnet.polygon.technology/v2")]}),c("optimism",10,{ensNetwork:1,plugins:[getPriorityFeePlugin(BigInt("1000000"))]}),c("optimism-goerli",420,{}),c("xdai",100,{ensNetwork:1})}function copy$3(c){return JSON.parse(JSON.stringify(c))}var xn,q0,Nn,sn,Ns,Ao;class PollingBlockSubscriber{constructor(a){Vr(this,Ns);Vr(this,xn,void 0);Vr(this,q0,void 0);Vr(this,Nn,void 0);Vr(this,sn,void 0);yr(this,xn,a),yr(this,q0,null),yr(this,Nn,4e3),yr(this,sn,-2)}get pollingInterval(){return or(this,Nn)}set pollingInterval(a){yr(this,Nn,a)}start(){or(this,q0)||(yr(this,q0,or(this,xn)._setTimeout(Wr(this,Ns,Ao).bind(this),or(this,Nn))),Wr(this,Ns,Ao).call(this))}stop(){or(this,q0)&&(or(this,xn)._clearTimeout(or(this,q0)),yr(this,q0,null))}pause(a){this.stop(),a&&yr(this,sn,-2)}resume(){this.start()}}xn=new WeakMap,q0=new WeakMap,Nn=new WeakMap,sn=new WeakMap,Ns=new WeakSet,Ao=async function(){try{const a=await or(this,xn).getBlockNumber();if(or(this,sn)===-2){yr(this,sn,a);return}if(a!==or(this,sn)){for(let d=or(this,sn)+1;d<=a;d++){if(or(this,q0)==null)return;await or(this,xn).emit("block",d)}yr(this,sn,a)}}catch{}or(this,q0)!=null&&yr(this,q0,or(this,xn)._setTimeout(Wr(this,Ns,Ao).bind(this),or(this,Nn)))};var _i,na,On;class OnBlockSubscriber{constructor(a){Vr(this,_i,void 0);Vr(this,na,void 0);Vr(this,On,void 0);yr(this,_i,a),yr(this,On,!1),yr(this,na,d=>{this._poll(d,or(this,_i))})}async _poll(a,d){throw new Error("sub-classes must override this")}start(){or(this,On)||(yr(this,On,!0),or(this,na).call(this,-2),or(this,_i).on("block",or(this,na)))}stop(){or(this,On)&&(yr(this,On,!1),or(this,_i).off("block",or(this,na)))}pause(a){this.stop()}resume(){this.start()}}_i=new WeakMap,na=new WeakMap,On=new WeakMap;var Io;class PollingOrphanSubscriber extends OnBlockSubscriber{constructor(d,et){super(d);Vr(this,Io,void 0);yr(this,Io,copy$3(et))}async _poll(d,et){throw new Error("@TODO")}}Io=new WeakMap;var Os;class PollingTransactionSubscriber extends OnBlockSubscriber{constructor(d,et){super(d);Vr(this,Os,void 0);yr(this,Os,et)}async _poll(d,et){const nt=await et.getTransactionReceipt(or(this,Os));nt&&et.emit(or(this,Os),nt)}}Os=new WeakMap;var En,Ds,Ls,Dn,G0,No,i1;class PollingEventSubscriber{constructor(a,d){Vr(this,No);Vr(this,En,void 0);Vr(this,Ds,void 0);Vr(this,Ls,void 0);Vr(this,Dn,void 0);Vr(this,G0,void 0);yr(this,En,a),yr(this,Ds,copy$3(d)),yr(this,Ls,Wr(this,No,i1).bind(this)),yr(this,Dn,!1),yr(this,G0,-2)}start(){or(this,Dn)||(yr(this,Dn,!0),or(this,G0)===-2&&or(this,En).getBlockNumber().then(a=>{yr(this,G0,a)}),or(this,En).on("block",or(this,Ls)))}stop(){or(this,Dn)&&(yr(this,Dn,!1),or(this,En).off("block",or(this,Ls)))}pause(a){this.stop(),a&&yr(this,G0,-2)}resume(){this.start()}}En=new WeakMap,Ds=new WeakMap,Ls=new WeakMap,Dn=new WeakMap,G0=new WeakMap,No=new WeakSet,i1=async function(a){if(or(this,G0)===-2)return;const d=copy$3(or(this,Ds));d.fromBlock=or(this,G0)+1,d.toBlock=a;const et=await or(this,En).getLogs(d);if(et.length===0){or(this,G0){if(et==null)return"null";if(typeof et=="bigint")return`bigint:${et.toString()}`;if(typeof et=="string")return et.toLowerCase();if(typeof et=="object"&&!Array.isArray(et)){const nt=Object.keys(et);return nt.sort(),nt.reduce((tt,bt)=>(tt[bt]=et[bt],tt),{})}return et})}class UnmanagedSubscriber{constructor(a){Gr(this,"name");defineProperties(this,{name:a})}start(){}stop(){}pause(a){}resume(){}}function copy$2(c){return JSON.parse(JSON.stringify(c))}function concisify(c){return c=Array.from(new Set(c).values()),c.sort(),c}async function getSubscription(c,a){if(c==null)throw new Error("invalid event");if(Array.isArray(c)&&(c={topics:c}),typeof c=="string")switch(c){case"block":case"pending":case"debug":case"error":case"network":return{type:c,tag:c}}if(isHexString(c,32)){const d=c.toLowerCase();return{type:"transaction",tag:getTag("tx",{hash:d}),hash:d}}if(c.orphan){const d=c;return{type:"orphan",tag:getTag("orphan",d),filter:copy$2(d)}}if(c.address||c.topics){const d=c,et={topics:(d.topics||[]).map(nt=>nt==null?null:Array.isArray(nt)?concisify(nt.map(tt=>tt.toLowerCase())):nt.toLowerCase())};if(d.address){const nt=[],tt=[],bt=gt=>{isHexString(gt)?nt.push(gt):tt.push((async()=>{nt.push(await resolveAddress(gt,a))})())};Array.isArray(d.address)?d.address.forEach(bt):bt(d.address),tt.length&&await Promise.all(tt),et.address=concisify(nt.map(gt=>gt.toLowerCase()))}return{filter:et,tag:getTag("event",et),type:"event"}}assertArgument(!1,"unknown ProviderEvent","event",c)}function getTime(){return new Date().getTime()}const defaultOptions$1={cacheTimeout:250,pollingInterval:4e3};var R0,Ln,B0,Fs,F0,ba,Fn,$n,po,W0,zs,js,I0,z0,bo,qo,mo,Go,ga,Ys,go,Vo,xa,Zs,Us,_o;class AbstractProvider{constructor(a,d){Vr(this,I0);Vr(this,bo);Vr(this,mo);Vr(this,ga);Vr(this,go);Vr(this,xa);Vr(this,Us);Vr(this,R0,void 0);Vr(this,Ln,void 0);Vr(this,B0,void 0);Vr(this,Fs,void 0);Vr(this,F0,void 0);Vr(this,ba,void 0);Vr(this,Fn,void 0);Vr(this,$n,void 0);Vr(this,po,void 0);Vr(this,W0,void 0);Vr(this,zs,void 0);Vr(this,js,void 0);if(yr(this,js,Object.assign({},defaultOptions$1,d||{})),a==="any")yr(this,ba,!0),yr(this,F0,null);else if(a){const et=Network.from(a);yr(this,ba,!1),yr(this,F0,Promise.resolve(et)),setTimeout(()=>{this.emit("network",et,null)},0)}else yr(this,ba,!1),yr(this,F0,null);yr(this,$n,-1),yr(this,Fn,new Map),yr(this,R0,new Map),yr(this,Ln,new Map),yr(this,B0,null),yr(this,Fs,!1),yr(this,po,1),yr(this,W0,new Map),yr(this,zs,!1)}get pollingInterval(){return or(this,js).pollingInterval}get provider(){return this}get plugins(){return Array.from(or(this,Ln).values())}attachPlugin(a){if(or(this,Ln).get(a.name))throw new Error(`cannot replace existing plugin: ${a.name} `);return or(this,Ln).set(a.name,a.connect(this)),this}getPlugin(a){return or(this,Ln).get(a)||null}get disableCcipRead(){return or(this,zs)}set disableCcipRead(a){yr(this,zs,!!a)}async ccipReadFetch(a,d,et){if(this.disableCcipRead||et.length===0||a.to==null)return null;const nt=a.to.toLowerCase(),tt=d.toLowerCase(),bt=[];for(let gt=0;gt=500,`response not found during CCIP fetch: ${_t}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:a,info:{url:wt,errorMessage:_t}}),bt.push(_t)}assert$s(!1,`error encountered during CCIP fetch: ${bt.map(gt=>JSON.stringify(gt)).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:a,info:{urls:et,errorMessages:bt}})}_wrapBlock(a,d){return new Block(formatBlock$1(a),this)}_wrapLog(a,d){return new Log(formatLog$1(a),this)}_wrapTransactionReceipt(a,d){return new TransactionReceipt(formatTransactionReceipt$1(a),this)}_wrapTransactionResponse(a,d){return new TransactionResponse(formatTransactionResponse(a),this)}_detectNetwork(){assert$s(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(a){assert$s(!1,`unsupported method: ${a.method}`,"UNSUPPORTED_OPERATION",{operation:a.method,info:a})}async getBlockNumber(){const a=getNumber(await Wr(this,I0,z0).call(this,{method:"getBlockNumber"}),"%response");return or(this,$n)>=0&&yr(this,$n,a),a}_getAddress(a){return resolveAddress(a,this)}_getBlockTag(a){if(a==null)return"latest";switch(a){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return a}if(isHexString(a))return isHexString(a,32)?a:toQuantity(a);if(typeof a=="bigint"&&(a=getNumber(a,"blockTag")),typeof a=="number")return a>=0?toQuantity(a):or(this,$n)>=0?toQuantity(or(this,$n)+a):this.getBlockNumber().then(d=>toQuantity(d+a));assertArgument(!1,"invalid blockTag","blockTag",a)}_getFilter(a){const d=(a.topics||[]).map(wt=>wt==null?null:Array.isArray(wt)?concisify(wt.map(St=>St.toLowerCase())):wt.toLowerCase()),et="blockHash"in a?a.blockHash:void 0,nt=(wt,St,Mt)=>{let _t;switch(wt.length){case 0:break;case 1:_t=wt[0];break;default:wt.sort(),_t=wt}if(et&&(St!=null||Mt!=null))throw new Error("invalid filter");const Tt={};return _t&&(Tt.address=_t),d.length&&(Tt.topics=d),St&&(Tt.fromBlock=St),Mt&&(Tt.toBlock=Mt),et&&(Tt.blockHash=et),Tt};let tt=[];if(a.address)if(Array.isArray(a.address))for(const wt of a.address)tt.push(this._getAddress(wt));else tt.push(this._getAddress(a.address));let bt;"fromBlock"in a&&(bt=this._getBlockTag(a.fromBlock));let gt;return"toBlock"in a&&(gt=this._getBlockTag(a.toBlock)),tt.filter(wt=>typeof wt!="string").length||bt!=null&&typeof bt!="string"||gt!=null&&typeof gt!="string"?Promise.all([Promise.all(tt),bt,gt]).then(wt=>nt(wt[0],wt[1],wt[2])):nt(tt,bt,gt)}_getTransactionRequest(a){const d=copyRequest(a),et=[];if(["to","from"].forEach(nt=>{if(d[nt]==null)return;const tt=resolveAddress(d[nt]);isPromise(tt)?et.push(async function(){d[nt]=await tt}()):d[nt]=tt}),d.blockTag!=null){const nt=this._getBlockTag(d.blockTag);isPromise(nt)?et.push(async function(){d.blockTag=await nt}()):d.blockTag=nt}return et.length?async function(){return await Promise.all(et),d}():d}async getNetwork(){if(or(this,F0)==null){const nt=this._detectNetwork().then(tt=>(this.emit("network",tt,null),tt),tt=>{throw or(this,F0)===nt&&yr(this,F0,null),tt});return yr(this,F0,nt),(await nt).clone()}const a=or(this,F0),[d,et]=await Promise.all([a,this._detectNetwork()]);return d.chainId!==et.chainId&&(or(this,ba)?(this.emit("network",et,d),or(this,F0)===a&&yr(this,F0,Promise.resolve(et))):assert$s(!1,`network changed: ${d.chainId} => ${et.chainId} `,"NETWORK_ERROR",{event:"changed"})),d.clone()}async getFeeData(){const a=await this.getNetwork(),d=async()=>{const{_block:nt,gasPrice:tt}=await resolveProperties({_block:Wr(this,go,Vo).call(this,"latest",!1),gasPrice:(async()=>{try{const St=await Wr(this,I0,z0).call(this,{method:"getGasPrice"});return getBigInt(St,"%response")}catch{}return null})()});let bt=null,gt=null;const wt=this._wrapBlock(nt,a);return wt&&wt.baseFeePerGas&&(gt=BigInt("1000000000"),bt=wt.baseFeePerGas*BN_2+gt),new FeeData(tt,bt,gt)},et=a.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(et){const nt=new FetchRequest(et.url),tt=await et.processFunc(d,this,nt);return new FeeData(tt.gasPrice,tt.maxFeePerGas,tt.maxPriorityFeePerGas)}return await d()}async estimateGas(a){let d=this._getTransactionRequest(a);return isPromise(d)&&(d=await d),getBigInt(await Wr(this,I0,z0).call(this,{method:"estimateGas",transaction:d}),"%response")}async call(a){const{tx:d,blockTag:et}=await resolveProperties({tx:this._getTransactionRequest(a),blockTag:this._getBlockTag(a.blockTag)});return await Wr(this,mo,Go).call(this,Wr(this,bo,qo).call(this,d,et,a.enableCcipRead?0:-1))}async getBalance(a,d){return getBigInt(await Wr(this,ga,Ys).call(this,{method:"getBalance"},a,d),"%response")}async getTransactionCount(a,d){return getNumber(await Wr(this,ga,Ys).call(this,{method:"getTransactionCount"},a,d),"%response")}async getCode(a,d){return hexlify(await Wr(this,ga,Ys).call(this,{method:"getCode"},a,d))}async getStorage(a,d,et){const nt=getBigInt(d,"position");return hexlify(await Wr(this,ga,Ys).call(this,{method:"getStorage",position:nt},a,et))}async broadcastTransaction(a){const{blockNumber:d,hash:et,network:nt}=await resolveProperties({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:a}),network:this.getNetwork()}),tt=Transaction.from(a);if(tt.hash!==et)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(tt,nt).replaceableTransaction(d)}async getBlock(a,d){const{network:et,params:nt}=await resolveProperties({network:this.getNetwork(),params:Wr(this,go,Vo).call(this,a,!!d)});return nt==null?null:this._wrapBlock(nt,et)}async getTransaction(a){const{network:d,params:et}=await resolveProperties({network:this.getNetwork(),params:Wr(this,I0,z0).call(this,{method:"getTransaction",hash:a})});return et==null?null:this._wrapTransactionResponse(et,d)}async getTransactionReceipt(a){const{network:d,params:et}=await resolveProperties({network:this.getNetwork(),params:Wr(this,I0,z0).call(this,{method:"getTransactionReceipt",hash:a})});if(et==null)return null;if(et.gasPrice==null&&et.effectiveGasPrice==null){const nt=await Wr(this,I0,z0).call(this,{method:"getTransaction",hash:a});if(nt==null)throw new Error("report this; could not find tx or effectiveGasPrice");et.effectiveGasPrice=nt.gasPrice}return this._wrapTransactionReceipt(et,d)}async getTransactionResult(a){const{result:d}=await resolveProperties({network:this.getNetwork(),result:Wr(this,I0,z0).call(this,{method:"getTransactionResult",hash:a})});return d==null?null:hexlify(d)}async getLogs(a){let d=this._getFilter(a);isPromise(d)&&(d=await d);const{network:et,params:nt}=await resolveProperties({network:this.getNetwork(),params:Wr(this,I0,z0).call(this,{method:"getLogs",filter:d})});return nt.map(tt=>this._wrapLog(tt,et))}_getProvider(a){assert$s(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(a){return await EnsResolver.fromName(this,a)}async getAvatar(a){const d=await this.getResolver(a);return d?await d.getAvatar():null}async resolveName(a){const d=await this.getResolver(a);return d?await d.getAddress():null}async lookupAddress(a){a=getAddress$1(a);const d=namehash$1(a.substring(2).toLowerCase()+".addr.reverse");try{const et=await EnsResolver.getEnsAddress(this),tt=await new Contract(et,["function resolver(bytes32) view returns (address)"],this).resolver(d);if(tt==null||tt===ZeroAddress)return null;const gt=await new Contract(tt,["function name(bytes32) view returns (string)"],this).name(d);return await this.resolveName(gt)!==a?null:gt}catch(et){if(isError$1(et,"BAD_DATA")&&et.value==="0x"||isError$1(et,"CALL_EXCEPTION"))return null;throw et}return null}async waitForTransaction(a,d,et){const nt=d??1;return nt===0?this.getTransactionReceipt(a):new Promise(async(tt,bt)=>{let gt=null;const wt=async St=>{try{const Mt=await this.getTransactionReceipt(a);if(Mt!=null&&St-Mt.blockNumber+1>=nt){tt(Mt),gt&&(clearTimeout(gt),gt=null);return}}catch(Mt){console.log("EEE",Mt)}this.once("block",wt)};et!=null&&(gt=setTimeout(()=>{gt!=null&&(gt=null,this.off("block",wt),bt(makeError("timeout","TIMEOUT",{reason:"timeout"})))},et)),wt(await this.getBlockNumber())})}async waitForBlock(a){assert$s(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(a){const d=or(this,W0).get(a);d&&(d.timer&&clearTimeout(d.timer),or(this,W0).delete(a))}_setTimeout(a,d){d==null&&(d=0);const et=Ws(this,po)._++,nt=()=>{or(this,W0).delete(et),a()};if(this.paused)or(this,W0).set(et,{timer:null,func:nt,time:d});else{const tt=setTimeout(nt,d);or(this,W0).set(et,{timer:tt,func:nt,time:getTime()})}return et}_forEachSubscriber(a){for(const d of or(this,R0).values())a(d.subscriber)}_getSubscriber(a){switch(a.type){case"debug":case"error":case"network":return new UnmanagedSubscriber(a.type);case"block":{const d=new PollingBlockSubscriber(this);return d.pollingInterval=this.pollingInterval,d}case"event":return new PollingEventSubscriber(this,a.filter);case"transaction":return new PollingTransactionSubscriber(this,a.hash);case"orphan":return new PollingOrphanSubscriber(this,a.filter)}throw new Error(`unsupported event: ${a.type}`)}_recoverSubscriber(a,d){for(const et of or(this,R0).values())if(et.subscriber===a){et.started&&et.subscriber.stop(),et.subscriber=d,et.started&&d.start(),or(this,B0)!=null&&d.pause(or(this,B0));break}}async on(a,d){const et=await Wr(this,Us,_o).call(this,a);return et.listeners.push({listener:d,once:!1}),et.started||(et.subscriber.start(),et.started=!0,or(this,B0)!=null&&et.subscriber.pause(or(this,B0))),this}async once(a,d){const et=await Wr(this,Us,_o).call(this,a);return et.listeners.push({listener:d,once:!0}),et.started||(et.subscriber.start(),et.started=!0,or(this,B0)!=null&&et.subscriber.pause(or(this,B0))),this}async emit(a,...d){const et=await Wr(this,xa,Zs).call(this,a,d);if(!et||et.listeners.length===0)return!1;const nt=et.listeners.length;return et.listeners=et.listeners.filter(({listener:tt,once:bt})=>{const gt=new EventPayload(this,bt?null:tt,a);try{tt.call(this,...d,gt)}catch{}return!bt}),et.listeners.length===0&&(et.started&&et.subscriber.stop(),or(this,R0).delete(et.tag)),nt>0}async listenerCount(a){if(a){const et=await Wr(this,xa,Zs).call(this,a);return et?et.listeners.length:0}let d=0;for(const{listeners:et}of or(this,R0).values())d+=et.length;return d}async listeners(a){if(a){const et=await Wr(this,xa,Zs).call(this,a);return et?et.listeners.map(({listener:nt})=>nt):[]}let d=[];for(const{listeners:et}of or(this,R0).values())d=d.concat(et.map(({listener:nt})=>nt));return d}async off(a,d){const et=await Wr(this,xa,Zs).call(this,a);if(!et)return this;if(d){const nt=et.listeners.map(({listener:tt})=>tt).indexOf(d);nt>=0&&et.listeners.splice(nt,1)}return(!d||et.listeners.length===0)&&(et.started&&et.subscriber.stop(),or(this,R0).delete(et.tag)),this}async removeAllListeners(a){if(a){const{tag:d,started:et,subscriber:nt}=await Wr(this,Us,_o).call(this,a);et&&nt.stop(),or(this,R0).delete(d)}else for(const[d,{started:et,subscriber:nt}]of or(this,R0))et&&nt.stop(),or(this,R0).delete(d);return this}async addListener(a,d){return await this.on(a,d)}async removeListener(a,d){return this.off(a,d)}get destroyed(){return or(this,Fs)}destroy(){this.removeAllListeners();for(const a of or(this,W0).keys())this._clearTimeout(a);yr(this,Fs,!0)}get paused(){return or(this,B0)!=null}set paused(a){!!a!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(a){if(yr(this,$n,-1),or(this,B0)!=null){if(or(this,B0)==!!a)return;assert$s(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber(d=>d.pause(a)),yr(this,B0,!!a);for(const d of or(this,W0).values())d.timer&&clearTimeout(d.timer),d.time=getTime()-d.time}resume(){if(or(this,B0)!=null){this._forEachSubscriber(a=>a.resume()),yr(this,B0,null);for(const a of or(this,W0).values()){let d=a.time;d<0&&(d=0),a.time=getTime(),setTimeout(a.func,d)}}}}R0=new WeakMap,Ln=new WeakMap,B0=new WeakMap,Fs=new WeakMap,F0=new WeakMap,ba=new WeakMap,Fn=new WeakMap,$n=new WeakMap,po=new WeakMap,W0=new WeakMap,zs=new WeakMap,js=new WeakMap,I0=new WeakSet,z0=async function(a){const d=or(this,js).cacheTimeout;if(d<0)return await this._perform(a);const et=getTag(a.method,a);let nt=or(this,Fn).get(et);return nt||(nt=this._perform(a),or(this,Fn).set(et,nt),setTimeout(()=>{or(this,Fn).get(et)===nt&&or(this,Fn).delete(et)},d)),await nt},bo=new WeakSet,qo=async function(a,d,et){assert$s(et=0&&d==="latest"&&nt.to!=null&&dataSlice(tt.data,0,4)==="0x556f1830"){const bt=tt.data,gt=await resolveAddress(nt.to,this);let wt;try{wt=parseOffchainLookup(dataSlice(tt.data,4))}catch(_t){assert$s(!1,_t.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:nt,info:{data:bt}})}assert$s(wt.sender.toLowerCase()===gt.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:bt,reason:"OffchainLookup",transaction:nt,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:wt.errorArgs}});const St=await this.ccipReadFetch(nt,wt.calldata,wt.urls);assert$s(St!=null,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:nt,info:{data:tt.data,errorArgs:wt.errorArgs}});const Mt={to:gt,data:concat$2([wt.selector,encodeBytes$2([St,wt.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:Mt});try{const _t=await Wr(this,bo,qo).call(this,Mt,d,et+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},Mt),result:_t}),_t}catch(_t){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},Mt),error:_t}),_t}}throw tt}},mo=new WeakSet,Go=async function(a){const{value:d}=await resolveProperties({network:this.getNetwork(),value:a});return d},ga=new WeakSet,Ys=async function(a,d,et){let nt=this._getAddress(d),tt=this._getBlockTag(et);return(typeof nt!="string"||typeof tt!="string")&&([nt,tt]=await Promise.all([nt,tt])),await Wr(this,mo,Go).call(this,Wr(this,I0,z0).call(this,Object.assign(a,{address:nt,blockTag:tt})))},go=new WeakSet,Vo=async function(a,d){if(isHexString(a,32))return await Wr(this,I0,z0).call(this,{method:"getBlock",blockHash:a,includeTransactions:d});let et=this._getBlockTag(a);return typeof et!="string"&&(et=await et),await Wr(this,I0,z0).call(this,{method:"getBlock",blockTag:et,includeTransactions:d})},xa=new WeakSet,Zs=async function(a,d){let et=await getSubscription(a,this);return et.type==="event"&&d&&d.length>0&&d[0].removed===!0&&(et=await getSubscription({orphan:"drop-log",log:d[0]},this)),or(this,R0).get(et.tag)||null},Us=new WeakSet,_o=async function(a){const d=await getSubscription(a,this),et=d.tag;let nt=or(this,R0).get(et);return nt||(nt={subscriber:this._getSubscriber(d),tag:et,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},or(this,R0).set(et,nt)),nt};function _parseString(c,a){try{const d=_parseBytes(c,a);if(d)return toUtf8String(d)}catch{}return null}function _parseBytes(c,a){if(c==="0x")return null;try{const d=getNumber(dataSlice(c,a,a+32)),et=getNumber(dataSlice(c,d,d+32));return dataSlice(c,d+32,d+32+et)}catch{}return null}function numPad(c){const a=toBeArray(c);if(a.length>32)throw new Error("internal; should not happen");const d=new Uint8Array(32);return d.set(a,32-a.length),d}function bytesPad(c){if(c.length%32===0)return c;const a=new Uint8Array(Math.ceil(c.length/32)*32);return a.set(c),a}const empty=new Uint8Array([]);function encodeBytes$2(c){const a=[];let d=0;for(let et=0;et=5*32,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const d=dataSlice(c,0,32);assert$s(dataSlice(d,0,12)===dataSlice(zeros,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),a.sender=dataSlice(d,12);try{const et=[],nt=getNumber(dataSlice(c,32,64)),tt=getNumber(dataSlice(c,nt,nt+32)),bt=dataSlice(c,nt+32);for(let gt=0;gta[et]),a}function checkProvider(c,a){if(c.provider)return c.provider;assert$s(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:a})}async function populate(c,a){let d=copyRequest(a);if(d.to!=null&&(d.to=resolveAddress(d.to,c)),d.from!=null){const et=d.from;d.from=Promise.all([c.getAddress(),resolveAddress(et,c)]).then(([nt,tt])=>(assertArgument(nt.toLowerCase()===tt.toLowerCase(),"transaction from mismatch","tx.from",tt),nt))}else d.from=c.getAddress();return await resolveProperties(d)}class AbstractSigner{constructor(a){Gr(this,"provider");defineProperties(this,{provider:a||null})}async getNonce(a){return checkProvider(this,"getTransactionCount").getTransactionCount(await this.getAddress(),a)}async populateCall(a){return await populate(this,a)}async populateTransaction(a){const d=checkProvider(this,"populateTransaction"),et=await populate(this,a);et.nonce==null&&(et.nonce=await this.getNonce("pending")),et.gasLimit==null&&(et.gasLimit=await this.estimateGas(et));const nt=await this.provider.getNetwork();if(et.chainId!=null){const bt=getBigInt(et.chainId);assertArgument(bt===nt.chainId,"transaction chainId mismatch","tx.chainId",a.chainId)}else et.chainId=nt.chainId;const tt=et.maxFeePerGas!=null||et.maxPriorityFeePerGas!=null;if(et.gasPrice!=null&&(et.type===2||tt)?assertArgument(!1,"eip-1559 transaction do not support gasPrice","tx",a):(et.type===0||et.type===1)&&tt&&assertArgument(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",a),(et.type===2||et.type==null)&&et.maxFeePerGas!=null&&et.maxPriorityFeePerGas!=null)et.type=2;else if(et.type===0||et.type===1){const bt=await d.getFeeData();assert$s(bt.gasPrice!=null,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),et.gasPrice==null&&(et.gasPrice=bt.gasPrice)}else{const bt=await d.getFeeData();if(et.type==null)if(bt.maxFeePerGas!=null&&bt.maxPriorityFeePerGas!=null)if(et.type=2,et.gasPrice!=null){const gt=et.gasPrice;delete et.gasPrice,et.maxFeePerGas=gt,et.maxPriorityFeePerGas=gt}else et.maxFeePerGas==null&&(et.maxFeePerGas=bt.maxFeePerGas),et.maxPriorityFeePerGas==null&&(et.maxPriorityFeePerGas=bt.maxPriorityFeePerGas);else bt.gasPrice!=null?(assert$s(!tt,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),et.gasPrice==null&&(et.gasPrice=bt.gasPrice),et.type=0):assert$s(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else et.type===2&&(et.maxFeePerGas==null&&(et.maxFeePerGas=bt.maxFeePerGas),et.maxPriorityFeePerGas==null&&(et.maxPriorityFeePerGas=bt.maxPriorityFeePerGas))}return await resolveProperties(et)}async estimateGas(a){return checkProvider(this,"estimateGas").estimateGas(await this.populateCall(a))}async call(a){return checkProvider(this,"call").call(await this.populateCall(a))}async resolveName(a){return await checkProvider(this,"resolveName").resolveName(a)}async sendTransaction(a){const d=checkProvider(this,"sendTransaction"),et=await this.populateTransaction(a);delete et.from;const nt=Transaction.from(et);return await d.broadcastTransaction(await this.signTransaction(nt))}}function copy$1(c){return JSON.parse(JSON.stringify(c))}var N0,on,$a,zn,_a,Hs,yo,Wo,vo,Ko;class FilterIdSubscriber{constructor(a){Vr(this,yo);Vr(this,vo);Vr(this,N0,void 0);Vr(this,on,void 0);Vr(this,$a,void 0);Vr(this,zn,void 0);Vr(this,_a,void 0);Vr(this,Hs,void 0);yr(this,N0,a),yr(this,on,null),yr(this,$a,Wr(this,yo,Wo).bind(this)),yr(this,zn,!1),yr(this,_a,null),yr(this,Hs,!1)}_subscribe(a){throw new Error("subclasses must override this")}_emitResults(a,d){throw new Error("subclasses must override this")}_recover(a){throw new Error("subclasses must override this")}start(){or(this,zn)||(yr(this,zn,!0),Wr(this,yo,Wo).call(this,-2))}stop(){or(this,zn)&&(yr(this,zn,!1),yr(this,Hs,!0),Wr(this,vo,Ko).call(this),or(this,N0).off("block",or(this,$a)))}pause(a){a&&Wr(this,vo,Ko).call(this),or(this,N0).off("block",or(this,$a))}resume(){this.start()}}N0=new WeakMap,on=new WeakMap,$a=new WeakMap,zn=new WeakMap,_a=new WeakMap,Hs=new WeakMap,yo=new WeakSet,Wo=async function(a){try{or(this,on)==null&&yr(this,on,this._subscribe(or(this,N0)));let d=null;try{d=await or(this,on)}catch(tt){if(!isError$1(tt,"UNSUPPORTED_OPERATION")||tt.operation!=="eth_newFilter")throw tt}if(d==null){yr(this,on,null),or(this,N0)._recoverSubscriber(this,this._recover(or(this,N0)));return}const et=await or(this,N0).getNetwork();if(or(this,_a)||yr(this,_a,et),or(this,_a).chainId!==et.chainId)throw new Error("chaid changed");if(or(this,Hs))return;const nt=await or(this,N0).send("eth_getFilterChanges",[d]);await this._emitResults(or(this,N0),nt)}catch(d){console.log("@TODO",d)}or(this,N0).once("block",or(this,$a))},vo=new WeakSet,Ko=function(){const a=or(this,on);a&&(yr(this,on,null),a.then(d=>{or(this,N0).send("eth_uninstallFilter",[d])}))};var es;class FilterIdEventSubscriber extends FilterIdSubscriber{constructor(d,et){super(d);Vr(this,es,void 0);yr(this,es,copy$1(et))}_recover(d){return new PollingEventSubscriber(d,or(this,es))}async _subscribe(d){return await d.send("eth_newFilter",[or(this,es)])}async _emitResults(d,et){for(const nt of et)d.emit(or(this,es),d._wrapLog(nt,d._network))}}es=new WeakMap;class FilterIdPendingSubscriber extends FilterIdSubscriber{async _subscribe(a){return await a.send("eth_newPendingTransactionFilter",[])}async _emitResults(a,d){for(const et of d)a.emit("pending",et)}}const Primitive="bigint,boolean,function,number,string,symbol".split(/,/g);function deepCopy(c){if(c==null||Primitive.indexOf(typeof c)>=0||typeof c.getAddress=="function")return c;if(Array.isArray(c))return c.map(deepCopy);if(typeof c=="object")return Object.keys(c).reduce((a,d)=>(a[d]=c[d],a),{});throw new Error(`should not happen: ${c} (${typeof c})`)}function stall(c){return new Promise(a=>{setTimeout(a,c)})}function getLowerCase$1(c){return c&&c.toLowerCase()}function isPollable(c){return c&&typeof c.pollingInterval=="number"}const defaultOptions={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class JsonRpcSigner extends AbstractSigner{constructor(d,et){super(d);Gr(this,"address");et=getAddress$1(et),defineProperties(this,{address:et})}connect(d){assert$s(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(d){return await this.populateCall(d)}async sendUncheckedTransaction(d){const et=deepCopy(d),nt=[];if(et.from){const bt=et.from;nt.push((async()=>{const gt=await resolveAddress(bt,this.provider);assertArgument(gt!=null&>.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",d),et.from=gt})())}else et.from=this.address;if(et.gasLimit==null&&nt.push((async()=>{et.gasLimit=await this.provider.estimateGas({...et,from:this.address})})()),et.to!=null){const bt=et.to;nt.push((async()=>{et.to=await resolveAddress(bt,this.provider)})())}nt.length&&await Promise.all(nt);const tt=this.provider.getRpcTransaction(et);return this.provider.send("eth_sendTransaction",[tt])}async sendTransaction(d){const et=await this.provider.getBlockNumber(),nt=await this.sendUncheckedTransaction(d);return await new Promise((tt,bt)=>{const gt=[1e3,100],wt=async()=>{const St=await this.provider.getTransaction(nt);if(St!=null){tt(St.replaceableTransaction(et));return}this.provider._setTimeout(()=>{wt()},gt.pop()||4e3)};wt()})}async signTransaction(d){const et=deepCopy(d);if(et.from){const tt=await resolveAddress(et.from,this.provider);assertArgument(tt!=null&&tt.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",d),et.from=tt}else et.from=this.address;const nt=this.provider.getRpcTransaction(et);return await this.provider.send("eth_signTransaction",[nt])}async signMessage(d){const et=typeof d=="string"?toUtf8Bytes(d):d;return await this.provider.send("personal_sign",[hexlify(et),this.address.toLowerCase()])}async signTypedData(d,et,nt){const tt=deepCopy(nt),bt=await TypedDataEncoder.resolveNames(d,et,tt,async gt=>{const wt=await resolveAddress(gt);return assertArgument(wt!=null,"TypedData does not support null address","value",gt),wt});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(TypedDataEncoder.getPayload(bt.domain,et,bt.value))])}async unlock(d){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),d,null])}async _legacySignMessage(d){const et=typeof d=="string"?toUtf8Bytes(d):d;return await this.provider.send("eth_sign",[this.address.toLowerCase(),hexlify(et)])}}var ts,qs,Sn,fn,en,Mn,wo,Yo;class JsonRpcApiProvider extends AbstractProvider{constructor(d,et){super(d,et);Vr(this,wo);Vr(this,ts,void 0);Vr(this,qs,void 0);Vr(this,Sn,void 0);Vr(this,fn,void 0);Vr(this,en,void 0);Vr(this,Mn,void 0);yr(this,qs,1),yr(this,ts,Object.assign({},defaultOptions,et||{})),yr(this,Sn,[]),yr(this,fn,null),yr(this,Mn,null);{let tt=null;const bt=new Promise(gt=>{tt=gt});yr(this,en,{promise:bt,resolve:tt})}const nt=this._getOption("staticNetwork");nt&&(assertArgument(d==null||nt.matches(d),"staticNetwork MUST match network object","options",et),yr(this,Mn,nt))}_getOption(d){return or(this,ts)[d]}get _network(){return assert$s(or(this,Mn),"network is not available yet","NETWORK_ERROR"),or(this,Mn)}async _perform(d){if(d.method==="call"||d.method==="estimateGas"){let nt=d.transaction;if(nt&&nt.type!=null&&getBigInt(nt.type)&&nt.maxFeePerGas==null&&nt.maxPriorityFeePerGas==null){const tt=await this.getFeeData();tt.maxFeePerGas==null&&tt.maxPriorityFeePerGas==null&&(d=Object.assign({},d,{transaction:Object.assign({},nt,{type:void 0})}))}}const et=this.getRpcRequest(d);return et!=null?await this.send(et.method,et.args):super._perform(d)}async _detectNetwork(){const d=this._getOption("staticNetwork");if(d)return d;if(this.ready)return Network.from(getBigInt(await this.send("eth_chainId",[])));const et={id:Ws(this,qs)._++,method:"eth_chainId",params:[],jsonrpc:"2.0"};this.emit("debug",{action:"sendRpcPayload",payload:et});let nt;try{nt=(await this._send(et))[0]}catch(tt){throw this.emit("debug",{action:"receiveRpcError",error:tt}),tt}if(this.emit("debug",{action:"receiveRpcResult",result:nt}),"result"in nt)return Network.from(getBigInt(nt.result));throw this.getRpcError(et,nt)}_start(){or(this,en)==null||or(this,en).resolve==null||(or(this,en).resolve(),yr(this,en,null),(async()=>{for(;or(this,Mn)==null&&!this.destroyed;)try{yr(this,Mn,await this._detectNetwork())}catch(d){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",makeError("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:d}})),await stall(1e3)}Wr(this,wo,Yo).call(this)})())}async _waitUntilReady(){if(or(this,en)!=null)return await or(this,en).promise}_getSubscriber(d){return d.type==="pending"?new FilterIdPendingSubscriber(this):d.type==="event"?this._getOption("polling")?new PollingEventSubscriber(this,d.filter):new FilterIdEventSubscriber(this,d.filter):d.type==="orphan"&&d.filter.orphan==="drop-log"?new UnmanagedSubscriber("orphan"):super._getSubscriber(d)}get ready(){return or(this,en)==null}getRpcTransaction(d){const et={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(nt=>{if(d[nt]==null)return;let tt=nt;nt==="gasLimit"&&(tt="gas"),et[tt]=toQuantity(getBigInt(d[nt],`tx.${nt}`))}),["from","to","data"].forEach(nt=>{d[nt]!=null&&(et[nt]=hexlify(d[nt]))}),d.accessList&&(et.accessList=accessListify(d.accessList)),et}getRpcRequest(d){switch(d.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getBalance":return{method:"eth_getBalance",args:[getLowerCase$1(d.address),d.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[getLowerCase$1(d.address),d.blockTag]};case"getCode":return{method:"eth_getCode",args:[getLowerCase$1(d.address),d.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[getLowerCase$1(d.address),"0x"+d.position.toString(16),d.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[d.signedTransaction]};case"getBlock":if("blockTag"in d)return{method:"eth_getBlockByNumber",args:[d.blockTag,!!d.includeTransactions]};if("blockHash"in d)return{method:"eth_getBlockByHash",args:[d.blockHash,!!d.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[d.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[d.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(d.transaction),d.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(d.transaction)]};case"getLogs":return d.filter&&d.filter.address!=null&&(Array.isArray(d.filter.address)?d.filter.address=d.filter.address.map(getLowerCase$1):d.filter.address=getLowerCase$1(d.filter.address)),{method:"eth_getLogs",args:[d.filter]}}return null}getRpcError(d,et){const{method:nt}=d,{error:tt}=et;if(nt==="eth_estimateGas"&&tt.message){const wt=tt.message;if(!wt.match(/revert/i)&&wt.match(/insufficient funds/i))return makeError("insufficient funds","INSUFFICIENT_FUNDS",{transaction:d.params[0],info:{payload:d,error:tt}})}if(nt==="eth_call"||nt==="eth_estimateGas"){const wt=spelunkData(tt),St=AbiCoder.getBuiltinCallException(nt==="eth_call"?"call":"estimateGas",d.params[0],wt?wt.data:null);return St.info={error:tt,payload:d},St}const bt=JSON.stringify(spelunkMessage(tt));if(typeof tt.message=="string"&&tt.message.match(/user denied|ethers-user-denied/i))return makeError("user rejected action","ACTION_REJECTED",{action:{eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"}[nt]||"unknown",reason:"rejected",info:{payload:d,error:tt}});if(nt==="eth_sendRawTransaction"||nt==="eth_sendTransaction"){const wt=d.params[0];if(bt.match(/insufficient funds|base fee exceeds gas limit/i))return makeError("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:wt,info:{error:tt}});if(bt.match(/nonce/i)&&bt.match(/too low/i))return makeError("nonce has already been used","NONCE_EXPIRED",{transaction:wt,info:{error:tt}});if(bt.match(/replacement transaction/i)&&bt.match(/underpriced/i))return makeError("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:wt,info:{error:tt}});if(bt.match(/only replay-protected/i))return makeError("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:nt,info:{transaction:wt,info:{error:tt}}})}let gt=!!bt.match(/the method .* does not exist/i);return gt||tt&&tt.details&&tt.details.startsWith("Unauthorized method:")&&(gt=!0),gt?makeError("unsupported operation","UNSUPPORTED_OPERATION",{operation:d.method,info:{error:tt,payload:d}}):makeError("could not coalesce error","UNKNOWN_ERROR",{error:tt,payload:d})}send(d,et){if(this.destroyed)return Promise.reject(makeError("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:d}));const nt=Ws(this,qs)._++,tt=new Promise((bt,gt)=>{or(this,Sn).push({resolve:bt,reject:gt,payload:{method:d,params:et,id:nt,jsonrpc:"2.0"}})});return Wr(this,wo,Yo).call(this),tt}async getSigner(d){d==null&&(d=0);const et=this.send("eth_accounts",[]);if(typeof d=="number"){const tt=await et;if(d>=tt.length)throw new Error("no such account");return new JsonRpcSigner(this,tt[d])}const{accounts:nt}=await resolveProperties({network:this.getNetwork(),accounts:et});d=getAddress$1(d);for(const tt of nt)if(getAddress$1(tt)===d)return new JsonRpcSigner(this,d);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(et=>new JsonRpcSigner(this,et))}destroy(){or(this,fn)&&(clearTimeout(or(this,fn)),yr(this,fn,null));for(const{payload:d,reject:et}of or(this,Sn))et(makeError("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:d.method}));yr(this,Sn,[]),super.destroy()}}ts=new WeakMap,qs=new WeakMap,Sn=new WeakMap,fn=new WeakMap,en=new WeakMap,Mn=new WeakMap,wo=new WeakSet,Yo=function(){if(or(this,fn))return;const d=this._getOption("batchMaxCount")===1?0:this._getOption("batchStallTime");yr(this,fn,setTimeout(()=>{yr(this,fn,null);const et=or(this,Sn);for(yr(this,Sn,[]);et.length;){const nt=[et.shift()];for(;et.length&&nt.length!==or(this,ts).batchMaxCount;)if(nt.push(et.shift()),JSON.stringify(nt.map(bt=>bt.payload)).length>or(this,ts).batchMaxSize){et.unshift(nt.pop());break}(async()=>{const tt=nt.length===1?nt[0].payload:nt.map(bt=>bt.payload);this.emit("debug",{action:"sendRpcPayload",payload:tt});try{const bt=await this._send(tt);this.emit("debug",{action:"receiveRpcResult",result:bt});for(const{resolve:gt,reject:wt,payload:St}of nt){if(this.destroyed){wt(makeError("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:St.method}));continue}const Mt=bt.filter(_t=>_t.id===St.id)[0];if(Mt==null){const _t=makeError("missing response for request","BAD_DATA",{value:bt,info:{payload:St}});this.emit("error",_t),wt(_t);continue}if("error"in Mt){wt(this.getRpcError(St,Mt));continue}gt(Mt.result)}}catch(bt){this.emit("debug",{action:"receiveRpcError",error:bt});for(const{reject:gt}of nt)gt(bt)}})()}},d))};var jn;class JsonRpcApiPollingProvider extends JsonRpcApiProvider{constructor(d,et){super(d,et);Vr(this,jn,void 0);yr(this,jn,4e3)}_getSubscriber(d){const et=super._getSubscriber(d);return isPollable(et)&&(et.pollingInterval=or(this,jn)),et}get pollingInterval(){return or(this,jn)}set pollingInterval(d){if(!Number.isInteger(d)||d<0)throw new Error("invalid interval");yr(this,jn,d),this._forEachSubscriber(et=>{isPollable(et)&&(et.pollingInterval=or(this,jn))})}}jn=new WeakMap;var Gs;class JsonRpcProvider extends JsonRpcApiPollingProvider{constructor(d,et,nt){d==null&&(d="http://localhost:8545");super(et,nt);Vr(this,Gs,void 0);typeof d=="string"?yr(this,Gs,new FetchRequest(d)):yr(this,Gs,d.clone())}_getConnection(){return or(this,Gs).clone()}async send(d,et){return await this._start(),await super.send(d,et)}async _send(d){const et=this._getConnection();et.body=JSON.stringify(d),et.setHeader("content-type","application/json");const nt=await et.send();nt.assertOk();let tt=nt.bodyJson;return Array.isArray(tt)||(tt=[tt]),tt}}Gs=new WeakMap;function spelunkData(c){if(c==null)return null;if(typeof c.message=="string"&&c.message.match(/revert/i)&&isHexString(c.data))return{message:c.message,data:c.data};if(typeof c=="object"){for(const a in c){const d=spelunkData(c[a]);if(d)return d}return null}if(typeof c=="string")try{return spelunkData(JSON.parse(c))}catch{}return null}function _spelunkMessage(c,a){if(c!=null){if(typeof c.message=="string"&&a.push(c.message),typeof c=="object")for(const d in c)_spelunkMessage(c[d],a);if(typeof c=="string")try{return _spelunkMessage(JSON.parse(c),a)}catch{}}}function spelunkMessage(c){const a=[];return _spelunkMessage(c,a),a}var Vs;class BrowserProvider extends JsonRpcApiPollingProvider{constructor(d,et){super(et,{batchMaxCount:1});Vr(this,Vs,void 0);yr(this,Vs,async(nt,tt)=>{const bt={method:nt,params:tt};this.emit("debug",{action:"sendEip1193Request",payload:bt});try{const gt=await d.request(bt);return this.emit("debug",{action:"receiveEip1193Result",result:gt}),gt}catch(gt){const wt=new Error(gt.message);throw wt.code=gt.code,wt.data=gt.data,wt.payload=bt,this.emit("debug",{action:"receiveEip1193Error",error:wt}),wt}})}async send(d,et){return await this._start(),await super.send(d,et)}async _send(d){assertArgument(!Array.isArray(d),"EIP-1193 does not support batch request","payload",d);try{const et=await or(this,Vs).call(this,d.method,d.params||[]);return[{id:d.id,result:et}]}catch(et){return[{id:d.id,error:{code:et.code,data:et.data,message:et.message}}]}}getRpcError(d,et){switch(et=JSON.parse(JSON.stringify(et)),et.error.code||-1){case 4001:et.error.message=`ethers-user-denied: ${et.error.message}`;break;case 4200:et.error.message=`ethers-unsupported: ${et.error.message}`;break}return super.getRpcError(d,et)}async hasSigner(d){d==null&&(d=0);const et=await this.send("eth_accounts",[]);return typeof d=="number"?et.length>d:(d=d.toLowerCase(),et.filter(nt=>nt.toLowerCase()===d).length!==0)}async getSigner(d){if(d==null&&(d=0),!await this.hasSigner(d))try{await or(this,Vs).call(this,"eth_requestAccounts",[])}catch(et){const nt=et.payload;throw this.getRpcError(nt,{id:nt.id,error:et})}return await super.getSigner(d)}}Vs=new WeakMap;const getSDKVersion=()=>"9.0.0",dec2hex=c=>c.toString(16).padStart(2,"0"),generateId=c=>{const a=new Uint8Array((c||40)/2);return window.crypto.getRandomValues(a),Array.from(a,dec2hex).join("")},generateRequestId=()=>typeof window<"u"?generateId(10):new Date().getTime().toString(36);class MessageFormatter{}MessageFormatter.makeRequest=(c,a)=>({id:generateRequestId(),method:c,params:a,env:{sdkVersion:getSDKVersion()}});MessageFormatter.makeResponse=(c,a,d)=>({id:c,success:!0,version:d,data:a});MessageFormatter.makeErrorResponse=(c,a,d)=>({id:c,success:!1,error:a,version:d});var Methods;(function(c){c.sendTransactions="sendTransactions",c.rpcCall="rpcCall",c.getChainInfo="getChainInfo",c.getSafeInfo="getSafeInfo",c.getTxBySafeTxHash="getTxBySafeTxHash",c.getSafeBalances="getSafeBalances",c.signMessage="signMessage",c.signTypedMessage="signTypedMessage",c.getEnvironmentInfo="getEnvironmentInfo",c.getOffChainSignature="getOffChainSignature",c.requestAddressBook="requestAddressBook",c.wallet_getPermissions="wallet_getPermissions",c.wallet_requestPermissions="wallet_requestPermissions"})(Methods||(Methods={}));var RestrictedMethods;(function(c){c.requestAddressBook="requestAddressBook"})(RestrictedMethods||(RestrictedMethods={}));class PostMessageCommunicator{constructor(a=null,d=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:et,data:nt,source:tt})=>{const bt=!nt,gt=!this.isServer&&tt===window.parent,wt=typeof nt.version<"u"&&parseInt(nt.version.split(".")[0]),St=typeof wt=="number"&&wt>=1;let Mt=!0;return Array.isArray(this.allowedOrigins)&&(Mt=this.allowedOrigins.find(_t=>_t.test(et))!==void 0),!bt&>&&St&&Mt},this.logIncomingMessage=et=>{console.info(`Safe Apps SDK v1: A message was received from origin ${et.origin}. `,et.data)},this.onParentMessage=et=>{this.isValidMessage(et)&&(this.debugMode&&this.logIncomingMessage(et),this.handleIncomingMessage(et.data))},this.handleIncomingMessage=et=>{const{id:nt}=et,tt=this.callbacks.get(nt);tt&&(tt(et),this.callbacks.delete(nt))},this.send=(et,nt)=>{const tt=MessageFormatter.makeRequest(et,nt);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(tt,"*"),new Promise((bt,gt)=>{this.callbacks.set(tt.id,wt=>{if(!wt.success){gt(new Error(wt.error));return}bt(wt)})})},this.allowedOrigins=a,this.debugMode=d,this.isServer||window.addEventListener("message",this.onParentMessage)}}const isObjectEIP712TypedData=c=>typeof c=="object"&&c!=null&&"domain"in c&&"types"in c&&"message"in c;var dist$1={},endpoint={},utils$1={},__awaiter=commonjsGlobal&&commonjsGlobal.__awaiter||function(c,a,d,et){function nt(tt){return tt instanceof d?tt:new d(function(bt){bt(tt)})}return new(d||(d=Promise))(function(tt,bt){function gt(Mt){try{St(et.next(Mt))}catch(_t){bt(_t)}}function wt(Mt){try{St(et.throw(Mt))}catch(_t){bt(_t)}}function St(Mt){Mt.done?tt(Mt.value):nt(Mt.value).then(gt,wt)}St((et=et.apply(c,a||[])).next())})};Object.defineProperty(utils$1,"__esModule",{value:!0});utils$1.getData=utils$1.fetchData=utils$1.stringifyQuery=utils$1.insertParams=void 0;const isErrorResponse=c=>typeof c=="object"&&c!==null&&"code"in c&&"message"in c;function replaceParam(c,a,d){return c.replace(new RegExp(`\\{${a}\\}`,"g"),d)}function insertParams(c,a){return a?Object.keys(a).reduce((d,et)=>replaceParam(d,et,String(a[et])),c):c}utils$1.insertParams=insertParams;function stringifyQuery(c){if(!c)return"";const a=new URLSearchParams;Object.keys(c).forEach(et=>{c[et]!=null&&a.append(et,String(c[et]))});const d=a.toString();return d?`?${d}`:""}utils$1.stringifyQuery=stringifyQuery;function parseResponse(c){return __awaiter(this,void 0,void 0,function*(){let a;try{a=c.status===204?{}:yield c.json()}catch{if(c.headers&&c.headers.get("content-length")!=="0")throw new Error(`Invalid response content: ${c.statusText}`)}if(!c.ok){const d=isErrorResponse(a)?`${a.code}: ${a.message}`:c.statusText;throw new Error(d)}return a})}function fetchData(c,a,d,et){return __awaiter(this,void 0,void 0,function*(){const nt=Object.assign({"Content-Type":"application/json"},et),tt={method:a??"POST",headers:nt};d!=null&&(tt.body=typeof d=="string"?d:JSON.stringify(d));const bt=yield fetch(c,tt);return parseResponse(bt)})}utils$1.fetchData=fetchData;function getData(c,a){return __awaiter(this,void 0,void 0,function*(){const d={method:"GET"};a&&(d.headers=Object.assign(Object.assign({},a),{"Content-Type":"application/json"}));const et=yield fetch(c,d);return parseResponse(et)})}utils$1.getData=getData;Object.defineProperty(endpoint,"__esModule",{value:!0});endpoint.getEndpoint=endpoint.deleteEndpoint=endpoint.putEndpoint=endpoint.postEndpoint=void 0;const utils_1$1=utils$1;function makeUrl(c,a,d,et){const nt=(0,utils_1$1.insertParams)(a,d),tt=(0,utils_1$1.stringifyQuery)(et);return`${c}${nt}${tt}`}function postEndpoint(c,a,d){const et=makeUrl(c,a,d==null?void 0:d.path,d==null?void 0:d.query);return(0,utils_1$1.fetchData)(et,"POST",d==null?void 0:d.body,d==null?void 0:d.headers)}endpoint.postEndpoint=postEndpoint;function putEndpoint(c,a,d){const et=makeUrl(c,a,d==null?void 0:d.path,d==null?void 0:d.query);return(0,utils_1$1.fetchData)(et,"PUT",d==null?void 0:d.body,d==null?void 0:d.headers)}endpoint.putEndpoint=putEndpoint;function deleteEndpoint(c,a,d){const et=makeUrl(c,a,d==null?void 0:d.path,d==null?void 0:d.query);return(0,utils_1$1.fetchData)(et,"DELETE",d==null?void 0:d.body,d==null?void 0:d.headers)}endpoint.deleteEndpoint=deleteEndpoint;function getEndpoint(c,a,d,et){if(et)return(0,utils_1$1.getData)(et);const nt=makeUrl(c,a,d==null?void 0:d.path,d==null?void 0:d.query);return(0,utils_1$1.getData)(nt,d==null?void 0:d.headers)}endpoint.getEndpoint=getEndpoint;var config={};Object.defineProperty(config,"__esModule",{value:!0});config.DEFAULT_BASE_URL=void 0;config.DEFAULT_BASE_URL="https://safe-client.safe.global";var safeInfo={};(function(c){Object.defineProperty(c,"__esModule",{value:!0}),c.ImplementationVersionState=void 0,function(a){a.UP_TO_DATE="UP_TO_DATE",a.OUTDATED="OUTDATED",a.UNKNOWN="UNKNOWN"}(c.ImplementationVersionState||(c.ImplementationVersionState={}))})(safeInfo);var safeApps={};(function(c){Object.defineProperty(c,"__esModule",{value:!0}),c.SafeAppSocialPlatforms=c.SafeAppFeatures=c.SafeAppAccessPolicyTypes=void 0,function(a){a.NoRestrictions="NO_RESTRICTIONS",a.DomainAllowlist="DOMAIN_ALLOWLIST"}(c.SafeAppAccessPolicyTypes||(c.SafeAppAccessPolicyTypes={})),function(a){a.BATCHED_TRANSACTIONS="BATCHED_TRANSACTIONS"}(c.SafeAppFeatures||(c.SafeAppFeatures={})),function(a){a.TWITTER="TWITTER",a.GITHUB="GITHUB",a.DISCORD="DISCORD"}(c.SafeAppSocialPlatforms||(c.SafeAppSocialPlatforms={}))})(safeApps);var transactions={};(function(c){Object.defineProperty(c,"__esModule",{value:!0}),c.LabelValue=c.DetailedExecutionInfoType=c.TransactionListItemType=c.ConflictType=c.TransactionInfoType=c.SettingsInfoType=c.TransactionTokenType=c.TransferDirection=c.TransactionStatus=c.Operation=void 0,function(a){a[a.CALL=0]="CALL",a[a.DELEGATE=1]="DELEGATE"}(c.Operation||(c.Operation={})),function(a){a.AWAITING_CONFIRMATIONS="AWAITING_CONFIRMATIONS",a.AWAITING_EXECUTION="AWAITING_EXECUTION",a.CANCELLED="CANCELLED",a.FAILED="FAILED",a.SUCCESS="SUCCESS"}(c.TransactionStatus||(c.TransactionStatus={})),function(a){a.INCOMING="INCOMING",a.OUTGOING="OUTGOING",a.UNKNOWN="UNKNOWN"}(c.TransferDirection||(c.TransferDirection={})),function(a){a.ERC20="ERC20",a.ERC721="ERC721",a.NATIVE_COIN="NATIVE_COIN"}(c.TransactionTokenType||(c.TransactionTokenType={})),function(a){a.SET_FALLBACK_HANDLER="SET_FALLBACK_HANDLER",a.ADD_OWNER="ADD_OWNER",a.REMOVE_OWNER="REMOVE_OWNER",a.SWAP_OWNER="SWAP_OWNER",a.CHANGE_THRESHOLD="CHANGE_THRESHOLD",a.CHANGE_IMPLEMENTATION="CHANGE_IMPLEMENTATION",a.ENABLE_MODULE="ENABLE_MODULE",a.DISABLE_MODULE="DISABLE_MODULE",a.SET_GUARD="SET_GUARD",a.DELETE_GUARD="DELETE_GUARD"}(c.SettingsInfoType||(c.SettingsInfoType={})),function(a){a.TRANSFER="Transfer",a.SETTINGS_CHANGE="SettingsChange",a.CUSTOM="Custom",a.CREATION="Creation",a.SWAP_ORDER="SwapOrder"}(c.TransactionInfoType||(c.TransactionInfoType={})),function(a){a.NONE="None",a.HAS_NEXT="HasNext",a.END="End"}(c.ConflictType||(c.ConflictType={})),function(a){a.TRANSACTION="TRANSACTION",a.LABEL="LABEL",a.CONFLICT_HEADER="CONFLICT_HEADER",a.DATE_LABEL="DATE_LABEL"}(c.TransactionListItemType||(c.TransactionListItemType={})),function(a){a.MULTISIG="MULTISIG",a.MODULE="MODULE"}(c.DetailedExecutionInfoType||(c.DetailedExecutionInfoType={})),function(a){a.Queued="Queued",a.Next="Next"}(c.LabelValue||(c.LabelValue={}))})(transactions);var chains={};(function(c){Object.defineProperty(c,"__esModule",{value:!0}),c.FEATURES=c.GAS_PRICE_TYPE=c.RPC_AUTHENTICATION=void 0,function(a){a.API_KEY_PATH="API_KEY_PATH",a.NO_AUTHENTICATION="NO_AUTHENTICATION",a.UNKNOWN="UNKNOWN"}(c.RPC_AUTHENTICATION||(c.RPC_AUTHENTICATION={})),function(a){a.ORACLE="ORACLE",a.FIXED="FIXED",a.FIXED_1559="FIXED1559",a.UNKNOWN="UNKNOWN"}(c.GAS_PRICE_TYPE||(c.GAS_PRICE_TYPE={})),function(a){a.ERC721="ERC721",a.SAFE_APPS="SAFE_APPS",a.CONTRACT_INTERACTION="CONTRACT_INTERACTION",a.DOMAIN_LOOKUP="DOMAIN_LOOKUP",a.SPENDING_LIMIT="SPENDING_LIMIT",a.EIP1559="EIP1559",a.SAFE_TX_GAS_OPTIONAL="SAFE_TX_GAS_OPTIONAL",a.TX_SIMULATION="TX_SIMULATION",a.EIP1271="EIP1271"}(c.FEATURES||(c.FEATURES={}))})(chains);var common={};(function(c){Object.defineProperty(c,"__esModule",{value:!0}),c.TokenType=void 0,function(a){a.ERC20="ERC20",a.ERC721="ERC721",a.NATIVE_TOKEN="NATIVE_TOKEN"}(c.TokenType||(c.TokenType={}))})(common);var masterCopies={};Object.defineProperty(masterCopies,"__esModule",{value:!0});var decodedData={};Object.defineProperty(decodedData,"__esModule",{value:!0});var safeMessages={};(function(c){Object.defineProperty(c,"__esModule",{value:!0}),c.SafeMessageStatus=c.SafeMessageListItemType=void 0,function(a){a.DATE_LABEL="DATE_LABEL",a.MESSAGE="MESSAGE"}(c.SafeMessageListItemType||(c.SafeMessageListItemType={})),function(a){a.NEEDS_CONFIRMATION="NEEDS_CONFIRMATION",a.CONFIRMED="CONFIRMED"}(c.SafeMessageStatus||(c.SafeMessageStatus={}))})(safeMessages);var notifications={};(function(c){Object.defineProperty(c,"__esModule",{value:!0}),c.DeviceType=void 0,function(a){a.ANDROID="ANDROID",a.IOS="IOS",a.WEB="WEB"}(c.DeviceType||(c.DeviceType={}))})(notifications);var relay={};Object.defineProperty(relay,"__esModule",{value:!0});(function(c){var a=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(cr,ur,Pr,br){br===void 0&&(br=Pr);var dr=Object.getOwnPropertyDescriptor(ur,Pr);(!dr||("get"in dr?!ur.__esModule:dr.writable||dr.configurable))&&(dr={enumerable:!0,get:function(){return ur[Pr]}}),Object.defineProperty(cr,br,dr)}:function(cr,ur,Pr,br){br===void 0&&(br=Pr),cr[br]=ur[Pr]}),d=commonjsGlobal&&commonjsGlobal.__exportStar||function(cr,ur){for(var Pr in cr)Pr!=="default"&&!Object.prototype.hasOwnProperty.call(ur,Pr)&&a(ur,cr,Pr)};Object.defineProperty(c,"__esModule",{value:!0}),c.getContract=c.getSafeOverviews=c.unsubscribeAll=c.unsubscribeSingle=c.registerRecoveryModule=c.deleteRegisteredEmail=c.getRegisteredEmail=c.verifyEmail=c.resendEmailVerificationCode=c.changeEmail=c.registerEmail=c.unregisterDevice=c.unregisterSafe=c.registerDevice=c.getDelegates=c.confirmSafeMessage=c.proposeSafeMessage=c.getSafeMessage=c.getSafeMessages=c.getDecodedData=c.getMasterCopies=c.getSafeApps=c.getChainConfig=c.getChainsConfig=c.getConfirmationView=c.proposeTransaction=c.getNonces=c.postSafeGasEstimation=c.deleteTransaction=c.getTransactionDetails=c.getTransactionQueue=c.getTransactionHistory=c.getCollectiblesPage=c.getCollectibles=c.getAllOwnedSafes=c.getOwnedSafes=c.getFiatCurrencies=c.getBalances=c.getMultisigTransactions=c.getModuleTransactions=c.getIncomingTransfers=c.getSafeInfo=c.getRelayCount=c.relayTransaction=c.setBaseUrl=void 0;const et=endpoint,nt=config;d(safeInfo,c),d(safeApps,c),d(transactions,c),d(chains,c),d(common,c),d(masterCopies,c),d(decodedData,c),d(safeMessages,c),d(notifications,c),d(relay,c);let tt=nt.DEFAULT_BASE_URL;const bt=cr=>{tt=cr};c.setBaseUrl=bt;function gt(cr,ur){return(0,et.postEndpoint)(tt,"/v1/chains/{chainId}/relay",{path:{chainId:cr},body:ur})}c.relayTransaction=gt;function wt(cr,ur){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/relay/{address}",{path:{chainId:cr,address:ur}})}c.getRelayCount=wt;function St(cr,ur){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/safes/{address}",{path:{chainId:cr,address:ur}})}c.getSafeInfo=St;function Mt(cr,ur,Pr,br){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/safes/{address}/incoming-transfers/",{path:{chainId:cr,address:ur},query:Pr},br)}c.getIncomingTransfers=Mt;function _t(cr,ur,Pr,br){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/safes/{address}/module-transactions/",{path:{chainId:cr,address:ur},query:Pr},br)}c.getModuleTransactions=_t;function Tt(cr,ur,Pr,br){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/safes/{address}/multisig-transactions/",{path:{chainId:cr,address:ur},query:Pr},br)}c.getMultisigTransactions=Tt;function Rt(cr,ur,Pr="usd",br={}){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/safes/{address}/balances/{currency}",{path:{chainId:cr,address:ur,currency:Pr},query:br})}c.getBalances=Rt;function kt(){return(0,et.getEndpoint)(tt,"/v1/balances/supported-fiat-codes")}c.getFiatCurrencies=kt;function It(cr,ur){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/owners/{address}/safes",{path:{chainId:cr,address:ur}})}c.getOwnedSafes=It;function Lt(cr){return(0,et.getEndpoint)(tt,"/v1/owners/{address}/safes",{path:{address:cr}})}c.getAllOwnedSafes=Lt;function Ot(cr,ur,Pr={}){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:cr,address:ur},query:Pr})}c.getCollectibles=Ot;function Nt(cr,ur,Pr={},br){return(0,et.getEndpoint)(tt,"/v2/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:cr,address:ur},query:Pr},br)}c.getCollectiblesPage=Nt;function Ft(cr,ur,Pr={},br){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/safes/{safe_address}/transactions/history",{path:{chainId:cr,safe_address:ur},query:Pr},br)}c.getTransactionHistory=Ft;function jt(cr,ur,Pr={},br){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/safes/{safe_address}/transactions/queued",{path:{chainId:cr,safe_address:ur},query:Pr},br)}c.getTransactionQueue=jt;function Vt(cr,ur){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/transactions/{transactionId}",{path:{chainId:cr,transactionId:ur}})}c.getTransactionDetails=Vt;function Jt(cr,ur,Pr){return(0,et.deleteEndpoint)(tt,"/v1/chains/{chainId}/transactions/{safeTxHash}",{path:{chainId:cr,safeTxHash:ur},body:{signature:Pr}})}c.deleteTransaction=Jt;function ir(cr,ur,Pr){return(0,et.postEndpoint)(tt,"/v2/chains/{chainId}/safes/{safe_address}/multisig-transactions/estimations",{path:{chainId:cr,safe_address:ur},body:Pr})}c.postSafeGasEstimation=ir;function rr(cr,ur){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/safes/{safe_address}/nonces",{path:{chainId:cr,safe_address:ur}})}c.getNonces=rr;function er(cr,ur,Pr){return(0,et.postEndpoint)(tt,"/v1/chains/{chainId}/transactions/{safe_address}/propose",{path:{chainId:cr,safe_address:ur},body:Pr})}c.proposeTransaction=er;function lr(cr,ur,Pr,br){return(0,et.postEndpoint)(tt,"/v1/chains/{chainId}/safes/{safe_address}/views/transaction-confirmation",{path:{chainId:cr,safe_address:ur},body:{data:Pr,to:br}})}c.getConfirmationView=lr;function Ct(cr){return(0,et.getEndpoint)(tt,"/v1/chains",{query:cr})}c.getChainsConfig=Ct;function dt(cr){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}",{path:{chainId:cr}})}c.getChainConfig=dt;function mt(cr,ur={}){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/safe-apps",{path:{chainId:cr},query:ur})}c.getSafeApps=mt;function yt(cr){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/about/master-copies",{path:{chainId:cr}})}c.getMasterCopies=yt;function vt(cr,ur,Pr){return(0,et.postEndpoint)(tt,"/v1/chains/{chainId}/data-decoder",{path:{chainId:cr},body:{data:ur,to:Pr}})}c.getDecodedData=vt;function Et(cr,ur,Pr){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:cr,safe_address:ur},query:{}},Pr)}c.getSafeMessages=Et;function At(cr,ur){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/messages/{message_hash}",{path:{chainId:cr,message_hash:ur}})}c.getSafeMessage=At;function Pt(cr,ur,Pr){return(0,et.postEndpoint)(tt,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:cr,safe_address:ur},body:Pr})}c.proposeSafeMessage=Pt;function xt(cr,ur,Pr){return(0,et.postEndpoint)(tt,"/v1/chains/{chainId}/messages/{message_hash}/signatures",{path:{chainId:cr,message_hash:ur},body:Pr})}c.confirmSafeMessage=xt;function ht(cr,ur={}){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/delegates",{path:{chainId:cr},query:ur})}c.getDelegates=ht;function $t(cr){return(0,et.postEndpoint)(tt,"/v1/register/notifications",{body:cr})}c.registerDevice=$t;function Bt(cr,ur,Pr){return(0,et.deleteEndpoint)(tt,"/v1/chains/{chainId}/notifications/devices/{uuid}/safes/{safe_address}",{path:{chainId:cr,safe_address:ur,uuid:Pr}})}c.unregisterSafe=Bt;function Dt(cr,ur){return(0,et.deleteEndpoint)(tt,"/v1/chains/{chainId}/notifications/devices/{uuid}",{path:{chainId:cr,uuid:ur}})}c.unregisterDevice=Dt;function Ht(cr,ur,Pr,br){return(0,et.postEndpoint)(tt,"/v1/chains/{chainId}/safes/{safe_address}/emails",{path:{chainId:cr,safe_address:ur},body:Pr,headers:br})}c.registerEmail=Ht;function tr(cr,ur,Pr,br,dr){return(0,et.putEndpoint)(tt,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}",{path:{chainId:cr,safe_address:ur,signer:Pr},body:br,headers:dr})}c.changeEmail=tr;function Xt(cr,ur,Pr){return(0,et.postEndpoint)(tt,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}/verify-resend",{path:{chainId:cr,safe_address:ur,signer:Pr},body:""})}c.resendEmailVerificationCode=Xt;function Ut(cr,ur,Pr,br){return(0,et.putEndpoint)(tt,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}/verify",{path:{chainId:cr,safe_address:ur,signer:Pr},body:br})}c.verifyEmail=Ut;function qt(cr,ur,Pr,br){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}",{path:{chainId:cr,safe_address:ur,signer:Pr},headers:br})}c.getRegisteredEmail=qt;function Gt(cr,ur,Pr,br){return(0,et.deleteEndpoint)(tt,"/v1/chains/{chainId}/safes/{safe_address}/emails/{signer}",{path:{chainId:cr,safe_address:ur,signer:Pr},headers:br})}c.deleteRegisteredEmail=Gt;function Zt(cr,ur,Pr){return(0,et.postEndpoint)(tt,"/v1/chains/{chainId}/safes/{safe_address}/recovery",{path:{chainId:cr,safe_address:ur},body:Pr})}c.registerRecoveryModule=Zt;function Yt(cr){return(0,et.deleteEndpoint)(tt,"/v1/subscriptions",{query:cr})}c.unsubscribeSingle=Yt;function Kt(cr){return(0,et.deleteEndpoint)(tt,"/v1/subscriptions/all",{query:cr})}c.unsubscribeAll=Kt;function ar(cr,ur){return(0,et.getEndpoint)(tt,"/v1/safes",{query:Object.assign(Object.assign({},ur),{safes:cr.join(",")})})}c.getSafeOverviews=ar;function gr(cr,ur){return(0,et.getEndpoint)(tt,"/v1/chains/{chainId}/contracts/{contractAddress}",{path:{chainId:cr,contractAddress:ur}})}c.getContract=gr})(dist$1);class TXs{constructor(a){this.communicator=a}async getBySafeTxHash(a){if(!a)throw new Error("Invalid safeTxHash");return(await this.communicator.send(Methods.getTxBySafeTxHash,{safeTxHash:a})).data}async signMessage(a){const d={message:a};return(await this.communicator.send(Methods.signMessage,d)).data}async signTypedMessage(a){if(!isObjectEIP712TypedData(a))throw new Error("Invalid typed data");return(await this.communicator.send(Methods.signTypedMessage,{typedData:a})).data}async send({txs:a,params:d}){if(!a||!a.length)throw new Error("No transactions were passed");const et={txs:a,params:d};return(await this.communicator.send(Methods.sendTransactions,et)).data}}const RPC_CALLS={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"},inputFormatters={defaultBlockParam:(c="latest")=>c,returnFullTxObjectParam:(c=!1)=>c,blockNumberToHex:c=>Number.isInteger(c)?`0x${c.toString(16)}`:c};class Eth{constructor(a){this.communicator=a,this.call=this.buildRequest({call:RPC_CALLS.eth_call,formatters:[null,inputFormatters.defaultBlockParam]}),this.getBalance=this.buildRequest({call:RPC_CALLS.eth_getBalance,formatters:[null,inputFormatters.defaultBlockParam]}),this.getCode=this.buildRequest({call:RPC_CALLS.eth_getCode,formatters:[null,inputFormatters.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:RPC_CALLS.eth_getStorageAt,formatters:[null,inputFormatters.blockNumberToHex,inputFormatters.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:RPC_CALLS.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:RPC_CALLS.eth_getBlockByHash,formatters:[null,inputFormatters.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:RPC_CALLS.eth_getBlockByNumber,formatters:[inputFormatters.blockNumberToHex,inputFormatters.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:RPC_CALLS.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:RPC_CALLS.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:RPC_CALLS.eth_getTransactionCount,formatters:[null,inputFormatters.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:RPC_CALLS.eth_gasPrice}),this.getEstimateGas=d=>this.buildRequest({call:RPC_CALLS.eth_estimateGas})([d]),this.setSafeSettings=this.buildRequest({call:RPC_CALLS.safe_setSettings})}buildRequest(a){const{call:d,formatters:et}=a;return async nt=>{et&&Array.isArray(nt)&&et.forEach((gt,wt)=>{gt&&(nt[wt]=gt(nt[wt]))});const tt={call:d,params:nt||[]};return(await this.communicator.send(Methods.rpcCall,tt)).data}}}function execTyped$1(c,a){const d=c.exec(a);return d==null?void 0:d.groups}const tupleRegex$1=/^tuple(?(\[(\d*)\])*)$/;function formatAbiParameter$1(c){let a=c.type;if(tupleRegex$1.test(c.type)&&"components"in c){a="(";const d=c.components.length;for(let nt=0;ntformatAbiParam$1(d,{includeName:a})).join(a?", ":","):""}function formatAbiParam$1(c,{includeName:a}){return c.type.startsWith("tuple")?`(${formatAbiParams$1(c.components,{includeName:a})})${c.type.slice(5)}`:c.type+(a&&c.name?` ${c.name}`:"")}function isHex$1(c,{strict:a=!0}={}){return!c||typeof c!="string"?!1:a?/^0x[0-9a-fA-F]*$/.test(c):c.startsWith("0x")}function size$2(c){return isHex$1(c,{strict:!1})?Math.ceil((c.length-2)/2):c.length}const version$1="1.21.3",getVersion$1=()=>`viem@${version$1}`;let BaseError$1=class Zo extends Error{constructor(a,d={}){var tt;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:getVersion$1()});const et=d.cause instanceof Zo?d.cause.details:(tt=d.cause)!=null&&tt.message?d.cause.message:d.details,nt=d.cause instanceof Zo&&d.cause.docsPath||d.docsPath;this.message=[a||"An error occurred.","",...d.metaMessages?[...d.metaMessages,""]:[],...nt?[`Docs: https://viem.sh${nt}.html${d.docsSlug?`#${d.docsSlug}`:""}`]:[],...et?[`Details: ${et}`]:[],`Version: ${this.version}`].join(` `),d.cause&&(this.cause=d.cause),this.details=et,this.docsPath=nt,this.metaMessages=d.metaMessages,this.shortMessage=a}walk(a){return walk$1(this,a)}};function walk$1(c,a){return a!=null&&a(c)?c:c&&typeof c=="object"&&"cause"in c?walk$1(c.cause,a):a?null:c}let AbiEncodingArrayLengthMismatchError$1=class extends BaseError$1{constructor({expectedLength:a,givenLength:d,type:et}){super([`ABI encoding array length mismatch for type ${et}.`,`Expected length: ${a}`,`Given length: ${d}`].join(` `)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}},AbiEncodingBytesSizeMismatchError$1=class extends BaseError$1{constructor({expectedSize:a,value:d}){super(`Size of bytes "${d}" (bytes${size$2(d)}) does not match expected size (bytes${a}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}},AbiEncodingLengthMismatchError$1=class extends BaseError$1{constructor({expectedLength:a,givenLength:d}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${a}`,`Given length (values): ${d}`].join(` `)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}},AbiFunctionNotFoundError$1=class extends BaseError$1{constructor(a,{docsPath:d}={}){super([`Function ${a?`"${a}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(` `),{docsPath:d}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}},AbiItemAmbiguityError$1=class extends BaseError$1{constructor(a,d){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${a.type}\` in \`${formatAbiItem$2(a.abiItem)}\`, and`,`\`${d.type}\` in \`${formatAbiItem$2(d.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"})}},BytesSizeMismatchError$1=class extends BaseError$1{constructor({expectedSize:a,givenSize:d}){super(`Expected bytes${a}, got bytes${d}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}},InvalidAbiEncodingTypeError$1=class extends BaseError$1{constructor(a,{docsPath:d}){super([`Type "${a}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(` `),{docsPath:d}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}},InvalidArrayError$1=class extends BaseError$1{constructor(a){super([`Value "${a}" is not a valid array.`].join(` `)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}},InvalidDefinitionTypeError$1=class extends BaseError$1{constructor(a){super([`"${a}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}},SliceOffsetOutOfBoundsError$1=class extends BaseError$1{constructor({offset:a,position:d,size:et}){super(`Slice ${d==="start"?"starting":"ending"} at offset "${a}" is out-of-bounds (size: ${et}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}},SizeExceedsPaddingSizeError$1=class extends BaseError$1{constructor({size:a,targetSize:d,type:et}){super(`${et.charAt(0).toUpperCase()}${et.slice(1).toLowerCase()} size (${a}) exceeds padding size (${d}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}};function pad$1(c,{dir:a,size:d=32}={}){return typeof c=="string"?padHex$1(c,{dir:a,size:d}):padBytes$1(c,{dir:a,size:d})}function padHex$1(c,{dir:a,size:d=32}={}){if(d===null)return c;const et=c.replace("0x","");if(et.length>d*2)throw new SizeExceedsPaddingSizeError$1({size:Math.ceil(et.length/2),targetSize:d,type:"hex"});return`0x${et[a==="right"?"padEnd":"padStart"](d*2,"0")}`}function padBytes$1(c,{dir:a,size:d=32}={}){if(d===null)return c;if(c.length>d)throw new SizeExceedsPaddingSizeError$1({size:c.length,targetSize:d,type:"bytes"});const et=new Uint8Array(d);for(let nt=0;nta)throw new SizeOverflowError$1({givenSize:size$2(c),maxSize:a})}const hexes$2=Array.from({length:256},(c,a)=>a.toString(16).padStart(2,"0"));function toHex$1(c,a={}){return typeof c=="number"||typeof c=="bigint"?numberToHex$1(c,a):typeof c=="string"?stringToHex$1(c,a):typeof c=="boolean"?boolToHex$1(c,a):bytesToHex$2(c,a)}function boolToHex$1(c,a={}){const d=`0x${Number(c)}`;return typeof a.size=="number"?(assertSize$1(d,{size:a.size}),pad$1(d,{size:a.size})):d}function bytesToHex$2(c,a={}){let d="";for(let nt=0;nttt||nt=charCodeMap$1.zero&&c<=charCodeMap$1.nine)return c-charCodeMap$1.zero;if(c>=charCodeMap$1.A&&c<=charCodeMap$1.F)return c-(charCodeMap$1.A-10);if(c>=charCodeMap$1.a&&c<=charCodeMap$1.f)return c-(charCodeMap$1.a-10)}function hexToBytes$2(c,a={}){let d=c;a.size&&(assertSize$1(d,{size:a.size}),d=pad$1(d,{dir:"right",size:a.size}));let et=d.slice(2);et.length%2&&(et=`0${et}`);const nt=et.length/2,tt=new Uint8Array(nt);for(let bt=0,gt=0;bt{const a=(()=>typeof c=="string"?c:formatAbiItem$3(c))();return normalizeSignature$1(a)},getEventSignature=c=>getFunctionSignature(c);function number(c){if(!Number.isSafeInteger(c)||c<0)throw new Error(`Wrong positive integer: ${c}`)}function bytes(c,...a){if(!(c instanceof Uint8Array))throw new Error("Expected Uint8Array");if(a.length>0&&!a.includes(c.length))throw new Error(`Expected Uint8Array of length ${a}, not of length=${c.length}`)}function hash$3(c){if(typeof c!="function"||typeof c.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");number(c.outputLen),number(c.blockLen)}function exists(c,a=!0){if(c.destroyed)throw new Error("Hash instance has been destroyed");if(a&&c.finished)throw new Error("Hash#digest() has already been called")}function output(c,a){bytes(c);const d=a.outputLen;if(c.length>_32n&U32_MASK64)}:{h:Number(c>>_32n&U32_MASK64)|0,l:Number(c&U32_MASK64)|0}}function split(c,a=!1){let d=new Uint32Array(c.length),et=new Uint32Array(c.length);for(let nt=0;ntc<>>32-d,rotlSL=(c,a,d)=>a<>>32-d,rotlBH=(c,a,d)=>a<>>64-d,rotlBL=(c,a,d)=>c<>>64-d,crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const u8a$1=c=>c instanceof Uint8Array,u32=c=>new Uint32Array(c.buffer,c.byteOffset,Math.floor(c.byteLength/4)),createView=c=>new DataView(c.buffer,c.byteOffset,c.byteLength),rotr=(c,a)=>c<<32-a|c>>>a,isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!isLE)throw new Error("Non little-endian hardware is not supported");function utf8ToBytes$1(c){if(typeof c!="string")throw new Error(`utf8ToBytes expected string, got ${typeof c}`);return new Uint8Array(new TextEncoder().encode(c))}function toBytes$1(c){if(typeof c=="string"&&(c=utf8ToBytes$1(c)),!u8a$1(c))throw new Error(`expected Uint8Array, got ${typeof c}`);return c}function concatBytes$3(...c){const a=new Uint8Array(c.reduce((et,nt)=>et+nt.length,0));let d=0;return c.forEach(et=>{if(!u8a$1(et))throw new Error("Uint8Array expected");a.set(et,d),d+=et.length}),a}class Hash{clone(){return this._cloneInto()}}function wrapConstructor(c){const a=et=>c().update(toBytes$1(et)).digest(),d=c();return a.outputLen=d.outputLen,a.blockLen=d.blockLen,a.create=()=>c(),a}function randomBytes(c=32){if(crypto&&typeof crypto.getRandomValues=="function")return crypto.getRandomValues(new Uint8Array(c));throw new Error("crypto.getRandomValues must be defined")}const[SHA3_PI,SHA3_ROTL,_SHA3_IOTA]=[[],[],[]],_0n$4=BigInt(0),_1n$5=BigInt(1),_2n$3=BigInt(2),_7n=BigInt(7),_256n=BigInt(256),_0x71n=BigInt(113);for(let c=0,a=_1n$5,d=1,et=0;c<24;c++){[d,et]=[et,(2*d+3*et)%5],SHA3_PI.push(2*(5*et+d)),SHA3_ROTL.push((c+1)*(c+2)/2%64);let nt=_0n$4;for(let tt=0;tt<7;tt++)a=(a<<_1n$5^(a>>_7n)*_0x71n)%_256n,a&_2n$3&&(nt^=_1n$5<<(_1n$5<d>32?rotlBH(c,a,d):rotlSH(c,a,d),rotlL=(c,a,d)=>d>32?rotlBL(c,a,d):rotlSL(c,a,d);function keccakP(c,a=24){const d=new Uint32Array(10);for(let et=24-a;et<24;et++){for(let bt=0;bt<10;bt++)d[bt]=c[bt]^c[bt+10]^c[bt+20]^c[bt+30]^c[bt+40];for(let bt=0;bt<10;bt+=2){const gt=(bt+8)%10,wt=(bt+2)%10,St=d[wt],Mt=d[wt+1],_t=rotlH(St,Mt,1)^d[gt],Tt=rotlL(St,Mt,1)^d[gt+1];for(let Bt=0;Bt<50;Bt+=10)c[bt+Bt]^=_t,c[bt+Bt+1]^=Tt}let nt=c[2],tt=c[3];for(let bt=0;bt<24;bt++){const gt=SHA3_ROTL[bt],wt=rotlH(nt,tt,gt),St=rotlL(nt,tt,gt),Mt=SHA3_PI[bt];nt=c[Mt],tt=c[Mt+1],c[Mt]=wt,c[Mt+1]=St}for(let bt=0;bt<50;bt+=10){for(let gt=0;gt<10;gt++)d[gt]=c[bt+gt];for(let gt=0;gt<10;gt++)c[bt+gt]^=~d[(gt+2)%10]&d[(gt+4)%10]}c[0]^=SHA3_IOTA_H[et],c[1]^=SHA3_IOTA_L[et]}d.fill(0)}class Keccak extends Hash{constructor(a,d,et,nt=!1,tt=24){if(super(),this.blockLen=a,this.suffix=d,this.outputLen=et,this.enableXOF=nt,this.rounds=tt,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,number(et),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=u32(this.state)}keccak(){keccakP(this.state32,this.rounds),this.posOut=0,this.pos=0}update(a){exists(this);const{blockLen:d,state:et}=this;a=toBytes$1(a);const nt=a.length;for(let tt=0;tt=et&&this.keccak();const bt=Math.min(et-this.posOut,tt-nt);a.set(d.subarray(this.posOut,this.posOut+bt),nt),this.posOut+=bt,nt+=bt}return a}xofInto(a){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(a)}xof(a){return number(a),this.xofInto(new Uint8Array(a))}digestInto(a){if(output(a,this),this.finished)throw new Error("digest() was already called");return this.writeInto(a),this.destroy(),a}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(a){const{blockLen:d,suffix:et,outputLen:nt,rounds:tt,enableXOF:bt}=this;return a||(a=new Keccak(d,et,nt,bt,tt)),a.state32.set(this.state32),a.pos=this.pos,a.posOut=this.posOut,a.finished=this.finished,a.rounds=tt,a.suffix=et,a.outputLen=nt,a.enableXOF=bt,a.destroyed=this.destroyed,a}}const gen=(c,a,d)=>wrapConstructor(()=>new Keccak(a,c,d)),keccak_256=gen(1,136,256/8);function keccak256$1(c,a){const d=a||"hex",et=keccak_256(isHex$1(c,{strict:!1})?toBytes$2(c):c);return d==="bytes"?et:toHex$1(et)}const hash$2=c=>keccak256$1(toBytes$2(c)),getEventSelector=c=>hash$2(getEventSignature(c));let InvalidAddressError$1=class extends BaseError$1{constructor({address:a}){super(`Address "${a}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}};const addressRegex$1=/^0x[a-fA-F0-9]{40}$/;function isAddress$1(c){return addressRegex$1.test(c)}function concat$1(c){return typeof c[0]=="string"?concatHex$1(c):concatBytes$2(c)}function concatBytes$2(c){let a=0;for(const nt of c)a+=nt.length;const d=new Uint8Array(a);let et=0;for(const nt of c)d.set(nt,et),et+=nt.length;return d}function concatHex$1(c){return`0x${c.reduce((a,d)=>a+d.replace("0x",""),"")}`}function slice$1(c,a,d,{strict:et}={}){return isHex$1(c,{strict:!1})?sliceHex$1(c,a,d,{strict:et}):sliceBytes$1(c,a,d,{strict:et})}function assertStartOffset$1(c,a){if(typeof a=="number"&&a>0&&a>size$2(c)-1)throw new SliceOffsetOutOfBoundsError$1({offset:a,position:"start",size:size$2(c)})}function assertEndOffset$1(c,a,d){if(typeof a=="number"&&typeof d=="number"&&size$2(c)!==d-a)throw new SliceOffsetOutOfBoundsError$1({offset:d,position:"end",size:size$2(c)})}function sliceBytes$1(c,a,d,{strict:et}={}){assertStartOffset$1(c,a);const nt=c.slice(a,d);return et&&assertEndOffset$1(nt,a,d),nt}function sliceHex$1(c,a,d,{strict:et}={}){assertStartOffset$1(c,a);const nt=`0x${c.replace("0x","").slice((a??0)*2,(d??c.length)*2)}`;return et&&assertEndOffset$1(nt,a,d),nt}function encodeAbiParameters$1(c,a){if(c.length!==a.length)throw new AbiEncodingLengthMismatchError$1({expectedLength:c.length,givenLength:a.length});const d=prepareParams$1({params:c,values:a}),et=encodeParams$1(d);return et.length===0?"0x":et}function prepareParams$1({params:c,values:a}){const d=[];for(let et=0;et0?concat$1([gt,bt]):gt}}if(nt)return{dynamic:!0,encoded:bt}}return{dynamic:!1,encoded:concat$1(tt.map(({encoded:bt})=>bt))}}function encodeBytes$1(c,{param:a}){const[,d]=a.type.split("bytes"),et=size$2(c);if(!d){let nt=c;return et%32!==0&&(nt=padHex$1(nt,{dir:"right",size:Math.ceil((c.length-2)/2/32)*32})),{dynamic:!0,encoded:concat$1([padHex$1(numberToHex$1(et,{size:32})),nt])}}if(et!==parseInt(d))throw new AbiEncodingBytesSizeMismatchError$1({expectedSize:parseInt(d),value:c});return{dynamic:!1,encoded:padHex$1(c,{dir:"right"})}}function encodeBool$1(c){return{dynamic:!1,encoded:padHex$1(boolToHex$1(c))}}function encodeNumber$1(c,{signed:a}){return{dynamic:!1,encoded:numberToHex$1(c,{size:32,signed:a})}}function encodeString$1(c){const a=stringToHex$1(c),d=Math.ceil(size$2(a)/32),et=[];for(let nt=0;ntnt))}}function getArrayComponents$1(c){const a=c.match(/^(.*)\[(\d+)?\]$/);return a?[a[2]?Number(a[2]):null,a[1]]:void 0}const hash$1=c=>keccak256$1(toBytes$2(c)),getFunctionSelector=c=>slice$1(hash$1(getFunctionSignature(c)),0,4);function getAbiItem$1({abi:c,args:a=[],name:d}){const et=isHex$1(d,{strict:!1}),nt=c.filter(bt=>et?bt.type==="function"?getFunctionSelector(bt)===d:bt.type==="event"?getEventSelector(bt)===d:!1:"name"in bt&&bt.name===d);if(nt.length===0)return;if(nt.length===1)return nt[0];let tt;for(const bt of nt){if(!("inputs"in bt))continue;if(!a||a.length===0){if(!bt.inputs||bt.inputs.length===0)return bt;continue}if(!bt.inputs||bt.inputs.length===0||bt.inputs.length!==a.length)continue;if(a.every((wt,St)=>{const Mt="inputs"in bt&&bt.inputs[St];return Mt?isArgOfType$1(wt,Mt):!1})){if(tt&&"inputs"in tt&&tt.inputs){const wt=getAmbiguousTypes$1(bt.inputs,tt.inputs,a);if(wt)throw new AbiItemAmbiguityError$1({abiItem:bt,type:wt[0]},{abiItem:tt,type:wt[1]})}tt=bt}}return tt||nt[0]}function isArgOfType$1(c,a){const d=typeof c,et=a.type;switch(et){case"address":return isAddress$1(c);case"bool":return d==="boolean";case"function":return d==="string";case"string":return d==="string";default:return et==="tuple"&&"components"in a?Object.values(a.components).every((nt,tt)=>isArgOfType$1(Object.values(c)[tt],nt)):/^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(et)?d==="number"||d==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(et)?d==="string"||c instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(et)?Array.isArray(c)&&c.every(nt=>isArgOfType$1(nt,{...a,type:et.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function getAmbiguousTypes$1(c,a,d){for(const et in c){const nt=c[et],tt=a[et];if(nt.type==="tuple"&&tt.type==="tuple"&&"components"in nt&&"components"in tt)return getAmbiguousTypes$1(nt.components,tt.components,d[et]);const bt=[nt.type,tt.type];if((()=>bt.includes("address")&&bt.includes("bytes20")?!0:bt.includes("address")&&bt.includes("string")||bt.includes("address")&&bt.includes("bytes")?isAddress$1(d[et]):!1)())return bt}}function encodeFunctionData$1({abi:c,args:a,functionName:d}){let et=c[0];if(d&&(et=getAbiItem$1({abi:c,args:a,name:d}),!et))throw new AbiFunctionNotFoundError$1(d,{docsPath:"/docs/contract/encodeFunctionData"});if(et.type!=="function")throw new AbiFunctionNotFoundError$1(void 0,{docsPath:"/docs/contract/encodeFunctionData"});const nt=formatAbiItem$2(et),tt=getFunctionSelector(nt),bt="inputs"in et&&et.inputs?encodeAbiParameters$1(et.inputs,a??[]):void 0;return concatHex$1([tt,bt??"0x"])}const scriptRel="modulepreload",assetsURL=function(c){return"/"+c},seen={},__vitePreload=function c(a,d,et){if(!d||d.length===0)return a();const nt=document.getElementsByTagName("link");return Promise.all(d.map(tt=>{if(tt=assetsURL(tt),tt in seen)return;seen[tt]=!0;const bt=tt.endsWith(".css"),gt=bt?'[rel="stylesheet"]':"";if(!!et)for(let Mt=nt.length-1;Mt>=0;Mt--){const _t=nt[Mt];if(_t.href===tt&&(!bt||_t.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${tt}"]${gt}`))return;const St=document.createElement("link");if(St.rel=bt?"stylesheet":scriptRel,bt||(St.as="script",St.crossOrigin=""),St.href=tt,document.head.appendChild(St),bt)return new Promise((Mt,_t)=>{St.addEventListener("load",Mt),St.addEventListener("error",()=>_t(new Error(`Unable to preload CSS for ${tt}`)))})})).then(()=>a()).catch(tt=>{const bt=new Event("vite:preloadError",{cancelable:!0});if(bt.payload=tt,window.dispatchEvent(bt),!bt.defaultPrevented)throw tt})},bytesRegex$1=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,integerRegex$1=/^(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 hashTypedData$1({domain:c,message:a,primaryType:d,types:et}){const nt=typeof c>"u"?{}:c,tt={EIP712Domain:getTypesForEIP712Domain$1({domain:nt}),...et};validateTypedData$1({domain:nt,message:a,primaryType:d,types:tt});const bt=["0x1901"];return nt&&bt.push(hashDomain$1({domain:nt,types:tt})),d!=="EIP712Domain"&&bt.push(hashStruct$1({data:a,primaryType:d,types:tt})),keccak256$1(concat$1(bt))}function hashDomain$1({domain:c,types:a}){return hashStruct$1({data:c,primaryType:"EIP712Domain",types:a})}function hashStruct$1({data:c,primaryType:a,types:d}){const et=encodeData$1({data:c,primaryType:a,types:d});return keccak256$1(et)}function encodeData$1({data:c,primaryType:a,types:d}){const et=[{type:"bytes32"}],nt=[hashType$1({primaryType:a,types:d})];for(const tt of d[a]){const[bt,gt]=encodeField$1({types:d,name:tt.name,type:tt.type,value:c[tt.name]});et.push(bt),nt.push(gt)}return encodeAbiParameters$1(et,nt)}function hashType$1({primaryType:c,types:a}){const d=toHex$1(encodeType$1({primaryType:c,types:a}));return keccak256$1(d)}function encodeType$1({primaryType:c,types:a}){let d="";const et=findTypeDependencies$1({primaryType:c,types:a});et.delete(c);const nt=[c,...Array.from(et).sort()];for(const tt of nt)d+=`${tt}(${a[tt].map(({name:bt,type:gt})=>`${gt} ${bt}`).join(",")})`;return d}function findTypeDependencies$1({primaryType:c,types:a},d=new Set){const et=c.match(/^\w*/u),nt=et==null?void 0:et[0];if(d.has(nt)||a[nt]===void 0)return d;d.add(nt);for(const tt of a[nt])findTypeDependencies$1({primaryType:tt.type,types:a},d);return d}function encodeField$1({types:c,name:a,type:d,value:et}){if(c[d]!==void 0)return[{type:"bytes32"},keccak256$1(encodeData$1({data:et,primaryType:d,types:c}))];if(d==="bytes")return et=`0x${(et.length%2?"0":"")+et.slice(2)}`,[{type:"bytes32"},keccak256$1(et)];if(d==="string")return[{type:"bytes32"},keccak256$1(toHex$1(et))];if(d.lastIndexOf("]")===d.length-1){const nt=d.slice(0,d.lastIndexOf("[")),tt=et.map(bt=>encodeField$1({name:a,type:nt,types:c,value:bt}));return[{type:"bytes32"},keccak256$1(encodeAbiParameters$1(tt.map(([bt])=>bt),tt.map(([,bt])=>bt)))]}return[{type:d},et]}function validateTypedData$1({domain:c,message:a,primaryType:d,types:et}){const nt=et,tt=(bt,gt)=>{for(const wt of bt){const{name:St,type:Mt}=wt,_t=Mt,Tt=gt[St],Bt=_t.match(integerRegex$1);if(Bt&&(typeof Tt=="number"||typeof Tt=="bigint")){const[Lt,Ot,Nt]=Bt;numberToHex$1(Tt,{signed:Ot==="int",size:parseInt(Nt)/8})}if(_t==="address"&&typeof Tt=="string"&&!isAddress$1(Tt))throw new InvalidAddressError$1({address:Tt});const kt=_t.match(bytesRegex$1);if(kt){const[Lt,Ot]=kt;if(Ot&&size$2(Tt)!==parseInt(Ot))throw new BytesSizeMismatchError$1({expectedSize:parseInt(Ot),givenSize:size$2(Tt)})}const It=nt[_t];It&&tt(It,Tt)}};if(nt.EIP712Domain&&c&&tt(nt.EIP712Domain,c),d!=="EIP712Domain"){const bt=nt[d];tt(bt,a)}}function getTypesForEIP712Domain$1({domain:c}){return[typeof(c==null?void 0:c.name)=="string"&&{name:"name",type:"string"},(c==null?void 0:c.version)&&{name:"version",type:"string"},typeof(c==null?void 0:c.chainId)=="number"&&{name:"chainId",type:"uint256"},(c==null?void 0:c.verifyingContract)&&{name:"verifyingContract",type:"address"},(c==null?void 0:c.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}function setBigUint64(c,a,d,et){if(typeof c.setBigUint64=="function")return c.setBigUint64(a,d,et);const nt=BigInt(32),tt=BigInt(4294967295),bt=Number(d>>nt&tt),gt=Number(d&tt),wt=et?4:0,St=et?0:4;c.setUint32(a+wt,bt,et),c.setUint32(a+St,gt,et)}class SHA2 extends Hash{constructor(a,d,et,nt){super(),this.blockLen=a,this.outputLen=d,this.padOffset=et,this.isLE=nt,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(a),this.view=createView(this.buffer)}update(a){exists(this);const{view:d,buffer:et,blockLen:nt}=this;a=toBytes$1(a);const tt=a.length;for(let bt=0;btnt-bt&&(this.process(et,0),bt=0);for(let _t=bt;_tMt.length)throw new Error("_sha2: outputLen bigger than state");for(let _t=0;_tc&a^~c&d,Maj=(c,a,d)=>c&a^c&d^a&d,SHA256_K=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]),IV=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W=new Uint32Array(64);class SHA256 extends SHA2{constructor(){super(64,32,8,!1),this.A=IV[0]|0,this.B=IV[1]|0,this.C=IV[2]|0,this.D=IV[3]|0,this.E=IV[4]|0,this.F=IV[5]|0,this.G=IV[6]|0,this.H=IV[7]|0}get(){const{A:a,B:d,C:et,D:nt,E:tt,F:bt,G:gt,H:wt}=this;return[a,d,et,nt,tt,bt,gt,wt]}set(a,d,et,nt,tt,bt,gt,wt){this.A=a|0,this.B=d|0,this.C=et|0,this.D=nt|0,this.E=tt|0,this.F=bt|0,this.G=gt|0,this.H=wt|0}process(a,d){for(let _t=0;_t<16;_t++,d+=4)SHA256_W[_t]=a.getUint32(d,!1);for(let _t=16;_t<64;_t++){const Tt=SHA256_W[_t-15],Bt=SHA256_W[_t-2],kt=rotr(Tt,7)^rotr(Tt,18)^Tt>>>3,It=rotr(Bt,17)^rotr(Bt,19)^Bt>>>10;SHA256_W[_t]=It+SHA256_W[_t-7]+kt+SHA256_W[_t-16]|0}let{A:et,B:nt,C:tt,D:bt,E:gt,F:wt,G:St,H:Mt}=this;for(let _t=0;_t<64;_t++){const Tt=rotr(gt,6)^rotr(gt,11)^rotr(gt,25),Bt=Mt+Tt+Chi(gt,wt,St)+SHA256_K[_t]+SHA256_W[_t]|0,It=(rotr(et,2)^rotr(et,13)^rotr(et,22))+Maj(et,nt,tt)|0;Mt=St,St=wt,wt=gt,gt=bt+Bt|0,bt=tt,tt=nt,nt=et,et=Bt+It|0}et=et+this.A|0,nt=nt+this.B|0,tt=tt+this.C|0,bt=bt+this.D|0,gt=gt+this.E|0,wt=wt+this.F|0,St=St+this.G|0,Mt=Mt+this.H|0,this.set(et,nt,tt,bt,gt,wt,St,Mt)}roundClean(){SHA256_W.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const sha256$1=wrapConstructor(()=>new SHA256),presignMessagePrefix$1=`Ethereum Signed Message: -`;function hashMessage$1(c,a){const d=(()=>typeof c=="string"?stringToBytes$1(c):c.raw instanceof Uint8Array?c.raw:toBytes$2(c.raw))(),et=stringToBytes$1(`${presignMessagePrefix$1}${d.length}`);return keccak256$1(concat$1([et,d]),a)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$3=BigInt(0),_1n$4=BigInt(1),_2n$2=BigInt(2),u8a=c=>c instanceof Uint8Array,hexes$1=Array.from({length:256},(c,a)=>a.toString(16).padStart(2,"0"));function bytesToHex$1(c){if(!u8a(c))throw new Error("Uint8Array expected");let a="";for(let d=0;det+nt.length,0));let d=0;return c.forEach(et=>{if(!u8a(et))throw new Error("Uint8Array expected");a.set(et,d),d+=et.length}),a}function equalBytes(c,a){if(c.length!==a.length)return!1;for(let d=0;d_0n$3;c>>=_1n$4,a+=1);return a}function bitGet(c,a){return c>>BigInt(a)&_1n$4}const bitSet=(c,a,d)=>c|(d?_1n$4:_0n$3)<(_2n$2<new Uint8Array(c),u8fr=c=>Uint8Array.from(c);function createHmacDrbg(c,a,d){if(typeof c!="number"||c<2)throw new Error("hashLen must be a number");if(typeof a!="number"||a<2)throw new Error("qByteLen must be a number");if(typeof d!="function")throw new Error("hmacFn must be a function");let et=u8n(c),nt=u8n(c),tt=0;const bt=()=>{et.fill(1),nt.fill(0),tt=0},gt=(..._t)=>d(nt,et,..._t),wt=(_t=u8n())=>{nt=gt(u8fr([0]),_t),et=gt(),_t.length!==0&&(nt=gt(u8fr([1]),_t),et=gt())},St=()=>{if(tt++>=1e3)throw new Error("drbg: tried 1000 values");let _t=0;const Tt=[];for(;_t{bt(),wt(_t);let Bt;for(;!(Bt=Tt(St()));)wt();return bt(),Bt}}const validatorFns={bigint:c=>typeof c=="bigint",function:c=>typeof c=="function",boolean:c=>typeof c=="boolean",string:c=>typeof c=="string",stringOrUint8Array:c=>typeof c=="string"||c instanceof Uint8Array,isSafeInteger:c=>Number.isSafeInteger(c),array:c=>Array.isArray(c),field:(c,a)=>a.Fp.isValid(c),hash:c=>typeof c=="function"&&Number.isSafeInteger(c.outputLen)};function validateObject(c,a,d={}){const et=(nt,tt,bt)=>{const gt=validatorFns[tt];if(typeof gt!="function")throw new Error(`Invalid validator "${tt}", expected function`);const wt=c[nt];if(!(bt&&wt===void 0)&&!gt(wt,c))throw new Error(`Invalid param ${String(nt)}=${wt} (${typeof wt}), expected ${tt}`)};for(const[nt,tt]of Object.entries(a))et(nt,tt,!1);for(const[nt,tt]of Object.entries(d))et(nt,tt,!0);return c}const ut=Object.freeze(Object.defineProperty({__proto__:null,bitGet,bitLen,bitMask,bitSet,bytesToHex:bytesToHex$1,bytesToNumberBE,bytesToNumberLE,concatBytes:concatBytes$1,createHmacDrbg,ensureBytes,equalBytes,hexToBytes:hexToBytes$1,hexToNumber:hexToNumber$1,numberToBytesBE,numberToBytesLE,numberToHexUnpadded,numberToVarBytesBE,utf8ToBytes,validateObject},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$2=BigInt(0),_1n$3=BigInt(1),_2n$1=BigInt(2),_3n$1=BigInt(3),_4n=BigInt(4),_5n=BigInt(5),_8n=BigInt(8);BigInt(9);BigInt(16);function mod(c,a){const d=c%a;return d>=_0n$2?d:a+d}function pow(c,a,d){if(d<=_0n$2||a<_0n$2)throw new Error("Expected power/modulo > 0");if(d===_1n$3)return _0n$2;let et=_1n$3;for(;a>_0n$2;)a&_1n$3&&(et=et*c%d),c=c*c%d,a>>=_1n$3;return et}function pow2(c,a,d){let et=c;for(;a-- >_0n$2;)et*=et,et%=d;return et}function invert(c,a){if(c===_0n$2||a<=_0n$2)throw new Error(`invert: expected positive integers, got n=${c} mod=${a}`);let d=mod(c,a),et=a,nt=_0n$2,tt=_1n$3;for(;d!==_0n$2;){const gt=et/d,wt=et%d,St=nt-tt*gt;et=d,d=wt,nt=tt,tt=St}if(et!==_1n$3)throw new Error("invert: does not exist");return mod(nt,a)}function tonelliShanks(c){const a=(c-_1n$3)/_2n$1;let d,et,nt;for(d=c-_1n$3,et=0;d%_2n$1===_0n$2;d/=_2n$1,et++);for(nt=_2n$1;nt(et[nt]="function",et),a);return validateObject(c,d)}function FpPow(c,a,d){if(d<_0n$2)throw new Error("Expected power > 0");if(d===_0n$2)return c.ONE;if(d===_1n$3)return a;let et=c.ONE,nt=a;for(;d>_0n$2;)d&_1n$3&&(et=c.mul(et,nt)),nt=c.sqr(nt),d>>=_1n$3;return et}function FpInvertBatch(c,a){const d=new Array(a.length),et=a.reduce((tt,bt,gt)=>c.is0(bt)?tt:(d[gt]=tt,c.mul(tt,bt)),c.ONE),nt=c.inv(et);return a.reduceRight((tt,bt,gt)=>c.is0(bt)?tt:(d[gt]=c.mul(tt,d[gt]),c.mul(tt,bt)),nt),d}function nLength(c,a){const d=a!==void 0?a:c.toString(2).length,et=Math.ceil(d/8);return{nBitLength:d,nByteLength:et}}function Field(c,a,d=!1,et={}){if(c<=_0n$2)throw new Error(`Expected Field ORDER > 0, got ${c}`);const{nBitLength:nt,nByteLength:tt}=nLength(c,a);if(tt>2048)throw new Error("Field lengths over 2048 bytes are not supported");const bt=FpSqrt(c),gt=Object.freeze({ORDER:c,BITS:nt,BYTES:tt,MASK:bitMask(nt),ZERO:_0n$2,ONE:_1n$3,create:wt=>mod(wt,c),isValid:wt=>{if(typeof wt!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof wt}`);return _0n$2<=wt&&wtwt===_0n$2,isOdd:wt=>(wt&_1n$3)===_1n$3,neg:wt=>mod(-wt,c),eql:(wt,St)=>wt===St,sqr:wt=>mod(wt*wt,c),add:(wt,St)=>mod(wt+St,c),sub:(wt,St)=>mod(wt-St,c),mul:(wt,St)=>mod(wt*St,c),pow:(wt,St)=>FpPow(gt,wt,St),div:(wt,St)=>mod(wt*invert(St,c),c),sqrN:wt=>wt*wt,addN:(wt,St)=>wt+St,subN:(wt,St)=>wt-St,mulN:(wt,St)=>wt*St,inv:wt=>invert(wt,c),sqrt:et.sqrt||(wt=>bt(gt,wt)),invertBatch:wt=>FpInvertBatch(gt,wt),cmov:(wt,St,Mt)=>Mt?St:wt,toBytes:wt=>d?numberToBytesLE(wt,tt):numberToBytesBE(wt,tt),fromBytes:wt=>{if(wt.length!==tt)throw new Error(`Fp.fromBytes: expected ${tt}, got ${wt.length}`);return d?bytesToNumberLE(wt):bytesToNumberBE(wt)}});return Object.freeze(gt)}function getFieldBytesLength(c){if(typeof c!="bigint")throw new Error("field order must be bigint");const a=c.toString(2).length;return Math.ceil(a/8)}function getMinHashLength(c){const a=getFieldBytesLength(c);return a+Math.ceil(a/2)}function mapHashToField(c,a,d=!1){const et=c.length,nt=getFieldBytesLength(a),tt=getMinHashLength(a);if(et<16||et1024)throw new Error(`expected ${tt}-1024 bytes of input, got ${et}`);const bt=d?bytesToNumberBE(c):bytesToNumberLE(c),gt=mod(bt,a-_1n$3)+_1n$3;return d?numberToBytesLE(gt,nt):numberToBytesBE(gt,nt)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$1=BigInt(0),_1n$2=BigInt(1);function wNAF(c,a){const d=(nt,tt)=>{const bt=tt.negate();return nt?bt:tt},et=nt=>{const tt=Math.ceil(a/nt)+1,bt=2**(nt-1);return{windows:tt,windowSize:bt}};return{constTimeNegate:d,unsafeLadder(nt,tt){let bt=c.ZERO,gt=nt;for(;tt>_0n$1;)tt&_1n$2&&(bt=bt.add(gt)),gt=gt.double(),tt>>=_1n$2;return bt},precomputeWindow(nt,tt){const{windows:bt,windowSize:gt}=et(tt),wt=[];let St=nt,Mt=St;for(let _t=0;_t>=Bt,Lt>wt&&(Lt-=Tt,bt+=_1n$2);const Ot=It,Nt=It+Math.abs(Lt)-1,Ft=kt%2!==0,zt=Lt<0;Lt===0?Mt=Mt.add(d(Ft,tt[Ot])):St=St.add(d(zt,tt[Nt]))}return{p:St,f:Mt}},wNAFCached(nt,tt,bt,gt){const wt=nt._WINDOW_SIZE||1;let St=tt.get(nt);return St||(St=this.precomputeWindow(nt,wt),wt!==1&&tt.set(nt,gt(St))),this.wNAF(wt,St,bt)}}}function validateBasic(c){return validateField(c.Fp),validateObject(c,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...nLength(c.n,c.nBitLength),...c,p:c.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function validatePointOpts(c){const a=validateBasic(c);validateObject(a,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:d,Fp:et,a:nt}=a;if(d){if(!et.eql(nt,et.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof d!="object"||typeof d.beta!="bigint"||typeof d.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...a})}const{bytesToNumberBE:b2n,hexToBytes:h2b}=ut,DER={Err:class extends Error{constructor(a=""){super(a)}},_parseInt(c){const{Err:a}=DER;if(c.length<2||c[0]!==2)throw new a("Invalid signature integer tag");const d=c[1],et=c.subarray(2,d+2);if(!d||et.length!==d)throw new a("Invalid signature integer: wrong length");if(et[0]&128)throw new a("Invalid signature integer: negative");if(et[0]===0&&!(et[1]&128))throw new a("Invalid signature integer: unnecessary leading zero");return{d:b2n(et),l:c.subarray(d+2)}},toSig(c){const{Err:a}=DER,d=typeof c=="string"?h2b(c):c;if(!(d instanceof Uint8Array))throw new Error("ui8a expected");let et=d.length;if(et<2||d[0]!=48)throw new a("Invalid signature tag");if(d[1]!==et-2)throw new a("Invalid signature: incorrect length");const{d:nt,l:tt}=DER._parseInt(d.subarray(2)),{d:bt,l:gt}=DER._parseInt(tt);if(gt.length)throw new a("Invalid signature: left bytes after parsing");return{r:nt,s:bt}},hexFromSig(c){const a=St=>Number.parseInt(St[0],16)&8?"00"+St:St,d=St=>{const Mt=St.toString(16);return Mt.length&1?`0${Mt}`:Mt},et=a(d(c.s)),nt=a(d(c.r)),tt=et.length/2,bt=nt.length/2,gt=d(tt),wt=d(bt);return`30${d(bt+tt+4)}02${wt}${nt}02${gt}${et}`}},_0n=BigInt(0),_1n$1=BigInt(1);BigInt(2);const _3n=BigInt(3);BigInt(4);function weierstrassPoints(c){const a=validatePointOpts(c),{Fp:d}=a,et=a.toBytes||((kt,It,Lt)=>{const Ot=It.toAffine();return concatBytes$1(Uint8Array.from([4]),d.toBytes(Ot.x),d.toBytes(Ot.y))}),nt=a.fromBytes||(kt=>{const It=kt.subarray(1),Lt=d.fromBytes(It.subarray(0,d.BYTES)),Ot=d.fromBytes(It.subarray(d.BYTES,2*d.BYTES));return{x:Lt,y:Ot}});function tt(kt){const{a:It,b:Lt}=a,Ot=d.sqr(kt),Nt=d.mul(Ot,kt);return d.add(d.add(Nt,d.mul(kt,It)),Lt)}if(!d.eql(d.sqr(a.Gy),tt(a.Gx)))throw new Error("bad generator point: equation left != right");function bt(kt){return typeof kt=="bigint"&&_0nd.eql(Ft,d.ZERO);return Nt(Lt)&&Nt(Ot)?_t.ZERO:new _t(Lt,Ot,d.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(It){const Lt=d.invertBatch(It.map(Ot=>Ot.pz));return It.map((Ot,Nt)=>Ot.toAffine(Lt[Nt])).map(_t.fromAffine)}static fromHex(It){const Lt=_t.fromAffine(nt(ensureBytes("pointHex",It)));return Lt.assertValidity(),Lt}static fromPrivateKey(It){return _t.BASE.multiply(wt(It))}_setWindowSize(It){this._WINDOW_SIZE=It,St.delete(this)}assertValidity(){if(this.is0()){if(a.allowInfinityPoint&&!d.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:It,y:Lt}=this.toAffine();if(!d.isValid(It)||!d.isValid(Lt))throw new Error("bad point: x or y not FE");const Ot=d.sqr(Lt),Nt=tt(It);if(!d.eql(Ot,Nt))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:It}=this.toAffine();if(d.isOdd)return!d.isOdd(It);throw new Error("Field doesn't support isOdd")}equals(It){Mt(It);const{px:Lt,py:Ot,pz:Nt}=this,{px:Ft,py:zt,pz:Vt}=It,Jt=d.eql(d.mul(Lt,Vt),d.mul(Ft,Nt)),ir=d.eql(d.mul(Ot,Vt),d.mul(zt,Nt));return Jt&&ir}negate(){return new _t(this.px,d.neg(this.py),this.pz)}double(){const{a:It,b:Lt}=a,Ot=d.mul(Lt,_3n),{px:Nt,py:Ft,pz:zt}=this;let Vt=d.ZERO,Jt=d.ZERO,ir=d.ZERO,rr=d.mul(Nt,Nt),er=d.mul(Ft,Ft),lr=d.mul(zt,zt),Ct=d.mul(Nt,Ft);return Ct=d.add(Ct,Ct),ir=d.mul(Nt,zt),ir=d.add(ir,ir),Vt=d.mul(It,ir),Jt=d.mul(Ot,lr),Jt=d.add(Vt,Jt),Vt=d.sub(er,Jt),Jt=d.add(er,Jt),Jt=d.mul(Vt,Jt),Vt=d.mul(Ct,Vt),ir=d.mul(Ot,ir),lr=d.mul(It,lr),Ct=d.sub(rr,lr),Ct=d.mul(It,Ct),Ct=d.add(Ct,ir),ir=d.add(rr,rr),rr=d.add(ir,rr),rr=d.add(rr,lr),rr=d.mul(rr,Ct),Jt=d.add(Jt,rr),lr=d.mul(Ft,zt),lr=d.add(lr,lr),rr=d.mul(lr,Ct),Vt=d.sub(Vt,rr),ir=d.mul(lr,er),ir=d.add(ir,ir),ir=d.add(ir,ir),new _t(Vt,Jt,ir)}add(It){Mt(It);const{px:Lt,py:Ot,pz:Nt}=this,{px:Ft,py:zt,pz:Vt}=It;let Jt=d.ZERO,ir=d.ZERO,rr=d.ZERO;const er=a.a,lr=d.mul(a.b,_3n);let Ct=d.mul(Lt,Ft),dt=d.mul(Ot,zt),mt=d.mul(Nt,Vt),yt=d.add(Lt,Ot),vt=d.add(Ft,zt);yt=d.mul(yt,vt),vt=d.add(Ct,dt),yt=d.sub(yt,vt),vt=d.add(Lt,Nt);let Et=d.add(Ft,Vt);return vt=d.mul(vt,Et),Et=d.add(Ct,mt),vt=d.sub(vt,Et),Et=d.add(Ot,Nt),Jt=d.add(zt,Vt),Et=d.mul(Et,Jt),Jt=d.add(dt,mt),Et=d.sub(Et,Jt),rr=d.mul(er,vt),Jt=d.mul(lr,mt),rr=d.add(Jt,rr),Jt=d.sub(dt,rr),rr=d.add(dt,rr),ir=d.mul(Jt,rr),dt=d.add(Ct,Ct),dt=d.add(dt,Ct),mt=d.mul(er,mt),vt=d.mul(lr,vt),dt=d.add(dt,mt),mt=d.sub(Ct,mt),mt=d.mul(er,mt),vt=d.add(vt,mt),Ct=d.mul(dt,vt),ir=d.add(ir,Ct),Ct=d.mul(Et,vt),Jt=d.mul(yt,Jt),Jt=d.sub(Jt,Ct),Ct=d.mul(yt,dt),rr=d.mul(Et,rr),rr=d.add(rr,Ct),new _t(Jt,ir,rr)}subtract(It){return this.add(It.negate())}is0(){return this.equals(_t.ZERO)}wNAF(It){return Bt.wNAFCached(this,St,It,Lt=>{const Ot=d.invertBatch(Lt.map(Nt=>Nt.pz));return Lt.map((Nt,Ft)=>Nt.toAffine(Ot[Ft])).map(_t.fromAffine)})}multiplyUnsafe(It){const Lt=_t.ZERO;if(It===_0n)return Lt;if(gt(It),It===_1n$1)return this;const{endo:Ot}=a;if(!Ot)return Bt.unsafeLadder(this,It);let{k1neg:Nt,k1:Ft,k2neg:zt,k2:Vt}=Ot.splitScalar(It),Jt=Lt,ir=Lt,rr=this;for(;Ft>_0n||Vt>_0n;)Ft&_1n$1&&(Jt=Jt.add(rr)),Vt&_1n$1&&(ir=ir.add(rr)),rr=rr.double(),Ft>>=_1n$1,Vt>>=_1n$1;return Nt&&(Jt=Jt.negate()),zt&&(ir=ir.negate()),ir=new _t(d.mul(ir.px,Ot.beta),ir.py,ir.pz),Jt.add(ir)}multiply(It){gt(It);let Lt=It,Ot,Nt;const{endo:Ft}=a;if(Ft){const{k1neg:zt,k1:Vt,k2neg:Jt,k2:ir}=Ft.splitScalar(Lt);let{p:rr,f:er}=this.wNAF(Vt),{p:lr,f:Ct}=this.wNAF(ir);rr=Bt.constTimeNegate(zt,rr),lr=Bt.constTimeNegate(Jt,lr),lr=new _t(d.mul(lr.px,Ft.beta),lr.py,lr.pz),Ot=rr.add(lr),Nt=er.add(Ct)}else{const{p:zt,f:Vt}=this.wNAF(Lt);Ot=zt,Nt=Vt}return _t.normalizeZ([Ot,Nt])[0]}multiplyAndAddUnsafe(It,Lt,Ot){const Nt=_t.BASE,Ft=(Vt,Jt)=>Jt===_0n||Jt===_1n$1||!Vt.equals(Nt)?Vt.multiplyUnsafe(Jt):Vt.multiply(Jt),zt=Ft(this,Lt).add(Ft(It,Ot));return zt.is0()?void 0:zt}toAffine(It){const{px:Lt,py:Ot,pz:Nt}=this,Ft=this.is0();It==null&&(It=Ft?d.ONE:d.inv(Nt));const zt=d.mul(Lt,It),Vt=d.mul(Ot,It),Jt=d.mul(Nt,It);if(Ft)return{x:d.ZERO,y:d.ZERO};if(!d.eql(Jt,d.ONE))throw new Error("invZ was invalid");return{x:zt,y:Vt}}isTorsionFree(){const{h:It,isTorsionFree:Lt}=a;if(It===_1n$1)return!0;if(Lt)return Lt(_t,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:It,clearCofactor:Lt}=a;return It===_1n$1?this:Lt?Lt(_t,this):this.multiplyUnsafe(a.h)}toRawBytes(It=!0){return this.assertValidity(),et(_t,this,It)}toHex(It=!0){return bytesToHex$1(this.toRawBytes(It))}}_t.BASE=new _t(a.Gx,a.Gy,d.ONE),_t.ZERO=new _t(d.ZERO,d.ONE,d.ZERO);const Tt=a.nBitLength,Bt=wNAF(_t,a.endo?Math.ceil(Tt/2):Tt);return{CURVE:a,ProjectivePoint:_t,normPrivateKeyToScalar:wt,weierstrassEquation:tt,isWithinCurveOrder:bt}}function validateOpts(c){const a=validateBasic(c);return validateObject(a,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...a})}function weierstrass(c){const a=validateOpts(c),{Fp:d,n:et}=a,nt=d.BYTES+1,tt=2*d.BYTES+1;function bt(vt){return _0nbytesToHex$1(numberToBytesBE(vt,a.nByteLength));function kt(vt){const Et=et>>_1n$1;return vt>Et}function It(vt){return kt(vt)?gt(-vt):vt}const Lt=(vt,Et,At)=>bytesToNumberBE(vt.slice(Et,At));class Ot{constructor(Et,At,Pt){this.r=Et,this.s=At,this.recovery=Pt,this.assertValidity()}static fromCompact(Et){const At=a.nByteLength;return Et=ensureBytes("compactSignature",Et,At*2),new Ot(Lt(Et,0,At),Lt(Et,At,2*At))}static fromDER(Et){const{r:At,s:Pt}=DER.toSig(ensureBytes("DER",Et));return new Ot(At,Pt)}assertValidity(){if(!Tt(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!Tt(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(Et){return new Ot(this.r,this.s,Et)}recoverPublicKey(Et){const{r:At,s:Pt,recovery:xt}=this,ht=ir(ensureBytes("msgHash",Et));if(xt==null||![0,1,2,3].includes(xt))throw new Error("recovery id invalid");const $t=xt===2||xt===3?At+a.n:At;if($t>=d.ORDER)throw new Error("recovery id 2 or 3 invalid");const Rt=xt&1?"03":"02",Dt=St.fromHex(Rt+Bt($t)),Ht=wt($t),tr=gt(-ht*Ht),Xt=gt(Pt*Ht),Ut=St.BASE.multiplyAndAddUnsafe(Dt,tr,Xt);if(!Ut)throw new Error("point at infinify");return Ut.assertValidity(),Ut}hasHighS(){return kt(this.s)}normalizeS(){return this.hasHighS()?new Ot(this.r,gt(-this.s),this.recovery):this}toDERRawBytes(){return hexToBytes$1(this.toDERHex())}toDERHex(){return DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return hexToBytes$1(this.toCompactHex())}toCompactHex(){return Bt(this.r)+Bt(this.s)}}const Nt={isValidPrivateKey(vt){try{return Mt(vt),!0}catch{return!1}},normPrivateKeyToScalar:Mt,randomPrivateKey:()=>{const vt=getMinHashLength(a.n);return mapHashToField(a.randomBytes(vt),a.n)},precompute(vt=8,Et=St.BASE){return Et._setWindowSize(vt),Et.multiply(BigInt(3)),Et}};function Ft(vt,Et=!0){return St.fromPrivateKey(vt).toRawBytes(Et)}function zt(vt){const Et=vt instanceof Uint8Array,At=typeof vt=="string",Pt=(Et||At)&&vt.length;return Et?Pt===nt||Pt===tt:At?Pt===2*nt||Pt===2*tt:vt instanceof St}function Vt(vt,Et,At=!0){if(zt(vt))throw new Error("first arg must be private key");if(!zt(Et))throw new Error("second arg must be public key");return St.fromHex(Et).multiply(Mt(vt)).toRawBytes(At)}const Jt=a.bits2int||function(vt){const Et=bytesToNumberBE(vt),At=vt.length*8-a.nBitLength;return At>0?Et>>BigInt(At):Et},ir=a.bits2int_modN||function(vt){return gt(Jt(vt))},rr=bitMask(a.nBitLength);function er(vt){if(typeof vt!="bigint")throw new Error("bigint expected");if(!(_0n<=vt&&vtGt in At))throw new Error("sign() legacy options not supported");const{hash:Pt,randomBytes:xt}=a;let{lowS:ht,prehash:$t,extraEntropy:Rt}=At;ht==null&&(ht=!0),vt=ensureBytes("msgHash",vt),$t&&(vt=ensureBytes("prehashed msgHash",Pt(vt)));const Dt=ir(vt),Ht=Mt(Et),tr=[er(Ht),er(Dt)];if(Rt!=null){const Gt=Rt===!0?xt(d.BYTES):Rt;tr.push(ensureBytes("extraEntropy",Gt))}const Xt=concatBytes$1(...tr),Ut=Dt;function qt(Gt){const Zt=Jt(Gt);if(!Tt(Zt))return;const Yt=wt(Zt),Kt=St.BASE.multiply(Zt).toAffine(),ar=gt(Kt.x);if(ar===_0n)return;const gr=gt(Yt*gt(Ut+ar*Ht));if(gr===_0n)return;let cr=(Kt.x===ar?0:2)|Number(Kt.y&_1n$1),ur=gr;return ht&&kt(gr)&&(ur=It(gr),cr^=1),new Ot(ar,ur,cr)}return{seed:Xt,k2sig:qt}}const Ct={lowS:a.lowS,prehash:!1},dt={lowS:a.lowS,prehash:!1};function mt(vt,Et,At=Ct){const{seed:Pt,k2sig:xt}=lr(vt,Et,At),ht=a;return createHmacDrbg(ht.hash.outputLen,ht.nByteLength,ht.hmac)(Pt,xt)}St.BASE._setWindowSize(8);function yt(vt,Et,At,Pt=dt){var Kt;const xt=vt;if(Et=ensureBytes("msgHash",Et),At=ensureBytes("publicKey",At),"strict"in Pt)throw new Error("options.strict was renamed to lowS");const{lowS:ht,prehash:$t}=Pt;let Rt,Dt;try{if(typeof xt=="string"||xt instanceof Uint8Array)try{Rt=Ot.fromDER(xt)}catch(ar){if(!(ar instanceof DER.Err))throw ar;Rt=Ot.fromCompact(xt)}else if(typeof xt=="object"&&typeof xt.r=="bigint"&&typeof xt.s=="bigint"){const{r:ar,s:gr}=xt;Rt=new Ot(ar,gr)}else throw new Error("PARSE");Dt=St.fromHex(At)}catch(ar){if(ar.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(ht&&Rt.hasHighS())return!1;$t&&(Et=a.hash(Et));const{r:Ht,s:tr}=Rt,Xt=ir(Et),Ut=wt(tr),qt=gt(Xt*Ut),Gt=gt(Ht*Ut),Zt=(Kt=St.BASE.multiplyAndAddUnsafe(Dt,qt,Gt))==null?void 0:Kt.toAffine();return Zt?gt(Zt.x)===Ht:!1}return{CURVE:a,getPublicKey:Ft,getSharedSecret:Vt,sign:mt,verify:yt,ProjectivePoint:St,Signature:Ot,utils:Nt}}class HMAC extends Hash{constructor(a,d){super(),this.finished=!1,this.destroyed=!1,hash$3(a);const et=toBytes$1(d);if(this.iHash=a.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const nt=this.blockLen,tt=new Uint8Array(nt);tt.set(et.length>nt?a.create().update(et).digest():et);for(let bt=0;btnew HMAC(c,a).update(d).digest();hmac.create=(c,a)=>new HMAC(c,a);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function getHash(c){return{hash:c,hmac:(a,...d)=>hmac(c,a,concatBytes$3(...d)),randomBytes}}function createCurve(c,a){const d=et=>weierstrass({...c,...getHash(et)});return Object.freeze({...d(a),create:d})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const secp256k1P=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),secp256k1N=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),_1n=BigInt(1),_2n=BigInt(2),divNearest=(c,a)=>(c+a/_2n)/a;function sqrtMod(c){const a=secp256k1P,d=BigInt(3),et=BigInt(6),nt=BigInt(11),tt=BigInt(22),bt=BigInt(23),gt=BigInt(44),wt=BigInt(88),St=c*c*c%a,Mt=St*St*c%a,_t=pow2(Mt,d,a)*Mt%a,Tt=pow2(_t,d,a)*Mt%a,Bt=pow2(Tt,_2n,a)*St%a,kt=pow2(Bt,nt,a)*Bt%a,It=pow2(kt,tt,a)*kt%a,Lt=pow2(It,gt,a)*It%a,Ot=pow2(Lt,wt,a)*Lt%a,Nt=pow2(Ot,gt,a)*It%a,Ft=pow2(Nt,d,a)*Mt%a,zt=pow2(Ft,bt,a)*kt%a,Vt=pow2(zt,et,a)*St%a,Jt=pow2(Vt,_2n,a);if(!Fp.eql(Fp.sqr(Jt),c))throw new Error("Cannot find square root");return Jt}const Fp=Field(secp256k1P,void 0,void 0,{sqrt:sqrtMod}),secp256k1=createCurve({a:BigInt(0),b:BigInt(7),Fp,n:secp256k1N,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:c=>{const a=secp256k1N,d=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),et=-_1n*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),nt=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),tt=d,bt=BigInt("0x100000000000000000000000000000000"),gt=divNearest(tt*c,a),wt=divNearest(-et*c,a);let St=mod(c-gt*d-wt*nt,a),Mt=mod(-gt*et-wt*tt,a);const _t=St>bt,Tt=Mt>bt;if(_t&&(St=a-St),Tt&&(Mt=a-Mt),St>bt||Mt>bt)throw new Error("splitScalar: Endomorphism failed, k="+c);return{k1neg:_t,k1:St,k2neg:Tt,k2:Mt}}}},sha256$1);BigInt(0);secp256k1.ProjectivePoint;const MAGIC_VALUE="0x1626ba7e",MAGIC_VALUE_BYTES="0x20c13b0b",PERMISSIONS_REQUEST_REJECTED=4001;class PermissionsError extends Error{constructor(a,d,et){super(a),this.code=d,this.data=et,Object.setPrototypeOf(this,PermissionsError.prototype)}}class Wallet{constructor(a){this.communicator=a}async getPermissions(){return(await this.communicator.send(Methods.wallet_getPermissions,void 0)).data}async requestPermissions(a){if(!this.isPermissionRequestValid(a))throw new PermissionsError("Permissions request is invalid",PERMISSIONS_REQUEST_REJECTED);try{return(await this.communicator.send(Methods.wallet_requestPermissions,a)).data}catch{throw new PermissionsError("Permissions rejected",PERMISSIONS_REQUEST_REJECTED)}}isPermissionRequestValid(a){return a.every(d=>typeof d=="object"?Object.keys(d).every(et=>!!Object.values(RestrictedMethods).includes(et)):!1)}}const hasPermission=(c,a)=>a.some(d=>d.parentCapability===c),requirePermission=()=>(c,a,d)=>{const et=d.value;return d.value=async function(){const nt=new Wallet(this.communicator);let tt=await nt.getPermissions();if(hasPermission(a,tt)||(tt=await nt.requestPermissions([{[a]:{}}])),!hasPermission(a,tt))throw new PermissionsError("Permissions rejected",PERMISSIONS_REQUEST_REJECTED);return et.apply(this)},d};var __decorate=globalThis&&globalThis.__decorate||function(c,a,d,et){var nt=arguments.length,tt=nt<3?a:et===null?et=Object.getOwnPropertyDescriptor(a,d):et,bt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")tt=Reflect.decorate(c,a,d,et);else for(var gt=c.length-1;gt>=0;gt--)(bt=c[gt])&&(tt=(nt<3?bt(tt):nt>3?bt(a,d,tt):bt(a,d))||tt);return nt>3&&tt&&Object.defineProperty(a,d,tt),tt};let Safe$1=class{constructor(a){this.communicator=a}async getChainInfo(){return(await this.communicator.send(Methods.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(Methods.getSafeInfo,void 0)).data}async experimental_getBalances({currency:a="usd"}={}){return(await this.communicator.send(Methods.getSafeBalances,{currency:a})).data}async check1271Signature(a,d="0x"){const et=await this.getInfo(),nt=encodeFunctionData$1({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[a,d]}),tt={call:RPC_CALLS.eth_call,params:[{to:et.safeAddress,data:nt},"latest"]};try{return(await this.communicator.send(Methods.rpcCall,tt)).data.slice(0,10).toLowerCase()===MAGIC_VALUE}catch{return!1}}async check1271SignatureBytes(a,d="0x"){const et=await this.getInfo(),nt=encodeFunctionData$1({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[a,d]}),tt={call:RPC_CALLS.eth_call,params:[{to:et.safeAddress,data:nt},"latest"]};try{return(await this.communicator.send(Methods.rpcCall,tt)).data.slice(0,10).toLowerCase()===MAGIC_VALUE_BYTES}catch{return!1}}calculateMessageHash(a){return hashMessage$1(a)}calculateTypedMessageHash(a){const d=typeof a.domain.chainId=="object"?a.domain.chainId.toNumber():Number(a.domain.chainId);let et=a.primaryType;if(!et){const nt=Object.values(a.types),tt=Object.keys(a.types).filter(bt=>nt.every(gt=>gt.every(({type:wt})=>wt.replace("[","").replace("]","")!==bt)));if(tt.length===0||tt.length>1)throw new Error("Please specify primaryType");et=tt[0]}return hashTypedData$1({message:a.message,domain:{...a.domain,chainId:d,verifyingContract:a.domain.verifyingContract,salt:a.domain.salt},types:a.types,primaryType:et})}async getOffChainSignature(a){return(await this.communicator.send(Methods.getOffChainSignature,a)).data}async isMessageSigned(a,d="0x"){let et;if(typeof a=="string"&&(et=async()=>{const nt=this.calculateMessageHash(a);return await this.isMessageHashSigned(nt,d)}),isObjectEIP712TypedData(a)&&(et=async()=>{const nt=this.calculateTypedMessageHash(a);return await this.isMessageHashSigned(nt,d)}),et)return await et();throw new Error("Invalid message type")}async isMessageHashSigned(a,d="0x"){const et=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(const nt of et)if(await nt(a,d))return!0;return!1}async getEnvironmentInfo(){return(await this.communicator.send(Methods.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(Methods.requestAddressBook,void 0)).data}};__decorate([requirePermission()],Safe$1.prototype,"requestAddressBook",null);class SafeAppsSDK{constructor(a={}){const{allowedDomains:d=null,debug:et=!1}=a;this.communicator=new PostMessageCommunicator(d,et),this.eth=new Eth(this.communicator),this.txs=new TXs(this.communicator),this.safe=new Safe$1(this.communicator),this.wallet=new Wallet(this.communicator)}}const SDK=SafeAppsSDK;var dist={},provider={},utils={};Object.defineProperty(utils,"__esModule",{value:!0});utils.getLowerCase=void 0;function getLowerCase(c){return c&&c.toLowerCase()}utils.getLowerCase=getLowerCase;Object.defineProperty(provider,"__esModule",{value:!0});provider.SafeAppProvider=void 0;const events_1=eventsExports,utils_1=utils;class SafeAppProvider extends events_1.EventEmitter{constructor(a,d){super(),this.submittedTxs=new Map,this.safe=a,this.sdk=d}async connect(){this.emit("connect",{chainId:this.chainId})}async disconnect(){}get chainId(){return this.safe.chainId}async request(a){const{method:d,params:et=[]}=a;switch(d){case"eth_accounts":return[this.safe.safeAddress];case"net_version":case"eth_chainId":return`0x${this.chainId.toString(16)}`;case"personal_sign":{const[wt,St]=et;if(this.safe.safeAddress.toLowerCase()!==St.toLowerCase())throw new Error("The address or message hash is invalid");const Mt=await this.sdk.txs.signMessage(wt);return("signature"in Mt?Mt.signature:void 0)||"0x"}case"eth_sign":{const[wt,St]=et;if(this.safe.safeAddress.toLowerCase()!==wt.toLowerCase()||!St.startsWith("0x"))throw new Error("The address or message hash is invalid");const Mt=await this.sdk.txs.signMessage(St);return("signature"in Mt?Mt.signature:void 0)||"0x"}case"eth_signTypedData":case"eth_signTypedData_v4":{const[wt,St]=et,Mt=typeof St=="string"?JSON.parse(St):St;if(this.safe.safeAddress.toLowerCase()!==wt.toLowerCase())throw new Error("The address is invalid");const _t=await this.sdk.txs.signTypedMessage(Mt);return("signature"in _t?_t.signature:void 0)||"0x"}case"eth_sendTransaction":const nt={...et[0],value:et[0].value||"0",data:et[0].data||"0x"};typeof nt.gas=="string"&&nt.gas.startsWith("0x")&&(nt.gas=parseInt(nt.gas,16));const tt=await this.sdk.txs.send({txs:[nt],params:{safeTxGas:nt.gas}});return this.submittedTxs.set(tt.safeTxHash,{from:this.safe.safeAddress,hash:tt.safeTxHash,gas:0,gasPrice:"0x00",nonce:0,input:nt.data,value:nt.value,to:nt.to,blockHash:null,blockNumber:null,transactionIndex:null}),tt.safeTxHash;case"eth_blockNumber":return(await this.sdk.eth.getBlockByNumber(["latest"])).number;case"eth_getBalance":return this.sdk.eth.getBalance([(0,utils_1.getLowerCase)(et[0]),et[1]]);case"eth_getCode":return this.sdk.eth.getCode([(0,utils_1.getLowerCase)(et[0]),et[1]]);case"eth_getTransactionCount":return this.sdk.eth.getTransactionCount([(0,utils_1.getLowerCase)(et[0]),et[1]]);case"eth_getStorageAt":return this.sdk.eth.getStorageAt([(0,utils_1.getLowerCase)(et[0]),et[1],et[2]]);case"eth_getBlockByNumber":return this.sdk.eth.getBlockByNumber([et[0],et[1]]);case"eth_getBlockByHash":return this.sdk.eth.getBlockByHash([et[0],et[1]]);case"eth_getTransactionByHash":let gt=et[0];try{gt=(await this.sdk.txs.getBySafeTxHash(gt)).txHash||gt}catch{}return this.submittedTxs.has(gt)?this.submittedTxs.get(gt):this.sdk.eth.getTransactionByHash([gt]).then(wt=>(wt&&(wt.hash=et[0]),wt));case"eth_getTransactionReceipt":{let wt=et[0];try{wt=(await this.sdk.txs.getBySafeTxHash(wt)).txHash||wt}catch{}return this.sdk.eth.getTransactionReceipt([wt]).then(St=>(St&&(St.transactionHash=et[0]),St))}case"eth_estimateGas":return this.sdk.eth.getEstimateGas(et[0]);case"eth_call":return this.sdk.eth.call([et[0],et[1]]);case"eth_getLogs":return this.sdk.eth.getPastLogs([et[0]]);case"eth_gasPrice":return this.sdk.eth.getGasPrice();case"wallet_getPermissions":return this.sdk.wallet.getPermissions();case"wallet_requestPermissions":return this.sdk.wallet.requestPermissions(et[0]);case"safe_setSettings":return this.sdk.eth.setSafeSettings([et[0]]);default:throw Error(`"${a.method}" not implemented`)}}send(a,d){a||d("Undefined request"),this.request(a).then(et=>d(null,{jsonrpc:"2.0",id:a.id,result:et})).catch(et=>d(et,null))}}provider.SafeAppProvider=SafeAppProvider;(function(c){Object.defineProperty(c,"__esModule",{value:!0}),c.SafeAppProvider=void 0;var a=provider;Object.defineProperty(c,"SafeAppProvider",{enumerable:!0,get:function(){return a.SafeAppProvider}})})(dist);const safeAppsSDK=new SDK,waitAndError=c=>new Promise((a,d)=>setTimeout(d,c));let cachedSafeInfo;const getSafeInfo=async()=>(cachedSafeInfo!=null||(cachedSafeInfo=await safeAppsSDK.safe.getInfo(),console.log(cachedSafeInfo)),cachedSafeInfo),isConnectedToSafe=async()=>{try{const c=await Promise.race([waitAndError(300),getSafeInfo()]);return console.log(c),c!=null}catch{return!1}},getSafeAppsProvider=async()=>{const c=await getSafeInfo();if(!c.chainId)throw Error("Unsupported chain");return new BrowserProvider(new dist.SafeAppProvider(c,safeAppsSDK))},submitTxs=async c=>(await safeAppsSDK.txs.send({txs:c})).safeTxHash,PROTOCOL_CHAIN_ID=84531,getProvider=async()=>{var c;return await isConnectedToSafe()?(console.log("Use SafeAppsProvider"),await getSafeAppsProvider()):(console.log("Use JsonRpcProvider"),new JsonRpcProvider((c=NetworkUtil.getNetworkById(PROTOCOL_CHAIN_ID))==null?void 0:c.url))},getJsonRpcProvider=async c=>{var a,d;return console.log("Use JsonRpcProvider"),console.log((a=NetworkUtil.getNetworkById(parseInt(c)))==null?void 0:a.url),new JsonRpcProvider((d=NetworkUtil.getNetworkById(parseInt(c)))==null?void 0:d.url)},nav="_nav_mbz2l_1",wrapper="_wrapper_mbz2l_20",maincontainer="_maincontainer_mbz2l_31",network$1="_network_mbz2l_42",buttonContainer="_buttonContainer_mbz2l_49",container="_container_mbz2l_59",mode$1="_mode_mbz2l_68",root="_root_mbz2l_78",icon="_icon_mbz2l_85",iconLight="_iconLight_mbz2l_92",iconDark="_iconDark_mbz2l_97",classes$d={nav,wrapper,maincontainer,network:network$1,buttonContainer,container,mode:mode$1,root,icon,iconLight,iconDark},Head=c=>{const{colorScheme:a,toggleColorScheme:d}=useMantineColorScheme(),[et,nt]=reactExports.useState(""),[tt,bt]=reactExports.useState(84531),[gt,wt]=reactExports.useState(window.innerWidth<=768),St=a==="dark",Mt=useNavigate();return reactExports.useEffect(()=>{(async()=>{var Bt,kt;const _t=await getProvider(),{chainId:Tt}=await _t.getNetwork();bt(Tt),nt(`${(Bt=NetworkUtil.getNetworkById(parseInt(Tt)))==null?void 0:Bt.name} ${(kt=NetworkUtil.getNetworkById(parseInt(Tt)))==null?void 0:kt.type}`)})()},[window.innerWidth]),jsxRuntimeExports.jsx(AppShell.Header,{children:jsxRuntimeExports.jsx("div",{className:classes$d.wrapper,children:jsxRuntimeExports.jsxs(Group,{position:"apart",className:classes$d.maincontainer,children:[jsxRuntimeExports.jsx(Group,{className:classes$d.container,children:jsxRuntimeExports.jsx(Image$1,{onClick:()=>{Mt(RoutePath.home)},style:{cursor:"pointer",width:"220px"},src:St?LogoDark:LogoLight,alt:"Logo"})}),jsxRuntimeExports.jsxs(Group,{className:classes$d.mode,children:[gt?jsxRuntimeExports.jsx(KD,{size:30,stroke:1.5,onClick:()=>Mt(RoutePath.create),style:{cursor:"pointer"}}):jsxRuntimeExports.jsx(Button,{leftSection:jsxRuntimeExports.jsx(KD,{size:20}),onClick:()=>Mt(RoutePath.create),variant:"default",children:"Create a Drop"}),jsxRuntimeExports.jsx("div",{className:classes$d.container,children:St?jsxRuntimeExports.jsx(EAe,{size:24,stroke:1.5,onClick:()=>d(),style:{cursor:"pointer"}}):jsxRuntimeExports.jsx(Gme,{size:24,stroke:1.5,style:{cursor:"pointer"},onClick:()=>d()})})]})]})})})},AppLayout=c=>{const{children:a}=c,[d,et]=reactExports.useState(!1),{colorScheme:nt,toggleColorScheme:tt}=useMantineColorScheme(),bt=nt=="dark";return jsxRuntimeExports.jsxs(AppShell,{header:{height:60},padding:"md",styles:{main:{backgroundColor:bt?"var(--mantine-color-dark-9)":"var(--mantine-color-gray-0)"},header:{backgroundColor:bt?"var(--mantine-color-dark-7)":"var(--mantine-color-white)"}},children:[jsxRuntimeExports.jsx(Head,{setOpened:et,opened:d}),jsxRuntimeExports.jsxs(AppShell.Main,{children:[" ",jsxRuntimeExports.jsx(Container,{children:a})]})]})},homeContainer="_homeContainer_4uavj_2",avatar$1="_avatar_4uavj_10",avatarContainer$1="_avatarContainer_4uavj_17",safe="_safe_4uavj_26",safeContainer="_safeContainer_4uavj_33",formContainer$1="_formContainer_4uavj_41",heading$1="_heading_4uavj_48",actions$1="_actions_4uavj_61",links="_links_4uavj_71",subHeading$1="_subHeading_4uavj_79",inputContainer$1="_inputContainer_4uavj_85",selectGroup="_selectGroup_4uavj_96",btn$1="_btn_4uavj_102",helperText="_helperText_4uavj_120",mode="_mode_4uavj_124",successContainer="_successContainer_4uavj_134",network="_network_4uavj_144",copyContainer="_copyContainer_4uavj_153",goBack="_goBack_4uavj_159",input="_input_4uavj_85",classes$c={homeContainer,avatar:avatar$1,avatarContainer:avatarContainer$1,safe,safeContainer,formContainer:formContainer$1,heading:heading$1,actions:actions$1,links,subHeading:subHeading$1,inputContainer:inputContainer$1,selectGroup,btn:btn$1,helperText,mode,successContainer,network,copyContainer,goBack,input},Safe="/assets/safe-459a51bb.png",Coinbase="/assets/coinbase-3e244d2b.svg",Metamask="/assets/metamask-967b8115.svg";var dayjs_min={exports:{}};(function(c,a){(function(d,et){c.exports=et()})(commonjsGlobal,function(){var d=1e3,et=6e4,nt=36e5,tt="millisecond",bt="second",gt="minute",wt="hour",St="day",Mt="week",_t="month",Tt="quarter",Bt="year",kt="date",It="Invalid Date",Lt=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Ot=/\[([^\]]+)]|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,Nt={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(yt){var vt=["th","st","nd","rd"],Et=yt%100;return"["+yt+(vt[(Et-20)%10]||vt[Et]||vt[0])+"]"}},Ft=function(yt,vt,Et){var At=String(yt);return!At||At.length>=vt?yt:""+Array(vt+1-At.length).join(Et)+yt},zt={s:Ft,z:function(yt){var vt=-yt.utcOffset(),Et=Math.abs(vt),At=Math.floor(Et/60),Pt=Et%60;return(vt<=0?"+":"-")+Ft(At,2,"0")+":"+Ft(Pt,2,"0")},m:function yt(vt,Et){if(vt.date()1)return yt(ht[0])}else{var $t=vt.name;Jt[$t]=vt,Pt=$t}return!At&&Pt&&(Vt=Pt),Pt||!At&&Vt},lr=function(yt,vt){if(rr(yt))return yt.clone();var Et=typeof vt=="object"?vt:{};return Et.date=yt,Et.args=arguments,new dt(Et)},Ct=zt;Ct.l=er,Ct.i=rr,Ct.w=function(yt,vt){return lr(yt,{locale:vt.$L,utc:vt.$u,x:vt.$x,$offset:vt.$offset})};var dt=function(){function yt(Et){this.$L=er(Et.locale,null,!0),this.parse(Et),this.$x=this.$x||Et.x||{},this[ir]=!0}var vt=yt.prototype;return vt.parse=function(Et){this.$d=function(At){var Pt=At.date,xt=At.utc;if(Pt===null)return new Date(NaN);if(Ct.u(Pt))return new Date;if(Pt instanceof Date)return new Date(Pt);if(typeof Pt=="string"&&!/Z$/i.test(Pt)){var ht=Pt.match(Lt);if(ht){var $t=ht[2]-1||0,Rt=(ht[7]||"0").substring(0,3);return xt?new Date(Date.UTC(ht[1],$t,ht[3]||1,ht[4]||0,ht[5]||0,ht[6]||0,Rt)):new Date(ht[1],$t,ht[3]||1,ht[4]||0,ht[5]||0,ht[6]||0,Rt)}}return new Date(Pt)}(Et),this.init()},vt.init=function(){var Et=this.$d;this.$y=Et.getFullYear(),this.$M=Et.getMonth(),this.$D=Et.getDate(),this.$W=Et.getDay(),this.$H=Et.getHours(),this.$m=Et.getMinutes(),this.$s=Et.getSeconds(),this.$ms=Et.getMilliseconds()},vt.$utils=function(){return Ct},vt.isValid=function(){return this.$d.toString()!==It},vt.isSame=function(Et,At){var Pt=lr(Et);return this.startOf(At)<=Pt&&Pt<=this.endOf(At)},vt.isAfter=function(Et,At){return lr(Et)=nt[a][nt[a].length-1]?{levelIndex:a+1,rowIndex:0,cellIndex:et}:{levelIndex:a,rowIndex:d+1,cellIndex:et};case"left":return a===0&&d===0&&et===0?null:d===0&&et===0?{levelIndex:a-1,rowIndex:nt[a-1].length-1,cellIndex:nt[a-1][nt[a-1].length-1]-1}:et===0?{levelIndex:a,rowIndex:d-1,cellIndex:nt[a][d-1]-1}:{levelIndex:a,rowIndex:d,cellIndex:et-1};case"right":return d===nt[a].length-1&&et===nt[a][d]-1?{levelIndex:a+1,rowIndex:0,cellIndex:0}:et===nt[a][d]-1?{levelIndex:a,rowIndex:d+1,cellIndex:0}:{levelIndex:a,rowIndex:d,cellIndex:et+1};default:return{levelIndex:a,rowIndex:d,cellIndex:et}}}function focusOnNextFocusableControl({controlsRef:c,direction:a,levelIndex:d,rowIndex:et,cellIndex:nt,size:tt}){var wt,St,Mt;const bt=getNextIndex({direction:a,size:tt,rowIndex:et,cellIndex:nt,levelIndex:d});if(!bt)return;const gt=(Mt=(St=(wt=c.current)==null?void 0:wt[bt.levelIndex])==null?void 0:St[bt.rowIndex])==null?void 0:Mt[bt.cellIndex];gt&&(gt.disabled||gt.getAttribute("data-hidden")||gt.getAttribute("data-outside")?focusOnNextFocusableControl({controlsRef:c,direction:a,levelIndex:bt.levelIndex,cellIndex:bt.cellIndex,rowIndex:bt.rowIndex,size:tt}):gt.focus())}function getDirection(c){switch(c){case"ArrowDown":return"down";case"ArrowUp":return"up";case"ArrowRight":return"right";case"ArrowLeft":return"left";default:return null}}function getControlsSize(c){var a;return(a=c.current)==null?void 0:a.map(d=>d.map(et=>et.length))}function handleControlKeyDown({controlsRef:c,levelIndex:a,rowIndex:d,cellIndex:et,event:nt}){const tt=getDirection(nt.key);if(tt){nt.preventDefault();const bt=getControlsSize(c);focusOnNextFocusableControl({controlsRef:c,direction:tt,levelIndex:a,rowIndex:d,cellIndex:et,size:bt})}}function assignTime(c,a){if(!c||!a)return a;const d=c.getHours(),et=c.getMinutes(),nt=c.getSeconds(),tt=c.getMilliseconds(),bt=new Date(a);return bt.setHours(d),bt.setMinutes(et),bt.setSeconds(nt),bt.setMilliseconds(tt),bt}var timezone={exports:{}};(function(c,a){(function(d,et){c.exports=et()})(commonjsGlobal,function(){var d={year:0,month:1,day:2,hour:3,minute:4,second:5},et={};return function(nt,tt,bt){var gt,wt=function(Tt,Bt,kt){kt===void 0&&(kt={});var It=new Date(Tt),Lt=function(Ot,Nt){Nt===void 0&&(Nt={});var Ft=Nt.timeZoneName||"short",zt=Ot+"|"+Ft,Vt=et[zt];return Vt||(Vt=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:Ot,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:Ft}),et[zt]=Vt),Vt}(Bt,kt);return Lt.formatToParts(It)},St=function(Tt,Bt){for(var kt=wt(Tt,Bt),It=[],Lt=0;Lt=0&&(It[zt]=parseInt(Ft,10))}var Vt=It[3],Jt=Vt===24?0:Vt,ir=It[0]+"-"+It[1]+"-"+It[2]+" "+Jt+":"+It[4]+":"+It[5]+":000",rr=+Tt;return(bt.utc(ir).valueOf()-(rr-=rr%1e3))/6e4},Mt=tt.prototype;Mt.tz=function(Tt,Bt){Tt===void 0&&(Tt=gt);var kt=this.utcOffset(),It=this.toDate(),Lt=It.toLocaleString("en-US",{timeZone:Tt}),Ot=Math.round((It-new Date(Lt))/1e3/60),Nt=bt(Lt,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(It.getTimezoneOffset()/15)-Ot,!0);if(Bt){var Ft=Nt.utcOffset();Nt=Nt.add(kt-Ft,"minute")}return Nt.$x.$timezone=Tt,Nt},Mt.offsetName=function(Tt){var Bt=this.$x.$timezone||bt.tz.guess(),kt=wt(this.valueOf(),Bt,{timeZoneName:Tt}).find(function(It){return It.type.toLowerCase()==="timezonename"});return kt&&kt.value};var _t=Mt.startOf;Mt.startOf=function(Tt,Bt){if(!this.$x||!this.$x.$timezone)return _t.call(this,Tt,Bt);var kt=bt(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return _t.call(kt,Tt,Bt).tz(this.$x.$timezone,!0)},bt.tz=function(Tt,Bt,kt){var It=kt&&Bt,Lt=kt||Bt||gt,Ot=St(+bt(),Lt);if(typeof Tt!="string")return bt(Tt).tz(Lt);var Nt=function(Jt,ir,rr){var er=Jt-60*ir*1e3,lr=St(er,rr);if(ir===lr)return[er,ir];var Ct=St(er-=60*(lr-ir)*1e3,rr);return lr===Ct?[er,lr]:[Jt-60*Math.min(lr,Ct)*1e3,Math.max(lr,Ct)]}(bt.utc(Tt,It).valueOf(),Ot,Lt),Ft=Nt[0],zt=Nt[1],Vt=bt(Ft).utcOffset(zt);return Vt.$x.$timezone=Lt,Vt},bt.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},bt.tz.setDefault=function(Tt){gt=Tt}}})})(timezone);var timezoneExports=timezone.exports;const timezonePlugin=getDefaultExportFromCjs(timezoneExports);var utc={exports:{}};(function(c,a){(function(d,et){c.exports=et()})(commonjsGlobal,function(){var d="minute",et=/[+-]\d\d(?::?\d\d)?/g,nt=/([+-]|\d\d)/g;return function(tt,bt,gt){var wt=bt.prototype;gt.utc=function(It){var Lt={date:It,utc:!0,args:arguments};return new bt(Lt)},wt.utc=function(It){var Lt=gt(this.toDate(),{locale:this.$L,utc:!0});return It?Lt.add(this.utcOffset(),d):Lt},wt.local=function(){return gt(this.toDate(),{locale:this.$L,utc:!1})};var St=wt.parse;wt.parse=function(It){It.utc&&(this.$u=!0),this.$utils().u(It.$offset)||(this.$offset=It.$offset),St.call(this,It)};var Mt=wt.init;wt.init=function(){if(this.$u){var It=this.$d;this.$y=It.getUTCFullYear(),this.$M=It.getUTCMonth(),this.$D=It.getUTCDate(),this.$W=It.getUTCDay(),this.$H=It.getUTCHours(),this.$m=It.getUTCMinutes(),this.$s=It.getUTCSeconds(),this.$ms=It.getUTCMilliseconds()}else Mt.call(this)};var _t=wt.utcOffset;wt.utcOffset=function(It,Lt){var Ot=this.$utils().u;if(Ot(It))return this.$u?0:Ot(this.$offset)?_t.call(this):this.$offset;if(typeof It=="string"&&(It=function(Vt){Vt===void 0&&(Vt="");var Jt=Vt.match(et);if(!Jt)return null;var ir=(""+Jt[0]).match(nt)||["-",0,0],rr=ir[0],er=60*+ir[1]+ +ir[2];return er===0?0:rr==="+"?er:-er}(It),It===null))return this;var Nt=Math.abs(It)<=16?60*It:It,Ft=this;if(Lt)return Ft.$offset=Nt,Ft.$u=It===0,Ft;if(It!==0){var zt=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(Ft=this.local().add(Nt+zt,d)).$offset=Nt,Ft.$x.$localOffset=zt}else Ft=this.utc();return Ft};var Tt=wt.format;wt.format=function(It){var Lt=It||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return Tt.call(this,Lt)},wt.valueOf=function(){var It=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*It},wt.isUTC=function(){return!!this.$u},wt.toISOString=function(){return this.toDate().toISOString()},wt.toString=function(){return this.toDate().toUTCString()};var Bt=wt.toDate;wt.toDate=function(It){return It==="s"&&this.$offset?gt(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():Bt.call(this)};var kt=wt.diff;wt.diff=function(It,Lt,Ot){if(It&&this.$u===It.$u)return kt.call(this,It,Lt,Ot);var Nt=this.local(),Ft=gt(It).local();return kt.call(Nt,Ft,Lt,Ot)}}})})(utc);var utcExports=utc.exports;const utcPlugin=getDefaultExportFromCjs(utcExports);dayjs.extend(utcPlugin);dayjs.extend(timezonePlugin);function getTimezoneOffset(c,a){return a?dayjs(c).tz(a).utcOffset()+c.getTimezoneOffset():0}const updateTimezone=(c,a,d)=>{if(!c)return null;if(!a)return c;let et=getTimezoneOffset(c,a);return d==="remove"&&(et*=-1),dayjs(c).add(et,"minutes").toDate()};function shiftTimezone(c,a,d,et){return et||!a?a:Array.isArray(a)?a.map(nt=>updateTimezone(nt,d,c)):updateTimezone(a,d,c)}const DATES_PROVIDER_DEFAULT_SETTINGS={locale:"en",timezone:null,firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:"–",consistentWeeks:!1},DatesProviderContext=reactExports.createContext(DATES_PROVIDER_DEFAULT_SETTINGS);function useDatesContext(){const c=reactExports.useContext(DatesProviderContext),a=reactExports.useCallback(bt=>bt||c.locale,[c.locale]),d=reactExports.useCallback(bt=>bt||c.timezone||void 0,[c.timezone]),et=reactExports.useCallback(bt=>typeof bt=="number"?bt:c.firstDayOfWeek,[c.firstDayOfWeek]),nt=reactExports.useCallback(bt=>Array.isArray(bt)?bt:c.weekendDays,[c.weekendDays]),tt=reactExports.useCallback(bt=>typeof bt=="string"?bt:c.labelSeparator,[c.labelSeparator]);return{...c,getLocale:a,getTimezone:d,getFirstDayOfWeek:et,getWeekendDays:nt,getLabelSeparator:tt}}function formatValue(c,a){if(a==="range"&&Array.isArray(c)){const[d,et]=c;return d?et?`${d.toISOString()} – ${et.toISOString()}`:`${d.toISOString()} –`:""}return a==="multiple"&&Array.isArray(c)?c.map(d=>d==null?void 0:d.toISOString()).filter(Boolean).join(", "):!Array.isArray(c)&&c?c.toISOString():""}function HiddenDatesInput({value:c,type:a,name:d,form:et}){return React.createElement("input",{type:"hidden",value:formatValue(c,a),name:d,form:et})}HiddenDatesInput.displayName="@mantine/dates/HiddenDatesInput";var classes$b={input:"m_468e7eda"};const defaultProps$i={},TimeInput=factory((c,a)=>{const d=useProps("TimeInput",defaultProps$i,c),{classNames:et,styles:nt,unstyled:tt,vars:bt,withSeconds:gt,minTime:wt,maxTime:St,value:Mt,onChange:_t,...Tt}=d,{resolvedClassNames:Bt,resolvedStyles:kt}=useResolvedStylesApi({classNames:et,styles:nt,props:d}),It=Ot=>{if(wt!==void 0||St!==void 0){const[Nt,Ft,zt]=Ot.split(":").map(Number);if(wt){const[Vt,Jt,ir]=wt.split(":").map(Number);if(NtVt||Nt===Vt&&Ft>Jt||gt&&Nt===Vt&&Ft===Jt&&zt>ir)return 1}}return 0},Lt=Ot=>{var Nt,Ft,zt;if((Nt=d.onBlur)==null||Nt.call(d,Ot),wt!==void 0||St!==void 0){const Vt=Ot.currentTarget.value;if(Vt){const Jt=It(Vt);Jt===1?(Ot.currentTarget.value=St,(Ft=d.onChange)==null||Ft.call(d,Ot)):Jt===-1&&(Ot.currentTarget.value=wt,(zt=d.onChange)==null||zt.call(d,Ot))}}};return React.createElement(InputBase,{classNames:{...Bt,input:clsx(classes$b.input,Bt==null?void 0:Bt.input)},styles:kt,unstyled:tt,ref:a,value:Mt,...Tt,step:gt?1:60,onChange:_t,onBlur:Lt,type:"time",__staticSelector:"TimeInput"})});TimeInput.classes=InputBase.classes;TimeInput.displayName="@mantine/dates/TimeInput";var classes$a={day:"m_396ce5cb"};const defaultProps$h={},varsResolver$3=(c,{size:a})=>({day:{"--day-size":getSize(a,"day-size")}}),Day=factory((c,a)=>{const d=useProps("Day",defaultProps$h,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,date:St,disabled:Mt,__staticSelector:_t,weekend:Tt,outside:Bt,selected:kt,renderDay:It,inRange:Lt,firstInRange:Ot,lastInRange:Nt,hidden:Ft,static:zt,...Vt}=d,Jt=useStyles({name:_t||"Day",classes:classes$a,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$3,rootSelector:"day"}),ir=useDatesContext();return React.createElement(UnstyledButton,{...Jt("day",{style:Ft?{display:"none"}:void 0}),component:zt?"div":"button",ref:a,disabled:Mt,"data-today":dayjs(St).isSame(shiftTimezone("add",new Date,ir.getTimezone()),"day")||void 0,"data-hidden":Ft||void 0,"data-disabled":Mt||void 0,"data-weekend":!Mt&&!Bt&&Tt||void 0,"data-outside":!Mt&&Bt||void 0,"data-selected":!Mt&&kt||void 0,"data-in-range":Lt&&!Mt||void 0,"data-first-in-range":Ot&&!Mt||void 0,"data-last-in-range":Nt&&!Mt||void 0,"data-static":zt||void 0,unstyled:gt,...Vt},(It==null?void 0:It(St))||St.getDate())});Day.classes=classes$a;Day.displayName="@mantine/dates/Day";function getWeekdayNames({locale:c,format:a="dd",firstDayOfWeek:d=1}){const et=dayjs().day(d),nt=[];for(let tt=0;tt<7;tt+=1)typeof a=="string"?nt.push(dayjs(et).add(tt,"days").locale(c).format(a)):nt.push(a(dayjs(et).add(tt,"days").toDate()));return nt}var classes$9={weekday:"m_18a3eca"};const defaultProps$g={},varsResolver$2=(c,{size:a})=>({weekdaysRow:{"--wr-fz":getFontSize(a),"--wr-spacing":getSpacing(a)}}),WeekdaysRow=factory((c,a)=>{const d=useProps("WeekdaysRow",defaultProps$g,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,locale:St,firstDayOfWeek:Mt,weekdayFormat:_t,cellComponent:Tt="th",__staticSelector:Bt,...kt}=d,It=useStyles({name:Bt||"WeekdaysRow",classes:classes$9,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$2,rootSelector:"weekdaysRow"}),Lt=useDatesContext(),Ot=getWeekdayNames({locale:Lt.getLocale(St),format:_t,firstDayOfWeek:Lt.getFirstDayOfWeek(Mt)}).map((Nt,Ft)=>React.createElement(Tt,{key:Ft,...It("weekday")},Nt));return React.createElement(Box,{component:"tr",ref:a,...It("weekdaysRow"),...kt},Ot)});WeekdaysRow.classes=classes$9;WeekdaysRow.displayName="@mantine/dates/WeekdaysRow";function getEndOfWeek(c,a=1){const d=new Date(c),et=a===0?6:a-1;for(;d.getDay()!==et;)d.setDate(d.getDate()+1);return d}function getStartOfWeek(c,a=1){const d=new Date(c);for(;d.getDay()!==a;)d.setDate(d.getDate()-1);return d}function getMonthDays({month:c,firstDayOfWeek:a=1,consistentWeeks:d}){const et=c.getMonth(),nt=new Date(c.getFullYear(),et,1),tt=new Date(c.getFullYear(),c.getMonth()+1,0),bt=getEndOfWeek(tt,a),gt=getStartOfWeek(nt,a),wt=[];for(;gt<=bt;){const St=[];for(let Mt=0;Mt<7;Mt+=1)St.push(new Date(gt)),gt.setDate(gt.getDate()+1);wt.push(St)}if(d&&wt.length<6){const St=wt[wt.length-1],Mt=St[St.length-1],_t=new Date(Mt);for(_t.setDate(_t.getDate()+1);wt.length<6;){const Tt=[];for(let Bt=0;Bt<7;Bt+=1)Tt.push(new Date(_t)),_t.setDate(_t.getDate()+1);wt.push(Tt)}}return wt}function isSameMonth(c,a){return c.getFullYear()===a.getFullYear()&&c.getMonth()===a.getMonth()}function isAfterMinDate(c,a){return a instanceof Date?dayjs(c).isAfter(dayjs(a).subtract(1,"day"),"day"):!0}function isBeforeMaxDate(c,a){return a instanceof Date?dayjs(c).isBefore(dayjs(a).add(1,"day"),"day"):!0}function getDateInTabOrder(c,a,d,et,nt,tt,bt){const gt=c.flat().filter(Mt=>{var _t;return isBeforeMaxDate(Mt,d)&&isAfterMinDate(Mt,a)&&!(nt!=null&&nt(Mt))&&!((_t=et==null?void 0:et(Mt))!=null&&_t.disabled)&&(!tt||isSameMonth(Mt,bt))}),wt=gt.find(Mt=>{var _t;return(_t=et==null?void 0:et(Mt))==null?void 0:_t.selected});if(wt)return wt;const St=gt.find(Mt=>dayjs().isSame(Mt,"date"));return St||gt[0]}var classes$8={month:"m_cc9820d3",monthCell:"m_8f457cd5"};const defaultProps$f={withCellSpacing:!0},Month=factory((c,a)=>{const d=useProps("Month",defaultProps$f,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,__staticSelector:St,locale:Mt,firstDayOfWeek:_t,weekdayFormat:Tt,month:Bt,weekendDays:kt,getDayProps:It,excludeDate:Lt,minDate:Ot,maxDate:Nt,renderDay:Ft,hideOutsideDates:zt,hideWeekdays:Vt,getDayAriaLabel:Jt,static:ir,__getDayRef:rr,__onDayKeyDown:er,__onDayClick:lr,__onDayMouseEnter:Ct,__preventFocus:dt,__stopPropagation:mt,withCellSpacing:yt,size:vt,...Et}=d,At=useStyles({name:St||"Month",classes:classes$8,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,rootSelector:"month"}),Pt=useDatesContext(),xt=getMonthDays({month:Bt,firstDayOfWeek:Pt.getFirstDayOfWeek(_t),consistentWeeks:Pt.consistentWeeks}),ht=getDateInTabOrder(xt,Ot,Nt,It,Lt,zt,Bt),{resolvedClassNames:$t,resolvedStyles:Rt}=useResolvedStylesApi({classNames:et,styles:bt,props:d}),Dt=xt.map((Ht,tr)=>{const Xt=Ht.map((Ut,qt)=>{const Gt=!isSameMonth(Ut,Bt),Zt=(Jt==null?void 0:Jt(Ut))||dayjs(Ut).locale(Mt||Pt.locale).format("D MMMM YYYY"),Yt=It==null?void 0:It(Ut),Kt=dayjs(Ut).isSame(ht,"date");return React.createElement("td",{key:Ut.toString(),...At("monthCell"),"data-with-spacing":yt||void 0},React.createElement(Day,{__staticSelector:St||"Month",classNames:$t,styles:Rt,unstyled:gt,"data-mantine-stop-propagation":mt||void 0,renderDay:Ft,date:Ut,size:vt,weekend:Pt.getWeekendDays(kt).includes(Ut.getDay()),outside:Gt,hidden:zt?Gt:!1,"aria-label":Zt,static:ir,disabled:(Lt==null?void 0:Lt(Ut))||!isBeforeMaxDate(Ut,Nt)||!isAfterMinDate(Ut,Ot),ref:ar=>rr==null?void 0:rr(tr,qt,ar),...Yt,onKeyDown:ar=>{var gr;(gr=Yt==null?void 0:Yt.onKeyDown)==null||gr.call(Yt,ar),er==null||er(ar,{rowIndex:tr,cellIndex:qt,date:Ut})},onMouseEnter:ar=>{var gr;(gr=Yt==null?void 0:Yt.onMouseEnter)==null||gr.call(Yt,ar),Ct==null||Ct(ar,Ut)},onClick:ar=>{var gr;(gr=Yt==null?void 0:Yt.onClick)==null||gr.call(Yt,ar),lr==null||lr(ar,Ut)},onMouseDown:ar=>{var gr;(gr=Yt==null?void 0:Yt.onMouseDown)==null||gr.call(Yt,ar),dt&&ar.preventDefault()},tabIndex:dt||!Kt?-1:0}))});return React.createElement("tr",{key:tr,...At("monthRow")},Xt)});return React.createElement(Box,{component:"table",...At("month"),size:vt,ref:a,...Et},!Vt&&React.createElement("thead",{...At("monthThead")},React.createElement(WeekdaysRow,{__staticSelector:St||"Month",locale:Mt,firstDayOfWeek:_t,weekdayFormat:Tt,size:vt,classNames:$t,styles:Rt,unstyled:gt})),React.createElement("tbody",{...At("monthTbody")},Dt))});Month.classes=classes$8;Month.displayName="@mantine/dates/Month";var classes$7={pickerControl:"m_dc6a3c71"};const defaultProps$e={},varsResolver$1=(c,{size:a})=>({pickerControl:{"--dpc-fz":getFontSize(a),"--dpc-size":getSize(a,"dpc-size")}}),PickerControl=factory((c,a)=>{const d=useProps("PickerControl",defaultProps$e,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,firstInRange:St,lastInRange:Mt,inRange:_t,__staticSelector:Tt,selected:Bt,disabled:kt,...It}=d,Lt=useStyles({name:Tt||"PickerControl",classes:classes$7,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$1,rootSelector:"pickerControl"});return React.createElement(UnstyledButton,{...Lt("pickerControl"),ref:a,unstyled:gt,"data-picker-control":!0,"data-selected":Bt&&!kt||void 0,"data-disabled":kt||void 0,"data-in-range":_t&&!kt&&!Bt||void 0,"data-first-in-range":St&&!kt||void 0,"data-last-in-range":Mt&&!kt||void 0,disabled:kt,...It})});PickerControl.classes=classes$7;PickerControl.displayName="@mantine/dates/PickerControl";function isYearDisabled(c,a,d){return!a&&!d?!1:!!(a&&dayjs(c).isBefore(a,"year")||d&&dayjs(c).isAfter(d,"year"))}function getYearInTabOrder(c,a,d,et){const nt=c.flat().filter(gt=>{var wt;return!isYearDisabled(gt,a,d)&&!((wt=et==null?void 0:et(gt))!=null&&wt.disabled)}),tt=nt.find(gt=>{var wt;return(wt=et==null?void 0:et(gt))==null?void 0:wt.selected});if(tt)return tt;const bt=nt.find(gt=>dayjs().isSame(gt,"year"));return bt||nt[0]}function getYearsData(c){const a=c.getFullYear(),d=a-a%10;let et=0;const nt=[[],[],[],[]];for(let tt=0;tt<4;tt+=1){const bt=tt===3?1:3;for(let gt=0;gt{const d=useProps("YearsList",defaultProps$d,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,decade:St,yearsListFormat:Mt,locale:_t,minDate:Tt,maxDate:Bt,getYearControlProps:kt,__staticSelector:It,__getControlRef:Lt,__onControlKeyDown:Ot,__onControlClick:Nt,__onControlMouseEnter:Ft,__preventFocus:zt,__stopPropagation:Vt,withCellSpacing:Jt,size:ir,...rr}=d,er=useStyles({name:It||"YearsList",classes:classes$6,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,rootSelector:"yearsList"}),lr=useDatesContext(),Ct=getYearsData(St),dt=getYearInTabOrder(Ct,Tt,Bt,kt),mt=Ct.map((yt,vt)=>{const Et=yt.map((At,Pt)=>{const xt=kt==null?void 0:kt(At),ht=dayjs(At).isSame(dt,"year");return React.createElement("td",{key:Pt,...er("yearsListCell"),"data-with-spacing":Jt||void 0},React.createElement(PickerControl,{...er("yearsListControl"),size:ir,unstyled:gt,"data-mantine-stop-propagation":Vt||void 0,disabled:isYearDisabled(At,Tt,Bt),ref:$t=>Lt==null?void 0:Lt(vt,Pt,$t),...xt,onKeyDown:$t=>{var Rt;(Rt=xt==null?void 0:xt.onKeyDown)==null||Rt.call(xt,$t),Ot==null||Ot($t,{rowIndex:vt,cellIndex:Pt,date:At})},onClick:$t=>{var Rt;(Rt=xt==null?void 0:xt.onClick)==null||Rt.call(xt,$t),Nt==null||Nt($t,At)},onMouseEnter:$t=>{var Rt;(Rt=xt==null?void 0:xt.onMouseEnter)==null||Rt.call(xt,$t),Ft==null||Ft($t,At)},onMouseDown:$t=>{var Rt;(Rt=xt==null?void 0:xt.onMouseDown)==null||Rt.call(xt,$t),zt&&$t.preventDefault()},tabIndex:zt||!ht?-1:0},dayjs(At).locale(lr.getLocale(_t)).format(Mt)))});return React.createElement("tr",{key:vt,...er("yearsListRow")},Et)});return React.createElement(Box,{component:"table",ref:a,size:ir,...er("yearsList"),...rr},React.createElement("tbody",null,mt))});YearsList.classes=classes$6;YearsList.displayName="@mantine/dates/YearsList";function isMonthDisabled(c,a,d){return!a&&!d?!1:!!(a&&dayjs(c).isBefore(a,"month")||d&&dayjs(c).isAfter(d,"month"))}function getMonthInTabOrder(c,a,d,et){const nt=c.flat().filter(gt=>{var wt;return!isMonthDisabled(gt,a,d)&&!((wt=et==null?void 0:et(gt))!=null&&wt.disabled)}),tt=nt.find(gt=>{var wt;return(wt=et==null?void 0:et(gt))==null?void 0:wt.selected});if(tt)return tt;const bt=nt.find(gt=>dayjs().isSame(gt,"month"));return bt||nt[0]}function getMonthsData(c){const a=dayjs(c).startOf("year").toDate(),d=[[],[],[],[]];let et=0;for(let nt=0;nt<4;nt+=1)for(let tt=0;tt<3;tt+=1)d[nt].push(dayjs(a).add(et,"months").toDate()),et+=1;return d}var classes$5={monthsList:"m_2a6c32d",monthsListCell:"m_fe27622f"};const defaultProps$c={monthsListFormat:"MMM",withCellSpacing:!0},MonthsList=factory((c,a)=>{const d=useProps("MonthsList",defaultProps$c,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,__staticSelector:St,year:Mt,monthsListFormat:_t,locale:Tt,minDate:Bt,maxDate:kt,getMonthControlProps:It,__getControlRef:Lt,__onControlKeyDown:Ot,__onControlClick:Nt,__onControlMouseEnter:Ft,__preventFocus:zt,__stopPropagation:Vt,withCellSpacing:Jt,size:ir,...rr}=d,er=useStyles({name:St||"MonthsList",classes:classes$5,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,rootSelector:"monthsList"}),lr=useDatesContext(),Ct=getMonthsData(Mt),dt=getMonthInTabOrder(Ct,Bt,kt,It),mt=Ct.map((yt,vt)=>{const Et=yt.map((At,Pt)=>{const xt=It==null?void 0:It(At),ht=dayjs(At).isSame(dt,"month");return React.createElement("td",{key:Pt,...er("monthsListCell"),"data-with-spacing":Jt||void 0},React.createElement(PickerControl,{...er("monthsListControl"),size:ir,unstyled:gt,__staticSelector:St||"MonthsList","data-mantine-stop-propagation":Vt||void 0,disabled:isMonthDisabled(At,Bt,kt),ref:$t=>Lt==null?void 0:Lt(vt,Pt,$t),...xt,onKeyDown:$t=>{var Rt;(Rt=xt==null?void 0:xt.onKeyDown)==null||Rt.call(xt,$t),Ot==null||Ot($t,{rowIndex:vt,cellIndex:Pt,date:At})},onClick:$t=>{var Rt;(Rt=xt==null?void 0:xt.onClick)==null||Rt.call(xt,$t),Nt==null||Nt($t,At)},onMouseEnter:$t=>{var Rt;(Rt=xt==null?void 0:xt.onMouseEnter)==null||Rt.call(xt,$t),Ft==null||Ft($t,At)},onMouseDown:$t=>{var Rt;(Rt=xt==null?void 0:xt.onMouseDown)==null||Rt.call(xt,$t),zt&&$t.preventDefault()},tabIndex:zt||!ht?-1:0},dayjs(At).locale(lr.getLocale(Tt)).format(_t)))});return React.createElement("tr",{key:vt,...er("monthsListRow")},Et)});return React.createElement(Box,{component:"table",ref:a,size:ir,...er("monthsList"),...rr},React.createElement("tbody",null,mt))});MonthsList.classes=classes$5;MonthsList.displayName="@mantine/dates/MonthsList";var classes$4={calendarHeader:"m_730a79ed",calendarHeaderLevel:"m_f6645d97",calendarHeaderControl:"m_2351eeb0",calendarHeaderControlIcon:"m_367dc749"};const defaultProps$b={nextDisabled:!1,previousDisabled:!1,hasNextLevel:!0,withNext:!0,withPrevious:!0},varsResolver=(c,{size:a})=>({calendarHeader:{"--dch-control-size":getSize(a,"dch-control-size"),"--dch-fz":getFontSize(a)}}),CalendarHeader=factory((c,a)=>{const d=useProps("CalendarHeader",defaultProps$b,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,nextIcon:St,previousIcon:Mt,nextLabel:_t,previousLabel:Tt,onNext:Bt,onPrevious:kt,onLevelClick:It,label:Lt,nextDisabled:Ot,previousDisabled:Nt,hasNextLevel:Ft,levelControlAriaLabel:zt,withNext:Vt,withPrevious:Jt,__staticSelector:ir,__preventFocus:rr,__stopPropagation:er,...lr}=d,Ct=useStyles({name:ir||"CalendarHeader",classes:classes$4,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver,rootSelector:"calendarHeader"}),dt=rr?mt=>mt.preventDefault():void 0;return React.createElement(Box,{...Ct("calendarHeader"),ref:a,...lr},Jt&&React.createElement(UnstyledButton,{...Ct("calendarHeaderControl"),"data-direction":"previous","aria-label":Tt,onClick:kt,unstyled:gt,onMouseDown:dt,disabled:Nt,"data-disabled":Nt||void 0,tabIndex:rr||Nt?-1:0,"data-mantine-stop-propagation":er||void 0},Mt||React.createElement(AccordionChevron,{...Ct("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})),React.createElement(UnstyledButton,{component:Ft?"button":"div",...Ct("calendarHeaderLevel"),onClick:Ft?It:void 0,unstyled:gt,onMouseDown:Ft?dt:void 0,disabled:!Ft,"data-static":!Ft||void 0,"aria-label":zt,tabIndex:rr||!Ft?-1:0,"data-mantine-stop-propagation":er||void 0},Lt),Vt&&React.createElement(UnstyledButton,{...Ct("calendarHeaderControl"),"data-direction":"next","aria-label":_t,onClick:Bt,unstyled:gt,onMouseDown:dt,disabled:Ot,"data-disabled":Ot||void 0,tabIndex:rr||Ot?-1:0,"data-mantine-stop-propagation":er||void 0},St||React.createElement(AccordionChevron,{...Ct("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})))});CalendarHeader.classes=classes$4;CalendarHeader.displayName="@mantine/dates/CalendarHeader";function getDecadeRange(c){const a=getYearsData(c);return[a[0][0],a[3][0]]}const defaultProps$a={decadeLabelFormat:"YYYY"},DecadeLevel=factory((c,a)=>{const d=useProps("DecadeLevel",defaultProps$a,c),{decade:et,locale:nt,minDate:tt,maxDate:bt,yearsListFormat:gt,getYearControlProps:wt,__getControlRef:St,__onControlKeyDown:Mt,__onControlClick:_t,__onControlMouseEnter:Tt,withCellSpacing:Bt,__preventFocus:kt,nextIcon:It,previousIcon:Lt,nextLabel:Ot,previousLabel:Nt,onNext:Ft,onPrevious:zt,nextDisabled:Vt,previousDisabled:Jt,levelControlAriaLabel:ir,withNext:rr,withPrevious:er,decadeLabelFormat:lr,classNames:Ct,styles:dt,unstyled:mt,__staticSelector:yt,__stopPropagation:vt,size:Et,...At}=d,Pt=useDatesContext(),[xt,ht]=getDecadeRange(et),$t={__staticSelector:yt||"DecadeLevel",classNames:Ct,styles:dt,unstyled:mt,size:Et},Rt=typeof Vt=="boolean"?Vt:bt?!dayjs(ht).endOf("year").isBefore(bt):!1,Dt=typeof Jt=="boolean"?Jt:tt?!dayjs(xt).startOf("year").isAfter(tt):!1,Ht=(tr,Xt)=>dayjs(tr).locale(nt||Pt.locale).format(Xt);return React.createElement(Box,{"data-decade-level":!0,size:Et,ref:a,...At},React.createElement(CalendarHeader,{label:typeof lr=="function"?lr(xt,ht):`${Ht(xt,lr)} – ${Ht(ht,lr)}`,__preventFocus:kt,__stopPropagation:vt,nextIcon:It,previousIcon:Lt,nextLabel:Ot,previousLabel:Nt,onNext:Ft,onPrevious:zt,nextDisabled:Rt,previousDisabled:Dt,hasNextLevel:!1,levelControlAriaLabel:ir,withNext:rr,withPrevious:er,...$t}),React.createElement(YearsList,{decade:et,locale:nt,minDate:tt,maxDate:bt,yearsListFormat:gt,getYearControlProps:wt,__getControlRef:St,__onControlKeyDown:Mt,__onControlClick:_t,__onControlMouseEnter:Tt,__preventFocus:kt,__stopPropagation:vt,withCellSpacing:Bt,...$t}))});DecadeLevel.classes={...YearsList.classes,...CalendarHeader.classes};DecadeLevel.displayName="@mantine/dates/DecadeLevel";const defaultProps$9={yearLabelFormat:"YYYY"},YearLevel=factory((c,a)=>{const d=useProps("YearLevel",defaultProps$9,c),{year:et,locale:nt,minDate:tt,maxDate:bt,monthsListFormat:gt,getMonthControlProps:wt,__getControlRef:St,__onControlKeyDown:Mt,__onControlClick:_t,__onControlMouseEnter:Tt,withCellSpacing:Bt,__preventFocus:kt,nextIcon:It,previousIcon:Lt,nextLabel:Ot,previousLabel:Nt,onNext:Ft,onPrevious:zt,onLevelClick:Vt,nextDisabled:Jt,previousDisabled:ir,hasNextLevel:rr,levelControlAriaLabel:er,withNext:lr,withPrevious:Ct,yearLabelFormat:dt,__staticSelector:mt,__stopPropagation:yt,size:vt,classNames:Et,styles:At,unstyled:Pt,...xt}=d,ht=useDatesContext(),$t={__staticSelector:mt||"YearLevel",classNames:Et,styles:At,unstyled:Pt,size:vt},Rt=typeof Jt=="boolean"?Jt:bt?!dayjs(et).endOf("year").isBefore(bt):!1,Dt=typeof ir=="boolean"?ir:tt?!dayjs(et).startOf("year").isAfter(tt):!1;return React.createElement(Box,{"data-year-level":!0,size:vt,ref:a,...xt},React.createElement(CalendarHeader,{label:typeof dt=="function"?dt(et):dayjs(et).locale(nt||ht.locale).format(dt),__preventFocus:kt,__stopPropagation:yt,nextIcon:It,previousIcon:Lt,nextLabel:Ot,previousLabel:Nt,onNext:Ft,onPrevious:zt,onLevelClick:Vt,nextDisabled:Rt,previousDisabled:Dt,hasNextLevel:rr,levelControlAriaLabel:er,withNext:lr,withPrevious:Ct,...$t}),React.createElement(MonthsList,{year:et,locale:nt,minDate:tt,maxDate:bt,monthsListFormat:gt,getMonthControlProps:wt,__getControlRef:St,__onControlKeyDown:Mt,__onControlClick:_t,__onControlMouseEnter:Tt,__preventFocus:kt,__stopPropagation:yt,withCellSpacing:Bt,...$t}))});YearLevel.classes={...CalendarHeader.classes,...MonthsList.classes};YearLevel.displayName="@mantine/dates/YearLevel";const defaultProps$8={monthLabelFormat:"MMMM YYYY"},MonthLevel=factory((c,a)=>{const d=useProps("MonthLevel",defaultProps$8,c),{month:et,locale:nt,firstDayOfWeek:tt,weekdayFormat:bt,weekendDays:gt,getDayProps:wt,excludeDate:St,minDate:Mt,maxDate:_t,renderDay:Tt,hideOutsideDates:Bt,hideWeekdays:kt,getDayAriaLabel:It,__getDayRef:Lt,__onDayKeyDown:Ot,__onDayClick:Nt,__onDayMouseEnter:Ft,withCellSpacing:zt,__preventFocus:Vt,__stopPropagation:Jt,nextIcon:ir,previousIcon:rr,nextLabel:er,previousLabel:lr,onNext:Ct,onPrevious:dt,onLevelClick:mt,nextDisabled:yt,previousDisabled:vt,hasNextLevel:Et,levelControlAriaLabel:At,withNext:Pt,withPrevious:xt,monthLabelFormat:ht,classNames:$t,styles:Rt,unstyled:Dt,__staticSelector:Ht,size:tr,static:Xt,...Ut}=d,qt=useDatesContext(),Gt={__staticSelector:Ht||"MonthLevel",classNames:$t,styles:Rt,unstyled:Dt,size:tr},Zt=typeof yt=="boolean"?yt:_t?!dayjs(et).endOf("month").isBefore(_t):!1,Yt=typeof vt=="boolean"?vt:Mt?!dayjs(et).startOf("month").isAfter(Mt):!1;return React.createElement(Box,{"data-month-level":!0,size:tr,ref:a,...Ut},React.createElement(CalendarHeader,{label:typeof ht=="function"?ht(et):dayjs(et).locale(nt||qt.locale).format(ht),__preventFocus:Vt,__stopPropagation:Jt,nextIcon:ir,previousIcon:rr,nextLabel:er,previousLabel:lr,onNext:Ct,onPrevious:dt,onLevelClick:mt,nextDisabled:Zt,previousDisabled:Yt,hasNextLevel:Et,levelControlAriaLabel:At,withNext:Pt,withPrevious:xt,...Gt}),React.createElement(Month,{month:et,locale:nt,firstDayOfWeek:tt,weekdayFormat:bt,weekendDays:gt,getDayProps:wt,excludeDate:St,minDate:Mt,maxDate:_t,renderDay:Tt,hideOutsideDates:Bt,hideWeekdays:kt,getDayAriaLabel:It,__getDayRef:Lt,__onDayKeyDown:Ot,__onDayClick:Nt,__onDayMouseEnter:Ft,__preventFocus:Vt,__stopPropagation:Jt,static:Xt,withCellSpacing:zt,...Gt}))});MonthLevel.classes={...Month.classes,...CalendarHeader.classes};MonthLevel.displayName="@mantine/dates/MonthLevel";var classes$3={levelsGroup:"m_30b26e33"};const defaultProps$7={},LevelsGroup=factory((c,a)=>{const d=useProps("LevelsGroup",defaultProps$7,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,__staticSelector:St,...Mt}=d,_t=useStyles({name:St||"LevelsGroup",classes:classes$3,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,rootSelector:"levelsGroup"});return React.createElement(Box,{ref:a,..._t("levelsGroup"),...Mt})});LevelsGroup.classes=classes$3;LevelsGroup.displayName="@mantine/dates/LevelsGroup";const defaultProps$6={numberOfColumns:1},DecadeLevelGroup=factory((c,a)=>{const d=useProps("DecadeLevelGroup",defaultProps$6,c),{decade:et,locale:nt,minDate:tt,maxDate:bt,yearsListFormat:gt,getYearControlProps:wt,__onControlClick:St,__onControlMouseEnter:Mt,withCellSpacing:_t,__preventFocus:Tt,nextIcon:Bt,previousIcon:kt,nextLabel:It,previousLabel:Lt,onNext:Ot,onPrevious:Nt,nextDisabled:Ft,previousDisabled:zt,classNames:Vt,styles:Jt,unstyled:ir,__staticSelector:rr,__stopPropagation:er,numberOfColumns:lr,levelControlAriaLabel:Ct,decadeLabelFormat:dt,size:mt,vars:yt,...vt}=d,Et=reactExports.useRef([]),At=Array(lr).fill(0).map((Pt,xt)=>{const ht=dayjs(et).add(xt*10,"years").toDate();return React.createElement(DecadeLevel,{key:xt,size:mt,yearsListFormat:gt,decade:ht,withNext:xt===lr-1,withPrevious:xt===0,decadeLabelFormat:dt,__onControlClick:St,__onControlMouseEnter:Mt,__onControlKeyDown:($t,Rt)=>handleControlKeyDown({levelIndex:xt,rowIndex:Rt.rowIndex,cellIndex:Rt.cellIndex,event:$t,controlsRef:Et}),__getControlRef:($t,Rt,Dt)=>{Array.isArray(Et.current[xt])||(Et.current[xt]=[]),Array.isArray(Et.current[xt][$t])||(Et.current[xt][$t]=[]),Et.current[xt][$t][Rt]=Dt},levelControlAriaLabel:typeof Ct=="function"?Ct(ht):Ct,locale:nt,minDate:tt,maxDate:bt,__preventFocus:Tt,__stopPropagation:er,nextIcon:Bt,previousIcon:kt,nextLabel:It,previousLabel:Lt,onNext:Ot,onPrevious:Nt,nextDisabled:Ft,previousDisabled:zt,getYearControlProps:wt,__staticSelector:rr||"DecadeLevelGroup",classNames:Vt,styles:Jt,unstyled:ir,withCellSpacing:_t})});return React.createElement(LevelsGroup,{classNames:Vt,styles:Jt,__staticSelector:rr||"DecadeLevelGroup",ref:a,size:mt,unstyled:ir,...vt},At)});DecadeLevelGroup.classes={...LevelsGroup.classes,...DecadeLevel.classes};DecadeLevelGroup.displayName="@mantine/dates/DecadeLevelGroup";const defaultProps$5={numberOfColumns:1},YearLevelGroup=factory((c,a)=>{const d=useProps("YearLevelGroup",defaultProps$5,c),{year:et,locale:nt,minDate:tt,maxDate:bt,monthsListFormat:gt,getMonthControlProps:wt,__onControlClick:St,__onControlMouseEnter:Mt,withCellSpacing:_t,__preventFocus:Tt,nextIcon:Bt,previousIcon:kt,nextLabel:It,previousLabel:Lt,onNext:Ot,onPrevious:Nt,onLevelClick:Ft,nextDisabled:zt,previousDisabled:Vt,hasNextLevel:Jt,classNames:ir,styles:rr,unstyled:er,__staticSelector:lr,__stopPropagation:Ct,numberOfColumns:dt,levelControlAriaLabel:mt,yearLabelFormat:yt,size:vt,vars:Et,...At}=d,Pt=reactExports.useRef([]),xt=Array(dt).fill(0).map((ht,$t)=>{const Rt=dayjs(et).add($t,"years").toDate();return React.createElement(YearLevel,{key:$t,size:vt,monthsListFormat:gt,year:Rt,withNext:$t===dt-1,withPrevious:$t===0,yearLabelFormat:yt,__stopPropagation:Ct,__onControlClick:St,__onControlMouseEnter:Mt,__onControlKeyDown:(Dt,Ht)=>handleControlKeyDown({levelIndex:$t,rowIndex:Ht.rowIndex,cellIndex:Ht.cellIndex,event:Dt,controlsRef:Pt}),__getControlRef:(Dt,Ht,tr)=>{Array.isArray(Pt.current[$t])||(Pt.current[$t]=[]),Array.isArray(Pt.current[$t][Dt])||(Pt.current[$t][Dt]=[]),Pt.current[$t][Dt][Ht]=tr},levelControlAriaLabel:typeof mt=="function"?mt(Rt):mt,locale:nt,minDate:tt,maxDate:bt,__preventFocus:Tt,nextIcon:Bt,previousIcon:kt,nextLabel:It,previousLabel:Lt,onNext:Ot,onPrevious:Nt,onLevelClick:Ft,nextDisabled:zt,previousDisabled:Vt,hasNextLevel:Jt,getMonthControlProps:wt,classNames:ir,styles:rr,unstyled:er,__staticSelector:lr||"YearLevelGroup",withCellSpacing:_t})});return React.createElement(LevelsGroup,{classNames:ir,styles:rr,__staticSelector:lr||"YearLevelGroup",ref:a,size:vt,unstyled:er,...At},xt)});YearLevelGroup.classes={...YearLevel.classes,...LevelsGroup.classes};YearLevelGroup.displayName="@mantine/dates/YearLevelGroup";const defaultProps$4={numberOfColumns:1},MonthLevelGroup=factory((c,a)=>{const d=useProps("MonthLevelGroup",defaultProps$4,c),{month:et,locale:nt,firstDayOfWeek:tt,weekdayFormat:bt,weekendDays:gt,getDayProps:wt,excludeDate:St,minDate:Mt,maxDate:_t,renderDay:Tt,hideOutsideDates:Bt,hideWeekdays:kt,getDayAriaLabel:It,__onDayClick:Lt,__onDayMouseEnter:Ot,withCellSpacing:Nt,__preventFocus:Ft,nextIcon:zt,previousIcon:Vt,nextLabel:Jt,previousLabel:ir,onNext:rr,onPrevious:er,onLevelClick:lr,nextDisabled:Ct,previousDisabled:dt,hasNextLevel:mt,classNames:yt,styles:vt,unstyled:Et,numberOfColumns:At,levelControlAriaLabel:Pt,monthLabelFormat:xt,__staticSelector:ht,__stopPropagation:$t,size:Rt,static:Dt,vars:Ht,...tr}=d,Xt=reactExports.useRef([]),Ut=Array(At).fill(0).map((qt,Gt)=>{const Zt=dayjs(et).add(Gt,"months").toDate();return React.createElement(MonthLevel,{key:Gt,month:Zt,withNext:Gt===At-1,withPrevious:Gt===0,monthLabelFormat:xt,__stopPropagation:$t,__onDayClick:Lt,__onDayMouseEnter:Ot,__onDayKeyDown:(Yt,Kt)=>handleControlKeyDown({levelIndex:Gt,rowIndex:Kt.rowIndex,cellIndex:Kt.cellIndex,event:Yt,controlsRef:Xt}),__getDayRef:(Yt,Kt,ar)=>{Array.isArray(Xt.current[Gt])||(Xt.current[Gt]=[]),Array.isArray(Xt.current[Gt][Yt])||(Xt.current[Gt][Yt]=[]),Xt.current[Gt][Yt][Kt]=ar},levelControlAriaLabel:typeof Pt=="function"?Pt(Zt):Pt,locale:nt,firstDayOfWeek:tt,weekdayFormat:bt,weekendDays:gt,getDayProps:wt,excludeDate:St,minDate:Mt,maxDate:_t,renderDay:Tt,hideOutsideDates:Bt,hideWeekdays:kt,getDayAriaLabel:It,__preventFocus:Ft,nextIcon:zt,previousIcon:Vt,nextLabel:Jt,previousLabel:ir,onNext:rr,onPrevious:er,onLevelClick:lr,nextDisabled:Ct,previousDisabled:dt,hasNextLevel:mt,classNames:yt,styles:vt,unstyled:Et,__staticSelector:ht||"MonthLevelGroup",size:Rt,static:Dt,withCellSpacing:Nt})});return React.createElement(LevelsGroup,{classNames:yt,styles:vt,__staticSelector:ht||"MonthLevelGroup",ref:a,size:Rt,...tr},Ut)});MonthLevelGroup.classes={...LevelsGroup.classes,...MonthLevel.classes};MonthLevelGroup.displayName="@mantine/dates/MonthLevelGroup";var classes$2={input:"m_6fa5e2aa"};const defaultProps$3={},PickerInputBase=factory((c,a)=>{const{inputProps:d,wrapperProps:et,placeholder:nt,classNames:tt,styles:bt,unstyled:gt,popoverProps:wt,modalProps:St,dropdownType:Mt,children:_t,formattedValue:Tt,dropdownHandlers:Bt,dropdownOpened:kt,onClick:It,clearable:Lt,onClear:Ot,clearButtonProps:Nt,rightSection:Ft,shouldClear:zt,readOnly:Vt,disabled:Jt,value:ir,name:rr,form:er,type:lr,...Ct}=useInputProps("PickerInputBase",defaultProps$3,c),dt=Ft||(Lt&&zt&&!Vt&&!Jt?React.createElement(CloseButton,{variant:"transparent",onClick:Ot,unstyled:gt,size:d.size||"sm",...Nt}):null),mt=()=>{lr==="range"&&Array.isArray(ir)&&ir[0]&&!ir[1]&&Ot(),Bt.close()};return React.createElement(React.Fragment,null,Mt==="modal"&&!Vt&&React.createElement(Modal,{opened:kt,onClose:mt,withCloseButton:!1,size:"auto","data-dates-modal":!0,unstyled:gt,...St},_t),React.createElement(Input.Wrapper,{...et},React.createElement(Popover,{position:"bottom-start",opened:kt,trapFocus:!0,returnFocus:!0,unstyled:gt,...wt,disabled:(wt==null?void 0:wt.disabled)||Mt==="modal"||Vt,onClose:()=>{var yt;(yt=wt==null?void 0:wt.onClose)==null||yt.call(wt),mt()}},React.createElement(Popover.Target,null,React.createElement(Input,{"aria-label":Tt||nt,"data-dates-input":!0,"data-read-only":Vt||void 0,disabled:Jt,component:"button",type:"button",multiline:!0,onClick:yt=>{It==null||It(yt),Bt.toggle()},rightSection:dt,...d,ref:a,classNames:{...tt,input:clsx(classes$2.input,tt==null?void 0:tt.input)},...Ct},Tt||React.createElement(Input.Placeholder,{error:d.error,unstyled:gt,className:tt==null?void 0:tt.placeholder,style:bt==null?void 0:bt.placeholder},nt))),React.createElement(Popover.Dropdown,{"data-dates-dropdown":!0},_t))),React.createElement(HiddenDatesInput,{value:ir,name:rr,form:er,type:lr}))});PickerInputBase.classes=classes$2;PickerInputBase.displayName="@mantine/dates/PickerInputBase";const getEmptyValue=c=>c==="range"?[null,null]:c==="multiple"?[]:null;function useUncontrolledDates({type:c,value:a,defaultValue:d,onChange:et,applyTimezone:nt=!0}){const tt=reactExports.useRef(c),bt=useDatesContext(),[gt,wt,St]=useUncontrolled({value:shiftTimezone("add",a,bt.getTimezone(),!nt),defaultValue:shiftTimezone("add",d,bt.getTimezone(),!nt),finalValue:getEmptyValue(c),onChange:_t=>{et==null||et(shiftTimezone("remove",_t,bt.getTimezone(),!nt))}});let Mt=gt;return tt.current!==c&&(tt.current=c,a===void 0&&(Mt=d!==void 0?d:getEmptyValue(c),wt(Mt))),[Mt,wt,St]}function levelToNumber(c,a){return c?c==="month"?0:c==="year"?1:2:a||0}function levelNumberToLevel(c){return c===0?"month":c===1?"year":"decade"}function clampLevel(c,a,d){return levelNumberToLevel(clamp$1(levelToNumber(c,0),levelToNumber(a,0),levelToNumber(d,2)))}const defaultProps$2={maxLevel:"decade",minLevel:"month",__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0},Calendar=factory((c,a)=>{const d=useProps("Calendar",defaultProps$2,c),{vars:et,maxLevel:nt,minLevel:tt,defaultLevel:bt,level:gt,onLevelChange:wt,date:St,defaultDate:Mt,onDateChange:_t,numberOfColumns:Tt,columnsToScroll:Bt,ariaLabels:kt,onYearSelect:It,onMonthSelect:Lt,onYearMouseEnter:Ot,onMonthMouseEnter:Nt,__updateDateOnYearSelect:Ft,__updateDateOnMonthSelect:zt,firstDayOfWeek:Vt,weekdayFormat:Jt,weekendDays:ir,getDayProps:rr,excludeDate:er,renderDay:lr,hideOutsideDates:Ct,hideWeekdays:dt,getDayAriaLabel:mt,monthLabelFormat:yt,nextIcon:vt,previousIcon:Et,__onDayClick:At,__onDayMouseEnter:Pt,withCellSpacing:xt,monthsListFormat:ht,getMonthControlProps:$t,yearLabelFormat:Rt,yearsListFormat:Dt,getYearControlProps:Ht,decadeLabelFormat:tr,classNames:Xt,styles:Ut,unstyled:qt,minDate:Gt,maxDate:Zt,locale:Yt,__staticSelector:Kt,size:ar,__preventFocus:gr,__stopPropagation:cr,onNextDecade:ur,onPreviousDecade:Pr,onNextYear:br,onPreviousYear:dr,onNextMonth:Kr,onPreviousMonth:xr,static:Sr,__timezoneApplied:Zr,...$r}=d,{resolvedClassNames:Mr,resolvedStyles:Xr}=useResolvedStylesApi({classNames:Xt,styles:Ut,props:d}),[Qt,jt]=useUncontrolled({value:gt?clampLevel(gt,tt,nt):void 0,defaultValue:bt?clampLevel(bt,tt,nt):void 0,finalValue:clampLevel(void 0,tt,nt),onChange:wt}),[Wt,nr]=useUncontrolledDates({type:"default",value:St,defaultValue:Mt,onChange:_t,applyTimezone:!Zr}),fr={__staticSelector:Kt||"Calendar",styles:Xr,classNames:Mr,unstyled:qt,size:ar},Er=useDatesContext(),pr=Bt||Tt||1,vr=Wt||shiftTimezone("add",new Date,Er.getTimezone()),Jr=()=>{const Qr=dayjs(vr).add(pr,"month").toDate();Kr==null||Kr(Qr),nr(Qr)},wr=()=>{const Qr=dayjs(vr).subtract(pr,"month").toDate();xr==null||xr(Qr),nr(Qr)},Ar=()=>{const Qr=dayjs(vr).add(pr,"year").toDate();br==null||br(Qr),nr(Qr)},Yr=()=>{const Qr=dayjs(vr).subtract(pr,"year").toDate();dr==null||dr(Qr),nr(Qr)},Cr=()=>{const Qr=dayjs(vr).add(10*pr,"year").toDate();ur==null||ur(Qr),nr(Qr)},Or=()=>{const Qr=dayjs(vr).subtract(10*pr,"year").toDate();Pr==null||Pr(Qr),nr(Qr)};return React.createElement(Box,{ref:a,size:ar,"data-calendar":!0,...$r},Qt==="month"&&React.createElement(MonthLevelGroup,{month:vr,minDate:Gt,maxDate:Zt,firstDayOfWeek:Vt,weekdayFormat:Jt,weekendDays:ir,getDayProps:rr,excludeDate:er,renderDay:lr,hideOutsideDates:Ct,hideWeekdays:dt,getDayAriaLabel:mt,onNext:Jr,onPrevious:wr,hasNextLevel:nt!=="month",onLevelClick:()=>jt("year"),numberOfColumns:Tt,locale:Yt,levelControlAriaLabel:kt==null?void 0:kt.monthLevelControl,nextLabel:kt==null?void 0:kt.nextMonth,nextIcon:vt,previousLabel:kt==null?void 0:kt.previousMonth,previousIcon:Et,monthLabelFormat:yt,__onDayClick:At,__onDayMouseEnter:Pt,__preventFocus:gr,__stopPropagation:cr,static:Sr,withCellSpacing:xt,...fr}),Qt==="year"&&React.createElement(YearLevelGroup,{year:vr,numberOfColumns:Tt,minDate:Gt,maxDate:Zt,monthsListFormat:ht,getMonthControlProps:$t,locale:Yt,onNext:Ar,onPrevious:Yr,hasNextLevel:nt!=="month"&&nt!=="year",onLevelClick:()=>jt("decade"),levelControlAriaLabel:kt==null?void 0:kt.yearLevelControl,nextLabel:kt==null?void 0:kt.nextYear,nextIcon:vt,previousLabel:kt==null?void 0:kt.previousYear,previousIcon:Et,yearLabelFormat:Rt,__onControlMouseEnter:Nt,__onControlClick:(Qr,_r)=>{zt&&nr(_r),jt(clampLevel("month",tt,nt)),Lt==null||Lt(_r)},__preventFocus:gr,__stopPropagation:cr,withCellSpacing:xt,...fr}),Qt==="decade"&&React.createElement(DecadeLevelGroup,{decade:vr,minDate:Gt,maxDate:Zt,yearsListFormat:Dt,getYearControlProps:Ht,locale:Yt,onNext:Cr,onPrevious:Or,numberOfColumns:Tt,nextLabel:kt==null?void 0:kt.nextDecade,nextIcon:vt,previousLabel:kt==null?void 0:kt.previousDecade,previousIcon:Et,decadeLabelFormat:tr,__onControlMouseEnter:Ot,__onControlClick:(Qr,_r)=>{Ft&&nr(_r),jt(clampLevel("year",tt,nt)),It==null||It(_r)},__preventFocus:gr,__stopPropagation:cr,withCellSpacing:xt,...fr}))});Calendar.classes={...DecadeLevelGroup.classes,...YearLevelGroup.classes,...MonthLevelGroup.classes};Calendar.displayName="@mantine/dates/Calendar";function pickCalendarProps(c){const{maxLevel:a,minLevel:d,defaultLevel:et,level:nt,onLevelChange:tt,nextIcon:bt,previousIcon:gt,date:wt,defaultDate:St,onDateChange:Mt,numberOfColumns:_t,columnsToScroll:Tt,ariaLabels:Bt,onYearSelect:kt,onMonthSelect:It,onYearMouseEnter:Lt,onMonthMouseEnter:Ot,onNextMonth:Nt,onPreviousMonth:Ft,onNextYear:zt,onPreviousYear:Vt,onNextDecade:Jt,onPreviousDecade:ir,withCellSpacing:rr,__updateDateOnYearSelect:er,__updateDateOnMonthSelect:lr,firstDayOfWeek:Ct,weekdayFormat:dt,weekendDays:mt,getDayProps:yt,excludeDate:vt,renderDay:Et,hideOutsideDates:At,hideWeekdays:Pt,getDayAriaLabel:xt,monthLabelFormat:ht,monthsListFormat:$t,getMonthControlProps:Rt,yearLabelFormat:Dt,yearsListFormat:Ht,getYearControlProps:tr,decadeLabelFormat:Xt,allowSingleDateInRange:Ut,allowDeselect:qt,minDate:Gt,maxDate:Zt,locale:Yt,...Kt}=c;return{calendarProps:{maxLevel:a,minLevel:d,defaultLevel:et,level:nt,onLevelChange:tt,nextIcon:bt,previousIcon:gt,date:wt,defaultDate:St,onDateChange:Mt,numberOfColumns:_t,columnsToScroll:Tt,ariaLabels:Bt,onYearSelect:kt,onMonthSelect:It,onYearMouseEnter:Lt,onMonthMouseEnter:Ot,onNextMonth:Nt,onPreviousMonth:Ft,onNextYear:zt,onPreviousYear:Vt,onNextDecade:Jt,onPreviousDecade:ir,withCellSpacing:rr,__updateDateOnYearSelect:er,__updateDateOnMonthSelect:lr,firstDayOfWeek:Ct,weekdayFormat:dt,weekendDays:mt,getDayProps:yt,excludeDate:vt,renderDay:Et,hideOutsideDates:At,hideWeekdays:Pt,getDayAriaLabel:xt,monthLabelFormat:ht,monthsListFormat:$t,getMonthControlProps:Rt,yearLabelFormat:Dt,yearsListFormat:Ht,getYearControlProps:tr,decadeLabelFormat:Xt,allowSingleDateInRange:Ut,allowDeselect:qt,minDate:Gt,maxDate:Zt,locale:Yt},others:Kt}}function isInRange(c,a){const d=[...a].sort((et,nt)=>et.getTime()-nt.getTime());return dayjs(d[0]).startOf("day").subtract(1,"ms").isBefore(c)&&dayjs(d[1]).endOf("day").add(1,"ms").isAfter(c)}function useDatesState({type:c,level:a,value:d,defaultValue:et,onChange:nt,allowSingleDateInRange:tt,allowDeselect:bt,onMouseLeave:gt,applyTimezone:wt=!0}){const[St,Mt]=useUncontrolledDates({type:c,value:d,defaultValue:et,onChange:nt,applyTimezone:wt}),[_t,Tt]=reactExports.useState(c==="range"&&St[0]&&!St[1]?St[0]:null),[Bt,kt]=reactExports.useState(null),It=Jt=>{if(c==="range"){if(_t instanceof Date&&!St[1]){if(dayjs(Jt).isSame(_t,a)&&!tt){Tt(null),kt(null),Mt([null,null]);return}const ir=[Jt,_t];ir.sort((rr,er)=>rr.getTime()-er.getTime()),Mt(ir),kt(null),Tt(null);return}if(St[0]&&!St[1]&&dayjs(Jt).isSame(St[0],a)&&!tt){Tt(null),kt(null),Mt([null,null]);return}Mt([Jt,null]),kt(null),Tt(Jt);return}if(c==="multiple"){St.some(ir=>dayjs(ir).isSame(Jt,a))?Mt(St.filter(ir=>!dayjs(ir).isSame(Jt,a))):Mt([...St,Jt]);return}St&&bt&&dayjs(Jt).isSame(St,a)?Mt(null):Mt(Jt)},Lt=Jt=>_t instanceof Date&&Bt instanceof Date?isInRange(Jt,[Bt,_t]):St[0]instanceof Date&&St[1]instanceof Date?isInRange(Jt,St):!1,Ot=c==="range"?Jt=>{gt==null||gt(Jt),kt(null)}:gt,Nt=Jt=>St[0]instanceof Date&&dayjs(Jt).isSame(St[0],a)?!(Bt&&dayjs(Bt).isBefore(St[0])):!1,Ft=Jt=>St[1]instanceof Date?dayjs(Jt).isSame(St[1],a):!(St[0]instanceof Date)||!Bt?!1:dayjs(Bt).isBefore(St[0])&&dayjs(Jt).isSame(St[0],a),zt=Jt=>{if(c==="range")return{selected:St.some(rr=>rr&&dayjs(rr).isSame(Jt,a)),inRange:Lt(Jt),firstInRange:Nt(Jt),lastInRange:Ft(Jt),"data-autofocus":!!St[0]&&dayjs(St[0]).isSame(Jt,a)||void 0};if(c==="multiple")return{selected:St.some(rr=>rr&&dayjs(rr).isSame(Jt,a)),"data-autofocus":!!St[0]&&dayjs(St[0]).isSame(Jt,a)||void 0};const ir=dayjs(St).isSame(Jt,a);return{selected:ir,"data-autofocus":ir||void 0}},Vt=c==="range"&&_t?kt:()=>{};return reactExports.useEffect(()=>{c==="range"&&!St[0]&&!St[1]&&Tt(null)},[d]),{onDateChange:It,onRootMouseLeave:Ot,onHoveredDateChange:Vt,getControlProps:zt,_value:St,setValue:Mt}}const defaultProps$1={type:"default",defaultLevel:"month",numberOfColumns:1},DatePicker=factory((c,a)=>{const d=useProps("DatePicker",defaultProps$1,c),{classNames:et,styles:nt,vars:tt,type:bt,defaultValue:gt,value:wt,onChange:St,__staticSelector:Mt,getDayProps:_t,allowSingleDateInRange:Tt,allowDeselect:Bt,onMouseLeave:kt,numberOfColumns:It,hideOutsideDates:Lt,__onDayMouseEnter:Ot,__onDayClick:Nt,__timezoneApplied:Ft,...zt}=d,{onDateChange:Vt,onRootMouseLeave:Jt,onHoveredDateChange:ir,getControlProps:rr}=useDatesState({type:bt,level:"day",allowDeselect:Bt,allowSingleDateInRange:Tt,value:wt,defaultValue:gt,onChange:St,onMouseLeave:kt,applyTimezone:!Ft}),{resolvedClassNames:er,resolvedStyles:lr}=useResolvedStylesApi({classNames:et,styles:nt,props:d}),Ct=useDatesContext();return React.createElement(Calendar,{ref:a,minLevel:"month",classNames:er,styles:lr,__staticSelector:Mt||"DatePicker",onMouseLeave:Jt,numberOfColumns:It,hideOutsideDates:Lt??It!==1,__onDayMouseEnter:(dt,mt)=>{ir(mt),Ot==null||Ot(dt,mt)},__onDayClick:(dt,mt)=>{Vt(mt),Nt==null||Nt(dt,mt)},getDayProps:dt=>({...rr(dt),..._t==null?void 0:_t(dt)}),...zt,date:shiftTimezone("add",zt.date,Ct.getTimezone(),Ft),__timezoneApplied:!0})});DatePicker.classes=Calendar.classes;DatePicker.displayName="@mantine/dates/DatePicker";var classes$1={timeWrapper:"m_208d2562",timeInput:"m_62ee059"};const defaultProps={dropdownType:"popover"},DateTimePicker=factory((c,a)=>{const d=useProps("DateTimePicker",defaultProps,c),{value:et,defaultValue:nt,onChange:tt,valueFormat:bt,locale:gt,classNames:wt,styles:St,unstyled:Mt,timeInputProps:_t,submitButtonProps:Tt,withSeconds:Bt,level:kt,defaultLevel:It,size:Lt,variant:Ot,dropdownType:Nt,vars:Ft,minDate:zt,maxDate:Vt,...Jt}=d,ir=useStyles({name:"DateTimePicker",classes:classes$1,props:d,classNames:wt,styles:St,unstyled:Mt,vars:Ft}),{resolvedClassNames:rr,resolvedStyles:er}=useResolvedStylesApi({classNames:wt,styles:St,props:d}),lr=bt||(Bt?"DD/MM/YYYY HH:mm:ss":"DD/MM/YYYY HH:mm"),Ct=reactExports.useRef(),dt=useMergedRef(Ct,_t==null?void 0:_t.ref),{calendarProps:{allowSingleDateInRange:mt,...yt},others:vt}=pickCalendarProps(Jt),Et=useDatesContext(),[At,Pt]=useUncontrolledDates({type:"default",value:et,defaultValue:nt,onChange:tt}),xt=ar=>ar?dayjs(ar).format(Bt?"HH:mm:ss":"HH:mm"):"",[ht,$t]=reactExports.useState(xt(At)),[Rt,Dt]=reactExports.useState(kt||It||"month"),[Ht,tr]=useDisclosure(!1),Xt=At?dayjs(At).locale(Et.getLocale(gt)).format(lr):"",Ut=ar=>{var cr;(cr=_t==null?void 0:_t.onChange)==null||cr.call(_t,ar);const gr=ar.currentTarget.value;if($t(gr),gr){const[ur,Pr,br]=gr.split(":").map(Number),dr=shiftTimezone("add",new Date,Et.getTimezone());dr.setHours(ur),dr.setMinutes(Pr),dr.setSeconds(br||0),Pt(assignTime(dr,At||shiftTimezone("add",new Date,Et.getTimezone())))}},qt=ar=>{var gr;ar&&Pt(assignTime(At,ar)),(gr=Ct.current)==null||gr.focus()},Gt=ar=>{var gr;(gr=_t==null?void 0:_t.onKeyDown)==null||gr.call(_t,ar),ar.key==="Enter"&&(ar.preventDefault(),tr.close())};useDidUpdate(()=>{Ht||$t(xt(At))},[At,Ht]),useDidUpdate(()=>{Ht&&Dt("month")},[Ht]);const Zt=zt?dayjs(zt).format("HH:mm:ss"):null,Yt=Vt?dayjs(Vt).format("HH:mm:ss"):null,Kt=Nt==="popover";return React.createElement(PickerInputBase,{formattedValue:Xt,dropdownOpened:Ht,dropdownHandlers:tr,classNames:rr,styles:er,unstyled:Mt,ref:a,onClear:()=>Pt(null),shouldClear:!!At,value:At,size:Lt,variant:Ot,dropdownType:Nt,...vt,type:"default",__staticSelector:"DateTimePicker"},React.createElement(DatePicker,{...yt,maxDate:Vt,minDate:zt,size:Lt,variant:Ot,type:"default",value:At,defaultDate:At,onChange:qt,locale:gt,classNames:rr,styles:er,unstyled:Mt,__staticSelector:"DateTimePicker",__stopPropagation:Kt,level:kt,defaultLevel:It,onLevelChange:ar=>{var gr;Dt(ar),(gr=yt.onLevelChange)==null||gr.call(yt,ar)},__timezoneApplied:!0}),Rt==="month"&&React.createElement("div",{...ir("timeWrapper")},React.createElement(TimeInput,{value:ht,withSeconds:Bt,ref:dt,unstyled:Mt,..._t,...ir("timeInput",{className:_t==null?void 0:_t.className,style:_t==null?void 0:_t.style}),onChange:Ut,onKeyDown:Gt,minTime:At&&zt&&At.toDateString()===zt.toDateString()?Zt??void 0:void 0,maxTime:At&&Vt&&At.toDateString()===Vt.toDateString()?Yt??void 0:void 0,size:Lt,"data-mantine-stop-propagation":Kt||void 0}),React.createElement(ActionIcon,{variant:"default",size:`input-${Lt||"sm"}`,...ir("submitButton",{className:Tt==null?void 0:Tt.className,style:Tt==null?void 0:Tt.style}),unstyled:Mt,"data-mantine-stop-propagation":Kt||void 0,children:React.createElement(CheckIcon,{size:"30%"}),...Tt,onClick:ar=>{var gr;(gr=Tt==null?void 0:Tt.onClick)==null||gr.call(Tt,ar),tr.close()}})))});DateTimePicker.classes={...classes$1,...PickerInputBase.classes,...DatePicker.classes};DateTimePicker.displayName="@mantine/dates/DateTimePicker";const SAFE_ABI=["function isModuleEnabled(address module) public view returns (bool)","function nonce() public view returns (uint256)","function enableModule(address module) public","function isModuleInstalled(uint256 moduleType, address module, bytes calldata additionalContext) public view returns (bool)","function setFallbackHandler(address module) public","function setGuard(address module) public","function execTransaction(address to,uint256 value,bytes calldata data,uint8 operation,uint256 safeTxGas,uint256 baseGas,uint256 gasPrice,address gasToken,address payable refundReceiver,bytes memory signatures) public payable returns (bool success)"],getSafe=async c=>{const a=await getProvider();return new Contract(c,SAFE_ABI,a)},isModuleEnabled=async(c,a)=>await(await getSafe(c)).isModuleEnabled(a),isModuleInstalled=async(c,a,d)=>{const et=await getSafe(c);let nt=!1;try{nt=await et.isModuleInstalled(d,a,"0x")}catch{console.log("Not Installed")}return nt},buildEnableModule=async(c,a)=>{const d=await getSafe(c);return{to:c,value:"0",data:(await d.enableModule.populateTransaction(a)).data}},buildUpdateFallbackHandler=async(c,a)=>{const d=await getSafe(c);return{to:c,value:"0",data:(await d.setFallbackHandler.populateTransaction(a)).data}},_format$1="hh-sol-artifact-1",contractName$1="Safe7579",sourceName$1="contracts/Safe7579.sol",abi$2=[{inputs:[],name:"AccountAccessUnauthorized",type:"error"},{inputs:[],name:"AccountInitializationFailed",type:"error"},{inputs:[],name:"ExecutionFailed",type:"error"},{inputs:[{internalType:"bytes4",name:"msgSig",type:"bytes4"}],name:"FallbackInstalled",type:"error"},{inputs:[{internalType:"address",name:"currentHook",type:"address"}],name:"HookAlreadyInstalled",type:"error"},{inputs:[],name:"HookPostCheckFailed",type:"error"},{inputs:[],name:"InitializerError",type:"error"},{inputs:[{internalType:"bytes4",name:"msgSig",type:"bytes4"}],name:"InvalidFallbackHandler",type:"error"},{inputs:[],name:"InvalidHookType",type:"error"},{inputs:[{internalType:"address",name:"safe",type:"address"}],name:"InvalidInitData",type:"error"},{inputs:[],name:"InvalidInput",type:"error"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"InvalidModule",type:"error"},{inputs:[],name:"LinkedListError",type:"error"},{inputs:[],name:"LinkedList_AlreadyInitialized",type:"error"},{inputs:[],name:"LinkedList_AlreadyInitialized",type:"error"},{inputs:[{internalType:"address",name:"entry",type:"address"}],name:"LinkedList_EntryAlreadyInList",type:"error"},{inputs:[{internalType:"address",name:"entry",type:"address"}],name:"LinkedList_EntryAlreadyInList",type:"error"},{inputs:[{internalType:"address",name:"entry",type:"address"}],name:"LinkedList_InvalidEntry",type:"error"},{inputs:[{internalType:"address",name:"entry",type:"address"}],name:"LinkedList_InvalidEntry",type:"error"},{inputs:[],name:"LinkedList_InvalidPage",type:"error"},{inputs:[],name:"LinkedList_InvalidPage",type:"error"},{inputs:[{internalType:"bytes4",name:"msgSig",type:"bytes4"}],name:"NoFallbackHandler",type:"error"},{inputs:[{internalType:"CallType",name:"callType",type:"bytes1"}],name:"UnsupportedCallType",type:"error"},{inputs:[{internalType:"ExecType",name:"execType",type:"bytes1"}],name:"UnsupportedExecType",type:"error"},{inputs:[{internalType:"uint256",name:"moduleTypeId",type:"uint256"}],name:"UnsupportedModuleType",type:"error"},{inputs:[],name:"ValidatorStorageHelperError",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"smartAccount",type:"address"},{indexed:!0,internalType:"contract IERC7484",name:"registry",type:"address"}],name:"ERC7484RegistryConfigured",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"moduleTypeId",type:"uint256"},{indexed:!1,internalType:"address",name:"module",type:"address"}],name:"ModuleInstalled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"moduleTypeId",type:"uint256"},{indexed:!1,internalType:"address",name:"module",type:"address"}],name:"ModuleUninstalled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"safe",type:"address"}],name:"Safe7579Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract ISafe",name:"safe",type:"address"},{indexed:!1,internalType:"uint256",name:"numberInBatch",type:"uint256"}],name:"TryExecutionFailed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract ISafe",name:"safe",type:"address"},{indexed:!1,internalType:"bool[]",name:"success",type:"bool[]"}],name:"TryExecutionsFailed",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"accountId",outputs:[{internalType:"string",name:"accountImplementationId",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"entryPoint",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"ModeCode",name:"mode",type:"bytes32"},{internalType:"bytes",name:"executionCalldata",type:"bytes"}],name:"execute",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"ModeCode",name:"mode",type:"bytes32"},{internalType:"bytes",name:"executionCalldata",type:"bytes"}],name:"executeFromExecutor",outputs:[{internalType:"bytes[]",name:"returnDatas",type:"bytes[]"}],stateMutability:"payable",type:"function"},{inputs:[],name:"getActiveHook",outputs:[{internalType:"address",name:"hook",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"getActiveHook",outputs:[{internalType:"address",name:"hook",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"cursor",type:"address"},{internalType:"uint256",name:"size",type:"uint256"}],name:"getExecutorsPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"safe",type:"address"},{internalType:"address",name:"validator",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getValidatorPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"module",type:"address"},{internalType:"bytes",name:"initData",type:"bytes"}],internalType:"struct ModuleInit[]",name:"validators",type:"tuple[]"},{components:[{internalType:"address",name:"module",type:"address"},{internalType:"bytes",name:"initData",type:"bytes"}],internalType:"struct ModuleInit[]",name:"executors",type:"tuple[]"},{components:[{internalType:"address",name:"module",type:"address"},{internalType:"bytes",name:"initData",type:"bytes"}],internalType:"struct ModuleInit[]",name:"fallbacks",type:"tuple[]"},{components:[{internalType:"address",name:"module",type:"address"},{internalType:"bytes",name:"initData",type:"bytes"}],internalType:"struct ModuleInit[]",name:"hooks",type:"tuple[]"},{components:[{internalType:"contract IERC7484",name:"registry",type:"address"},{internalType:"address[]",name:"attesters",type:"address[]"},{internalType:"uint8",name:"threshold",type:"uint8"}],internalType:"struct RegistryInit",name:"registryInit",type:"tuple"}],name:"initializeAccount",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"moduleType",type:"uint256"},{internalType:"address",name:"module",type:"address"},{internalType:"bytes",name:"initData",type:"bytes"}],name:"installModule",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"moduleType",type:"uint256"},{internalType:"address",name:"module",type:"address"},{internalType:"bytes",name:"additionalContext",type:"bytes"}],name:"isModuleInstalled",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"hash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"magicValue",type:"bytes4"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"module",type:"address"},{internalType:"bytes",name:"initData",type:"bytes"}],internalType:"struct ModuleInit[]",name:"validators",type:"tuple[]"}],name:"launchpadValidators",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"contract IERC7484",name:"registry",type:"address"},{internalType:"address[]",name:"attesters",type:"address[]"},{internalType:"uint8",name:"threshold",type:"uint8"}],name:"setRegistry",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"ModeCode",name:"encodedMode",type:"bytes32"}],name:"supportsExecutionMode",outputs:[{internalType:"bool",name:"supported",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"moduleTypeId",type:"uint256"}],name:"supportsModule",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"moduleType",type:"uint256"},{internalType:"address",name:"module",type:"address"},{internalType:"bytes",name:"deInitData",type:"bytes"}],name:"uninstallModule",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"bytes32",name:"accountGasLimits",type:"bytes32"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"bytes32",name:"gasFees",type:"bytes32"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct PackedUserOperation",name:"userOp",type:"tuple"},{internalType:"bytes32",name:"userOpHash",type:"bytes32"},{internalType:"uint256",name:"missingAccountFunds",type:"uint256"}],name:"validateUserOp",outputs:[{internalType:"uint256",name:"validSignature",type:"uint256"}],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}],bytecode$2="0x60806040523480156200001157600080fd5b50604051620000209062000064565b604051809103906000f0801580156200003d573d6000803e3d6000fd5b50600080546001600160a01b0319166001600160a01b039290921691909117905562000072565b610a0b8062004e3983390190565b614db780620000826000396000f3fe6080604052600436106101635760003560e01c8063b0d691fe116100c0578063e9ae5c5311610074578063eab77e1711610059578063eab77e1714610482578063f2dc691d146104a2578063f698da25146104c25761016a565b8063e9ae5c531461044f578063ea5f61d0146104625761016a565b8063d03c7914116100a5578063d03c7914146103ef578063d691c9641461040f578063d828435d1461042f5761016a565b8063b0d691fe14610380578063b875d5d8146103a35761016a565b80636a5e1515116101175780639517e29f116100fc5780639517e29f146103385780639cfd7cff1461034b578063a71763a81461036d5761016a565b80636a5e1515146102f7578063855713681461030a5761016a565b80631626ba7e116101485780631626ba7e1461028857806319822f7c146102c1578063540fb4f9146102e25761016a565b80630a664dba14610214578063112d3a7d146102585761016a565b3661016a57005b600036606060003560e01c63bc197c81811463f23a6e6182141763150b7a028214171561019b57806020526020603cf35b5033600090815260056020908152604080832054600683528184206001600160e01b031985351680865293529083205491926001600160a01b039182169290911690806101e8848461052b565b915091506101f6888861060a565b955061020484848484610756565b5050505050915050805190602001f35b34801561022057600080fd5b50336000908152600560205260409020546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b34801561026457600080fd5b50610278610273366004613d4e565b6107f2565b604051901515815260200161024f565b34801561029457600080fd5b506102a86102a3366004613daa565b61084f565b6040516001600160e01b0319909116815260200161024f565b6102d46102cf366004613df6565b610b17565b60405190815260200161024f565b6102f56102f0366004613ea7565b610c3c565b005b6102f5610305366004613f8e565b610c89565b34801561031657600080fd5b5061032a610325366004613fd0565b610cea565b60405161024f929190613ffc565b6102f5610346366004613d4e565b610d06565b34801561035757600080fd5b50610360610e52565b60405161024f91906140ac565b6102f561037b366004613d4e565b610ee4565b34801561038c57600080fd5b506f71727de22e5e9d8baf0edac6f37da03261023b565b3480156103af57600080fd5b5061023b6103be3660046140d5565b3360009081526006602090815260408083206001600160e01b0319909416835292905220546001600160a01b031690565b3480156103fb57600080fd5b5061027861040a3660046140f2565b611072565b61042261041d366004613daa565b61111b565b60405161024f919061410b565b34801561043b57600080fd5b506102d461044a36600461416f565b61120f565b6102f561045d366004613daa565b6112e6565b34801561046e57600080fd5b5061032a61047d366004613fd0565b61168b565b34801561048e57600080fd5b506102f561049d3660046141b9565b6116b5565b3480156104ae57600080fd5b506102786104bd3660046140f2565b61170b565b3480156104ce57600080fd5b506102d4604080517f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a794692186020820152469181019190915230606082015260009060800160405160208183030381529060405280519060200120905090565b6060806001600160a01b038416156105c6576105ad3385600036601319013560601c5b346000366040516024016105659493929190614249565b60408051601f198184030181529190526020810180516001600160e01b03167fd68f60250000000000000000000000000000000000000000000000000000000017905261175a565b9150818060200190518101906105c39190614340565b91505b6001600160a01b03831615610603576105ea3384600036601319013560601c61054e565b9050808060200190518101906106009190614340565b90505b9250929050565b3360009081526004602090815260408083206001600160e01b0319843516845290915290208054606091906001600160a01b03811690600160a01b900460f81b81610694576040517f48c9ceda0000000000000000000000000000000000000000000000000000000081526001600160e01b03196000351660048201526024015b60405180910390fd5b6001600160f81b031981167ffe0000000000000000000000000000000000000000000000000000000000000003610705576106fb3383888836601319013560601c6040516020016106e793929190614375565b604051602081830303815290604052611803565b9350505050610750565b6001600160f81b0319811661074c576106fb33836000898936601319013560601c60405160200161073893929190614375565b60405160208183030381529060405261175a565b5050505b92915050565b6001600160a01b038416156107c5576107c5338560008560405160240161077d91906140ac565b60408051601f198184030181529190526020810180516001600160e01b03167f173bf7da000000000000000000000000000000000000000000000000000000001790526118f5565b6001600160a01b038316156107ec576107ec338460008460405160240161077d91906140ac565b50505050565b60006001850361080c5761080584611994565b9050610847565b6002850361081d57610805846119a2565b60038503610830576108058484846119bb565b6004850361084357610805848484611a08565b5060005b949350505050565b600033821580156108e057506040517f5ae6bd37000000000000000000000000000000000000000000000000000000008152600481018690526001600160a01b03821690635ae6bd3790602401602060405180830381865afa1580156108b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108dd919061439b565b15155b156108f55750630b135d3f60e11b9050610b10565b600061090460148286886143b4565b61090d916143de565b60601c9050801580610925575061092381611994565b155b15610a7b5760006109f0836001600160a01b031663f698da256040518163ffffffff1660e01b8152600401602060405180830381865afa15801561096d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610991919061439b565b60408051602081018b90527f60b3cbf8b4a223d68d641b3b6ddf9a298e7f33710cf3d3a9d1146b5a6150fbca910160408051601f1981840301815282825280516020918201209083015201604051602081830303815290604052611a43565b805160208201209091506001600160a01b03841663934f3a118284610a188a6014818e6143b4565b6040518563ffffffff1660e01b8152600401610a379493929190614413565b60006040518083038186803b158015610a4f57600080fd5b505afa158015610a63573d6000803e3d6000fd5b50630b135d3f60e11b9750610b109650505050505050565b6000610af4338336601319013560601c8a610a998a6014818e6143b4565b604051602401610aac9493929190614249565b60408051601f198184030181529190526020810180516001600160e01b03167ff551e2ee00000000000000000000000000000000000000000000000000000000179052611803565b905080806020019051810190610b0a919061444a565b93505050505b9392505050565b600060131936013560601c6f71727de22e5e9d8baf0edac6f37da03214610b5157604051635629665f60e11b815260040160405180910390fd5b6020840135606081901c90811580610b6f5750610b6d82611994565b155b15610b8457610b7d86611abd565b9250610c02565b6000610be8338460008a8a604051602401610ba09291906144ad565b60408051601f198184030181529190526020810180516001600160e01b03167f970032030000000000000000000000000000000000000000000000000000000017905261175a565b905080806020019051810190610bfe919061439b565b9350505b8315610c3357610c33336f71727de22e5e9d8baf0edac6f37da03286604051806020016040528060008152506118f5565b50509392505050565b610c6e610c4c60208301836145ac565b610c5960208401846145c9565b610c696060860160408701614613565b611b7c565b610c7e8989898989898989611c43565b505050505050505050565b610c94600233611e9f565b8060005b818110156107ec5736848483818110610cb357610cb361462e565b9050602002810190610cc59190614644565b9050610ce133610cd860208401846145ac565b60029190611f1a565b50600101610c98565b60606000610cfb600233868661200f565b915091509250929050565b3360009081526005602090815260408083205460068352818420639517e29f60e01b80865293529083205491926001600160a01b03918216929091169080610d4e848461052b565b91509150606060018a03610d6e57610d678989896121d4565b9050610dec565b60028a03610d8157610d67898989612230565b60038a03610d9457610d6789898961229a565b60048a03610da757610d67898989612457565b89610db757610d678989896125ef565b6040517f41c38b30000000000000000000000000000000000000000000000000000000008152600481018b905260240161068b565b600054604051610e459133916001600160a01b0390911690610e16908e908e908790602401614664565b60408051601f198184030181529190526020810180516001600160e01b0316639517e29f60e01b179052612790565b50610c7e84848484610756565b60606000336001600160a01b031663ffa1ad746040518163ffffffff1660e01b8152600401600060405180830381865afa158015610e94573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610ebc919081019061468c565b905080604051602001610ecf91906146d5565b60405160208183030381529060405291505090565b33600090815260056020908152604080832054600683528184207fa71763a80000000000000000000000000000000000000000000000000000000080865293529083205491926001600160a01b03918216929091169080610f45848461052b565b91509150610f606f71727de22e5e9d8baf0edac6f37da03290565b6001600160a01b031636601319013560601c6001600160a01b03161480610f8e57503360131936013560601c145b610fab57604051635629665f60e11b815260040160405180910390fd5b606060018a03610fc757610fc0898989612829565b9050611000565b60028a03610fda57610fc0898989612852565b60038a03610fed57610fc089898961287f565b60048a03610db757610fc08989896128cd565b600054604051610e459133916001600160a01b039091169061102a908e908e908790602401614664565b60408051601f198184030181529190526020810180516001600160e01b03167f7827252500000000000000000000000000000000000000000000000000000000179052612985565b600081600881901b6001600160f81b03198216600160f81b0361109857600192506110d4565b6001600160f81b031982166110b057600192506110d4565b6001600160f81b0319808316036110ca57600192506110d4565b5060009392505050565b8280156110e957506001600160f81b03198116155b156110f5575050919050565b82801561110f57506001600160f81b03198116600160f81b145b156110ca575050919050565b606061112d366013190135821c6119a2565b61116d576040517fb927fe5e00000000000000000000000000000000000000000000000000000000815260131936013560601c600482015260240161068b565b33600090815260056020908152604080832054600683528184207fd691c9640000000000000000000000000000000000000000000000000000000080865293529083205491926001600160a01b039182169290911690806111ce848461052b565b915091503360026111df8282612a4d565b8a600881901b6111f181838e8e612af1565b99505050505061120384848484610756565b50505050509392505050565b6000602082901b77ffffffffffffffffffffffffffffffffffffffff00000000166f71727de22e5e9d8baf0edac6f37da0326040517f35567e1a0000000000000000000000000000000000000000000000000000000081526001600160a01b03868116600483015277ffffffffffffffffffffffffffffffffffffffffffffffff8416602483015291909116906335567e1a90604401602060405180830381865afa1580156112c2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610847919061439b565b33600090815260056020908152604080832054600683528184207fe9ae5c530000000000000000000000000000000000000000000000000000000080865293529083205491926001600160a01b03918216929091169080611347848461052b565b915091506113626f71727de22e5e9d8baf0edac6f37da03290565b6001600160a01b031636601319013560601c6001600160a01b0316148061139057503360131936013560601c145b6113ad57604051635629665f60e11b815260040160405180910390fd5b87600881901b336001600160f81b0319821661151c576001600160f81b03198316600160f81b036113f45789358a016020810190356113ed838383612ea4565b5050611672565b6001600160f81b03198316611466576000803660006114138e8e612f14565b935093509350935061145d85858585858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506118f592505050565b50505050611672565b6001600160f81b0319808416036114f75760006114866014828c8e6143b4565b61148f916143de565b60601c90503660008c8c60149080926114aa939291906143b4565b915091506114ef848484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061279092505050565b505050611672565b604051632e5bf3f960e21b81526001600160f81b03198416600482015260240161068b565b6001600160f81b03198216600160f81b0361164d576001600160f81b03198316600160f81b0361155b5789358a016020810190356113ed838383612f65565b6001600160f81b031983166115c45760008036600061157a8e8e612f14565b935093509350935061145d85858585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612fd592505050565b6001600160f81b0319808416036114f75760006115e46014828c8e6143b4565b6115ed916143de565b60601c90503660008c8c6014908092611608939291906143b4565b915091506114ef848484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061298592505050565b6040516308c3ee0360e11b81526001600160f81b03198316600482015260240161068b565b50505061168184848484610756565b5050505050505050565b336000908152600360205260408120606091906116a981868661309d565b92509250509250929050565b60131936013560601c6f71727de22e5e9d8baf0edac6f37da03214806116e257503360131936013560601c145b6116ff57604051635629665f60e11b815260040160405180910390fd5b6107ec84848484611b7c565b60006001820361171d57506001919050565b6002820361172d57506001919050565b6003820361173d57506001919050565b6004820361174d57506001919050565b506000919050565b919050565b60606000856001600160a01b0316635229073f86868660006040518563ffffffff1660e01b81526004016117919493929190614741565b6000604051808303816000875af11580156117b0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526117d8919081019061478d565b92509050806117fa57604051632b3f6d1160e21b815260040160405180910390fd5b50949350505050565b60606000838360405160240161181a9291906147db565b60408051601f198184030181529181526020820180516001600160e01b03167f6a221657000000000000000000000000000000000000000000000000000000001790526000805491519293509161187f916001600160a01b03169084906024016147db565b60408051601f19818403018152919052602080820180516001600160e01b03167fb4faba090000000000000000000000000000000000000000000000000000000017815282519293509091600091895afa5060203d036040519350808401604052806020853e50600051610c3357825160208401fd5b60405163468721a760e01b81526000906001600160a01b0386169063468721a79061192a908790879087908790600401614741565b6020604051808303816000875af1158015611949573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196d91906147fd565b90508061198d57604051632b3f6d1160e21b815260040160405180910390fd5b5050505050565b60006107506002338461324a565b336000908152600360205260408120610b10818461328e565b6000806119ca838501856140d5565b3360009081526004602090815260408083206001600160e01b0319909416835292905220546001600160a01b03908116908616149150509392505050565b60008080611a1884860186614827565b915091506000611a2883836132c8565b6001600160a01b039081169088161493505050509392505050565b6060601960f81b600160f81b858585604051602001611a63929190614853565b60408051808303601f190181529082905280516020918201206001600160f81b0319958616918301919091529290931660218401526022830152604282015260620160405160208183030381529060405290509392505050565b600080600080366000611acf87613360565b845160208601206040517f934f3a11000000000000000000000000000000000000000000000000000000008152959a5093985091965094509250339163934f3a1191611b2391899087908790600401614413565b60006040518083038186803b158015611b3b57600080fd5b505afa925050508015611b4c575060015b611b6357611b5c600184866135e5565b9550611b72565b611b6f600084866135e5565b95505b5050505050919050565b3360008181526001602052604080822080546001600160a01b0319166001600160a01b03891617905551611c0792918791611bbf90869089908990602401614879565b60408051601f198184030181529190526020810180516001600160e01b03167ff05c04e1000000000000000000000000000000000000000000000000000000001790526118f5565b6040516001600160a01b0385169033907f9452c8fb077c3ea8f28a77c87488af657b1e44d010ad9a5992d73870da040e9490600090a350505050565b3360009081527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e0602052604090205487906001600160a01b0316611cf057611c8c600233611e9f565b60005b81811015611cea57368a8a83818110611caa57611caa61462e565b9050602002810190611cbc9190614644565b9050611ce0611cce60208301836145ac565b611cdb60208401846148d4565b6121d4565b5050600101611c8f565b50611d2a565b8015611d2a576040517fd8e3ed1b00000000000000000000000000000000000000000000000000000000815233600482015260240161068b565b336000908152600360205260409020611d428161361d565b86915060005b82811015611da35736898983818110611d6357611d6361462e565b9050602002810190611d759190614644565b9050611d99611d8760208301836145ac565b611d9460208401846148d4565b612230565b5050600101611d48565b5084915060005b82811015611e055736878783818110611dc557611dc561462e565b9050602002810190611dd79190614644565b9050611dfb611de960208301836145ac565b611df660208401846148d4565b61229a565b5050600101611daa565b5082915060005b82811015611e675736858583818110611e2757611e2761462e565b9050602002810190611e399190614644565b9050611e5d611e4b60208301836145ac565b611e5860208401846148d4565b612457565b5050600101611e0c565b5060405133907ff48581d8a62b775b74f2fb67f1d5806a9a356fbcc598040ab3071d3e37af40c290600090a250505050505050505050565b60016000908152602083815260408083206001600160a01b0380861685529252909120541615611ee2576040516329e42f3360e11b815260040160405180910390fd5b60016000818152602093845260408082206001600160a01b0394909416825292909352912080546001600160a01b0319169091179055565b6001600160a01b0381161580611f3957506001600160a01b0381166001145b15611f6257604051637c84ecfb60e01b81526001600160a01b038216600482015260240161068b565b6001600160a01b0381811660009081526020858152604080832086851684529091529020541615611fb157604051631034f46960e21b81526001600160a01b038216600482015260240161068b565b60016000908152602084815260408083206001600160a01b039586168085528184528285208054968816808752988552838620918652908452919093208054949095166001600160a01b031994851617909455528154169091179055565b606060006001600160a01b038416600114801590612035575061203386868661324a565b155b1561205e57604051637c84ecfb60e01b81526001600160a01b038516600482015260240161068b565b8260000361207f5760405163f725081760e01b815260040160405180910390fd5b8267ffffffffffffffff8111156120985761209861427c565b6040519080825280602002602001820160405280156120c1578160200160208202803683370190505b506001600160a01b038086166000908152602089815260408083208a85168452909152812054929450911691505b6001600160a01b0382161580159061211157506001600160a01b038216600114155b801561211c57508381105b1561218157818382815181106121345761213461462e565b6001600160a01b039283166020918202929092018101919091529281166000908152888452604080822089841683529094529290922054909116908061217981614931565b9150506120ef565b6001600160a01b03821660011480159061219b5750600081115b156121c757826121ac60018361494a565b815181106121bc576121bc61462e565b602002602001015191505b8083525094509492505050565b60608360016121e38282612a4d565b6121ef60023388611f1a565b84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929998505050505050505050565b606083600261223f8282612a4d565b336000908152600360205260409020612258818861367a565b85858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929a9950505050505050505050565b60608360036122a98282612a4d565b600080806122b9878901896149ae565b919450925090506001600160e01b031983167f6d61fe7000000000000000000000000000000000000000000000000000000000148061232157506001600160e01b031983167f8a91b0e300000000000000000000000000000000000000000000000000000000145b15612364576040517f79bd117b0000000000000000000000000000000000000000000000000000000081526001600160e01b03198416600482015260240161068b565b3360009081526004602090815260408083206001600160e01b0319871684529091529020546001600160a01b0316156123d5576040517f74420d150000000000000000000000000000000000000000000000000000000081526001600160e01b03198416600482015260240161068b565b3360009081526004602090815260408083206001600160e01b031990961683529490529290922080546001600160a01b038a166001600160a01b031960f89490941c600160a01b02939093167fffffffffffffffffffffff00000000000000000000000000000000000000000090911617919091179055925050509392505050565b60608360046124668282612a4d565b6000808061247687890189614a1d565b9194509250905060008084600181111561249257612492614a4b565b1480156124a757506001600160e01b03198316155b1561251d5750336000908152600560205260409020546001600160a01b031680156124f05760405163741cbe0360e01b81526001600160a01b038216600482015260240161068b565b33600090815260056020526040902080546001600160a01b0319166001600160a01b038c161790556125e2565b600184600181111561253157612531614a4b565b036125b0576001600160a01b038116156125695760405163741cbe0360e01b81526001600160a01b038216600482015260240161068b565b503360009081526006602090815260408083206001600160e01b031986168452909152902080546001600160a01b038b81166001600160a01b0319831617909255166125e2565b6040517f5691922f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5098975050505050505050565b60608235830160208181019135908581013586018082019190359060408801358801908101903584838114612650576040517fb4fa3fb300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8181101561274957600088888381811061266f5761266f61462e565b905060200201359050600181036126ae576126a88d8888858181106126965761269661462e565b9050602002810190611cdb91906148d4565b50612740565b600281036126de576126a88d8888858181106126cc576126cc61462e565b9050602002810190611d9491906148d4565b6003810361270e576126a88d8888858181106126fc576126fc61462e565b9050602002810190611df691906148d4565b600481036127405761273e8d88888581811061272c5761272c61462e565b9050602002810190611e5891906148d4565b505b50600101612653565b5082828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929e9d5050505050505050505050505050565b60405163468721a760e01b81526000906001600160a01b0385169063468721a7906127c690869085908790600190600401614741565b6020604051808303816000875af11580156127e5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061280991906147fd565b9050806107ec57604051632b3f6d1160e21b815260040160405180910390fd5b6060600061283983850185614a61565b9250905061284a6002338388613750565b509392505050565b33600090815260036020526040812060609161287084860186614a61565b93509050610c33828288613847565b6060600061288f83850185614aa7565b3360009081526004602090815260408083206001600160e01b031990951683529390529190912080546001600160a01b031916905595945050505050565b60606000806128de84860186614a1d565b9450909250905060008260018111156128f9576128f9614a4b565b14801561290e57506001600160e01b03198116155b156129355733600090815260056020526040902080546001600160a01b0319169055610c33565b600182600181111561294957612949614a4b565b036125b0573360009081526006602090815260408083206001600160e01b031985168452909152902080546001600160a01b0319169055610c33565b60405163468721a760e01b81526000906001600160a01b0385169063468721a7906129bb90869085908790600190600401614741565b6020604051808303816000875af11580156129da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129fe91906147fd565b9050806107ec57604080516001600160a01b0386168152600060208201527fb8bc84bd77f5eb08210b8eb20fd63b3ec6a7992d277ab94663bae0e066f792ac910160405180910390a150505050565b336000908152600160205260409020546001600160a01b03168015612aec576040517f529562a10000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0384811660248301526044820184905282169063529562a19060640160006040518083038186803b158015612ad357600080fd5b505afa158015612ae7573d6000803e3d6000fd5b505050505b505050565b60606001600160f81b03198516612cee576001600160f81b03198416600160f81b03612b355782358301602081019035612b2c33838361391c565b92505050610847565b6001600160f81b03198416612bf357600080366000612b548787612f14565b6040805160018082528183019092529498509296509094509250816020015b6060815260200190600190039081612b73579050509450612bcc33858585858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061175a92505050565b85600081518110612bdf57612bdf61462e565b602002602001018190525050505050610847565b6001600160f81b031980851603612cc9576000612c1360148285876143b4565b612c1c916143de565b60601c9050366000612c3185601481896143b4565b604080516001808252818301909252929450909250816020015b6060815260200190600190039081612c4b579050509350612ca3338484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506139ae92505050565b84600081518110612cb657612cb661462e565b6020026020010181905250505050610847565b604051632e5bf3f960e21b81526001600160f81b03198516600482015260240161068b565b6001600160f81b03198516600160f81b03612e7f576001600160f81b03198416600160f81b03612d385782358301602081019035612d2d338383613a4f565b935061084792505050565b6001600160f81b03198416612dcf57600080366000612d578787612f14565b6040805160018082528183019092529498509296509094509250816020015b6060815260200190600190039081612d76579050509450612bcc33858585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250613aea92505050565b6001600160f81b031980851603612cc9576000612def60148285876143b4565b612df8916143de565b60601c9050366000612e0d85601481896143b4565b604080516001808252818301909252929450909250816020015b6060815260200190600190039081612e27579050509350612ca3338484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250613bbc92505050565b6040516308c3ee0360e11b81526001600160f81b03198616600482015260240161068b565b600054604051612aec9185916001600160a01b0390911690612ecc9086908690602401614ac5565b60408051601f198184030181529190526020810180516001600160e01b03167f3f707e6b00000000000000000000000000000000000000000000000000000000179052612790565b6000803681612f2660148287896143b4565b612f2f916143de565b60601c9350612f426034601487896143b4565b612f4b91614b70565b9250612f5a85603481896143b4565b949793965094505050565b600054604051612aec9185916001600160a01b0390911690612f8d9086908690602401614ac5565b60408051601f198184030181529190526020810180516001600160e01b03167f50c8902200000000000000000000000000000000000000000000000000000000179052612985565b60405163468721a760e01b81526000906001600160a01b0386169063468721a79061300a908790879087908790600401614741565b6020604051808303816000875af1158015613029573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061304d91906147fd565b90508061198d57604080516001600160a01b0387168152600060208201527fb8bc84bd77f5eb08210b8eb20fd63b3ec6a7992d277ab94663bae0e066f792ac910160405180910390a15050505050565b606060006001600160a01b0384166001148015906130c257506130c0858561328e565b155b156130eb57604051637c84ecfb60e01b81526001600160a01b038516600482015260240161068b565b8260000361310c5760405163f725081760e01b815260040160405180910390fd5b8267ffffffffffffffff8111156131255761312561427c565b60405190808252806020026020018201604052801561314e578160200160208202803683370190505b506001600160a01b03808616600090815260208890526040812054929450911691505b6001600160a01b0382161580159061319357506001600160a01b038216600114155b801561319e57508381105b156131f857818382815181106131b6576131b661462e565b6001600160a01b0392831660209182029290920181019190915292811660009081529287905260409092205490911690806131f081614931565b915050613171565b6001600160a01b0382166001148015906132125750600081115b1561323e578261322360018361494a565b815181106132335761323361462e565b602002602001015191505b80835250935093915050565b600060016001600160a01b038316148015906108475750506001600160a01b0390811660009081526020938452604080822093831682529290935291205416151590565b600060016001600160a01b03831614801590610b105750506001600160a01b03908116600090815260209290925260409091205416151590565b6000808360018111156132dd576132dd614a4b565b1480156132f257506001600160e01b03198216155b156133125750336000908152600560205260409020546001600160a01b03165b600183600181111561332657613326614a4b565b0361075057503360009081526006602090815260408083206001600160e01b0319851684529091529020546001600160a01b031692915050565b6060600080368181816133776101008901896148d4565b909250905061338a6006600083856143b4565b61339391614b8e565b60d01c95506133a6600c600683856143b4565b6133af91614b8e565b60d01c94506133c181600c81856143b4565b9350935050506000604051806101c001604052807f84aa190356f56b8c87825f54884392a9907c23ee0f8e1ea86336b763faf021bd60001b8152602001336001600160a01b031681526020018860200135815260200188806040019061342791906148d4565b604051613435929190614bd4565b604051908190039020815260200161345060608a018a6148d4565b60405161345e929190614bd4565b6040518091039020815260200161347489613c8e565b815260200161348289613cac565b81526020018860a00135815260200161349a89613cbc565b81526020016134a889613cda565b81526020016134ba60e08a018a6148d4565b6040516134c8929190614bd4565b604051809103902081526020018665ffffffffffff1681526020018565ffffffffffff1681526020016135086f71727de22e5e9d8baf0edac6f37da03290565b6001600160a01b031690526101c081209091507f1900000000000000000000000000000000000000000000000000000000000000600160f81b61359d604080517f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a794692186020820152469181019190915230606082015260009060800160405160208183030381529060405280519060200120905090565b6040516001600160f81b031993841660208201529290911660218301526022820152604281018290526062016040516020818303038152906040529650505091939590929450565b600060d08265ffffffffffff16901b60a08465ffffffffffff16901b8561360d576000613610565b60015b60ff161717949350505050565b60016000908152602082905260409020546001600160a01b031615613655576040516329e42f3360e11b815260040160405180910390fd5b60016000818152602092909252604090912080546001600160a01b0319169091179055565b6001600160a01b038116158061369957506001600160a01b0381166001145b156136c257604051637c84ecfb60e01b81526001600160a01b038216600482015260240161068b565b6001600160a01b03818116600090815260208490526040902054161561370657604051631034f46960e21b81526001600160a01b038216600482015260240161068b565b60016000818152602093909352604080842080546001600160a01b039485168087529286208054959091166001600160a01b03199586161790559190935280549091169091179055565b6001600160a01b038116158061376f57506001600160a01b0381166001145b1561379857604051637c84ecfb60e01b81526001600160a01b038316600482015260240161068b565b6001600160a01b0382811660009081526020868152604080832087851684529091529020548116908216146137eb57604051637c84ecfb60e01b81526001600160a01b038216600482015260240161068b565b6001600160a01b039081166000908152602085815260408083209584168084528683528184208054968616855297835281842090845282529091208054939092166001600160a01b031993841617909155919091528154169055565b6001600160a01b038116158061386657506001600160a01b0381166001145b1561388f57604051637c84ecfb60e01b81526001600160a01b038316600482015260240161068b565b6001600160a01b038281166000908152602085905260409020548116908216146138d757604051637c84ecfb60e01b81526001600160a01b038216600482015260240161068b565b6001600160a01b0390811660008181526020949094526040808520805494841686529085208054949093166001600160a01b0319948516179092559092528154169055565b600080546040516060929161398f9187916001600160a01b0316906139479088908890602401614ac5565b60408051601f198184030181529190526020810180516001600160e01b03167f61085573000000000000000000000000000000000000000000000000000000001790526139ae565b9050808060200190518101906139a59190614c93565b95945050505050565b60606000846001600160a01b0316635229073f8560008660016040518563ffffffff1660e01b81526004016139e69493929190614741565b6000604051808303816000875af1158015613a05573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613a2d919081019061478d565b925090508061284a57604051632b3f6d1160e21b815260040160405180910390fd5b6060806000613ac78660008054906101000a90046001600160a01b03168787604051602401613a7f929190614ac5565b60408051601f198184030181529190526020810180516001600160e01b03167f9abb6e1700000000000000000000000000000000000000000000000000000000179052613bbc565b905080806020019051810190613add9190614cc8565b9097909650945050505050565b60606000856001600160a01b0316635229073f86868660006040518563ffffffff1660e01b8152600401613b219493929190614741565b6000604051808303816000875af1158015613b40573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613b68919081019061478d565b92509050806117fa57604080516001600160a01b0388168152600060208201527fb8bc84bd77f5eb08210b8eb20fd63b3ec6a7992d277ab94663bae0e066f792ac910160405180910390a150949350505050565b60606000846001600160a01b0316635229073f8560008660016040518563ffffffff1660e01b8152600401613bf49493929190614741565b6000604051808303816000875af1158015613c13573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613c3b919081019061478d565b925090508061284a57604080516001600160a01b0387168152600060208201527fb8bc84bd77f5eb08210b8eb20fd63b3ec6a7992d277ab94663bae0e066f792ac910160405180910390a1509392505050565b60006fffffffffffffffffffffffffffffffff608083013516610750565b6000610750826080013560801c90565b60006fffffffffffffffffffffffffffffffff60c083013516610750565b600060c082013560801c610750565b6001600160a01b0381168114613cfe57600080fd5b50565b803561175581613ce9565b60008083601f840112613d1e57600080fd5b50813567ffffffffffffffff811115613d3657600080fd5b60208301915083602082850101111561060357600080fd5b60008060008060608587031215613d6457600080fd5b843593506020850135613d7681613ce9565b9250604085013567ffffffffffffffff811115613d9257600080fd5b613d9e87828801613d0c565b95989497509550505050565b600080600060408486031215613dbf57600080fd5b83359250602084013567ffffffffffffffff811115613ddd57600080fd5b613de986828701613d0c565b9497909650939450505050565b600080600060608486031215613e0b57600080fd5b833567ffffffffffffffff811115613e2257600080fd5b84016101208187031215613e3557600080fd5b95602085013595506040909401359392505050565b60008083601f840112613e5c57600080fd5b50813567ffffffffffffffff811115613e7457600080fd5b6020830191508360208260051b850101111561060357600080fd5b600060608284031215613ea157600080fd5b50919050565b600080600080600080600080600060a08a8c031215613ec557600080fd5b893567ffffffffffffffff80821115613edd57600080fd5b613ee98d838e01613e4a565b909b50995060208c0135915080821115613f0257600080fd5b613f0e8d838e01613e4a565b909950975060408c0135915080821115613f2757600080fd5b613f338d838e01613e4a565b909750955060608c0135915080821115613f4c57600080fd5b613f588d838e01613e4a565b909550935060808c0135915080821115613f7157600080fd5b50613f7e8c828d01613e8f565b9150509295985092959850929598565b60008060208385031215613fa157600080fd5b823567ffffffffffffffff811115613fb857600080fd5b613fc485828601613e4a565b90969095509350505050565b60008060408385031215613fe357600080fd5b8235613fee81613ce9565b946020939093013593505050565b604080825283519082018190526000906020906060840190828701845b8281101561403e5781516001600160a01b031684529284019290840190600101614019565b50505080925050506001600160a01b03831660208301529392505050565b60005b8381101561407757818101518382015260200161405f565b50506000910152565b6000815180845261409881602086016020860161405c565b601f01601f19169290920160200192915050565b602081526000610b106020830184614080565b6001600160e01b031981168114613cfe57600080fd5b6000602082840312156140e757600080fd5b8135610b10816140bf565b60006020828403121561410457600080fd5b5035919050565b600060208083016020845280855180835260408601915060408160051b87010192506020870160005b8281101561416257603f19888603018452614150858351614080565b94509285019290850190600101614134565b5092979650505050505050565b6000806040838503121561418257600080fd5b823561418d81613ce9565b9150602083013561419d81613ce9565b809150509250929050565b803560ff8116811461175557600080fd5b600080600080606085870312156141cf57600080fd5b84356141da81613ce9565b9350602085013567ffffffffffffffff8111156141f657600080fd5b61420287828801613e4a565b90945092506142159050604086016141a8565b905092959194509250565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b0385168152836020820152606060408201526000614272606083018486614220565b9695505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156142bb576142bb61427c565b604052919050565b600067ffffffffffffffff8211156142dd576142dd61427c565b50601f01601f191660200190565b60006142fe6142f9846142c3565b614292565b905082815283838301111561431257600080fd5b610b1083602083018461405c565b600082601f83011261433157600080fd5b610b10838351602085016142eb565b60006020828403121561435257600080fd5b815167ffffffffffffffff81111561436957600080fd5b61084784828501614320565b8284823760609190911b6bffffffffffffffffffffffff19169101908152601401919050565b6000602082840312156143ad57600080fd5b5051919050565b600080858511156143c457600080fd5b838611156143d157600080fd5b5050820193919092039150565b6bffffffffffffffffffffffff19813581811691601485101561440b5780818660140360031b1b83161692505b505092915050565b84815260606020820152600061442c6060830186614080565b828103604084015261443f818587614220565b979650505050505050565b60006020828403121561445c57600080fd5b8151610b10816140bf565b6000808335601e1984360301811261447e57600080fd5b830160208101925035905067ffffffffffffffff81111561449e57600080fd5b80360382131561060357600080fd5b604081526144ce604082016144c185613d01565b6001600160a01b03169052565b6020830135606082015260006144e76040850185614467565b6101208060808601526144ff61016086018385614220565b925061450e6060880188614467565b9250603f19808786030160a0880152614528858584614220565b9450608089013560c088015260a089013560e0880152610100935060c08901358488015261455960e08a018a614467565b925081888703018489015261456f868483614220565b95505061457e848a018a614467565b945092508087860301610140880152505061459a838383614220565b93505050508260208301529392505050565b6000602082840312156145be57600080fd5b8135610b1081613ce9565b6000808335601e198436030181126145e057600080fd5b83018035915067ffffffffffffffff8211156145fb57600080fd5b6020019150600581901b360382131561060357600080fd5b60006020828403121561462557600080fd5b610b10826141a8565b634e487b7160e01b600052603260045260246000fd5b60008235603e1983360301811261465a57600080fd5b9190910192915050565b8381526001600160a01b03831660208201526060604082015260006139a56060830184614080565b60006020828403121561469e57600080fd5b815167ffffffffffffffff8111156146b557600080fd5b8201601f810184136146c657600080fd5b610847848251602084016142eb565b7f736166652d00000000000000000000000000000000000000000000000000000081526000825161470d81600585016020870161405c565b7f2e657263373537392e76302e302e3100000000000000000000000000000000006005939091019283015250601401919050565b6001600160a01b03851681528360208201526080604082015260006147696080830185614080565b905060ff8316606083015295945050505050565b8051801515811461175557600080fd5b600080604083850312156147a057600080fd5b6147a98361477d565b9150602083015167ffffffffffffffff8111156147c557600080fd5b6147d185828601614320565b9150509250929050565b6001600160a01b03831681526040602082015260006108476040830184614080565b60006020828403121561480f57600080fd5b610b108261477d565b80356002811061175557600080fd5b6000806040838503121561483a57600080fd5b61484383614818565b9150602083013561419d816140bf565b8281526000825161486b81602085016020870161405c565b919091016020019392505050565b60ff8416815260406020808301829052908201839052600090849060608401835b868110156148c85783356148ad81613ce9565b6001600160a01b03168252928201929082019060010161489a565b50979650505050505050565b6000808335601e198436030181126148eb57600080fd5b83018035915067ffffffffffffffff82111561490657600080fd5b60200191503681900382131561060357600080fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016149435761494361491b565b5060010190565b818103818111156107505761075061491b565b600082601f83011261496e57600080fd5b813561497c6142f9826142c3565b81815284602083860101111561499157600080fd5b816020850160208301376000918101602001919091529392505050565b6000806000606084860312156149c357600080fd5b83356149ce816140bf565b925060208401356001600160f81b0319811681146149eb57600080fd5b9150604084013567ffffffffffffffff811115614a0757600080fd5b614a138682870161495d565b9150509250925092565b600080600060608486031215614a3257600080fd5b614a3b84614818565b925060208401356149eb816140bf565b634e487b7160e01b600052602160045260246000fd5b60008060408385031215614a7457600080fd5b8235614a7f81613ce9565b9150602083013567ffffffffffffffff811115614a9b57600080fd5b6147d18582860161495d565b60008060408385031215614aba57600080fd5b8235614a7f816140bf565b60208082528181018390526000906040808401600586901b850182018785805b89811015614b6157888403603f190185528235368c9003605e19018112614b0a578283fd5b8b0160608135614b1981613ce9565b6001600160a01b031686528189013589870152614b3888830183614467565b92508189880152614b4c8288018483614220565b978a0197965050509287019250600101614ae5565b50919998505050505050505050565b8035602083101561075057600019602084900360031b1b1692915050565b7fffffffffffff0000000000000000000000000000000000000000000000000000813581811691600685101561440b5760069490940360031b84901b1690921692915050565b8183823760009101908152919050565b600067ffffffffffffffff821115614bfe57614bfe61427c565b5060051b60200190565b600082601f830112614c1957600080fd5b81516020614c296142f983614be4565b82815260059290921b84018101918181019086841115614c4857600080fd5b8286015b84811015614c8857805167ffffffffffffffff811115614c6c5760008081fd5b614c7a8986838b0101614320565b845250918301918301614c4c565b509695505050505050565b600060208284031215614ca557600080fd5b815167ffffffffffffffff811115614cbc57600080fd5b61084784828501614c08565b60008060408385031215614cdb57600080fd5b825167ffffffffffffffff80821115614cf357600080fd5b818501915085601f830112614d0757600080fd5b81516020614d176142f983614be4565b82815260059290921b84018101918181019089841115614d3657600080fd5b948201945b83861015614d5b57614d4c8661477d565b82529482019490820190614d3b565b91880151919650909350505080821115614d7457600080fd5b506147d185828601614c0856fea2646970667358221220310490ce1c9ce1b361eae1667f3c75f8c90f8265fa8bcd2024bdff0a007dc05564736f6c63430008170033608060405234801561001057600080fd5b506109eb806100206000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80636a2216571161005b5780636a221657146100df57806378272525146100f25780639517e29f146101055780639abb6e171461011857600080fd5b80633f707e6b1461008257806350c890221461009757806361085573146100bf575b600080fd5b6100956100903660046105fb565b610139565b005b6100aa6100a53660046105fb565b6101a3565b60405190151581526020015b60405180910390f35b6100d26100cd3660046105fb565b610212565b6040516100b691906106f8565b6100956100ed366004610744565b6102cc565b610095610100366004610806565b6102ef565b610095610113366004610806565b6103b1565b61012b6101263660046105fb565b610469565b6040516100b692919061088d565b8060005b8181101561019d5736848483818110610158576101586108e7565b905060200281019061016a91906108fd565b905061019361017c602083018361091d565b602083013561018e6040850185610938565b610593565b505060010161013d565b50505050565b600081815b8181101561020a57368585838181106101c3576101c36108e7565b90506020028101906101d591906108fd565b90506101fe6101e7602083018361091d565b60208301356101f96040850185610938565b6105c9565b509350506001016101a8565b505092915050565b6060818067ffffffffffffffff81111561022e5761022e61072e565b60405190808252806020026020018201604052801561026157816020015b606081526020019060019003908161024c5790505b50915060005b8181101561020a5736858583818110610282576102826108e7565b905060200281019061029491906108fd565b90506102a661017c602083018361091d565b8483815181106102b8576102b86108e7565b602090810291909101015250600101610267565b604051600080835160208501865afa3d6000833e80156102ea573d82f35b503d81fd5b6040517f8a91b0e30000000000000000000000000000000000000000000000000000000081526001600160a01b03841690638a91b0e3906103369085908590600401610986565b600060405180830381600087803b15801561035057600080fd5b505af1158015610364573d6000803e3d6000fd5b5050604080518781526001600160a01b03871660208201527f341347516a9de374859dfda710fa4828b2d48cb57d4fbe4c1149612b8e02276e93500190505b60405180910390a150505050565b6040517f6d61fe700000000000000000000000000000000000000000000000000000000081526001600160a01b03841690636d61fe70906103f89085908590600401610986565b600060405180830381600087803b15801561041257600080fd5b505af1158015610426573d6000803e3d6000fd5b5050604080518781526001600160a01b03871660208201527fd21d0b289f126c4b473ea641963e766833c2f13866e4ff480abd787c100ef12393500190506103a3565b606080828067ffffffffffffffff8111156104865761048661072e565b6040519080825280602002602001820160405280156104b957816020015b60608152602001906001900390816104a45790505b5091508067ffffffffffffffff8111156104d5576104d561072e565b6040519080825280602002602001820160405280156104fe578160200160208202803683370190505b50925060005b8181101561058a573686868381811061051f5761051f6108e7565b905060200281019061053191906108fd565b90506105436101e7602083018361091d565b868481518110610555576105556108e7565b6020026020010186858151811061056e5761056e6108e7565b6020908102919091010191909152901515905250600101610504565b50509250929050565b60405181838237600038838387895af16105b0573d6000823e3d81fd5b3d8152602081013d6000823e3d01604052949350505050565b604051600090828482376000388483888a5af11591503d8152602081013d6000823e3d81016040525094509492505050565b6000806020838503121561060e57600080fd5b823567ffffffffffffffff8082111561062657600080fd5b818501915085601f83011261063a57600080fd5b81358181111561064957600080fd5b8660208260051b850101111561065e57600080fd5b60209290920196919550909350505050565b600082825180855260208086019550808260051b8401018186016000805b858110156106ea57601f1980888603018b5283518051808752845b818110156106c4578281018901518882018a015288016106a9565b5086810188018590529b87019b601f01909116909401850193509184019160010161068e565b509198975050505050505050565b60208152600061070b6020830184610670565b9392505050565b80356001600160a01b038116811461072957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561075757600080fd5b61076083610712565b9150602083013567ffffffffffffffff8082111561077d57600080fd5b818501915085601f83011261079157600080fd5b8135818111156107a3576107a361072e565b604051601f8201601f19908116603f011681019083821181831017156107cb576107cb61072e565b816040528281528860208487010111156107e457600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6000806000806060858703121561081c57600080fd5b8435935061082c60208601610712565b9250604085013567ffffffffffffffff8082111561084957600080fd5b818701915087601f83011261085d57600080fd5b81358181111561086c57600080fd5b88602082850101111561087e57600080fd5b95989497505060200194505050565b604080825283519082018190526000906020906060840190828701845b828110156108c85781511515845292840192908401906001016108aa565b50505083810360208501526108dd8186610670565b9695505050505050565b634e487b7160e01b600052603260045260246000fd5b60008235605e1983360301811261091357600080fd5b9190910192915050565b60006020828403121561092f57600080fd5b61070b82610712565b6000808335601e1984360301811261094f57600080fd5b83018035915067ffffffffffffffff82111561096a57600080fd5b60200191503681900382131561097f57600080fd5b9250929050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f1916010191905056fea2646970667358221220b34bcdfa8e8aa5a58ed221d3799926e5a9a47e630242a4d564baf7fa090efe3364736f6c63430008170033",deployedBytecode$2="0x6080604052600436106101635760003560e01c8063b0d691fe116100c0578063e9ae5c5311610074578063eab77e1711610059578063eab77e1714610482578063f2dc691d146104a2578063f698da25146104c25761016a565b8063e9ae5c531461044f578063ea5f61d0146104625761016a565b8063d03c7914116100a5578063d03c7914146103ef578063d691c9641461040f578063d828435d1461042f5761016a565b8063b0d691fe14610380578063b875d5d8146103a35761016a565b80636a5e1515116101175780639517e29f116100fc5780639517e29f146103385780639cfd7cff1461034b578063a71763a81461036d5761016a565b80636a5e1515146102f7578063855713681461030a5761016a565b80631626ba7e116101485780631626ba7e1461028857806319822f7c146102c1578063540fb4f9146102e25761016a565b80630a664dba14610214578063112d3a7d146102585761016a565b3661016a57005b600036606060003560e01c63bc197c81811463f23a6e6182141763150b7a028214171561019b57806020526020603cf35b5033600090815260056020908152604080832054600683528184206001600160e01b031985351680865293529083205491926001600160a01b039182169290911690806101e8848461052b565b915091506101f6888861060a565b955061020484848484610756565b5050505050915050805190602001f35b34801561022057600080fd5b50336000908152600560205260409020546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b34801561026457600080fd5b50610278610273366004613d4e565b6107f2565b604051901515815260200161024f565b34801561029457600080fd5b506102a86102a3366004613daa565b61084f565b6040516001600160e01b0319909116815260200161024f565b6102d46102cf366004613df6565b610b17565b60405190815260200161024f565b6102f56102f0366004613ea7565b610c3c565b005b6102f5610305366004613f8e565b610c89565b34801561031657600080fd5b5061032a610325366004613fd0565b610cea565b60405161024f929190613ffc565b6102f5610346366004613d4e565b610d06565b34801561035757600080fd5b50610360610e52565b60405161024f91906140ac565b6102f561037b366004613d4e565b610ee4565b34801561038c57600080fd5b506f71727de22e5e9d8baf0edac6f37da03261023b565b3480156103af57600080fd5b5061023b6103be3660046140d5565b3360009081526006602090815260408083206001600160e01b0319909416835292905220546001600160a01b031690565b3480156103fb57600080fd5b5061027861040a3660046140f2565b611072565b61042261041d366004613daa565b61111b565b60405161024f919061410b565b34801561043b57600080fd5b506102d461044a36600461416f565b61120f565b6102f561045d366004613daa565b6112e6565b34801561046e57600080fd5b5061032a61047d366004613fd0565b61168b565b34801561048e57600080fd5b506102f561049d3660046141b9565b6116b5565b3480156104ae57600080fd5b506102786104bd3660046140f2565b61170b565b3480156104ce57600080fd5b506102d4604080517f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a794692186020820152469181019190915230606082015260009060800160405160208183030381529060405280519060200120905090565b6060806001600160a01b038416156105c6576105ad3385600036601319013560601c5b346000366040516024016105659493929190614249565b60408051601f198184030181529190526020810180516001600160e01b03167fd68f60250000000000000000000000000000000000000000000000000000000017905261175a565b9150818060200190518101906105c39190614340565b91505b6001600160a01b03831615610603576105ea3384600036601319013560601c61054e565b9050808060200190518101906106009190614340565b90505b9250929050565b3360009081526004602090815260408083206001600160e01b0319843516845290915290208054606091906001600160a01b03811690600160a01b900460f81b81610694576040517f48c9ceda0000000000000000000000000000000000000000000000000000000081526001600160e01b03196000351660048201526024015b60405180910390fd5b6001600160f81b031981167ffe0000000000000000000000000000000000000000000000000000000000000003610705576106fb3383888836601319013560601c6040516020016106e793929190614375565b604051602081830303815290604052611803565b9350505050610750565b6001600160f81b0319811661074c576106fb33836000898936601319013560601c60405160200161073893929190614375565b60405160208183030381529060405261175a565b5050505b92915050565b6001600160a01b038416156107c5576107c5338560008560405160240161077d91906140ac565b60408051601f198184030181529190526020810180516001600160e01b03167f173bf7da000000000000000000000000000000000000000000000000000000001790526118f5565b6001600160a01b038316156107ec576107ec338460008460405160240161077d91906140ac565b50505050565b60006001850361080c5761080584611994565b9050610847565b6002850361081d57610805846119a2565b60038503610830576108058484846119bb565b6004850361084357610805848484611a08565b5060005b949350505050565b600033821580156108e057506040517f5ae6bd37000000000000000000000000000000000000000000000000000000008152600481018690526001600160a01b03821690635ae6bd3790602401602060405180830381865afa1580156108b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108dd919061439b565b15155b156108f55750630b135d3f60e11b9050610b10565b600061090460148286886143b4565b61090d916143de565b60601c9050801580610925575061092381611994565b155b15610a7b5760006109f0836001600160a01b031663f698da256040518163ffffffff1660e01b8152600401602060405180830381865afa15801561096d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610991919061439b565b60408051602081018b90527f60b3cbf8b4a223d68d641b3b6ddf9a298e7f33710cf3d3a9d1146b5a6150fbca910160408051601f1981840301815282825280516020918201209083015201604051602081830303815290604052611a43565b805160208201209091506001600160a01b03841663934f3a118284610a188a6014818e6143b4565b6040518563ffffffff1660e01b8152600401610a379493929190614413565b60006040518083038186803b158015610a4f57600080fd5b505afa158015610a63573d6000803e3d6000fd5b50630b135d3f60e11b9750610b109650505050505050565b6000610af4338336601319013560601c8a610a998a6014818e6143b4565b604051602401610aac9493929190614249565b60408051601f198184030181529190526020810180516001600160e01b03167ff551e2ee00000000000000000000000000000000000000000000000000000000179052611803565b905080806020019051810190610b0a919061444a565b93505050505b9392505050565b600060131936013560601c6f71727de22e5e9d8baf0edac6f37da03214610b5157604051635629665f60e11b815260040160405180910390fd5b6020840135606081901c90811580610b6f5750610b6d82611994565b155b15610b8457610b7d86611abd565b9250610c02565b6000610be8338460008a8a604051602401610ba09291906144ad565b60408051601f198184030181529190526020810180516001600160e01b03167f970032030000000000000000000000000000000000000000000000000000000017905261175a565b905080806020019051810190610bfe919061439b565b9350505b8315610c3357610c33336f71727de22e5e9d8baf0edac6f37da03286604051806020016040528060008152506118f5565b50509392505050565b610c6e610c4c60208301836145ac565b610c5960208401846145c9565b610c696060860160408701614613565b611b7c565b610c7e8989898989898989611c43565b505050505050505050565b610c94600233611e9f565b8060005b818110156107ec5736848483818110610cb357610cb361462e565b9050602002810190610cc59190614644565b9050610ce133610cd860208401846145ac565b60029190611f1a565b50600101610c98565b60606000610cfb600233868661200f565b915091509250929050565b3360009081526005602090815260408083205460068352818420639517e29f60e01b80865293529083205491926001600160a01b03918216929091169080610d4e848461052b565b91509150606060018a03610d6e57610d678989896121d4565b9050610dec565b60028a03610d8157610d67898989612230565b60038a03610d9457610d6789898961229a565b60048a03610da757610d67898989612457565b89610db757610d678989896125ef565b6040517f41c38b30000000000000000000000000000000000000000000000000000000008152600481018b905260240161068b565b600054604051610e459133916001600160a01b0390911690610e16908e908e908790602401614664565b60408051601f198184030181529190526020810180516001600160e01b0316639517e29f60e01b179052612790565b50610c7e84848484610756565b60606000336001600160a01b031663ffa1ad746040518163ffffffff1660e01b8152600401600060405180830381865afa158015610e94573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610ebc919081019061468c565b905080604051602001610ecf91906146d5565b60405160208183030381529060405291505090565b33600090815260056020908152604080832054600683528184207fa71763a80000000000000000000000000000000000000000000000000000000080865293529083205491926001600160a01b03918216929091169080610f45848461052b565b91509150610f606f71727de22e5e9d8baf0edac6f37da03290565b6001600160a01b031636601319013560601c6001600160a01b03161480610f8e57503360131936013560601c145b610fab57604051635629665f60e11b815260040160405180910390fd5b606060018a03610fc757610fc0898989612829565b9050611000565b60028a03610fda57610fc0898989612852565b60038a03610fed57610fc089898961287f565b60048a03610db757610fc08989896128cd565b600054604051610e459133916001600160a01b039091169061102a908e908e908790602401614664565b60408051601f198184030181529190526020810180516001600160e01b03167f7827252500000000000000000000000000000000000000000000000000000000179052612985565b600081600881901b6001600160f81b03198216600160f81b0361109857600192506110d4565b6001600160f81b031982166110b057600192506110d4565b6001600160f81b0319808316036110ca57600192506110d4565b5060009392505050565b8280156110e957506001600160f81b03198116155b156110f5575050919050565b82801561110f57506001600160f81b03198116600160f81b145b156110ca575050919050565b606061112d366013190135821c6119a2565b61116d576040517fb927fe5e00000000000000000000000000000000000000000000000000000000815260131936013560601c600482015260240161068b565b33600090815260056020908152604080832054600683528184207fd691c9640000000000000000000000000000000000000000000000000000000080865293529083205491926001600160a01b039182169290911690806111ce848461052b565b915091503360026111df8282612a4d565b8a600881901b6111f181838e8e612af1565b99505050505061120384848484610756565b50505050509392505050565b6000602082901b77ffffffffffffffffffffffffffffffffffffffff00000000166f71727de22e5e9d8baf0edac6f37da0326040517f35567e1a0000000000000000000000000000000000000000000000000000000081526001600160a01b03868116600483015277ffffffffffffffffffffffffffffffffffffffffffffffff8416602483015291909116906335567e1a90604401602060405180830381865afa1580156112c2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610847919061439b565b33600090815260056020908152604080832054600683528184207fe9ae5c530000000000000000000000000000000000000000000000000000000080865293529083205491926001600160a01b03918216929091169080611347848461052b565b915091506113626f71727de22e5e9d8baf0edac6f37da03290565b6001600160a01b031636601319013560601c6001600160a01b0316148061139057503360131936013560601c145b6113ad57604051635629665f60e11b815260040160405180910390fd5b87600881901b336001600160f81b0319821661151c576001600160f81b03198316600160f81b036113f45789358a016020810190356113ed838383612ea4565b5050611672565b6001600160f81b03198316611466576000803660006114138e8e612f14565b935093509350935061145d85858585858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506118f592505050565b50505050611672565b6001600160f81b0319808416036114f75760006114866014828c8e6143b4565b61148f916143de565b60601c90503660008c8c60149080926114aa939291906143b4565b915091506114ef848484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061279092505050565b505050611672565b604051632e5bf3f960e21b81526001600160f81b03198416600482015260240161068b565b6001600160f81b03198216600160f81b0361164d576001600160f81b03198316600160f81b0361155b5789358a016020810190356113ed838383612f65565b6001600160f81b031983166115c45760008036600061157a8e8e612f14565b935093509350935061145d85858585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612fd592505050565b6001600160f81b0319808416036114f75760006115e46014828c8e6143b4565b6115ed916143de565b60601c90503660008c8c6014908092611608939291906143b4565b915091506114ef848484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061298592505050565b6040516308c3ee0360e11b81526001600160f81b03198316600482015260240161068b565b50505061168184848484610756565b5050505050505050565b336000908152600360205260408120606091906116a981868661309d565b92509250509250929050565b60131936013560601c6f71727de22e5e9d8baf0edac6f37da03214806116e257503360131936013560601c145b6116ff57604051635629665f60e11b815260040160405180910390fd5b6107ec84848484611b7c565b60006001820361171d57506001919050565b6002820361172d57506001919050565b6003820361173d57506001919050565b6004820361174d57506001919050565b506000919050565b919050565b60606000856001600160a01b0316635229073f86868660006040518563ffffffff1660e01b81526004016117919493929190614741565b6000604051808303816000875af11580156117b0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526117d8919081019061478d565b92509050806117fa57604051632b3f6d1160e21b815260040160405180910390fd5b50949350505050565b60606000838360405160240161181a9291906147db565b60408051601f198184030181529181526020820180516001600160e01b03167f6a221657000000000000000000000000000000000000000000000000000000001790526000805491519293509161187f916001600160a01b03169084906024016147db565b60408051601f19818403018152919052602080820180516001600160e01b03167fb4faba090000000000000000000000000000000000000000000000000000000017815282519293509091600091895afa5060203d036040519350808401604052806020853e50600051610c3357825160208401fd5b60405163468721a760e01b81526000906001600160a01b0386169063468721a79061192a908790879087908790600401614741565b6020604051808303816000875af1158015611949573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196d91906147fd565b90508061198d57604051632b3f6d1160e21b815260040160405180910390fd5b5050505050565b60006107506002338461324a565b336000908152600360205260408120610b10818461328e565b6000806119ca838501856140d5565b3360009081526004602090815260408083206001600160e01b0319909416835292905220546001600160a01b03908116908616149150509392505050565b60008080611a1884860186614827565b915091506000611a2883836132c8565b6001600160a01b039081169088161493505050509392505050565b6060601960f81b600160f81b858585604051602001611a63929190614853565b60408051808303601f190181529082905280516020918201206001600160f81b0319958616918301919091529290931660218401526022830152604282015260620160405160208183030381529060405290509392505050565b600080600080366000611acf87613360565b845160208601206040517f934f3a11000000000000000000000000000000000000000000000000000000008152959a5093985091965094509250339163934f3a1191611b2391899087908790600401614413565b60006040518083038186803b158015611b3b57600080fd5b505afa925050508015611b4c575060015b611b6357611b5c600184866135e5565b9550611b72565b611b6f600084866135e5565b95505b5050505050919050565b3360008181526001602052604080822080546001600160a01b0319166001600160a01b03891617905551611c0792918791611bbf90869089908990602401614879565b60408051601f198184030181529190526020810180516001600160e01b03167ff05c04e1000000000000000000000000000000000000000000000000000000001790526118f5565b6040516001600160a01b0385169033907f9452c8fb077c3ea8f28a77c87488af657b1e44d010ad9a5992d73870da040e9490600090a350505050565b3360009081527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e0602052604090205487906001600160a01b0316611cf057611c8c600233611e9f565b60005b81811015611cea57368a8a83818110611caa57611caa61462e565b9050602002810190611cbc9190614644565b9050611ce0611cce60208301836145ac565b611cdb60208401846148d4565b6121d4565b5050600101611c8f565b50611d2a565b8015611d2a576040517fd8e3ed1b00000000000000000000000000000000000000000000000000000000815233600482015260240161068b565b336000908152600360205260409020611d428161361d565b86915060005b82811015611da35736898983818110611d6357611d6361462e565b9050602002810190611d759190614644565b9050611d99611d8760208301836145ac565b611d9460208401846148d4565b612230565b5050600101611d48565b5084915060005b82811015611e055736878783818110611dc557611dc561462e565b9050602002810190611dd79190614644565b9050611dfb611de960208301836145ac565b611df660208401846148d4565b61229a565b5050600101611daa565b5082915060005b82811015611e675736858583818110611e2757611e2761462e565b9050602002810190611e399190614644565b9050611e5d611e4b60208301836145ac565b611e5860208401846148d4565b612457565b5050600101611e0c565b5060405133907ff48581d8a62b775b74f2fb67f1d5806a9a356fbcc598040ab3071d3e37af40c290600090a250505050505050505050565b60016000908152602083815260408083206001600160a01b0380861685529252909120541615611ee2576040516329e42f3360e11b815260040160405180910390fd5b60016000818152602093845260408082206001600160a01b0394909416825292909352912080546001600160a01b0319169091179055565b6001600160a01b0381161580611f3957506001600160a01b0381166001145b15611f6257604051637c84ecfb60e01b81526001600160a01b038216600482015260240161068b565b6001600160a01b0381811660009081526020858152604080832086851684529091529020541615611fb157604051631034f46960e21b81526001600160a01b038216600482015260240161068b565b60016000908152602084815260408083206001600160a01b039586168085528184528285208054968816808752988552838620918652908452919093208054949095166001600160a01b031994851617909455528154169091179055565b606060006001600160a01b038416600114801590612035575061203386868661324a565b155b1561205e57604051637c84ecfb60e01b81526001600160a01b038516600482015260240161068b565b8260000361207f5760405163f725081760e01b815260040160405180910390fd5b8267ffffffffffffffff8111156120985761209861427c565b6040519080825280602002602001820160405280156120c1578160200160208202803683370190505b506001600160a01b038086166000908152602089815260408083208a85168452909152812054929450911691505b6001600160a01b0382161580159061211157506001600160a01b038216600114155b801561211c57508381105b1561218157818382815181106121345761213461462e565b6001600160a01b039283166020918202929092018101919091529281166000908152888452604080822089841683529094529290922054909116908061217981614931565b9150506120ef565b6001600160a01b03821660011480159061219b5750600081115b156121c757826121ac60018361494a565b815181106121bc576121bc61462e565b602002602001015191505b8083525094509492505050565b60608360016121e38282612a4d565b6121ef60023388611f1a565b84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929998505050505050505050565b606083600261223f8282612a4d565b336000908152600360205260409020612258818861367a565b85858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929a9950505050505050505050565b60608360036122a98282612a4d565b600080806122b9878901896149ae565b919450925090506001600160e01b031983167f6d61fe7000000000000000000000000000000000000000000000000000000000148061232157506001600160e01b031983167f8a91b0e300000000000000000000000000000000000000000000000000000000145b15612364576040517f79bd117b0000000000000000000000000000000000000000000000000000000081526001600160e01b03198416600482015260240161068b565b3360009081526004602090815260408083206001600160e01b0319871684529091529020546001600160a01b0316156123d5576040517f74420d150000000000000000000000000000000000000000000000000000000081526001600160e01b03198416600482015260240161068b565b3360009081526004602090815260408083206001600160e01b031990961683529490529290922080546001600160a01b038a166001600160a01b031960f89490941c600160a01b02939093167fffffffffffffffffffffff00000000000000000000000000000000000000000090911617919091179055925050509392505050565b60608360046124668282612a4d565b6000808061247687890189614a1d565b9194509250905060008084600181111561249257612492614a4b565b1480156124a757506001600160e01b03198316155b1561251d5750336000908152600560205260409020546001600160a01b031680156124f05760405163741cbe0360e01b81526001600160a01b038216600482015260240161068b565b33600090815260056020526040902080546001600160a01b0319166001600160a01b038c161790556125e2565b600184600181111561253157612531614a4b565b036125b0576001600160a01b038116156125695760405163741cbe0360e01b81526001600160a01b038216600482015260240161068b565b503360009081526006602090815260408083206001600160e01b031986168452909152902080546001600160a01b038b81166001600160a01b0319831617909255166125e2565b6040517f5691922f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5098975050505050505050565b60608235830160208181019135908581013586018082019190359060408801358801908101903584838114612650576040517fb4fa3fb300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8181101561274957600088888381811061266f5761266f61462e565b905060200201359050600181036126ae576126a88d8888858181106126965761269661462e565b9050602002810190611cdb91906148d4565b50612740565b600281036126de576126a88d8888858181106126cc576126cc61462e565b9050602002810190611d9491906148d4565b6003810361270e576126a88d8888858181106126fc576126fc61462e565b9050602002810190611df691906148d4565b600481036127405761273e8d88888581811061272c5761272c61462e565b9050602002810190611e5891906148d4565b505b50600101612653565b5082828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929e9d5050505050505050505050505050565b60405163468721a760e01b81526000906001600160a01b0385169063468721a7906127c690869085908790600190600401614741565b6020604051808303816000875af11580156127e5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061280991906147fd565b9050806107ec57604051632b3f6d1160e21b815260040160405180910390fd5b6060600061283983850185614a61565b9250905061284a6002338388613750565b509392505050565b33600090815260036020526040812060609161287084860186614a61565b93509050610c33828288613847565b6060600061288f83850185614aa7565b3360009081526004602090815260408083206001600160e01b031990951683529390529190912080546001600160a01b031916905595945050505050565b60606000806128de84860186614a1d565b9450909250905060008260018111156128f9576128f9614a4b565b14801561290e57506001600160e01b03198116155b156129355733600090815260056020526040902080546001600160a01b0319169055610c33565b600182600181111561294957612949614a4b565b036125b0573360009081526006602090815260408083206001600160e01b031985168452909152902080546001600160a01b0319169055610c33565b60405163468721a760e01b81526000906001600160a01b0385169063468721a7906129bb90869085908790600190600401614741565b6020604051808303816000875af11580156129da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129fe91906147fd565b9050806107ec57604080516001600160a01b0386168152600060208201527fb8bc84bd77f5eb08210b8eb20fd63b3ec6a7992d277ab94663bae0e066f792ac910160405180910390a150505050565b336000908152600160205260409020546001600160a01b03168015612aec576040517f529562a10000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0384811660248301526044820184905282169063529562a19060640160006040518083038186803b158015612ad357600080fd5b505afa158015612ae7573d6000803e3d6000fd5b505050505b505050565b60606001600160f81b03198516612cee576001600160f81b03198416600160f81b03612b355782358301602081019035612b2c33838361391c565b92505050610847565b6001600160f81b03198416612bf357600080366000612b548787612f14565b6040805160018082528183019092529498509296509094509250816020015b6060815260200190600190039081612b73579050509450612bcc33858585858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061175a92505050565b85600081518110612bdf57612bdf61462e565b602002602001018190525050505050610847565b6001600160f81b031980851603612cc9576000612c1360148285876143b4565b612c1c916143de565b60601c9050366000612c3185601481896143b4565b604080516001808252818301909252929450909250816020015b6060815260200190600190039081612c4b579050509350612ca3338484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506139ae92505050565b84600081518110612cb657612cb661462e565b6020026020010181905250505050610847565b604051632e5bf3f960e21b81526001600160f81b03198516600482015260240161068b565b6001600160f81b03198516600160f81b03612e7f576001600160f81b03198416600160f81b03612d385782358301602081019035612d2d338383613a4f565b935061084792505050565b6001600160f81b03198416612dcf57600080366000612d578787612f14565b6040805160018082528183019092529498509296509094509250816020015b6060815260200190600190039081612d76579050509450612bcc33858585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250613aea92505050565b6001600160f81b031980851603612cc9576000612def60148285876143b4565b612df8916143de565b60601c9050366000612e0d85601481896143b4565b604080516001808252818301909252929450909250816020015b6060815260200190600190039081612e27579050509350612ca3338484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250613bbc92505050565b6040516308c3ee0360e11b81526001600160f81b03198616600482015260240161068b565b600054604051612aec9185916001600160a01b0390911690612ecc9086908690602401614ac5565b60408051601f198184030181529190526020810180516001600160e01b03167f3f707e6b00000000000000000000000000000000000000000000000000000000179052612790565b6000803681612f2660148287896143b4565b612f2f916143de565b60601c9350612f426034601487896143b4565b612f4b91614b70565b9250612f5a85603481896143b4565b949793965094505050565b600054604051612aec9185916001600160a01b0390911690612f8d9086908690602401614ac5565b60408051601f198184030181529190526020810180516001600160e01b03167f50c8902200000000000000000000000000000000000000000000000000000000179052612985565b60405163468721a760e01b81526000906001600160a01b0386169063468721a79061300a908790879087908790600401614741565b6020604051808303816000875af1158015613029573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061304d91906147fd565b90508061198d57604080516001600160a01b0387168152600060208201527fb8bc84bd77f5eb08210b8eb20fd63b3ec6a7992d277ab94663bae0e066f792ac910160405180910390a15050505050565b606060006001600160a01b0384166001148015906130c257506130c0858561328e565b155b156130eb57604051637c84ecfb60e01b81526001600160a01b038516600482015260240161068b565b8260000361310c5760405163f725081760e01b815260040160405180910390fd5b8267ffffffffffffffff8111156131255761312561427c565b60405190808252806020026020018201604052801561314e578160200160208202803683370190505b506001600160a01b03808616600090815260208890526040812054929450911691505b6001600160a01b0382161580159061319357506001600160a01b038216600114155b801561319e57508381105b156131f857818382815181106131b6576131b661462e565b6001600160a01b0392831660209182029290920181019190915292811660009081529287905260409092205490911690806131f081614931565b915050613171565b6001600160a01b0382166001148015906132125750600081115b1561323e578261322360018361494a565b815181106132335761323361462e565b602002602001015191505b80835250935093915050565b600060016001600160a01b038316148015906108475750506001600160a01b0390811660009081526020938452604080822093831682529290935291205416151590565b600060016001600160a01b03831614801590610b105750506001600160a01b03908116600090815260209290925260409091205416151590565b6000808360018111156132dd576132dd614a4b565b1480156132f257506001600160e01b03198216155b156133125750336000908152600560205260409020546001600160a01b03165b600183600181111561332657613326614a4b565b0361075057503360009081526006602090815260408083206001600160e01b0319851684529091529020546001600160a01b031692915050565b6060600080368181816133776101008901896148d4565b909250905061338a6006600083856143b4565b61339391614b8e565b60d01c95506133a6600c600683856143b4565b6133af91614b8e565b60d01c94506133c181600c81856143b4565b9350935050506000604051806101c001604052807f84aa190356f56b8c87825f54884392a9907c23ee0f8e1ea86336b763faf021bd60001b8152602001336001600160a01b031681526020018860200135815260200188806040019061342791906148d4565b604051613435929190614bd4565b604051908190039020815260200161345060608a018a6148d4565b60405161345e929190614bd4565b6040518091039020815260200161347489613c8e565b815260200161348289613cac565b81526020018860a00135815260200161349a89613cbc565b81526020016134a889613cda565b81526020016134ba60e08a018a6148d4565b6040516134c8929190614bd4565b604051809103902081526020018665ffffffffffff1681526020018565ffffffffffff1681526020016135086f71727de22e5e9d8baf0edac6f37da03290565b6001600160a01b031690526101c081209091507f1900000000000000000000000000000000000000000000000000000000000000600160f81b61359d604080517f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a794692186020820152469181019190915230606082015260009060800160405160208183030381529060405280519060200120905090565b6040516001600160f81b031993841660208201529290911660218301526022820152604281018290526062016040516020818303038152906040529650505091939590929450565b600060d08265ffffffffffff16901b60a08465ffffffffffff16901b8561360d576000613610565b60015b60ff161717949350505050565b60016000908152602082905260409020546001600160a01b031615613655576040516329e42f3360e11b815260040160405180910390fd5b60016000818152602092909252604090912080546001600160a01b0319169091179055565b6001600160a01b038116158061369957506001600160a01b0381166001145b156136c257604051637c84ecfb60e01b81526001600160a01b038216600482015260240161068b565b6001600160a01b03818116600090815260208490526040902054161561370657604051631034f46960e21b81526001600160a01b038216600482015260240161068b565b60016000818152602093909352604080842080546001600160a01b039485168087529286208054959091166001600160a01b03199586161790559190935280549091169091179055565b6001600160a01b038116158061376f57506001600160a01b0381166001145b1561379857604051637c84ecfb60e01b81526001600160a01b038316600482015260240161068b565b6001600160a01b0382811660009081526020868152604080832087851684529091529020548116908216146137eb57604051637c84ecfb60e01b81526001600160a01b038216600482015260240161068b565b6001600160a01b039081166000908152602085815260408083209584168084528683528184208054968616855297835281842090845282529091208054939092166001600160a01b031993841617909155919091528154169055565b6001600160a01b038116158061386657506001600160a01b0381166001145b1561388f57604051637c84ecfb60e01b81526001600160a01b038316600482015260240161068b565b6001600160a01b038281166000908152602085905260409020548116908216146138d757604051637c84ecfb60e01b81526001600160a01b038216600482015260240161068b565b6001600160a01b0390811660008181526020949094526040808520805494841686529085208054949093166001600160a01b0319948516179092559092528154169055565b600080546040516060929161398f9187916001600160a01b0316906139479088908890602401614ac5565b60408051601f198184030181529190526020810180516001600160e01b03167f61085573000000000000000000000000000000000000000000000000000000001790526139ae565b9050808060200190518101906139a59190614c93565b95945050505050565b60606000846001600160a01b0316635229073f8560008660016040518563ffffffff1660e01b81526004016139e69493929190614741565b6000604051808303816000875af1158015613a05573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613a2d919081019061478d565b925090508061284a57604051632b3f6d1160e21b815260040160405180910390fd5b6060806000613ac78660008054906101000a90046001600160a01b03168787604051602401613a7f929190614ac5565b60408051601f198184030181529190526020810180516001600160e01b03167f9abb6e1700000000000000000000000000000000000000000000000000000000179052613bbc565b905080806020019051810190613add9190614cc8565b9097909650945050505050565b60606000856001600160a01b0316635229073f86868660006040518563ffffffff1660e01b8152600401613b219493929190614741565b6000604051808303816000875af1158015613b40573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613b68919081019061478d565b92509050806117fa57604080516001600160a01b0388168152600060208201527fb8bc84bd77f5eb08210b8eb20fd63b3ec6a7992d277ab94663bae0e066f792ac910160405180910390a150949350505050565b60606000846001600160a01b0316635229073f8560008660016040518563ffffffff1660e01b8152600401613bf49493929190614741565b6000604051808303816000875af1158015613c13573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613c3b919081019061478d565b925090508061284a57604080516001600160a01b0387168152600060208201527fb8bc84bd77f5eb08210b8eb20fd63b3ec6a7992d277ab94663bae0e066f792ac910160405180910390a1509392505050565b60006fffffffffffffffffffffffffffffffff608083013516610750565b6000610750826080013560801c90565b60006fffffffffffffffffffffffffffffffff60c083013516610750565b600060c082013560801c610750565b6001600160a01b0381168114613cfe57600080fd5b50565b803561175581613ce9565b60008083601f840112613d1e57600080fd5b50813567ffffffffffffffff811115613d3657600080fd5b60208301915083602082850101111561060357600080fd5b60008060008060608587031215613d6457600080fd5b843593506020850135613d7681613ce9565b9250604085013567ffffffffffffffff811115613d9257600080fd5b613d9e87828801613d0c565b95989497509550505050565b600080600060408486031215613dbf57600080fd5b83359250602084013567ffffffffffffffff811115613ddd57600080fd5b613de986828701613d0c565b9497909650939450505050565b600080600060608486031215613e0b57600080fd5b833567ffffffffffffffff811115613e2257600080fd5b84016101208187031215613e3557600080fd5b95602085013595506040909401359392505050565b60008083601f840112613e5c57600080fd5b50813567ffffffffffffffff811115613e7457600080fd5b6020830191508360208260051b850101111561060357600080fd5b600060608284031215613ea157600080fd5b50919050565b600080600080600080600080600060a08a8c031215613ec557600080fd5b893567ffffffffffffffff80821115613edd57600080fd5b613ee98d838e01613e4a565b909b50995060208c0135915080821115613f0257600080fd5b613f0e8d838e01613e4a565b909950975060408c0135915080821115613f2757600080fd5b613f338d838e01613e4a565b909750955060608c0135915080821115613f4c57600080fd5b613f588d838e01613e4a565b909550935060808c0135915080821115613f7157600080fd5b50613f7e8c828d01613e8f565b9150509295985092959850929598565b60008060208385031215613fa157600080fd5b823567ffffffffffffffff811115613fb857600080fd5b613fc485828601613e4a565b90969095509350505050565b60008060408385031215613fe357600080fd5b8235613fee81613ce9565b946020939093013593505050565b604080825283519082018190526000906020906060840190828701845b8281101561403e5781516001600160a01b031684529284019290840190600101614019565b50505080925050506001600160a01b03831660208301529392505050565b60005b8381101561407757818101518382015260200161405f565b50506000910152565b6000815180845261409881602086016020860161405c565b601f01601f19169290920160200192915050565b602081526000610b106020830184614080565b6001600160e01b031981168114613cfe57600080fd5b6000602082840312156140e757600080fd5b8135610b10816140bf565b60006020828403121561410457600080fd5b5035919050565b600060208083016020845280855180835260408601915060408160051b87010192506020870160005b8281101561416257603f19888603018452614150858351614080565b94509285019290850190600101614134565b5092979650505050505050565b6000806040838503121561418257600080fd5b823561418d81613ce9565b9150602083013561419d81613ce9565b809150509250929050565b803560ff8116811461175557600080fd5b600080600080606085870312156141cf57600080fd5b84356141da81613ce9565b9350602085013567ffffffffffffffff8111156141f657600080fd5b61420287828801613e4a565b90945092506142159050604086016141a8565b905092959194509250565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b0385168152836020820152606060408201526000614272606083018486614220565b9695505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156142bb576142bb61427c565b604052919050565b600067ffffffffffffffff8211156142dd576142dd61427c565b50601f01601f191660200190565b60006142fe6142f9846142c3565b614292565b905082815283838301111561431257600080fd5b610b1083602083018461405c565b600082601f83011261433157600080fd5b610b10838351602085016142eb565b60006020828403121561435257600080fd5b815167ffffffffffffffff81111561436957600080fd5b61084784828501614320565b8284823760609190911b6bffffffffffffffffffffffff19169101908152601401919050565b6000602082840312156143ad57600080fd5b5051919050565b600080858511156143c457600080fd5b838611156143d157600080fd5b5050820193919092039150565b6bffffffffffffffffffffffff19813581811691601485101561440b5780818660140360031b1b83161692505b505092915050565b84815260606020820152600061442c6060830186614080565b828103604084015261443f818587614220565b979650505050505050565b60006020828403121561445c57600080fd5b8151610b10816140bf565b6000808335601e1984360301811261447e57600080fd5b830160208101925035905067ffffffffffffffff81111561449e57600080fd5b80360382131561060357600080fd5b604081526144ce604082016144c185613d01565b6001600160a01b03169052565b6020830135606082015260006144e76040850185614467565b6101208060808601526144ff61016086018385614220565b925061450e6060880188614467565b9250603f19808786030160a0880152614528858584614220565b9450608089013560c088015260a089013560e0880152610100935060c08901358488015261455960e08a018a614467565b925081888703018489015261456f868483614220565b95505061457e848a018a614467565b945092508087860301610140880152505061459a838383614220565b93505050508260208301529392505050565b6000602082840312156145be57600080fd5b8135610b1081613ce9565b6000808335601e198436030181126145e057600080fd5b83018035915067ffffffffffffffff8211156145fb57600080fd5b6020019150600581901b360382131561060357600080fd5b60006020828403121561462557600080fd5b610b10826141a8565b634e487b7160e01b600052603260045260246000fd5b60008235603e1983360301811261465a57600080fd5b9190910192915050565b8381526001600160a01b03831660208201526060604082015260006139a56060830184614080565b60006020828403121561469e57600080fd5b815167ffffffffffffffff8111156146b557600080fd5b8201601f810184136146c657600080fd5b610847848251602084016142eb565b7f736166652d00000000000000000000000000000000000000000000000000000081526000825161470d81600585016020870161405c565b7f2e657263373537392e76302e302e3100000000000000000000000000000000006005939091019283015250601401919050565b6001600160a01b03851681528360208201526080604082015260006147696080830185614080565b905060ff8316606083015295945050505050565b8051801515811461175557600080fd5b600080604083850312156147a057600080fd5b6147a98361477d565b9150602083015167ffffffffffffffff8111156147c557600080fd5b6147d185828601614320565b9150509250929050565b6001600160a01b03831681526040602082015260006108476040830184614080565b60006020828403121561480f57600080fd5b610b108261477d565b80356002811061175557600080fd5b6000806040838503121561483a57600080fd5b61484383614818565b9150602083013561419d816140bf565b8281526000825161486b81602085016020870161405c565b919091016020019392505050565b60ff8416815260406020808301829052908201839052600090849060608401835b868110156148c85783356148ad81613ce9565b6001600160a01b03168252928201929082019060010161489a565b50979650505050505050565b6000808335601e198436030181126148eb57600080fd5b83018035915067ffffffffffffffff82111561490657600080fd5b60200191503681900382131561060357600080fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016149435761494361491b565b5060010190565b818103818111156107505761075061491b565b600082601f83011261496e57600080fd5b813561497c6142f9826142c3565b81815284602083860101111561499157600080fd5b816020850160208301376000918101602001919091529392505050565b6000806000606084860312156149c357600080fd5b83356149ce816140bf565b925060208401356001600160f81b0319811681146149eb57600080fd5b9150604084013567ffffffffffffffff811115614a0757600080fd5b614a138682870161495d565b9150509250925092565b600080600060608486031215614a3257600080fd5b614a3b84614818565b925060208401356149eb816140bf565b634e487b7160e01b600052602160045260246000fd5b60008060408385031215614a7457600080fd5b8235614a7f81613ce9565b9150602083013567ffffffffffffffff811115614a9b57600080fd5b6147d18582860161495d565b60008060408385031215614aba57600080fd5b8235614a7f816140bf565b60208082528181018390526000906040808401600586901b850182018785805b89811015614b6157888403603f190185528235368c9003605e19018112614b0a578283fd5b8b0160608135614b1981613ce9565b6001600160a01b031686528189013589870152614b3888830183614467565b92508189880152614b4c8288018483614220565b978a0197965050509287019250600101614ae5565b50919998505050505050505050565b8035602083101561075057600019602084900360031b1b1692915050565b7fffffffffffff0000000000000000000000000000000000000000000000000000813581811691600685101561440b5760069490940360031b84901b1690921692915050565b8183823760009101908152919050565b600067ffffffffffffffff821115614bfe57614bfe61427c565b5060051b60200190565b600082601f830112614c1957600080fd5b81516020614c296142f983614be4565b82815260059290921b84018101918181019086841115614c4857600080fd5b8286015b84811015614c8857805167ffffffffffffffff811115614c6c5760008081fd5b614c7a8986838b0101614320565b845250918301918301614c4c565b509695505050505050565b600060208284031215614ca557600080fd5b815167ffffffffffffffff811115614cbc57600080fd5b61084784828501614c08565b60008060408385031215614cdb57600080fd5b825167ffffffffffffffff80821115614cf357600080fd5b818501915085601f830112614d0757600080fd5b81516020614d176142f983614be4565b82815260059290921b84018101918181019089841115614d3657600080fd5b948201945b83861015614d5b57614d4c8661477d565b82529482019490820190614d3b565b91880151919650909350505080821115614d7457600080fd5b506147d185828601614c0856fea2646970667358221220310490ce1c9ce1b361eae1667f3c75f8c90f8265fa8bcd2024bdff0a007dc05564736f6c63430008170033",linkReferences$1={},deployedLinkReferences$1={},Safe7579={_format:_format$1,contractName:contractName$1,sourceName:sourceName$1,abi:abi$2,bytecode:bytecode$2,deployedBytecode:deployedBytecode$2,linkReferences:linkReferences$1,deployedLinkReferences:deployedLinkReferences$1},_format="hh-sol-artifact-1",contractName="SafeFaucetModule",sourceName="contracts/executor/SafeFaucetModule.sol",abi$1=[{inputs:[{internalType:"address",name:"smartAccount",type:"address"}],name:"AlreadyInitialized",type:"error"},{inputs:[],name:"ExecutionFailed",type:"error"},{inputs:[],name:"InvalidRecipient",type:"error"},{inputs:[{internalType:"address",name:"smartAccount",type:"address"}],name:"NotInitialized",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sessionKey",type:"address"},{indexed:!0,internalType:"address",name:"account",type:"address"}],name:"SessionKeyAdded",type:"event"},{inputs:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"address",name:"account",type:"address"},{internalType:"uint48",name:"validAfter",type:"uint48"},{internalType:"uint48",name:"validUntil",type:"uint48"},{internalType:"uint256",name:"limitAmount",type:"uint256"},{internalType:"uint48",name:"refreshInterval",type:"uint48"},{components:[{internalType:"address[]",name:"singletons",type:"address[]"},{internalType:"string[]",name:"versions",type:"string[]"},{internalType:"bool",name:"supported",type:"bool"}],internalType:"struct SafeFaucetModule.AccountSupport",name:"safe",type:"tuple"},{components:[{internalType:"address[]",name:"singletons",type:"address[]"},{internalType:"string[]",name:"versions",type:"string[]"},{internalType:"bool",name:"supported",type:"bool"}],internalType:"struct SafeFaucetModule.AccountSupport",name:"cbSW",type:"tuple"},{components:[{internalType:"address[]",name:"singletons",type:"address[]"},{internalType:"string[]",name:"versions",type:"string[]"},{internalType:"bool",name:"supported",type:"bool"}],internalType:"struct SafeFaucetModule.AccountSupport",name:"eoa",type:"tuple"}],internalType:"struct SafeFaucetModule.FaucetData",name:"faucetData",type:"tuple"}],name:"addFaucet",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"faucetId",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"execute",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"}],name:"faucetUsers",outputs:[{internalType:"uint256",name:"faucetId",type:"uint256"},{internalType:"uint256",name:"limitUsed",type:"uint256"},{internalType:"uint48",name:"lastUsed",type:"uint48"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"faucets",outputs:[{internalType:"address",name:"token",type:"address"},{internalType:"address",name:"account",type:"address"},{internalType:"uint48",name:"validAfter",type:"uint48"},{internalType:"uint48",name:"validUntil",type:"uint48"},{internalType:"uint256",name:"limitAmount",type:"uint256"},{internalType:"uint48",name:"refreshInterval",type:"uint48"},{components:[{internalType:"address[]",name:"singletons",type:"address[]"},{internalType:"string[]",name:"versions",type:"string[]"},{internalType:"bool",name:"supported",type:"bool"}],internalType:"struct SafeFaucetModule.AccountSupport",name:"safe",type:"tuple"},{components:[{internalType:"address[]",name:"singletons",type:"address[]"},{internalType:"string[]",name:"versions",type:"string[]"},{internalType:"bool",name:"supported",type:"bool"}],internalType:"struct SafeFaucetModule.AccountSupport",name:"cbSW",type:"tuple"},{components:[{internalType:"address[]",name:"singletons",type:"address[]"},{internalType:"string[]",name:"versions",type:"string[]"},{internalType:"bool",name:"supported",type:"bool"}],internalType:"struct SafeFaucetModule.AccountSupport",name:"eoa",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"smartAccount",type:"address"}],name:"isInitialized",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"typeID",type:"uint256"}],name:"isModuleType",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"hash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"}],name:"isValidSignatureWithSender",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"view",type:"function"},{inputs:[],name:"listFaucets",outputs:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"address",name:"account",type:"address"},{internalType:"uint48",name:"validAfter",type:"uint48"},{internalType:"uint48",name:"validUntil",type:"uint48"},{internalType:"uint256",name:"limitAmount",type:"uint256"},{internalType:"uint48",name:"refreshInterval",type:"uint48"},{components:[{internalType:"address[]",name:"singletons",type:"address[]"},{internalType:"string[]",name:"versions",type:"string[]"},{internalType:"bool",name:"supported",type:"bool"}],internalType:"struct SafeFaucetModule.AccountSupport",name:"safe",type:"tuple"},{components:[{internalType:"address[]",name:"singletons",type:"address[]"},{internalType:"string[]",name:"versions",type:"string[]"},{internalType:"bool",name:"supported",type:"bool"}],internalType:"struct SafeFaucetModule.AccountSupport",name:"cbSW",type:"tuple"},{components:[{internalType:"address[]",name:"singletons",type:"address[]"},{internalType:"string[]",name:"versions",type:"string[]"},{internalType:"bool",name:"supported",type:"bool"}],internalType:"struct SafeFaucetModule.AccountSupport",name:"eoa",type:"tuple"}],internalType:"struct SafeFaucetModule.FaucetData[]",name:"",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"}],name:"onInstall",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"",type:"bytes"}],name:"onUninstall",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"bytes32",name:"accountGasLimits",type:"bytes32"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"bytes32",name:"gasFees",type:"bytes32"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct PackedUserOperation",name:"userOp",type:"tuple"},{internalType:"bytes32",name:"userOpHash",type:"bytes32"}],name:"validateUserOp",outputs:[{internalType:"ERC7579ValidatorBase.ValidationData",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"pure",type:"function"}],bytecode$1="0x6080806040523461001657611ea0908161001c8239f35b600080fdfe608080604052600436101561001357600080fd5b60e0600035811c91826306fdde0314611223575081631a777d4f146111495781633233583b146110e257816344c028fe14610dc55781634784f7ed146103f657816354fd4d50146103945781636d61fe701461038f5781638a91b0e31461038f578163970032031461034b578163c534b7ef1461015957508063d60b347f14610134578063ecd05961146100fc5763f551e2ee146100b057600080fd5b346100f75760603660031901126100f7576100c96115e8565b5060443567ffffffffffffffff81116100f7576100ea903690600401611612565b5050602060405160008152f35b600080fd5b346100f75760203660031901126100f757602060043560018114908115610129575b506040519015158152f35b60029150148261011e565b346100f75760203660031901126100f75761014d6115e8565b50602060405160008152f35b346100f75760003660031901126100f7576000546101768161138c565b90610184604051928361136a565b80825260208083019182600080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5636000915b8383106102a95750505050604051928184019082855251809152604084019160408260051b86010193926000965b8388106101f25786860387f35b90919293948380610298600193603f198b820301875289516102846102746101206001600160a01b03808551168652878501511687860152604084015165ffffffffffff80911660408701526060818187015116908701526080808601519087015260a09081860151169086015260c090808286015192870152850190611531565b888301518482038a860152611531565b916101008092015191818403910152611531565b9701930197019690939291936101e5565b600d856001926040999799516102be81611315565b6001600160a01b03808754168252858701549081168483015265ffffffffffff60a0918181841c16604085015260d01c60608401526002880154608084015260038801541690820152610313600487016113de565b60c0820152610324600787016113de565b8c820152610334600a87016113de565b6101008201528152019201920191909593956101b7565b346100f7576003196040368201126100f7576004359067ffffffffffffffff82116100f75761012091360301126100f757602060405165ffffffffffff60a01b8152f35b6117e4565b346100f75760003660031901126100f7576103f26040516103b48161134e565b600581527f302e302e3100000000000000000000000000000000000000000000000000000060208201526040519182916020835260208301906112a2565b0390f35b346100f7576003196020368201126100f7576004359067ffffffffffffffff82116100f7576101209082360301126100f7576040519161043583611315565b610441826004016115fe565b835261044f602483016115fe565b916020840192835261046360448201611640565b6040850190815261047660648301611640565b906060860191825260808601906084840135825261049660a48501611640565b9260a0880193845260c485013567ffffffffffffffff81116100f7576104c290600436918801016116a6565b9460c0890195865260e481013567ffffffffffffffff81116100f7576104ee90600436918401016116a6565b878a01526101048101359067ffffffffffffffff82116100f757600461051792369201016116a6565b610100890152338752600054600160401b8110156109445780600161053f92016000556112c7565b979097610daf5765ffffffffffff60a01b6001600160a01b037fffffffffffff000000000000000000000000000000000000000000000000000092818c51167fffffffffffffffffffffffff00000000000000000000000000000000000000008c5416178b555116935160a01b16915160d01b16911717600186015551600285015565ffffffffffff6003850191511665ffffffffffff198254161790556004830190519081519081519167ffffffffffffffff831161094457600160401b8311610944576020908254848455808510610d92575b500190600052602060002060005b838110610d7557505050506020810151805190600160401b8211610944576005850154826005870155808310610cfc575b5060200190600585016000526020600020916000905b828210610be15750505050604060068401910151151560ff8019835416911617905582015191825180519067ffffffffffffffff821161094457600160401b8211610944576020906007850154836007870155808410610bc1575b500160078401600052602060002060005b838110610ba45750505050602083015192835193600160401b8511610944576008840154856008860155808610610b2b575b5060200193600884016000526020600020946000905b828210610a1057856101008686604060098501910151151560ff80198354169116179055015190815180519067ffffffffffffffff821161094457600160401b821161094457602090600a84015483600a8601558084106109f0575b5001600a8301600052602060002060005b8381106109d35785856020820151805190600160401b821161094457600b83015482600b85015580831061095a575b5060200190600b83016000526020600020916000905b82821061081e57856040600c8701910151151560ff80198354169116179055600054600019810190811161080857602090604051908152f35b634e487b7160e01b600052601160045260246000fd5b805180519067ffffffffffffffff82116109445761083c86546113a4565b90601f9182811161090a575b50602091831160011461089a57926108808360019594602094879660009261088f575b50508160011b916000199060031b1c19161790565b87555b019401910190926107cf565b015190508c8061086b565b908660005260206000209160005b601f19851681106108f2575083602093600196938796938794601f198116106108d9575b505050811b018755610883565b015160001960f88460031b161c191690558b80806108cc565b919260206001819286850151815501940192016108a8565b610935908860005260206000208480870160051c8201926020881061093b575b0160051c0190611817565b89610848565b9250819261092a565b634e487b7160e01b600052604160045260246000fd5b600b84016000526020600020908382015b818301811061097b5750506107b9565b80610988600192546113a4565b80610995575b500161096b565b601f9081811184146109ae575050600081555b8861098e565b6109ca60009284845260208420920160051c8201858301611817565b818355556109a8565b60019060206001600160a01b03855116940193818401550161078a565b610a0a90600a860160005284846000209182019101611817565b85610779565b805180519067ffffffffffffffff821161094457610a2e89546113a4565b90601f91828111610afb575b506020918311600114610a8b5792610a7183600195946020948796600092610a805750508160011b916000199060031b1c19161790565b8a555b0197019101909561071d565b015190508d8061086b565b908960005260206000209160005b601f1985168110610ae3575083602093600196938796938794601f19811610610aca575b505050811b018a55610a74565b015160001960f88460031b161c191690558c8080610abd565b91926020600181928685015181550194019201610a99565b610b25908b60005260206000208480870160051c8201926020881061093b570160051c0190611817565b8a610a3a565b600885016000526020600020908682015b8183018110610b4c575050610707565b80610b59600192546113a4565b80610b66575b5001610b3c565b601f908181118414610b7f575050600081555b89610b5f565b610b9b60009284845260208420920160051c8201858301611817565b81835555610b79565b60019060206001600160a01b0385511694019381840155016106d5565b610bdb906007870160005284846000209182019101611817565b866106c4565b805180519067ffffffffffffffff821161094457610bff86546113a4565b90601f91828111610ccc575b506020918311600114610c5c5792610c4283600195946020948796600092610c515750508160011b916000199060031b1c19161790565b87555b01940191019092610669565b015190508e8061086b565b908660005260206000209160005b601f1985168110610cb4575083602093600196938796938794601f19811610610c9b575b505050811b018755610c45565b015160001960f88460031b161c191690558d8080610c8e565b91926020600181928685015181550194019201610c6a565b610cf6908860005260206000208480870160051c8201926020881061093b570160051c0190611817565b8b610c0b565b600586016000526020600020908382015b8183018110610d1d575050610653565b80610d2a600192546113a4565b80610d37575b5001610d0d565b601f908181118414610d50575050600081555b8a610d30565b610d6c60009284845260208420920160051c8201858301611817565b81835555610d4a565b60019060206001600160a01b038551169401938184015501610622565b610da9908460005285846000209182019101611817565b88610614565b634e487b7160e01b600052600060045260246000fd5b346100f75760803660031901126100f7576024356004356001600160a01b03821682036100f7576044359067ffffffffffffffff906064358281116100f757610e12903690600401611612565b939091811580156110db57865b610e32610e2d36898861166f565b61182e565b9083156110d357925b156110cb57925b610e4c838261189c565b1561108757610e5a93611d3b565b1561105d57610e70600092610f3c95369161166f565b94604051906020968783019285845285602182015285602282015285602682015285602a820152888152610ea38161134e565b51925192888110611048575b50610efb916054916040519586926bffffffffffffffffffffffff199060601b168b8401526034830152610eeb815180928c868601910161127f565b810103603481018552018361136a565b60405194859283927fd691c96400000000000000000000000000000000000000000000000000000000845260048401526040602484015260448301906112a2565b038183335af191821561103c57600092610f88575b5050805115610f7257810151906103f26040519282849384528301906112a2565b634e487b7160e01b600052603260045260246000fd5b9091503d806000833e610f9b818361136a565b81019083818303126100f7578051908382116100f757019080601f830112156100f7578151610fc98161138c565b93610fd7604051958661136a565b818552858086019260051b850101938385116100f757868101925b858410611006575050505050508280610f51565b83518381116100f757820185603f820112156100f75788916110318783604086809601519101611865565b815201930192610ff2565b6040513d6000823e3d90fd5b851990890360031b1b90921691610efb610eaf565b60046040517facfdb444000000000000000000000000000000000000000000000000000000008152fd5b606460405162461bcd60e51b815260206004820152601660248201527f496e76616c6964207461726765742061646472657373000000000000000000006044820152fd5b508392610e42565b508892610e3b565b6000610e1f565b346100f75760403660031901126100f7576001600160a01b036111036115e8565b16600052600160205260406000206024356000526020526060604060002080549065ffffffffffff60026001830154920154169060405192835260208301526040820152f35b346100f75760203660031901126100f757600435906000548210156100f7576103f26111766020936112c7565b506112146001600160a01b03938483541692611207600182015465ffffffffffff95600284015487600386015416906111b1600487016113de565b936111ca600a6111c360078a016113de565b98016113de565b99604051809e819e61012097835284169101528160a01c1660408d015260d01c60608c015260808b015260a08a01528060c08a0152880190611531565b9186830390870152611531565b90838203610100850152611531565b346100f75760003660031901126100f757806112416103f29261134e565b601181527f5370656e644c696d697453657373696f6e00000000000000000000000000000060208201526040519182916020835260208301906112a2565b60005b8381106112925750506000910152565b8181015183820152602001611282565b906020916112bb8151809281855285808601910161127f565b601f01601f1916010190565b90600091825481101561130157600d90838052027f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563019190565b602483634e487b7160e01b81526032600452fd5b610120810190811067ffffffffffffffff82111761094457604052565b6060810190811067ffffffffffffffff82111761094457604052565b6040810190811067ffffffffffffffff82111761094457604052565b90601f8019910116810190811067ffffffffffffffff82111761094457604052565b67ffffffffffffffff81116109445760051b60200190565b90600182811c921680156113d4575b60208310146113be57565b634e487b7160e01b600052602260045260246000fd5b91607f16916113b3565b90604091604051906113ef82611332565b8193604051808354908183526020809301918160009387855285852092855b87828210611512575050506114259250038261136a565b855260018085018054906114388261138c565b95611446604051978861136a565b82875290845284842084918688015b848410611479575050505050505060409260ff926002928601520154161515910152565b85888351928993865461148b816113a4565b808352908581169081156114f657506001146114be575b506114b0818596038261136a565b815201930193019291611455565b878c52838c208c96505b8187106114df5750509384018201936114b06114a2565b805483880186015293909501948a948d94016114c8565b60ff19168584015250151560051b8101830194506114b06114a2565b85546001600160a01b031684526001958601958795509301920161140e565b906060810191805192606083528351809152608083019060208095019060005b868282106115cb579250505082015193838203818501528451908183528083019281808460051b8301019701936000915b84831061159d57505050505050604080910151151591015290565b90919293949784806115bb600193601f198682030187528c516112a2565b9a01930193019194939290611582565b83516001600160a01b031685529384019390920191600101611551565b600435906001600160a01b03821682036100f757565b35906001600160a01b03821682036100f757565b9181601f840112156100f75782359167ffffffffffffffff83116100f757602083818601950101116100f757565b359065ffffffffffff821682036100f757565b67ffffffffffffffff811161094457601f01601f191660200190565b92919261167b82611653565b91611689604051938461136a565b8294818452818301116100f7578281602093846000960137010152565b90916060828403126100f75760408051906116c082611332565b8193803567ffffffffffffffff908181116100f75782019680601f890112156100f75760209780356116f18161138c565b916116fe8751938461136a565b8183528a8084019260051b820101918483116100f7578b809201905b8382106117cd57505050508552878301358281116100f75783019080601f830112156100f757813561174b8161138c565b936117588751958661136a565b8185528a8086019260051b850101938385116100f7578b8101925b85841061179857505050505050839495968394015201359182151583036100f7570152565b83358381116100f757820185603f820112156100f7578d916117c287838d8680960135910161166f565b815201930192611773565b8280916117d9846115fe565b81520191019061171a565b346100f75760203660031901126100f75760043567ffffffffffffffff81116100f757611815903690600401611612565b005b818110611822575050565b60008155600101611817565b906044825110611845576044602483015192015190565b600091508190565b8054821015610f725760005260206000200190600090565b9092919261187281611653565b91611880604051938461136a565b8294828452828201116100f757602061189a93019061127f565b565b91600060ff600c6118ac866112c7565b50015416611d32576001600160a01b03809316936040928351957f5c60da1b00000000000000000000000000000000000000000000000000000000875260209660049688828981865afa869281611cf6575b50611bd157505090600086928651938480927fffa1ad740000000000000000000000000000000000000000000000000000000082525afa60009281611b74575b506119ab576084868887519162461bcd60e51b8352820152602f60248201527f4e6f7420612076616c69642053616665204163636f756e74206f7220436f696e60448201527f62617365536d61727457616c6c657400000000000000000000000000000000006064820152fd5b60ff60066119bb859698956112c7565b5001541615611b325760005b6119d0856112c7565b50600580910154821015611ade57611a1f8288518b810190611a0b8d82816119fe8c8781519384920161127f565b810103808452018261136a565b51902092611a18896112c7565b500161184d565b509087518a8101908b816000865496611a37886113a4565b906001988981169081600014611ac05750600114611a80575b5050611a65925003601f19810183528261136a565b51902014611a77575b506001016119c7565b96506001611a6e565b90915060005282600020876000915b838310611aa95750505091611a65928201018e9238611a50565b805487840187015286945091850191899101611a8f565b915050611a6594925060ff19168652801515028201018e9238611a50565b505095925050918315611af15750505090565b606493508190519262461bcd60e51b845283015260248201527f4e6f7420612076616c69642053616665204163636f756e742076657273696f6e6044820152fd5b6064838887519162461bcd60e51b8352820152601260248201527f53616665206e6f7420737570706f7274656400000000000000000000000000006044820152fd5b90923d8082843e611b85818461136a565b8201918981840312611bcd5780519067ffffffffffffffff8211611bc957019082601f83011215611bc657508051611bbf92918a01611865565b913861193e565b80fd5b8280fd5b5080fd5b94915094969560ff6009611be4866112c7565b5001541615611c8e57815b611bf8856112c7565b50600780910154821015611c3757611c15828892611a18896112c7565b90549060031b1c1686881614611c2e575b600101611bef565b60019250611c26565b505094509492509490508315611c4d5750505090565b60649350519162461bcd60e51b8352820152601f60248201527f4e6f7420612076616c696420436f696e62617365536d61727457616c6c6574006044820152fd5b6084908789519162461bcd60e51b8352820152602160248201527f436f696e62617365536d61727457616c6c6574206e6f7420737570706f72746560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152fd5b9092508981813d8311611d2b575b611d0e818361136a565b81010312611d2757518181168103611d275791386118fe565b8680fd5b503d611d04565b50915050600190565b9290611d46816112c7565b50926001600160a01b039182600094168452600160205260408420908452602052604083209180855416911603611e635765ffffffffffff92836003820154169360028201549260028101916001835492019660018854950154828160a01c164210908115611e56575b50611e4a578015908115611e1e575b5015611df1575050508401938410908115611de7575b50611de1575055600190565b91505090565b9050831138611dd5565b94919680949196935011611e1557505542169065ffffffffffff1916179055600190565b94505050505090565b905081831601818111611e3657814291161138611dbf565b602487634e487b7160e01b81526011600452fd5b50505050505091505090565b905060d01c421138611db0565b509150509056fea2646970667358221220eaa11b85578377b836cc78885b1dfbd20be00271d1fc039622a92c1f04ba2be164736f6c63430008170033",deployedBytecode$1="0x608080604052600436101561001357600080fd5b60e0600035811c91826306fdde0314611223575081631a777d4f146111495781633233583b146110e257816344c028fe14610dc55781634784f7ed146103f657816354fd4d50146103945781636d61fe701461038f5781638a91b0e31461038f578163970032031461034b578163c534b7ef1461015957508063d60b347f14610134578063ecd05961146100fc5763f551e2ee146100b057600080fd5b346100f75760603660031901126100f7576100c96115e8565b5060443567ffffffffffffffff81116100f7576100ea903690600401611612565b5050602060405160008152f35b600080fd5b346100f75760203660031901126100f757602060043560018114908115610129575b506040519015158152f35b60029150148261011e565b346100f75760203660031901126100f75761014d6115e8565b50602060405160008152f35b346100f75760003660031901126100f7576000546101768161138c565b90610184604051928361136a565b80825260208083019182600080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5636000915b8383106102a95750505050604051928184019082855251809152604084019160408260051b86010193926000965b8388106101f25786860387f35b90919293948380610298600193603f198b820301875289516102846102746101206001600160a01b03808551168652878501511687860152604084015165ffffffffffff80911660408701526060818187015116908701526080808601519087015260a09081860151169086015260c090808286015192870152850190611531565b888301518482038a860152611531565b916101008092015191818403910152611531565b9701930197019690939291936101e5565b600d856001926040999799516102be81611315565b6001600160a01b03808754168252858701549081168483015265ffffffffffff60a0918181841c16604085015260d01c60608401526002880154608084015260038801541690820152610313600487016113de565b60c0820152610324600787016113de565b8c820152610334600a87016113de565b6101008201528152019201920191909593956101b7565b346100f7576003196040368201126100f7576004359067ffffffffffffffff82116100f75761012091360301126100f757602060405165ffffffffffff60a01b8152f35b6117e4565b346100f75760003660031901126100f7576103f26040516103b48161134e565b600581527f302e302e3100000000000000000000000000000000000000000000000000000060208201526040519182916020835260208301906112a2565b0390f35b346100f7576003196020368201126100f7576004359067ffffffffffffffff82116100f7576101209082360301126100f7576040519161043583611315565b610441826004016115fe565b835261044f602483016115fe565b916020840192835261046360448201611640565b6040850190815261047660648301611640565b906060860191825260808601906084840135825261049660a48501611640565b9260a0880193845260c485013567ffffffffffffffff81116100f7576104c290600436918801016116a6565b9460c0890195865260e481013567ffffffffffffffff81116100f7576104ee90600436918401016116a6565b878a01526101048101359067ffffffffffffffff82116100f757600461051792369201016116a6565b610100890152338752600054600160401b8110156109445780600161053f92016000556112c7565b979097610daf5765ffffffffffff60a01b6001600160a01b037fffffffffffff000000000000000000000000000000000000000000000000000092818c51167fffffffffffffffffffffffff00000000000000000000000000000000000000008c5416178b555116935160a01b16915160d01b16911717600186015551600285015565ffffffffffff6003850191511665ffffffffffff198254161790556004830190519081519081519167ffffffffffffffff831161094457600160401b8311610944576020908254848455808510610d92575b500190600052602060002060005b838110610d7557505050506020810151805190600160401b8211610944576005850154826005870155808310610cfc575b5060200190600585016000526020600020916000905b828210610be15750505050604060068401910151151560ff8019835416911617905582015191825180519067ffffffffffffffff821161094457600160401b8211610944576020906007850154836007870155808410610bc1575b500160078401600052602060002060005b838110610ba45750505050602083015192835193600160401b8511610944576008840154856008860155808610610b2b575b5060200193600884016000526020600020946000905b828210610a1057856101008686604060098501910151151560ff80198354169116179055015190815180519067ffffffffffffffff821161094457600160401b821161094457602090600a84015483600a8601558084106109f0575b5001600a8301600052602060002060005b8381106109d35785856020820151805190600160401b821161094457600b83015482600b85015580831061095a575b5060200190600b83016000526020600020916000905b82821061081e57856040600c8701910151151560ff80198354169116179055600054600019810190811161080857602090604051908152f35b634e487b7160e01b600052601160045260246000fd5b805180519067ffffffffffffffff82116109445761083c86546113a4565b90601f9182811161090a575b50602091831160011461089a57926108808360019594602094879660009261088f575b50508160011b916000199060031b1c19161790565b87555b019401910190926107cf565b015190508c8061086b565b908660005260206000209160005b601f19851681106108f2575083602093600196938796938794601f198116106108d9575b505050811b018755610883565b015160001960f88460031b161c191690558b80806108cc565b919260206001819286850151815501940192016108a8565b610935908860005260206000208480870160051c8201926020881061093b575b0160051c0190611817565b89610848565b9250819261092a565b634e487b7160e01b600052604160045260246000fd5b600b84016000526020600020908382015b818301811061097b5750506107b9565b80610988600192546113a4565b80610995575b500161096b565b601f9081811184146109ae575050600081555b8861098e565b6109ca60009284845260208420920160051c8201858301611817565b818355556109a8565b60019060206001600160a01b03855116940193818401550161078a565b610a0a90600a860160005284846000209182019101611817565b85610779565b805180519067ffffffffffffffff821161094457610a2e89546113a4565b90601f91828111610afb575b506020918311600114610a8b5792610a7183600195946020948796600092610a805750508160011b916000199060031b1c19161790565b8a555b0197019101909561071d565b015190508d8061086b565b908960005260206000209160005b601f1985168110610ae3575083602093600196938796938794601f19811610610aca575b505050811b018a55610a74565b015160001960f88460031b161c191690558c8080610abd565b91926020600181928685015181550194019201610a99565b610b25908b60005260206000208480870160051c8201926020881061093b570160051c0190611817565b8a610a3a565b600885016000526020600020908682015b8183018110610b4c575050610707565b80610b59600192546113a4565b80610b66575b5001610b3c565b601f908181118414610b7f575050600081555b89610b5f565b610b9b60009284845260208420920160051c8201858301611817565b81835555610b79565b60019060206001600160a01b0385511694019381840155016106d5565b610bdb906007870160005284846000209182019101611817565b866106c4565b805180519067ffffffffffffffff821161094457610bff86546113a4565b90601f91828111610ccc575b506020918311600114610c5c5792610c4283600195946020948796600092610c515750508160011b916000199060031b1c19161790565b87555b01940191019092610669565b015190508e8061086b565b908660005260206000209160005b601f1985168110610cb4575083602093600196938796938794601f19811610610c9b575b505050811b018755610c45565b015160001960f88460031b161c191690558d8080610c8e565b91926020600181928685015181550194019201610c6a565b610cf6908860005260206000208480870160051c8201926020881061093b570160051c0190611817565b8b610c0b565b600586016000526020600020908382015b8183018110610d1d575050610653565b80610d2a600192546113a4565b80610d37575b5001610d0d565b601f908181118414610d50575050600081555b8a610d30565b610d6c60009284845260208420920160051c8201858301611817565b81835555610d4a565b60019060206001600160a01b038551169401938184015501610622565b610da9908460005285846000209182019101611817565b88610614565b634e487b7160e01b600052600060045260246000fd5b346100f75760803660031901126100f7576024356004356001600160a01b03821682036100f7576044359067ffffffffffffffff906064358281116100f757610e12903690600401611612565b939091811580156110db57865b610e32610e2d36898861166f565b61182e565b9083156110d357925b156110cb57925b610e4c838261189c565b1561108757610e5a93611d3b565b1561105d57610e70600092610f3c95369161166f565b94604051906020968783019285845285602182015285602282015285602682015285602a820152888152610ea38161134e565b51925192888110611048575b50610efb916054916040519586926bffffffffffffffffffffffff199060601b168b8401526034830152610eeb815180928c868601910161127f565b810103603481018552018361136a565b60405194859283927fd691c96400000000000000000000000000000000000000000000000000000000845260048401526040602484015260448301906112a2565b038183335af191821561103c57600092610f88575b5050805115610f7257810151906103f26040519282849384528301906112a2565b634e487b7160e01b600052603260045260246000fd5b9091503d806000833e610f9b818361136a565b81019083818303126100f7578051908382116100f757019080601f830112156100f7578151610fc98161138c565b93610fd7604051958661136a565b818552858086019260051b850101938385116100f757868101925b858410611006575050505050508280610f51565b83518381116100f757820185603f820112156100f75788916110318783604086809601519101611865565b815201930192610ff2565b6040513d6000823e3d90fd5b851990890360031b1b90921691610efb610eaf565b60046040517facfdb444000000000000000000000000000000000000000000000000000000008152fd5b606460405162461bcd60e51b815260206004820152601660248201527f496e76616c6964207461726765742061646472657373000000000000000000006044820152fd5b508392610e42565b508892610e3b565b6000610e1f565b346100f75760403660031901126100f7576001600160a01b036111036115e8565b16600052600160205260406000206024356000526020526060604060002080549065ffffffffffff60026001830154920154169060405192835260208301526040820152f35b346100f75760203660031901126100f757600435906000548210156100f7576103f26111766020936112c7565b506112146001600160a01b03938483541692611207600182015465ffffffffffff95600284015487600386015416906111b1600487016113de565b936111ca600a6111c360078a016113de565b98016113de565b99604051809e819e61012097835284169101528160a01c1660408d015260d01c60608c015260808b015260a08a01528060c08a0152880190611531565b9186830390870152611531565b90838203610100850152611531565b346100f75760003660031901126100f757806112416103f29261134e565b601181527f5370656e644c696d697453657373696f6e00000000000000000000000000000060208201526040519182916020835260208301906112a2565b60005b8381106112925750506000910152565b8181015183820152602001611282565b906020916112bb8151809281855285808601910161127f565b601f01601f1916010190565b90600091825481101561130157600d90838052027f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563019190565b602483634e487b7160e01b81526032600452fd5b610120810190811067ffffffffffffffff82111761094457604052565b6060810190811067ffffffffffffffff82111761094457604052565b6040810190811067ffffffffffffffff82111761094457604052565b90601f8019910116810190811067ffffffffffffffff82111761094457604052565b67ffffffffffffffff81116109445760051b60200190565b90600182811c921680156113d4575b60208310146113be57565b634e487b7160e01b600052602260045260246000fd5b91607f16916113b3565b90604091604051906113ef82611332565b8193604051808354908183526020809301918160009387855285852092855b87828210611512575050506114259250038261136a565b855260018085018054906114388261138c565b95611446604051978861136a565b82875290845284842084918688015b848410611479575050505050505060409260ff926002928601520154161515910152565b85888351928993865461148b816113a4565b808352908581169081156114f657506001146114be575b506114b0818596038261136a565b815201930193019291611455565b878c52838c208c96505b8187106114df5750509384018201936114b06114a2565b805483880186015293909501948a948d94016114c8565b60ff19168584015250151560051b8101830194506114b06114a2565b85546001600160a01b031684526001958601958795509301920161140e565b906060810191805192606083528351809152608083019060208095019060005b868282106115cb579250505082015193838203818501528451908183528083019281808460051b8301019701936000915b84831061159d57505050505050604080910151151591015290565b90919293949784806115bb600193601f198682030187528c516112a2565b9a01930193019194939290611582565b83516001600160a01b031685529384019390920191600101611551565b600435906001600160a01b03821682036100f757565b35906001600160a01b03821682036100f757565b9181601f840112156100f75782359167ffffffffffffffff83116100f757602083818601950101116100f757565b359065ffffffffffff821682036100f757565b67ffffffffffffffff811161094457601f01601f191660200190565b92919261167b82611653565b91611689604051938461136a565b8294818452818301116100f7578281602093846000960137010152565b90916060828403126100f75760408051906116c082611332565b8193803567ffffffffffffffff908181116100f75782019680601f890112156100f75760209780356116f18161138c565b916116fe8751938461136a565b8183528a8084019260051b820101918483116100f7578b809201905b8382106117cd57505050508552878301358281116100f75783019080601f830112156100f757813561174b8161138c565b936117588751958661136a565b8185528a8086019260051b850101938385116100f7578b8101925b85841061179857505050505050839495968394015201359182151583036100f7570152565b83358381116100f757820185603f820112156100f7578d916117c287838d8680960135910161166f565b815201930192611773565b8280916117d9846115fe565b81520191019061171a565b346100f75760203660031901126100f75760043567ffffffffffffffff81116100f757611815903690600401611612565b005b818110611822575050565b60008155600101611817565b906044825110611845576044602483015192015190565b600091508190565b8054821015610f725760005260206000200190600090565b9092919261187281611653565b91611880604051938461136a565b8294828452828201116100f757602061189a93019061127f565b565b91600060ff600c6118ac866112c7565b50015416611d32576001600160a01b03809316936040928351957f5c60da1b00000000000000000000000000000000000000000000000000000000875260209660049688828981865afa869281611cf6575b50611bd157505090600086928651938480927fffa1ad740000000000000000000000000000000000000000000000000000000082525afa60009281611b74575b506119ab576084868887519162461bcd60e51b8352820152602f60248201527f4e6f7420612076616c69642053616665204163636f756e74206f7220436f696e60448201527f62617365536d61727457616c6c657400000000000000000000000000000000006064820152fd5b60ff60066119bb859698956112c7565b5001541615611b325760005b6119d0856112c7565b50600580910154821015611ade57611a1f8288518b810190611a0b8d82816119fe8c8781519384920161127f565b810103808452018261136a565b51902092611a18896112c7565b500161184d565b509087518a8101908b816000865496611a37886113a4565b906001988981169081600014611ac05750600114611a80575b5050611a65925003601f19810183528261136a565b51902014611a77575b506001016119c7565b96506001611a6e565b90915060005282600020876000915b838310611aa95750505091611a65928201018e9238611a50565b805487840187015286945091850191899101611a8f565b915050611a6594925060ff19168652801515028201018e9238611a50565b505095925050918315611af15750505090565b606493508190519262461bcd60e51b845283015260248201527f4e6f7420612076616c69642053616665204163636f756e742076657273696f6e6044820152fd5b6064838887519162461bcd60e51b8352820152601260248201527f53616665206e6f7420737570706f7274656400000000000000000000000000006044820152fd5b90923d8082843e611b85818461136a565b8201918981840312611bcd5780519067ffffffffffffffff8211611bc957019082601f83011215611bc657508051611bbf92918a01611865565b913861193e565b80fd5b8280fd5b5080fd5b94915094969560ff6009611be4866112c7565b5001541615611c8e57815b611bf8856112c7565b50600780910154821015611c3757611c15828892611a18896112c7565b90549060031b1c1686881614611c2e575b600101611bef565b60019250611c26565b505094509492509490508315611c4d5750505090565b60649350519162461bcd60e51b8352820152601f60248201527f4e6f7420612076616c696420436f696e62617365536d61727457616c6c6574006044820152fd5b6084908789519162461bcd60e51b8352820152602160248201527f436f696e62617365536d61727457616c6c6574206e6f7420737570706f72746560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152fd5b9092508981813d8311611d2b575b611d0e818361136a565b81010312611d2757518181168103611d275791386118fe565b8680fd5b503d611d04565b50915050600190565b9290611d46816112c7565b50926001600160a01b039182600094168452600160205260408420908452602052604083209180855416911603611e635765ffffffffffff92836003820154169360028201549260028101916001835492019660018854950154828160a01c164210908115611e56575b50611e4a578015908115611e1e575b5015611df1575050508401938410908115611de7575b50611de1575055600190565b91505090565b9050831138611dd5565b94919680949196935011611e1557505542169065ffffffffffff1916179055600190565b94505050505090565b905081831601818111611e3657814291161138611dbf565b602487634e487b7160e01b81526011600452fd5b50505050505091505090565b905060d01c421138611db0565b509150509056fea2646970667358221220eaa11b85578377b836cc78885b1dfbd20be00271d1fc039622a92c1f04ba2be164736f6c63430008170033",linkReferences={},deployedLinkReferences={},SafeFaucetModule={_format,contractName,sourceName,abi:abi$1,bytecode:bytecode$1,deployedBytecode:deployedBytecode$1,linkReferences,deployedLinkReferences};function execTyped(c,a){const d=c.exec(a);return d==null?void 0:d.groups}const tupleRegex=/^tuple(?(\[(\d*)\])*)$/;function formatAbiParameter(c){let a=c.type;if(tupleRegex.test(c.type)&&"components"in c){a="(";const d=c.components.length;for(let nt=0;nt{var nt,tt;return((nt=c[a.name])==null?void 0:nt.call(c,et))??((tt=c[d])==null?void 0:tt.call(c,et))??a(c,et)}}function formatAbiItem(c,{includeName:a=!1}={}){if(c.type!=="function"&&c.type!=="event"&&c.type!=="error")throw new InvalidDefinitionTypeError(c.type);return`${c.name}(${formatAbiParams(c.inputs,{includeName:a})})`}function formatAbiParams(c,{includeName:a=!1}={}){return c?c.map(d=>formatAbiParam(d,{includeName:a})).join(a?", ":","):""}function formatAbiParam(c,{includeName:a}){return c.type.startsWith("tuple")?`(${formatAbiParams(c.components,{includeName:a})})${c.type.slice(5)}`:c.type+(a&&c.name?` ${c.name}`:"")}function isHex(c,{strict:a=!0}={}){return!c||typeof c!="string"?!1:a?/^0x[0-9a-fA-F]*$/.test(c):c.startsWith("0x")}function size$1(c){return isHex(c,{strict:!1})?Math.ceil((c.length-2)/2):c.length}const version="2.13.8",getContractAddress=c=>c,getUrl=c=>c,getVersion=()=>`viem@${version}`;class BaseError extends Error{constructor(a,d={}){var tt;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:getVersion()});const et=d.cause instanceof BaseError?d.cause.details:(tt=d.cause)!=null&&tt.message?d.cause.message:d.details,nt=d.cause instanceof BaseError&&d.cause.docsPath||d.docsPath;this.message=[a||"An error occurred.","",...d.metaMessages?[...d.metaMessages,""]:[],...nt?[`Docs: https://viem.sh${nt}${d.docsSlug?`#${d.docsSlug}`:""}`]:[],...et?[`Details: ${et}`]:[],`Version: ${this.version}`].join(` +`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}},SliceOffsetOutOfBoundsError$1=class extends BaseError$1{constructor({offset:a,position:d,size:et}){super(`Slice ${d==="start"?"starting":"ending"} at offset "${a}" is out-of-bounds (size: ${et}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}},SizeExceedsPaddingSizeError$1=class extends BaseError$1{constructor({size:a,targetSize:d,type:et}){super(`${et.charAt(0).toUpperCase()}${et.slice(1).toLowerCase()} size (${a}) exceeds padding size (${d}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}};function pad$1(c,{dir:a,size:d=32}={}){return typeof c=="string"?padHex$1(c,{dir:a,size:d}):padBytes$1(c,{dir:a,size:d})}function padHex$1(c,{dir:a,size:d=32}={}){if(d===null)return c;const et=c.replace("0x","");if(et.length>d*2)throw new SizeExceedsPaddingSizeError$1({size:Math.ceil(et.length/2),targetSize:d,type:"hex"});return`0x${et[a==="right"?"padEnd":"padStart"](d*2,"0")}`}function padBytes$1(c,{dir:a,size:d=32}={}){if(d===null)return c;if(c.length>d)throw new SizeExceedsPaddingSizeError$1({size:c.length,targetSize:d,type:"bytes"});const et=new Uint8Array(d);for(let nt=0;nta)throw new SizeOverflowError$1({givenSize:size$2(c),maxSize:a})}const hexes$2=Array.from({length:256},(c,a)=>a.toString(16).padStart(2,"0"));function toHex$1(c,a={}){return typeof c=="number"||typeof c=="bigint"?numberToHex$1(c,a):typeof c=="string"?stringToHex$1(c,a):typeof c=="boolean"?boolToHex$1(c,a):bytesToHex$2(c,a)}function boolToHex$1(c,a={}){const d=`0x${Number(c)}`;return typeof a.size=="number"?(assertSize$1(d,{size:a.size}),pad$1(d,{size:a.size})):d}function bytesToHex$2(c,a={}){let d="";for(let nt=0;nttt||nt=charCodeMap$1.zero&&c<=charCodeMap$1.nine)return c-charCodeMap$1.zero;if(c>=charCodeMap$1.A&&c<=charCodeMap$1.F)return c-(charCodeMap$1.A-10);if(c>=charCodeMap$1.a&&c<=charCodeMap$1.f)return c-(charCodeMap$1.a-10)}function hexToBytes$2(c,a={}){let d=c;a.size&&(assertSize$1(d,{size:a.size}),d=pad$1(d,{dir:"right",size:a.size}));let et=d.slice(2);et.length%2&&(et=`0${et}`);const nt=et.length/2,tt=new Uint8Array(nt);for(let bt=0,gt=0;bt{const a=(()=>typeof c=="string"?c:formatAbiItem$3(c))();return normalizeSignature$1(a)},getEventSignature=c=>getFunctionSignature(c);function number(c){if(!Number.isSafeInteger(c)||c<0)throw new Error(`Wrong positive integer: ${c}`)}function bytes(c,...a){if(!(c instanceof Uint8Array))throw new Error("Expected Uint8Array");if(a.length>0&&!a.includes(c.length))throw new Error(`Expected Uint8Array of length ${a}, not of length=${c.length}`)}function hash$3(c){if(typeof c!="function"||typeof c.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");number(c.outputLen),number(c.blockLen)}function exists(c,a=!0){if(c.destroyed)throw new Error("Hash instance has been destroyed");if(a&&c.finished)throw new Error("Hash#digest() has already been called")}function output(c,a){bytes(c);const d=a.outputLen;if(c.length>_32n&U32_MASK64)}:{h:Number(c>>_32n&U32_MASK64)|0,l:Number(c&U32_MASK64)|0}}function split(c,a=!1){let d=new Uint32Array(c.length),et=new Uint32Array(c.length);for(let nt=0;ntc<>>32-d,rotlSL=(c,a,d)=>a<>>32-d,rotlBH=(c,a,d)=>a<>>64-d,rotlBL=(c,a,d)=>c<>>64-d,crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const u8a$1=c=>c instanceof Uint8Array,u32=c=>new Uint32Array(c.buffer,c.byteOffset,Math.floor(c.byteLength/4)),createView=c=>new DataView(c.buffer,c.byteOffset,c.byteLength),rotr=(c,a)=>c<<32-a|c>>>a,isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!isLE)throw new Error("Non little-endian hardware is not supported");function utf8ToBytes$1(c){if(typeof c!="string")throw new Error(`utf8ToBytes expected string, got ${typeof c}`);return new Uint8Array(new TextEncoder().encode(c))}function toBytes$1(c){if(typeof c=="string"&&(c=utf8ToBytes$1(c)),!u8a$1(c))throw new Error(`expected Uint8Array, got ${typeof c}`);return c}function concatBytes$3(...c){const a=new Uint8Array(c.reduce((et,nt)=>et+nt.length,0));let d=0;return c.forEach(et=>{if(!u8a$1(et))throw new Error("Uint8Array expected");a.set(et,d),d+=et.length}),a}class Hash{clone(){return this._cloneInto()}}function wrapConstructor(c){const a=et=>c().update(toBytes$1(et)).digest(),d=c();return a.outputLen=d.outputLen,a.blockLen=d.blockLen,a.create=()=>c(),a}function randomBytes(c=32){if(crypto&&typeof crypto.getRandomValues=="function")return crypto.getRandomValues(new Uint8Array(c));throw new Error("crypto.getRandomValues must be defined")}const[SHA3_PI,SHA3_ROTL,_SHA3_IOTA]=[[],[],[]],_0n$4=BigInt(0),_1n$5=BigInt(1),_2n$3=BigInt(2),_7n=BigInt(7),_256n=BigInt(256),_0x71n=BigInt(113);for(let c=0,a=_1n$5,d=1,et=0;c<24;c++){[d,et]=[et,(2*d+3*et)%5],SHA3_PI.push(2*(5*et+d)),SHA3_ROTL.push((c+1)*(c+2)/2%64);let nt=_0n$4;for(let tt=0;tt<7;tt++)a=(a<<_1n$5^(a>>_7n)*_0x71n)%_256n,a&_2n$3&&(nt^=_1n$5<<(_1n$5<d>32?rotlBH(c,a,d):rotlSH(c,a,d),rotlL=(c,a,d)=>d>32?rotlBL(c,a,d):rotlSL(c,a,d);function keccakP(c,a=24){const d=new Uint32Array(10);for(let et=24-a;et<24;et++){for(let bt=0;bt<10;bt++)d[bt]=c[bt]^c[bt+10]^c[bt+20]^c[bt+30]^c[bt+40];for(let bt=0;bt<10;bt+=2){const gt=(bt+8)%10,wt=(bt+2)%10,St=d[wt],Mt=d[wt+1],_t=rotlH(St,Mt,1)^d[gt],Tt=rotlL(St,Mt,1)^d[gt+1];for(let Rt=0;Rt<50;Rt+=10)c[bt+Rt]^=_t,c[bt+Rt+1]^=Tt}let nt=c[2],tt=c[3];for(let bt=0;bt<24;bt++){const gt=SHA3_ROTL[bt],wt=rotlH(nt,tt,gt),St=rotlL(nt,tt,gt),Mt=SHA3_PI[bt];nt=c[Mt],tt=c[Mt+1],c[Mt]=wt,c[Mt+1]=St}for(let bt=0;bt<50;bt+=10){for(let gt=0;gt<10;gt++)d[gt]=c[bt+gt];for(let gt=0;gt<10;gt++)c[bt+gt]^=~d[(gt+2)%10]&d[(gt+4)%10]}c[0]^=SHA3_IOTA_H[et],c[1]^=SHA3_IOTA_L[et]}d.fill(0)}class Keccak extends Hash{constructor(a,d,et,nt=!1,tt=24){if(super(),this.blockLen=a,this.suffix=d,this.outputLen=et,this.enableXOF=nt,this.rounds=tt,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,number(et),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=u32(this.state)}keccak(){keccakP(this.state32,this.rounds),this.posOut=0,this.pos=0}update(a){exists(this);const{blockLen:d,state:et}=this;a=toBytes$1(a);const nt=a.length;for(let tt=0;tt=et&&this.keccak();const bt=Math.min(et-this.posOut,tt-nt);a.set(d.subarray(this.posOut,this.posOut+bt),nt),this.posOut+=bt,nt+=bt}return a}xofInto(a){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(a)}xof(a){return number(a),this.xofInto(new Uint8Array(a))}digestInto(a){if(output(a,this),this.finished)throw new Error("digest() was already called");return this.writeInto(a),this.destroy(),a}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(a){const{blockLen:d,suffix:et,outputLen:nt,rounds:tt,enableXOF:bt}=this;return a||(a=new Keccak(d,et,nt,bt,tt)),a.state32.set(this.state32),a.pos=this.pos,a.posOut=this.posOut,a.finished=this.finished,a.rounds=tt,a.suffix=et,a.outputLen=nt,a.enableXOF=bt,a.destroyed=this.destroyed,a}}const gen=(c,a,d)=>wrapConstructor(()=>new Keccak(a,c,d)),keccak_256=gen(1,136,256/8);function keccak256$1(c,a){const d=a||"hex",et=keccak_256(isHex$1(c,{strict:!1})?toBytes$2(c):c);return d==="bytes"?et:toHex$1(et)}const hash$2=c=>keccak256$1(toBytes$2(c)),getEventSelector=c=>hash$2(getEventSignature(c));let InvalidAddressError$1=class extends BaseError$1{constructor({address:a}){super(`Address "${a}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}};const addressRegex$1=/^0x[a-fA-F0-9]{40}$/;function isAddress$1(c){return addressRegex$1.test(c)}function concat$1(c){return typeof c[0]=="string"?concatHex$1(c):concatBytes$2(c)}function concatBytes$2(c){let a=0;for(const nt of c)a+=nt.length;const d=new Uint8Array(a);let et=0;for(const nt of c)d.set(nt,et),et+=nt.length;return d}function concatHex$1(c){return`0x${c.reduce((a,d)=>a+d.replace("0x",""),"")}`}function slice$1(c,a,d,{strict:et}={}){return isHex$1(c,{strict:!1})?sliceHex$1(c,a,d,{strict:et}):sliceBytes$1(c,a,d,{strict:et})}function assertStartOffset$1(c,a){if(typeof a=="number"&&a>0&&a>size$2(c)-1)throw new SliceOffsetOutOfBoundsError$1({offset:a,position:"start",size:size$2(c)})}function assertEndOffset$1(c,a,d){if(typeof a=="number"&&typeof d=="number"&&size$2(c)!==d-a)throw new SliceOffsetOutOfBoundsError$1({offset:d,position:"end",size:size$2(c)})}function sliceBytes$1(c,a,d,{strict:et}={}){assertStartOffset$1(c,a);const nt=c.slice(a,d);return et&&assertEndOffset$1(nt,a,d),nt}function sliceHex$1(c,a,d,{strict:et}={}){assertStartOffset$1(c,a);const nt=`0x${c.replace("0x","").slice((a??0)*2,(d??c.length)*2)}`;return et&&assertEndOffset$1(nt,a,d),nt}function encodeAbiParameters$1(c,a){if(c.length!==a.length)throw new AbiEncodingLengthMismatchError$1({expectedLength:c.length,givenLength:a.length});const d=prepareParams$1({params:c,values:a}),et=encodeParams$1(d);return et.length===0?"0x":et}function prepareParams$1({params:c,values:a}){const d=[];for(let et=0;et0?concat$1([gt,bt]):gt}}if(nt)return{dynamic:!0,encoded:bt}}return{dynamic:!1,encoded:concat$1(tt.map(({encoded:bt})=>bt))}}function encodeBytes$1(c,{param:a}){const[,d]=a.type.split("bytes"),et=size$2(c);if(!d){let nt=c;return et%32!==0&&(nt=padHex$1(nt,{dir:"right",size:Math.ceil((c.length-2)/2/32)*32})),{dynamic:!0,encoded:concat$1([padHex$1(numberToHex$1(et,{size:32})),nt])}}if(et!==parseInt(d))throw new AbiEncodingBytesSizeMismatchError$1({expectedSize:parseInt(d),value:c});return{dynamic:!1,encoded:padHex$1(c,{dir:"right"})}}function encodeBool$1(c){return{dynamic:!1,encoded:padHex$1(boolToHex$1(c))}}function encodeNumber$1(c,{signed:a}){return{dynamic:!1,encoded:numberToHex$1(c,{size:32,signed:a})}}function encodeString$1(c){const a=stringToHex$1(c),d=Math.ceil(size$2(a)/32),et=[];for(let nt=0;ntnt))}}function getArrayComponents$1(c){const a=c.match(/^(.*)\[(\d+)?\]$/);return a?[a[2]?Number(a[2]):null,a[1]]:void 0}const hash$1=c=>keccak256$1(toBytes$2(c)),getFunctionSelector=c=>slice$1(hash$1(getFunctionSignature(c)),0,4);function getAbiItem$1({abi:c,args:a=[],name:d}){const et=isHex$1(d,{strict:!1}),nt=c.filter(bt=>et?bt.type==="function"?getFunctionSelector(bt)===d:bt.type==="event"?getEventSelector(bt)===d:!1:"name"in bt&&bt.name===d);if(nt.length===0)return;if(nt.length===1)return nt[0];let tt;for(const bt of nt){if(!("inputs"in bt))continue;if(!a||a.length===0){if(!bt.inputs||bt.inputs.length===0)return bt;continue}if(!bt.inputs||bt.inputs.length===0||bt.inputs.length!==a.length)continue;if(a.every((wt,St)=>{const Mt="inputs"in bt&&bt.inputs[St];return Mt?isArgOfType$1(wt,Mt):!1})){if(tt&&"inputs"in tt&&tt.inputs){const wt=getAmbiguousTypes$1(bt.inputs,tt.inputs,a);if(wt)throw new AbiItemAmbiguityError$1({abiItem:bt,type:wt[0]},{abiItem:tt,type:wt[1]})}tt=bt}}return tt||nt[0]}function isArgOfType$1(c,a){const d=typeof c,et=a.type;switch(et){case"address":return isAddress$1(c);case"bool":return d==="boolean";case"function":return d==="string";case"string":return d==="string";default:return et==="tuple"&&"components"in a?Object.values(a.components).every((nt,tt)=>isArgOfType$1(Object.values(c)[tt],nt)):/^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(et)?d==="number"||d==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(et)?d==="string"||c instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(et)?Array.isArray(c)&&c.every(nt=>isArgOfType$1(nt,{...a,type:et.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function getAmbiguousTypes$1(c,a,d){for(const et in c){const nt=c[et],tt=a[et];if(nt.type==="tuple"&&tt.type==="tuple"&&"components"in nt&&"components"in tt)return getAmbiguousTypes$1(nt.components,tt.components,d[et]);const bt=[nt.type,tt.type];if((()=>bt.includes("address")&&bt.includes("bytes20")?!0:bt.includes("address")&&bt.includes("string")||bt.includes("address")&&bt.includes("bytes")?isAddress$1(d[et]):!1)())return bt}}function encodeFunctionData$1({abi:c,args:a,functionName:d}){let et=c[0];if(d&&(et=getAbiItem$1({abi:c,args:a,name:d}),!et))throw new AbiFunctionNotFoundError$1(d,{docsPath:"/docs/contract/encodeFunctionData"});if(et.type!=="function")throw new AbiFunctionNotFoundError$1(void 0,{docsPath:"/docs/contract/encodeFunctionData"});const nt=formatAbiItem$2(et),tt=getFunctionSelector(nt),bt="inputs"in et&&et.inputs?encodeAbiParameters$1(et.inputs,a??[]):void 0;return concatHex$1([tt,bt??"0x"])}const scriptRel="modulepreload",assetsURL=function(c){return"/"+c},seen={},__vitePreload=function c(a,d,et){if(!d||d.length===0)return a();const nt=document.getElementsByTagName("link");return Promise.all(d.map(tt=>{if(tt=assetsURL(tt),tt in seen)return;seen[tt]=!0;const bt=tt.endsWith(".css"),gt=bt?'[rel="stylesheet"]':"";if(!!et)for(let Mt=nt.length-1;Mt>=0;Mt--){const _t=nt[Mt];if(_t.href===tt&&(!bt||_t.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${tt}"]${gt}`))return;const St=document.createElement("link");if(St.rel=bt?"stylesheet":scriptRel,bt||(St.as="script",St.crossOrigin=""),St.href=tt,document.head.appendChild(St),bt)return new Promise((Mt,_t)=>{St.addEventListener("load",Mt),St.addEventListener("error",()=>_t(new Error(`Unable to preload CSS for ${tt}`)))})})).then(()=>a()).catch(tt=>{const bt=new Event("vite:preloadError",{cancelable:!0});if(bt.payload=tt,window.dispatchEvent(bt),!bt.defaultPrevented)throw tt})},bytesRegex$1=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,integerRegex$1=/^(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 hashTypedData$1({domain:c,message:a,primaryType:d,types:et}){const nt=typeof c>"u"?{}:c,tt={EIP712Domain:getTypesForEIP712Domain$1({domain:nt}),...et};validateTypedData$1({domain:nt,message:a,primaryType:d,types:tt});const bt=["0x1901"];return nt&&bt.push(hashDomain$1({domain:nt,types:tt})),d!=="EIP712Domain"&&bt.push(hashStruct$1({data:a,primaryType:d,types:tt})),keccak256$1(concat$1(bt))}function hashDomain$1({domain:c,types:a}){return hashStruct$1({data:c,primaryType:"EIP712Domain",types:a})}function hashStruct$1({data:c,primaryType:a,types:d}){const et=encodeData$1({data:c,primaryType:a,types:d});return keccak256$1(et)}function encodeData$1({data:c,primaryType:a,types:d}){const et=[{type:"bytes32"}],nt=[hashType$1({primaryType:a,types:d})];for(const tt of d[a]){const[bt,gt]=encodeField$1({types:d,name:tt.name,type:tt.type,value:c[tt.name]});et.push(bt),nt.push(gt)}return encodeAbiParameters$1(et,nt)}function hashType$1({primaryType:c,types:a}){const d=toHex$1(encodeType$1({primaryType:c,types:a}));return keccak256$1(d)}function encodeType$1({primaryType:c,types:a}){let d="";const et=findTypeDependencies$1({primaryType:c,types:a});et.delete(c);const nt=[c,...Array.from(et).sort()];for(const tt of nt)d+=`${tt}(${a[tt].map(({name:bt,type:gt})=>`${gt} ${bt}`).join(",")})`;return d}function findTypeDependencies$1({primaryType:c,types:a},d=new Set){const et=c.match(/^\w*/u),nt=et==null?void 0:et[0];if(d.has(nt)||a[nt]===void 0)return d;d.add(nt);for(const tt of a[nt])findTypeDependencies$1({primaryType:tt.type,types:a},d);return d}function encodeField$1({types:c,name:a,type:d,value:et}){if(c[d]!==void 0)return[{type:"bytes32"},keccak256$1(encodeData$1({data:et,primaryType:d,types:c}))];if(d==="bytes")return et=`0x${(et.length%2?"0":"")+et.slice(2)}`,[{type:"bytes32"},keccak256$1(et)];if(d==="string")return[{type:"bytes32"},keccak256$1(toHex$1(et))];if(d.lastIndexOf("]")===d.length-1){const nt=d.slice(0,d.lastIndexOf("[")),tt=et.map(bt=>encodeField$1({name:a,type:nt,types:c,value:bt}));return[{type:"bytes32"},keccak256$1(encodeAbiParameters$1(tt.map(([bt])=>bt),tt.map(([,bt])=>bt)))]}return[{type:d},et]}function validateTypedData$1({domain:c,message:a,primaryType:d,types:et}){const nt=et,tt=(bt,gt)=>{for(const wt of bt){const{name:St,type:Mt}=wt,_t=Mt,Tt=gt[St],Rt=_t.match(integerRegex$1);if(Rt&&(typeof Tt=="number"||typeof Tt=="bigint")){const[Lt,Ot,Nt]=Rt;numberToHex$1(Tt,{signed:Ot==="int",size:parseInt(Nt)/8})}if(_t==="address"&&typeof Tt=="string"&&!isAddress$1(Tt))throw new InvalidAddressError$1({address:Tt});const kt=_t.match(bytesRegex$1);if(kt){const[Lt,Ot]=kt;if(Ot&&size$2(Tt)!==parseInt(Ot))throw new BytesSizeMismatchError$1({expectedSize:parseInt(Ot),givenSize:size$2(Tt)})}const It=nt[_t];It&&tt(It,Tt)}};if(nt.EIP712Domain&&c&&tt(nt.EIP712Domain,c),d!=="EIP712Domain"){const bt=nt[d];tt(bt,a)}}function getTypesForEIP712Domain$1({domain:c}){return[typeof(c==null?void 0:c.name)=="string"&&{name:"name",type:"string"},(c==null?void 0:c.version)&&{name:"version",type:"string"},typeof(c==null?void 0:c.chainId)=="number"&&{name:"chainId",type:"uint256"},(c==null?void 0:c.verifyingContract)&&{name:"verifyingContract",type:"address"},(c==null?void 0:c.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}function setBigUint64(c,a,d,et){if(typeof c.setBigUint64=="function")return c.setBigUint64(a,d,et);const nt=BigInt(32),tt=BigInt(4294967295),bt=Number(d>>nt&tt),gt=Number(d&tt),wt=et?4:0,St=et?0:4;c.setUint32(a+wt,bt,et),c.setUint32(a+St,gt,et)}class SHA2 extends Hash{constructor(a,d,et,nt){super(),this.blockLen=a,this.outputLen=d,this.padOffset=et,this.isLE=nt,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(a),this.view=createView(this.buffer)}update(a){exists(this);const{view:d,buffer:et,blockLen:nt}=this;a=toBytes$1(a);const tt=a.length;for(let bt=0;btnt-bt&&(this.process(et,0),bt=0);for(let _t=bt;_tMt.length)throw new Error("_sha2: outputLen bigger than state");for(let _t=0;_tc&a^~c&d,Maj=(c,a,d)=>c&a^c&d^a&d,SHA256_K=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]),IV=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W=new Uint32Array(64);class SHA256 extends SHA2{constructor(){super(64,32,8,!1),this.A=IV[0]|0,this.B=IV[1]|0,this.C=IV[2]|0,this.D=IV[3]|0,this.E=IV[4]|0,this.F=IV[5]|0,this.G=IV[6]|0,this.H=IV[7]|0}get(){const{A:a,B:d,C:et,D:nt,E:tt,F:bt,G:gt,H:wt}=this;return[a,d,et,nt,tt,bt,gt,wt]}set(a,d,et,nt,tt,bt,gt,wt){this.A=a|0,this.B=d|0,this.C=et|0,this.D=nt|0,this.E=tt|0,this.F=bt|0,this.G=gt|0,this.H=wt|0}process(a,d){for(let _t=0;_t<16;_t++,d+=4)SHA256_W[_t]=a.getUint32(d,!1);for(let _t=16;_t<64;_t++){const Tt=SHA256_W[_t-15],Rt=SHA256_W[_t-2],kt=rotr(Tt,7)^rotr(Tt,18)^Tt>>>3,It=rotr(Rt,17)^rotr(Rt,19)^Rt>>>10;SHA256_W[_t]=It+SHA256_W[_t-7]+kt+SHA256_W[_t-16]|0}let{A:et,B:nt,C:tt,D:bt,E:gt,F:wt,G:St,H:Mt}=this;for(let _t=0;_t<64;_t++){const Tt=rotr(gt,6)^rotr(gt,11)^rotr(gt,25),Rt=Mt+Tt+Chi(gt,wt,St)+SHA256_K[_t]+SHA256_W[_t]|0,It=(rotr(et,2)^rotr(et,13)^rotr(et,22))+Maj(et,nt,tt)|0;Mt=St,St=wt,wt=gt,gt=bt+Rt|0,bt=tt,tt=nt,nt=et,et=Rt+It|0}et=et+this.A|0,nt=nt+this.B|0,tt=tt+this.C|0,bt=bt+this.D|0,gt=gt+this.E|0,wt=wt+this.F|0,St=St+this.G|0,Mt=Mt+this.H|0,this.set(et,nt,tt,bt,gt,wt,St,Mt)}roundClean(){SHA256_W.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const sha256$1=wrapConstructor(()=>new SHA256),presignMessagePrefix$1=`Ethereum Signed Message: +`;function hashMessage$1(c,a){const d=(()=>typeof c=="string"?stringToBytes$1(c):c.raw instanceof Uint8Array?c.raw:toBytes$2(c.raw))(),et=stringToBytes$1(`${presignMessagePrefix$1}${d.length}`);return keccak256$1(concat$1([et,d]),a)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$3=BigInt(0),_1n$4=BigInt(1),_2n$2=BigInt(2),u8a=c=>c instanceof Uint8Array,hexes$1=Array.from({length:256},(c,a)=>a.toString(16).padStart(2,"0"));function bytesToHex$1(c){if(!u8a(c))throw new Error("Uint8Array expected");let a="";for(let d=0;det+nt.length,0));let d=0;return c.forEach(et=>{if(!u8a(et))throw new Error("Uint8Array expected");a.set(et,d),d+=et.length}),a}function equalBytes(c,a){if(c.length!==a.length)return!1;for(let d=0;d_0n$3;c>>=_1n$4,a+=1);return a}function bitGet(c,a){return c>>BigInt(a)&_1n$4}const bitSet=(c,a,d)=>c|(d?_1n$4:_0n$3)<(_2n$2<new Uint8Array(c),u8fr=c=>Uint8Array.from(c);function createHmacDrbg(c,a,d){if(typeof c!="number"||c<2)throw new Error("hashLen must be a number");if(typeof a!="number"||a<2)throw new Error("qByteLen must be a number");if(typeof d!="function")throw new Error("hmacFn must be a function");let et=u8n(c),nt=u8n(c),tt=0;const bt=()=>{et.fill(1),nt.fill(0),tt=0},gt=(..._t)=>d(nt,et,..._t),wt=(_t=u8n())=>{nt=gt(u8fr([0]),_t),et=gt(),_t.length!==0&&(nt=gt(u8fr([1]),_t),et=gt())},St=()=>{if(tt++>=1e3)throw new Error("drbg: tried 1000 values");let _t=0;const Tt=[];for(;_t{bt(),wt(_t);let Rt;for(;!(Rt=Tt(St()));)wt();return bt(),Rt}}const validatorFns={bigint:c=>typeof c=="bigint",function:c=>typeof c=="function",boolean:c=>typeof c=="boolean",string:c=>typeof c=="string",stringOrUint8Array:c=>typeof c=="string"||c instanceof Uint8Array,isSafeInteger:c=>Number.isSafeInteger(c),array:c=>Array.isArray(c),field:(c,a)=>a.Fp.isValid(c),hash:c=>typeof c=="function"&&Number.isSafeInteger(c.outputLen)};function validateObject(c,a,d={}){const et=(nt,tt,bt)=>{const gt=validatorFns[tt];if(typeof gt!="function")throw new Error(`Invalid validator "${tt}", expected function`);const wt=c[nt];if(!(bt&&wt===void 0)&&!gt(wt,c))throw new Error(`Invalid param ${String(nt)}=${wt} (${typeof wt}), expected ${tt}`)};for(const[nt,tt]of Object.entries(a))et(nt,tt,!1);for(const[nt,tt]of Object.entries(d))et(nt,tt,!0);return c}const ut=Object.freeze(Object.defineProperty({__proto__:null,bitGet,bitLen,bitMask,bitSet,bytesToHex:bytesToHex$1,bytesToNumberBE,bytesToNumberLE,concatBytes:concatBytes$1,createHmacDrbg,ensureBytes,equalBytes,hexToBytes:hexToBytes$1,hexToNumber:hexToNumber$1,numberToBytesBE,numberToBytesLE,numberToHexUnpadded,numberToVarBytesBE,utf8ToBytes,validateObject},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$2=BigInt(0),_1n$3=BigInt(1),_2n$1=BigInt(2),_3n$1=BigInt(3),_4n=BigInt(4),_5n=BigInt(5),_8n=BigInt(8);BigInt(9);BigInt(16);function mod(c,a){const d=c%a;return d>=_0n$2?d:a+d}function pow(c,a,d){if(d<=_0n$2||a<_0n$2)throw new Error("Expected power/modulo > 0");if(d===_1n$3)return _0n$2;let et=_1n$3;for(;a>_0n$2;)a&_1n$3&&(et=et*c%d),c=c*c%d,a>>=_1n$3;return et}function pow2(c,a,d){let et=c;for(;a-- >_0n$2;)et*=et,et%=d;return et}function invert(c,a){if(c===_0n$2||a<=_0n$2)throw new Error(`invert: expected positive integers, got n=${c} mod=${a}`);let d=mod(c,a),et=a,nt=_0n$2,tt=_1n$3;for(;d!==_0n$2;){const gt=et/d,wt=et%d,St=nt-tt*gt;et=d,d=wt,nt=tt,tt=St}if(et!==_1n$3)throw new Error("invert: does not exist");return mod(nt,a)}function tonelliShanks(c){const a=(c-_1n$3)/_2n$1;let d,et,nt;for(d=c-_1n$3,et=0;d%_2n$1===_0n$2;d/=_2n$1,et++);for(nt=_2n$1;nt(et[nt]="function",et),a);return validateObject(c,d)}function FpPow(c,a,d){if(d<_0n$2)throw new Error("Expected power > 0");if(d===_0n$2)return c.ONE;if(d===_1n$3)return a;let et=c.ONE,nt=a;for(;d>_0n$2;)d&_1n$3&&(et=c.mul(et,nt)),nt=c.sqr(nt),d>>=_1n$3;return et}function FpInvertBatch(c,a){const d=new Array(a.length),et=a.reduce((tt,bt,gt)=>c.is0(bt)?tt:(d[gt]=tt,c.mul(tt,bt)),c.ONE),nt=c.inv(et);return a.reduceRight((tt,bt,gt)=>c.is0(bt)?tt:(d[gt]=c.mul(tt,d[gt]),c.mul(tt,bt)),nt),d}function nLength(c,a){const d=a!==void 0?a:c.toString(2).length,et=Math.ceil(d/8);return{nBitLength:d,nByteLength:et}}function Field(c,a,d=!1,et={}){if(c<=_0n$2)throw new Error(`Expected Field ORDER > 0, got ${c}`);const{nBitLength:nt,nByteLength:tt}=nLength(c,a);if(tt>2048)throw new Error("Field lengths over 2048 bytes are not supported");const bt=FpSqrt(c),gt=Object.freeze({ORDER:c,BITS:nt,BYTES:tt,MASK:bitMask(nt),ZERO:_0n$2,ONE:_1n$3,create:wt=>mod(wt,c),isValid:wt=>{if(typeof wt!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof wt}`);return _0n$2<=wt&&wtwt===_0n$2,isOdd:wt=>(wt&_1n$3)===_1n$3,neg:wt=>mod(-wt,c),eql:(wt,St)=>wt===St,sqr:wt=>mod(wt*wt,c),add:(wt,St)=>mod(wt+St,c),sub:(wt,St)=>mod(wt-St,c),mul:(wt,St)=>mod(wt*St,c),pow:(wt,St)=>FpPow(gt,wt,St),div:(wt,St)=>mod(wt*invert(St,c),c),sqrN:wt=>wt*wt,addN:(wt,St)=>wt+St,subN:(wt,St)=>wt-St,mulN:(wt,St)=>wt*St,inv:wt=>invert(wt,c),sqrt:et.sqrt||(wt=>bt(gt,wt)),invertBatch:wt=>FpInvertBatch(gt,wt),cmov:(wt,St,Mt)=>Mt?St:wt,toBytes:wt=>d?numberToBytesLE(wt,tt):numberToBytesBE(wt,tt),fromBytes:wt=>{if(wt.length!==tt)throw new Error(`Fp.fromBytes: expected ${tt}, got ${wt.length}`);return d?bytesToNumberLE(wt):bytesToNumberBE(wt)}});return Object.freeze(gt)}function getFieldBytesLength(c){if(typeof c!="bigint")throw new Error("field order must be bigint");const a=c.toString(2).length;return Math.ceil(a/8)}function getMinHashLength(c){const a=getFieldBytesLength(c);return a+Math.ceil(a/2)}function mapHashToField(c,a,d=!1){const et=c.length,nt=getFieldBytesLength(a),tt=getMinHashLength(a);if(et<16||et1024)throw new Error(`expected ${tt}-1024 bytes of input, got ${et}`);const bt=d?bytesToNumberBE(c):bytesToNumberLE(c),gt=mod(bt,a-_1n$3)+_1n$3;return d?numberToBytesLE(gt,nt):numberToBytesBE(gt,nt)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$1=BigInt(0),_1n$2=BigInt(1);function wNAF(c,a){const d=(nt,tt)=>{const bt=tt.negate();return nt?bt:tt},et=nt=>{const tt=Math.ceil(a/nt)+1,bt=2**(nt-1);return{windows:tt,windowSize:bt}};return{constTimeNegate:d,unsafeLadder(nt,tt){let bt=c.ZERO,gt=nt;for(;tt>_0n$1;)tt&_1n$2&&(bt=bt.add(gt)),gt=gt.double(),tt>>=_1n$2;return bt},precomputeWindow(nt,tt){const{windows:bt,windowSize:gt}=et(tt),wt=[];let St=nt,Mt=St;for(let _t=0;_t>=Rt,Lt>wt&&(Lt-=Tt,bt+=_1n$2);const Ot=It,Nt=It+Math.abs(Lt)-1,Ft=kt%2!==0,jt=Lt<0;Lt===0?Mt=Mt.add(d(Ft,tt[Ot])):St=St.add(d(jt,tt[Nt]))}return{p:St,f:Mt}},wNAFCached(nt,tt,bt,gt){const wt=nt._WINDOW_SIZE||1;let St=tt.get(nt);return St||(St=this.precomputeWindow(nt,wt),wt!==1&&tt.set(nt,gt(St))),this.wNAF(wt,St,bt)}}}function validateBasic(c){return validateField(c.Fp),validateObject(c,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...nLength(c.n,c.nBitLength),...c,p:c.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function validatePointOpts(c){const a=validateBasic(c);validateObject(a,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:d,Fp:et,a:nt}=a;if(d){if(!et.eql(nt,et.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof d!="object"||typeof d.beta!="bigint"||typeof d.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...a})}const{bytesToNumberBE:b2n,hexToBytes:h2b}=ut,DER={Err:class extends Error{constructor(a=""){super(a)}},_parseInt(c){const{Err:a}=DER;if(c.length<2||c[0]!==2)throw new a("Invalid signature integer tag");const d=c[1],et=c.subarray(2,d+2);if(!d||et.length!==d)throw new a("Invalid signature integer: wrong length");if(et[0]&128)throw new a("Invalid signature integer: negative");if(et[0]===0&&!(et[1]&128))throw new a("Invalid signature integer: unnecessary leading zero");return{d:b2n(et),l:c.subarray(d+2)}},toSig(c){const{Err:a}=DER,d=typeof c=="string"?h2b(c):c;if(!(d instanceof Uint8Array))throw new Error("ui8a expected");let et=d.length;if(et<2||d[0]!=48)throw new a("Invalid signature tag");if(d[1]!==et-2)throw new a("Invalid signature: incorrect length");const{d:nt,l:tt}=DER._parseInt(d.subarray(2)),{d:bt,l:gt}=DER._parseInt(tt);if(gt.length)throw new a("Invalid signature: left bytes after parsing");return{r:nt,s:bt}},hexFromSig(c){const a=St=>Number.parseInt(St[0],16)&8?"00"+St:St,d=St=>{const Mt=St.toString(16);return Mt.length&1?`0${Mt}`:Mt},et=a(d(c.s)),nt=a(d(c.r)),tt=et.length/2,bt=nt.length/2,gt=d(tt),wt=d(bt);return`30${d(bt+tt+4)}02${wt}${nt}02${gt}${et}`}},_0n=BigInt(0),_1n$1=BigInt(1);BigInt(2);const _3n=BigInt(3);BigInt(4);function weierstrassPoints(c){const a=validatePointOpts(c),{Fp:d}=a,et=a.toBytes||((kt,It,Lt)=>{const Ot=It.toAffine();return concatBytes$1(Uint8Array.from([4]),d.toBytes(Ot.x),d.toBytes(Ot.y))}),nt=a.fromBytes||(kt=>{const It=kt.subarray(1),Lt=d.fromBytes(It.subarray(0,d.BYTES)),Ot=d.fromBytes(It.subarray(d.BYTES,2*d.BYTES));return{x:Lt,y:Ot}});function tt(kt){const{a:It,b:Lt}=a,Ot=d.sqr(kt),Nt=d.mul(Ot,kt);return d.add(d.add(Nt,d.mul(kt,It)),Lt)}if(!d.eql(d.sqr(a.Gy),tt(a.Gx)))throw new Error("bad generator point: equation left != right");function bt(kt){return typeof kt=="bigint"&&_0nd.eql(Ft,d.ZERO);return Nt(Lt)&&Nt(Ot)?_t.ZERO:new _t(Lt,Ot,d.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(It){const Lt=d.invertBatch(It.map(Ot=>Ot.pz));return It.map((Ot,Nt)=>Ot.toAffine(Lt[Nt])).map(_t.fromAffine)}static fromHex(It){const Lt=_t.fromAffine(nt(ensureBytes("pointHex",It)));return Lt.assertValidity(),Lt}static fromPrivateKey(It){return _t.BASE.multiply(wt(It))}_setWindowSize(It){this._WINDOW_SIZE=It,St.delete(this)}assertValidity(){if(this.is0()){if(a.allowInfinityPoint&&!d.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:It,y:Lt}=this.toAffine();if(!d.isValid(It)||!d.isValid(Lt))throw new Error("bad point: x or y not FE");const Ot=d.sqr(Lt),Nt=tt(It);if(!d.eql(Ot,Nt))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:It}=this.toAffine();if(d.isOdd)return!d.isOdd(It);throw new Error("Field doesn't support isOdd")}equals(It){Mt(It);const{px:Lt,py:Ot,pz:Nt}=this,{px:Ft,py:jt,pz:Vt}=It,Jt=d.eql(d.mul(Lt,Vt),d.mul(Ft,Nt)),ir=d.eql(d.mul(Ot,Vt),d.mul(jt,Nt));return Jt&&ir}negate(){return new _t(this.px,d.neg(this.py),this.pz)}double(){const{a:It,b:Lt}=a,Ot=d.mul(Lt,_3n),{px:Nt,py:Ft,pz:jt}=this;let Vt=d.ZERO,Jt=d.ZERO,ir=d.ZERO,rr=d.mul(Nt,Nt),er=d.mul(Ft,Ft),lr=d.mul(jt,jt),Ct=d.mul(Nt,Ft);return Ct=d.add(Ct,Ct),ir=d.mul(Nt,jt),ir=d.add(ir,ir),Vt=d.mul(It,ir),Jt=d.mul(Ot,lr),Jt=d.add(Vt,Jt),Vt=d.sub(er,Jt),Jt=d.add(er,Jt),Jt=d.mul(Vt,Jt),Vt=d.mul(Ct,Vt),ir=d.mul(Ot,ir),lr=d.mul(It,lr),Ct=d.sub(rr,lr),Ct=d.mul(It,Ct),Ct=d.add(Ct,ir),ir=d.add(rr,rr),rr=d.add(ir,rr),rr=d.add(rr,lr),rr=d.mul(rr,Ct),Jt=d.add(Jt,rr),lr=d.mul(Ft,jt),lr=d.add(lr,lr),rr=d.mul(lr,Ct),Vt=d.sub(Vt,rr),ir=d.mul(lr,er),ir=d.add(ir,ir),ir=d.add(ir,ir),new _t(Vt,Jt,ir)}add(It){Mt(It);const{px:Lt,py:Ot,pz:Nt}=this,{px:Ft,py:jt,pz:Vt}=It;let Jt=d.ZERO,ir=d.ZERO,rr=d.ZERO;const er=a.a,lr=d.mul(a.b,_3n);let Ct=d.mul(Lt,Ft),dt=d.mul(Ot,jt),mt=d.mul(Nt,Vt),yt=d.add(Lt,Ot),vt=d.add(Ft,jt);yt=d.mul(yt,vt),vt=d.add(Ct,dt),yt=d.sub(yt,vt),vt=d.add(Lt,Nt);let Et=d.add(Ft,Vt);return vt=d.mul(vt,Et),Et=d.add(Ct,mt),vt=d.sub(vt,Et),Et=d.add(Ot,Nt),Jt=d.add(jt,Vt),Et=d.mul(Et,Jt),Jt=d.add(dt,mt),Et=d.sub(Et,Jt),rr=d.mul(er,vt),Jt=d.mul(lr,mt),rr=d.add(Jt,rr),Jt=d.sub(dt,rr),rr=d.add(dt,rr),ir=d.mul(Jt,rr),dt=d.add(Ct,Ct),dt=d.add(dt,Ct),mt=d.mul(er,mt),vt=d.mul(lr,vt),dt=d.add(dt,mt),mt=d.sub(Ct,mt),mt=d.mul(er,mt),vt=d.add(vt,mt),Ct=d.mul(dt,vt),ir=d.add(ir,Ct),Ct=d.mul(Et,vt),Jt=d.mul(yt,Jt),Jt=d.sub(Jt,Ct),Ct=d.mul(yt,dt),rr=d.mul(Et,rr),rr=d.add(rr,Ct),new _t(Jt,ir,rr)}subtract(It){return this.add(It.negate())}is0(){return this.equals(_t.ZERO)}wNAF(It){return Rt.wNAFCached(this,St,It,Lt=>{const Ot=d.invertBatch(Lt.map(Nt=>Nt.pz));return Lt.map((Nt,Ft)=>Nt.toAffine(Ot[Ft])).map(_t.fromAffine)})}multiplyUnsafe(It){const Lt=_t.ZERO;if(It===_0n)return Lt;if(gt(It),It===_1n$1)return this;const{endo:Ot}=a;if(!Ot)return Rt.unsafeLadder(this,It);let{k1neg:Nt,k1:Ft,k2neg:jt,k2:Vt}=Ot.splitScalar(It),Jt=Lt,ir=Lt,rr=this;for(;Ft>_0n||Vt>_0n;)Ft&_1n$1&&(Jt=Jt.add(rr)),Vt&_1n$1&&(ir=ir.add(rr)),rr=rr.double(),Ft>>=_1n$1,Vt>>=_1n$1;return Nt&&(Jt=Jt.negate()),jt&&(ir=ir.negate()),ir=new _t(d.mul(ir.px,Ot.beta),ir.py,ir.pz),Jt.add(ir)}multiply(It){gt(It);let Lt=It,Ot,Nt;const{endo:Ft}=a;if(Ft){const{k1neg:jt,k1:Vt,k2neg:Jt,k2:ir}=Ft.splitScalar(Lt);let{p:rr,f:er}=this.wNAF(Vt),{p:lr,f:Ct}=this.wNAF(ir);rr=Rt.constTimeNegate(jt,rr),lr=Rt.constTimeNegate(Jt,lr),lr=new _t(d.mul(lr.px,Ft.beta),lr.py,lr.pz),Ot=rr.add(lr),Nt=er.add(Ct)}else{const{p:jt,f:Vt}=this.wNAF(Lt);Ot=jt,Nt=Vt}return _t.normalizeZ([Ot,Nt])[0]}multiplyAndAddUnsafe(It,Lt,Ot){const Nt=_t.BASE,Ft=(Vt,Jt)=>Jt===_0n||Jt===_1n$1||!Vt.equals(Nt)?Vt.multiplyUnsafe(Jt):Vt.multiply(Jt),jt=Ft(this,Lt).add(Ft(It,Ot));return jt.is0()?void 0:jt}toAffine(It){const{px:Lt,py:Ot,pz:Nt}=this,Ft=this.is0();It==null&&(It=Ft?d.ONE:d.inv(Nt));const jt=d.mul(Lt,It),Vt=d.mul(Ot,It),Jt=d.mul(Nt,It);if(Ft)return{x:d.ZERO,y:d.ZERO};if(!d.eql(Jt,d.ONE))throw new Error("invZ was invalid");return{x:jt,y:Vt}}isTorsionFree(){const{h:It,isTorsionFree:Lt}=a;if(It===_1n$1)return!0;if(Lt)return Lt(_t,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:It,clearCofactor:Lt}=a;return It===_1n$1?this:Lt?Lt(_t,this):this.multiplyUnsafe(a.h)}toRawBytes(It=!0){return this.assertValidity(),et(_t,this,It)}toHex(It=!0){return bytesToHex$1(this.toRawBytes(It))}}_t.BASE=new _t(a.Gx,a.Gy,d.ONE),_t.ZERO=new _t(d.ZERO,d.ONE,d.ZERO);const Tt=a.nBitLength,Rt=wNAF(_t,a.endo?Math.ceil(Tt/2):Tt);return{CURVE:a,ProjectivePoint:_t,normPrivateKeyToScalar:wt,weierstrassEquation:tt,isWithinCurveOrder:bt}}function validateOpts(c){const a=validateBasic(c);return validateObject(a,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...a})}function weierstrass(c){const a=validateOpts(c),{Fp:d,n:et}=a,nt=d.BYTES+1,tt=2*d.BYTES+1;function bt(vt){return _0nbytesToHex$1(numberToBytesBE(vt,a.nByteLength));function kt(vt){const Et=et>>_1n$1;return vt>Et}function It(vt){return kt(vt)?gt(-vt):vt}const Lt=(vt,Et,At)=>bytesToNumberBE(vt.slice(Et,At));class Ot{constructor(Et,At,Pt){this.r=Et,this.s=At,this.recovery=Pt,this.assertValidity()}static fromCompact(Et){const At=a.nByteLength;return Et=ensureBytes("compactSignature",Et,At*2),new Ot(Lt(Et,0,At),Lt(Et,At,2*At))}static fromDER(Et){const{r:At,s:Pt}=DER.toSig(ensureBytes("DER",Et));return new Ot(At,Pt)}assertValidity(){if(!Tt(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!Tt(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(Et){return new Ot(this.r,this.s,Et)}recoverPublicKey(Et){const{r:At,s:Pt,recovery:xt}=this,ht=ir(ensureBytes("msgHash",Et));if(xt==null||![0,1,2,3].includes(xt))throw new Error("recovery id invalid");const $t=xt===2||xt===3?At+a.n:At;if($t>=d.ORDER)throw new Error("recovery id 2 or 3 invalid");const Bt=xt&1?"03":"02",Dt=St.fromHex(Bt+Rt($t)),Ht=wt($t),tr=gt(-ht*Ht),Xt=gt(Pt*Ht),Ut=St.BASE.multiplyAndAddUnsafe(Dt,tr,Xt);if(!Ut)throw new Error("point at infinify");return Ut.assertValidity(),Ut}hasHighS(){return kt(this.s)}normalizeS(){return this.hasHighS()?new Ot(this.r,gt(-this.s),this.recovery):this}toDERRawBytes(){return hexToBytes$1(this.toDERHex())}toDERHex(){return DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return hexToBytes$1(this.toCompactHex())}toCompactHex(){return Rt(this.r)+Rt(this.s)}}const Nt={isValidPrivateKey(vt){try{return Mt(vt),!0}catch{return!1}},normPrivateKeyToScalar:Mt,randomPrivateKey:()=>{const vt=getMinHashLength(a.n);return mapHashToField(a.randomBytes(vt),a.n)},precompute(vt=8,Et=St.BASE){return Et._setWindowSize(vt),Et.multiply(BigInt(3)),Et}};function Ft(vt,Et=!0){return St.fromPrivateKey(vt).toRawBytes(Et)}function jt(vt){const Et=vt instanceof Uint8Array,At=typeof vt=="string",Pt=(Et||At)&&vt.length;return Et?Pt===nt||Pt===tt:At?Pt===2*nt||Pt===2*tt:vt instanceof St}function Vt(vt,Et,At=!0){if(jt(vt))throw new Error("first arg must be private key");if(!jt(Et))throw new Error("second arg must be public key");return St.fromHex(Et).multiply(Mt(vt)).toRawBytes(At)}const Jt=a.bits2int||function(vt){const Et=bytesToNumberBE(vt),At=vt.length*8-a.nBitLength;return At>0?Et>>BigInt(At):Et},ir=a.bits2int_modN||function(vt){return gt(Jt(vt))},rr=bitMask(a.nBitLength);function er(vt){if(typeof vt!="bigint")throw new Error("bigint expected");if(!(_0n<=vt&&vtGt in At))throw new Error("sign() legacy options not supported");const{hash:Pt,randomBytes:xt}=a;let{lowS:ht,prehash:$t,extraEntropy:Bt}=At;ht==null&&(ht=!0),vt=ensureBytes("msgHash",vt),$t&&(vt=ensureBytes("prehashed msgHash",Pt(vt)));const Dt=ir(vt),Ht=Mt(Et),tr=[er(Ht),er(Dt)];if(Bt!=null){const Gt=Bt===!0?xt(d.BYTES):Bt;tr.push(ensureBytes("extraEntropy",Gt))}const Xt=concatBytes$1(...tr),Ut=Dt;function qt(Gt){const Zt=Jt(Gt);if(!Tt(Zt))return;const Yt=wt(Zt),Kt=St.BASE.multiply(Zt).toAffine(),ar=gt(Kt.x);if(ar===_0n)return;const gr=gt(Yt*gt(Ut+ar*Ht));if(gr===_0n)return;let cr=(Kt.x===ar?0:2)|Number(Kt.y&_1n$1),ur=gr;return ht&&kt(gr)&&(ur=It(gr),cr^=1),new Ot(ar,ur,cr)}return{seed:Xt,k2sig:qt}}const Ct={lowS:a.lowS,prehash:!1},dt={lowS:a.lowS,prehash:!1};function mt(vt,Et,At=Ct){const{seed:Pt,k2sig:xt}=lr(vt,Et,At),ht=a;return createHmacDrbg(ht.hash.outputLen,ht.nByteLength,ht.hmac)(Pt,xt)}St.BASE._setWindowSize(8);function yt(vt,Et,At,Pt=dt){var Kt;const xt=vt;if(Et=ensureBytes("msgHash",Et),At=ensureBytes("publicKey",At),"strict"in Pt)throw new Error("options.strict was renamed to lowS");const{lowS:ht,prehash:$t}=Pt;let Bt,Dt;try{if(typeof xt=="string"||xt instanceof Uint8Array)try{Bt=Ot.fromDER(xt)}catch(ar){if(!(ar instanceof DER.Err))throw ar;Bt=Ot.fromCompact(xt)}else if(typeof xt=="object"&&typeof xt.r=="bigint"&&typeof xt.s=="bigint"){const{r:ar,s:gr}=xt;Bt=new Ot(ar,gr)}else throw new Error("PARSE");Dt=St.fromHex(At)}catch(ar){if(ar.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(ht&&Bt.hasHighS())return!1;$t&&(Et=a.hash(Et));const{r:Ht,s:tr}=Bt,Xt=ir(Et),Ut=wt(tr),qt=gt(Xt*Ut),Gt=gt(Ht*Ut),Zt=(Kt=St.BASE.multiplyAndAddUnsafe(Dt,qt,Gt))==null?void 0:Kt.toAffine();return Zt?gt(Zt.x)===Ht:!1}return{CURVE:a,getPublicKey:Ft,getSharedSecret:Vt,sign:mt,verify:yt,ProjectivePoint:St,Signature:Ot,utils:Nt}}class HMAC extends Hash{constructor(a,d){super(),this.finished=!1,this.destroyed=!1,hash$3(a);const et=toBytes$1(d);if(this.iHash=a.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const nt=this.blockLen,tt=new Uint8Array(nt);tt.set(et.length>nt?a.create().update(et).digest():et);for(let bt=0;btnew HMAC(c,a).update(d).digest();hmac.create=(c,a)=>new HMAC(c,a);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function getHash(c){return{hash:c,hmac:(a,...d)=>hmac(c,a,concatBytes$3(...d)),randomBytes}}function createCurve(c,a){const d=et=>weierstrass({...c,...getHash(et)});return Object.freeze({...d(a),create:d})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const secp256k1P=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),secp256k1N=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),_1n=BigInt(1),_2n=BigInt(2),divNearest=(c,a)=>(c+a/_2n)/a;function sqrtMod(c){const a=secp256k1P,d=BigInt(3),et=BigInt(6),nt=BigInt(11),tt=BigInt(22),bt=BigInt(23),gt=BigInt(44),wt=BigInt(88),St=c*c*c%a,Mt=St*St*c%a,_t=pow2(Mt,d,a)*Mt%a,Tt=pow2(_t,d,a)*Mt%a,Rt=pow2(Tt,_2n,a)*St%a,kt=pow2(Rt,nt,a)*Rt%a,It=pow2(kt,tt,a)*kt%a,Lt=pow2(It,gt,a)*It%a,Ot=pow2(Lt,wt,a)*Lt%a,Nt=pow2(Ot,gt,a)*It%a,Ft=pow2(Nt,d,a)*Mt%a,jt=pow2(Ft,bt,a)*kt%a,Vt=pow2(jt,et,a)*St%a,Jt=pow2(Vt,_2n,a);if(!Fp.eql(Fp.sqr(Jt),c))throw new Error("Cannot find square root");return Jt}const Fp=Field(secp256k1P,void 0,void 0,{sqrt:sqrtMod}),secp256k1=createCurve({a:BigInt(0),b:BigInt(7),Fp,n:secp256k1N,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:c=>{const a=secp256k1N,d=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),et=-_1n*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),nt=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),tt=d,bt=BigInt("0x100000000000000000000000000000000"),gt=divNearest(tt*c,a),wt=divNearest(-et*c,a);let St=mod(c-gt*d-wt*nt,a),Mt=mod(-gt*et-wt*tt,a);const _t=St>bt,Tt=Mt>bt;if(_t&&(St=a-St),Tt&&(Mt=a-Mt),St>bt||Mt>bt)throw new Error("splitScalar: Endomorphism failed, k="+c);return{k1neg:_t,k1:St,k2neg:Tt,k2:Mt}}}},sha256$1);BigInt(0);secp256k1.ProjectivePoint;const MAGIC_VALUE="0x1626ba7e",MAGIC_VALUE_BYTES="0x20c13b0b",PERMISSIONS_REQUEST_REJECTED=4001;class PermissionsError extends Error{constructor(a,d,et){super(a),this.code=d,this.data=et,Object.setPrototypeOf(this,PermissionsError.prototype)}}class Wallet{constructor(a){this.communicator=a}async getPermissions(){return(await this.communicator.send(Methods.wallet_getPermissions,void 0)).data}async requestPermissions(a){if(!this.isPermissionRequestValid(a))throw new PermissionsError("Permissions request is invalid",PERMISSIONS_REQUEST_REJECTED);try{return(await this.communicator.send(Methods.wallet_requestPermissions,a)).data}catch{throw new PermissionsError("Permissions rejected",PERMISSIONS_REQUEST_REJECTED)}}isPermissionRequestValid(a){return a.every(d=>typeof d=="object"?Object.keys(d).every(et=>!!Object.values(RestrictedMethods).includes(et)):!1)}}const hasPermission=(c,a)=>a.some(d=>d.parentCapability===c),requirePermission=()=>(c,a,d)=>{const et=d.value;return d.value=async function(){const nt=new Wallet(this.communicator);let tt=await nt.getPermissions();if(hasPermission(a,tt)||(tt=await nt.requestPermissions([{[a]:{}}])),!hasPermission(a,tt))throw new PermissionsError("Permissions rejected",PERMISSIONS_REQUEST_REJECTED);return et.apply(this)},d};var __decorate=globalThis&&globalThis.__decorate||function(c,a,d,et){var nt=arguments.length,tt=nt<3?a:et===null?et=Object.getOwnPropertyDescriptor(a,d):et,bt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")tt=Reflect.decorate(c,a,d,et);else for(var gt=c.length-1;gt>=0;gt--)(bt=c[gt])&&(tt=(nt<3?bt(tt):nt>3?bt(a,d,tt):bt(a,d))||tt);return nt>3&&tt&&Object.defineProperty(a,d,tt),tt};let Safe$1=class{constructor(a){this.communicator=a}async getChainInfo(){return(await this.communicator.send(Methods.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(Methods.getSafeInfo,void 0)).data}async experimental_getBalances({currency:a="usd"}={}){return(await this.communicator.send(Methods.getSafeBalances,{currency:a})).data}async check1271Signature(a,d="0x"){const et=await this.getInfo(),nt=encodeFunctionData$1({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[a,d]}),tt={call:RPC_CALLS.eth_call,params:[{to:et.safeAddress,data:nt},"latest"]};try{return(await this.communicator.send(Methods.rpcCall,tt)).data.slice(0,10).toLowerCase()===MAGIC_VALUE}catch{return!1}}async check1271SignatureBytes(a,d="0x"){const et=await this.getInfo(),nt=encodeFunctionData$1({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[a,d]}),tt={call:RPC_CALLS.eth_call,params:[{to:et.safeAddress,data:nt},"latest"]};try{return(await this.communicator.send(Methods.rpcCall,tt)).data.slice(0,10).toLowerCase()===MAGIC_VALUE_BYTES}catch{return!1}}calculateMessageHash(a){return hashMessage$1(a)}calculateTypedMessageHash(a){const d=typeof a.domain.chainId=="object"?a.domain.chainId.toNumber():Number(a.domain.chainId);let et=a.primaryType;if(!et){const nt=Object.values(a.types),tt=Object.keys(a.types).filter(bt=>nt.every(gt=>gt.every(({type:wt})=>wt.replace("[","").replace("]","")!==bt)));if(tt.length===0||tt.length>1)throw new Error("Please specify primaryType");et=tt[0]}return hashTypedData$1({message:a.message,domain:{...a.domain,chainId:d,verifyingContract:a.domain.verifyingContract,salt:a.domain.salt},types:a.types,primaryType:et})}async getOffChainSignature(a){return(await this.communicator.send(Methods.getOffChainSignature,a)).data}async isMessageSigned(a,d="0x"){let et;if(typeof a=="string"&&(et=async()=>{const nt=this.calculateMessageHash(a);return await this.isMessageHashSigned(nt,d)}),isObjectEIP712TypedData(a)&&(et=async()=>{const nt=this.calculateTypedMessageHash(a);return await this.isMessageHashSigned(nt,d)}),et)return await et();throw new Error("Invalid message type")}async isMessageHashSigned(a,d="0x"){const et=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(const nt of et)if(await nt(a,d))return!0;return!1}async getEnvironmentInfo(){return(await this.communicator.send(Methods.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(Methods.requestAddressBook,void 0)).data}};__decorate([requirePermission()],Safe$1.prototype,"requestAddressBook",null);class SafeAppsSDK{constructor(a={}){const{allowedDomains:d=null,debug:et=!1}=a;this.communicator=new PostMessageCommunicator(d,et),this.eth=new Eth(this.communicator),this.txs=new TXs(this.communicator),this.safe=new Safe$1(this.communicator),this.wallet=new Wallet(this.communicator)}}const SDK=SafeAppsSDK;var dist={},provider={},utils={};Object.defineProperty(utils,"__esModule",{value:!0});utils.getLowerCase=void 0;function getLowerCase(c){return c&&c.toLowerCase()}utils.getLowerCase=getLowerCase;Object.defineProperty(provider,"__esModule",{value:!0});provider.SafeAppProvider=void 0;const events_1=eventsExports,utils_1=utils;class SafeAppProvider extends events_1.EventEmitter{constructor(a,d){super(),this.submittedTxs=new Map,this.safe=a,this.sdk=d}async connect(){this.emit("connect",{chainId:this.chainId})}async disconnect(){}get chainId(){return this.safe.chainId}async request(a){const{method:d,params:et=[]}=a;switch(d){case"eth_accounts":return[this.safe.safeAddress];case"net_version":case"eth_chainId":return`0x${this.chainId.toString(16)}`;case"personal_sign":{const[wt,St]=et;if(this.safe.safeAddress.toLowerCase()!==St.toLowerCase())throw new Error("The address or message hash is invalid");const Mt=await this.sdk.txs.signMessage(wt);return("signature"in Mt?Mt.signature:void 0)||"0x"}case"eth_sign":{const[wt,St]=et;if(this.safe.safeAddress.toLowerCase()!==wt.toLowerCase()||!St.startsWith("0x"))throw new Error("The address or message hash is invalid");const Mt=await this.sdk.txs.signMessage(St);return("signature"in Mt?Mt.signature:void 0)||"0x"}case"eth_signTypedData":case"eth_signTypedData_v4":{const[wt,St]=et,Mt=typeof St=="string"?JSON.parse(St):St;if(this.safe.safeAddress.toLowerCase()!==wt.toLowerCase())throw new Error("The address is invalid");const _t=await this.sdk.txs.signTypedMessage(Mt);return("signature"in _t?_t.signature:void 0)||"0x"}case"eth_sendTransaction":const nt={...et[0],value:et[0].value||"0",data:et[0].data||"0x"};typeof nt.gas=="string"&&nt.gas.startsWith("0x")&&(nt.gas=parseInt(nt.gas,16));const tt=await this.sdk.txs.send({txs:[nt],params:{safeTxGas:nt.gas}});return this.submittedTxs.set(tt.safeTxHash,{from:this.safe.safeAddress,hash:tt.safeTxHash,gas:0,gasPrice:"0x00",nonce:0,input:nt.data,value:nt.value,to:nt.to,blockHash:null,blockNumber:null,transactionIndex:null}),tt.safeTxHash;case"eth_blockNumber":return(await this.sdk.eth.getBlockByNumber(["latest"])).number;case"eth_getBalance":return this.sdk.eth.getBalance([(0,utils_1.getLowerCase)(et[0]),et[1]]);case"eth_getCode":return this.sdk.eth.getCode([(0,utils_1.getLowerCase)(et[0]),et[1]]);case"eth_getTransactionCount":return this.sdk.eth.getTransactionCount([(0,utils_1.getLowerCase)(et[0]),et[1]]);case"eth_getStorageAt":return this.sdk.eth.getStorageAt([(0,utils_1.getLowerCase)(et[0]),et[1],et[2]]);case"eth_getBlockByNumber":return this.sdk.eth.getBlockByNumber([et[0],et[1]]);case"eth_getBlockByHash":return this.sdk.eth.getBlockByHash([et[0],et[1]]);case"eth_getTransactionByHash":let gt=et[0];try{gt=(await this.sdk.txs.getBySafeTxHash(gt)).txHash||gt}catch{}return this.submittedTxs.has(gt)?this.submittedTxs.get(gt):this.sdk.eth.getTransactionByHash([gt]).then(wt=>(wt&&(wt.hash=et[0]),wt));case"eth_getTransactionReceipt":{let wt=et[0];try{wt=(await this.sdk.txs.getBySafeTxHash(wt)).txHash||wt}catch{}return this.sdk.eth.getTransactionReceipt([wt]).then(St=>(St&&(St.transactionHash=et[0]),St))}case"eth_estimateGas":return this.sdk.eth.getEstimateGas(et[0]);case"eth_call":return this.sdk.eth.call([et[0],et[1]]);case"eth_getLogs":return this.sdk.eth.getPastLogs([et[0]]);case"eth_gasPrice":return this.sdk.eth.getGasPrice();case"wallet_getPermissions":return this.sdk.wallet.getPermissions();case"wallet_requestPermissions":return this.sdk.wallet.requestPermissions(et[0]);case"safe_setSettings":return this.sdk.eth.setSafeSettings([et[0]]);default:throw Error(`"${a.method}" not implemented`)}}send(a,d){a||d("Undefined request"),this.request(a).then(et=>d(null,{jsonrpc:"2.0",id:a.id,result:et})).catch(et=>d(et,null))}}provider.SafeAppProvider=SafeAppProvider;(function(c){Object.defineProperty(c,"__esModule",{value:!0}),c.SafeAppProvider=void 0;var a=provider;Object.defineProperty(c,"SafeAppProvider",{enumerable:!0,get:function(){return a.SafeAppProvider}})})(dist);const safeAppsSDK=new SDK,waitAndError=c=>new Promise((a,d)=>setTimeout(d,c));let cachedSafeInfo;const getSafeInfo=async()=>(cachedSafeInfo!=null||(cachedSafeInfo=await safeAppsSDK.safe.getInfo(),console.log(cachedSafeInfo)),cachedSafeInfo),isConnectedToSafe=async()=>{try{const c=await Promise.race([waitAndError(300),getSafeInfo()]);return console.log(c),c!=null}catch{return!1}},getSafeAppsProvider=async()=>{const c=await getSafeInfo();if(!c.chainId)throw Error("Unsupported chain");return new BrowserProvider(new dist.SafeAppProvider(c,safeAppsSDK))},submitTxs=async c=>(await safeAppsSDK.txs.send({txs:c})).safeTxHash,PROTOCOL_CHAIN_ID=84531,getProvider=async()=>{var c;return await isConnectedToSafe()?(console.log("Use SafeAppsProvider"),await getSafeAppsProvider()):(console.log("Use JsonRpcProvider"),new JsonRpcProvider((c=NetworkUtil.getNetworkById(PROTOCOL_CHAIN_ID))==null?void 0:c.url))},getJsonRpcProvider=async c=>{var a,d;return console.log("Use JsonRpcProvider"),console.log((a=NetworkUtil.getNetworkById(parseInt(c)))==null?void 0:a.url),new JsonRpcProvider((d=NetworkUtil.getNetworkById(parseInt(c)))==null?void 0:d.url)},nav="_nav_mbz2l_1",wrapper="_wrapper_mbz2l_20",maincontainer="_maincontainer_mbz2l_31",network$1="_network_mbz2l_42",buttonContainer="_buttonContainer_mbz2l_49",container="_container_mbz2l_59",mode$1="_mode_mbz2l_68",root="_root_mbz2l_78",icon="_icon_mbz2l_85",iconLight="_iconLight_mbz2l_92",iconDark="_iconDark_mbz2l_97",classes$d={nav,wrapper,maincontainer,network:network$1,buttonContainer,container,mode:mode$1,root,icon,iconLight,iconDark},Head=c=>{const{colorScheme:a,toggleColorScheme:d}=useMantineColorScheme(),[et,nt]=reactExports.useState(""),[tt,bt]=reactExports.useState(84531),[gt,wt]=reactExports.useState(window.innerWidth<=768),St=a==="dark",Mt=useNavigate();return reactExports.useEffect(()=>{(async()=>{var Rt,kt;const _t=await getProvider(),{chainId:Tt}=await _t.getNetwork();bt(Tt),nt(`${(Rt=NetworkUtil.getNetworkById(parseInt(Tt)))==null?void 0:Rt.name} ${(kt=NetworkUtil.getNetworkById(parseInt(Tt)))==null?void 0:kt.type}`)})()},[window.innerWidth]),jsxRuntimeExports.jsx(AppShell.Header,{children:jsxRuntimeExports.jsx("div",{className:classes$d.wrapper,children:jsxRuntimeExports.jsxs(Group,{position:"apart",className:classes$d.maincontainer,children:[jsxRuntimeExports.jsx(Group,{className:classes$d.container,children:jsxRuntimeExports.jsx(Image$1,{onClick:()=>{Mt(RoutePath.home)},style:{cursor:"pointer",width:"220px"},src:St?LogoDark:LogoLight,alt:"Logo"})}),jsxRuntimeExports.jsxs(Group,{className:classes$d.mode,children:[gt?jsxRuntimeExports.jsx(KD,{size:30,stroke:1.5,onClick:()=>Mt(RoutePath.create),style:{cursor:"pointer"}}):jsxRuntimeExports.jsx(Button,{leftSection:jsxRuntimeExports.jsx(KD,{size:20}),onClick:()=>Mt(RoutePath.create),variant:"default",children:"Create a Drop"}),jsxRuntimeExports.jsx("div",{className:classes$d.container,children:St?jsxRuntimeExports.jsx(EAe,{size:24,stroke:1.5,onClick:()=>d(),style:{cursor:"pointer"}}):jsxRuntimeExports.jsx(Gme,{size:24,stroke:1.5,style:{cursor:"pointer"},onClick:()=>d()})})]})]})})})},AppLayout=c=>{const{children:a}=c,[d,et]=reactExports.useState(!1),{colorScheme:nt,toggleColorScheme:tt}=useMantineColorScheme(),bt=nt=="dark";return jsxRuntimeExports.jsxs(AppShell,{header:{height:60},padding:"md",styles:{main:{backgroundColor:bt?"var(--mantine-color-dark-9)":"var(--mantine-color-gray-0)"},header:{backgroundColor:bt?"var(--mantine-color-dark-7)":"var(--mantine-color-white)"}},children:[jsxRuntimeExports.jsx(Head,{setOpened:et,opened:d}),jsxRuntimeExports.jsxs(AppShell.Main,{children:[" ",jsxRuntimeExports.jsx(Container,{children:a})]})]})},homeContainer="_homeContainer_4uavj_2",avatar$1="_avatar_4uavj_10",avatarContainer$1="_avatarContainer_4uavj_17",safe="_safe_4uavj_26",safeContainer="_safeContainer_4uavj_33",formContainer$1="_formContainer_4uavj_41",heading$1="_heading_4uavj_48",actions$1="_actions_4uavj_61",links="_links_4uavj_71",subHeading$1="_subHeading_4uavj_79",inputContainer$1="_inputContainer_4uavj_85",selectGroup="_selectGroup_4uavj_96",btn$1="_btn_4uavj_102",helperText="_helperText_4uavj_120",mode="_mode_4uavj_124",successContainer="_successContainer_4uavj_134",network="_network_4uavj_144",copyContainer="_copyContainer_4uavj_153",goBack="_goBack_4uavj_159",input="_input_4uavj_85",classes$c={homeContainer,avatar:avatar$1,avatarContainer:avatarContainer$1,safe,safeContainer,formContainer:formContainer$1,heading:heading$1,actions:actions$1,links,subHeading:subHeading$1,inputContainer:inputContainer$1,selectGroup,btn:btn$1,helperText,mode,successContainer,network,copyContainer,goBack,input},Safe="/assets/safe-459a51bb.png",Coinbase="/assets/coinbase-3e244d2b.svg",Metamask="/assets/metamask-967b8115.svg";var dayjs_min={exports:{}};(function(c,a){(function(d,et){c.exports=et()})(commonjsGlobal,function(){var d=1e3,et=6e4,nt=36e5,tt="millisecond",bt="second",gt="minute",wt="hour",St="day",Mt="week",_t="month",Tt="quarter",Rt="year",kt="date",It="Invalid Date",Lt=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Ot=/\[([^\]]+)]|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,Nt={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(yt){var vt=["th","st","nd","rd"],Et=yt%100;return"["+yt+(vt[(Et-20)%10]||vt[Et]||vt[0])+"]"}},Ft=function(yt,vt,Et){var At=String(yt);return!At||At.length>=vt?yt:""+Array(vt+1-At.length).join(Et)+yt},jt={s:Ft,z:function(yt){var vt=-yt.utcOffset(),Et=Math.abs(vt),At=Math.floor(Et/60),Pt=Et%60;return(vt<=0?"+":"-")+Ft(At,2,"0")+":"+Ft(Pt,2,"0")},m:function yt(vt,Et){if(vt.date()1)return yt(ht[0])}else{var $t=vt.name;Jt[$t]=vt,Pt=$t}return!At&&Pt&&(Vt=Pt),Pt||!At&&Vt},lr=function(yt,vt){if(rr(yt))return yt.clone();var Et=typeof vt=="object"?vt:{};return Et.date=yt,Et.args=arguments,new dt(Et)},Ct=jt;Ct.l=er,Ct.i=rr,Ct.w=function(yt,vt){return lr(yt,{locale:vt.$L,utc:vt.$u,x:vt.$x,$offset:vt.$offset})};var dt=function(){function yt(Et){this.$L=er(Et.locale,null,!0),this.parse(Et),this.$x=this.$x||Et.x||{},this[ir]=!0}var vt=yt.prototype;return vt.parse=function(Et){this.$d=function(At){var Pt=At.date,xt=At.utc;if(Pt===null)return new Date(NaN);if(Ct.u(Pt))return new Date;if(Pt instanceof Date)return new Date(Pt);if(typeof Pt=="string"&&!/Z$/i.test(Pt)){var ht=Pt.match(Lt);if(ht){var $t=ht[2]-1||0,Bt=(ht[7]||"0").substring(0,3);return xt?new Date(Date.UTC(ht[1],$t,ht[3]||1,ht[4]||0,ht[5]||0,ht[6]||0,Bt)):new Date(ht[1],$t,ht[3]||1,ht[4]||0,ht[5]||0,ht[6]||0,Bt)}}return new Date(Pt)}(Et),this.init()},vt.init=function(){var Et=this.$d;this.$y=Et.getFullYear(),this.$M=Et.getMonth(),this.$D=Et.getDate(),this.$W=Et.getDay(),this.$H=Et.getHours(),this.$m=Et.getMinutes(),this.$s=Et.getSeconds(),this.$ms=Et.getMilliseconds()},vt.$utils=function(){return Ct},vt.isValid=function(){return this.$d.toString()!==It},vt.isSame=function(Et,At){var Pt=lr(Et);return this.startOf(At)<=Pt&&Pt<=this.endOf(At)},vt.isAfter=function(Et,At){return lr(Et)=nt[a][nt[a].length-1]?{levelIndex:a+1,rowIndex:0,cellIndex:et}:{levelIndex:a,rowIndex:d+1,cellIndex:et};case"left":return a===0&&d===0&&et===0?null:d===0&&et===0?{levelIndex:a-1,rowIndex:nt[a-1].length-1,cellIndex:nt[a-1][nt[a-1].length-1]-1}:et===0?{levelIndex:a,rowIndex:d-1,cellIndex:nt[a][d-1]-1}:{levelIndex:a,rowIndex:d,cellIndex:et-1};case"right":return d===nt[a].length-1&&et===nt[a][d]-1?{levelIndex:a+1,rowIndex:0,cellIndex:0}:et===nt[a][d]-1?{levelIndex:a,rowIndex:d+1,cellIndex:0}:{levelIndex:a,rowIndex:d,cellIndex:et+1};default:return{levelIndex:a,rowIndex:d,cellIndex:et}}}function focusOnNextFocusableControl({controlsRef:c,direction:a,levelIndex:d,rowIndex:et,cellIndex:nt,size:tt}){var wt,St,Mt;const bt=getNextIndex({direction:a,size:tt,rowIndex:et,cellIndex:nt,levelIndex:d});if(!bt)return;const gt=(Mt=(St=(wt=c.current)==null?void 0:wt[bt.levelIndex])==null?void 0:St[bt.rowIndex])==null?void 0:Mt[bt.cellIndex];gt&&(gt.disabled||gt.getAttribute("data-hidden")||gt.getAttribute("data-outside")?focusOnNextFocusableControl({controlsRef:c,direction:a,levelIndex:bt.levelIndex,cellIndex:bt.cellIndex,rowIndex:bt.rowIndex,size:tt}):gt.focus())}function getDirection(c){switch(c){case"ArrowDown":return"down";case"ArrowUp":return"up";case"ArrowRight":return"right";case"ArrowLeft":return"left";default:return null}}function getControlsSize(c){var a;return(a=c.current)==null?void 0:a.map(d=>d.map(et=>et.length))}function handleControlKeyDown({controlsRef:c,levelIndex:a,rowIndex:d,cellIndex:et,event:nt}){const tt=getDirection(nt.key);if(tt){nt.preventDefault();const bt=getControlsSize(c);focusOnNextFocusableControl({controlsRef:c,direction:tt,levelIndex:a,rowIndex:d,cellIndex:et,size:bt})}}function assignTime(c,a){if(!c||!a)return a;const d=c.getHours(),et=c.getMinutes(),nt=c.getSeconds(),tt=c.getMilliseconds(),bt=new Date(a);return bt.setHours(d),bt.setMinutes(et),bt.setSeconds(nt),bt.setMilliseconds(tt),bt}var timezone={exports:{}};(function(c,a){(function(d,et){c.exports=et()})(commonjsGlobal,function(){var d={year:0,month:1,day:2,hour:3,minute:4,second:5},et={};return function(nt,tt,bt){var gt,wt=function(Tt,Rt,kt){kt===void 0&&(kt={});var It=new Date(Tt),Lt=function(Ot,Nt){Nt===void 0&&(Nt={});var Ft=Nt.timeZoneName||"short",jt=Ot+"|"+Ft,Vt=et[jt];return Vt||(Vt=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:Ot,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:Ft}),et[jt]=Vt),Vt}(Rt,kt);return Lt.formatToParts(It)},St=function(Tt,Rt){for(var kt=wt(Tt,Rt),It=[],Lt=0;Lt=0&&(It[jt]=parseInt(Ft,10))}var Vt=It[3],Jt=Vt===24?0:Vt,ir=It[0]+"-"+It[1]+"-"+It[2]+" "+Jt+":"+It[4]+":"+It[5]+":000",rr=+Tt;return(bt.utc(ir).valueOf()-(rr-=rr%1e3))/6e4},Mt=tt.prototype;Mt.tz=function(Tt,Rt){Tt===void 0&&(Tt=gt);var kt=this.utcOffset(),It=this.toDate(),Lt=It.toLocaleString("en-US",{timeZone:Tt}),Ot=Math.round((It-new Date(Lt))/1e3/60),Nt=bt(Lt,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(It.getTimezoneOffset()/15)-Ot,!0);if(Rt){var Ft=Nt.utcOffset();Nt=Nt.add(kt-Ft,"minute")}return Nt.$x.$timezone=Tt,Nt},Mt.offsetName=function(Tt){var Rt=this.$x.$timezone||bt.tz.guess(),kt=wt(this.valueOf(),Rt,{timeZoneName:Tt}).find(function(It){return It.type.toLowerCase()==="timezonename"});return kt&&kt.value};var _t=Mt.startOf;Mt.startOf=function(Tt,Rt){if(!this.$x||!this.$x.$timezone)return _t.call(this,Tt,Rt);var kt=bt(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return _t.call(kt,Tt,Rt).tz(this.$x.$timezone,!0)},bt.tz=function(Tt,Rt,kt){var It=kt&&Rt,Lt=kt||Rt||gt,Ot=St(+bt(),Lt);if(typeof Tt!="string")return bt(Tt).tz(Lt);var Nt=function(Jt,ir,rr){var er=Jt-60*ir*1e3,lr=St(er,rr);if(ir===lr)return[er,ir];var Ct=St(er-=60*(lr-ir)*1e3,rr);return lr===Ct?[er,lr]:[Jt-60*Math.min(lr,Ct)*1e3,Math.max(lr,Ct)]}(bt.utc(Tt,It).valueOf(),Ot,Lt),Ft=Nt[0],jt=Nt[1],Vt=bt(Ft).utcOffset(jt);return Vt.$x.$timezone=Lt,Vt},bt.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},bt.tz.setDefault=function(Tt){gt=Tt}}})})(timezone);var timezoneExports=timezone.exports;const timezonePlugin=getDefaultExportFromCjs(timezoneExports);var utc={exports:{}};(function(c,a){(function(d,et){c.exports=et()})(commonjsGlobal,function(){var d="minute",et=/[+-]\d\d(?::?\d\d)?/g,nt=/([+-]|\d\d)/g;return function(tt,bt,gt){var wt=bt.prototype;gt.utc=function(It){var Lt={date:It,utc:!0,args:arguments};return new bt(Lt)},wt.utc=function(It){var Lt=gt(this.toDate(),{locale:this.$L,utc:!0});return It?Lt.add(this.utcOffset(),d):Lt},wt.local=function(){return gt(this.toDate(),{locale:this.$L,utc:!1})};var St=wt.parse;wt.parse=function(It){It.utc&&(this.$u=!0),this.$utils().u(It.$offset)||(this.$offset=It.$offset),St.call(this,It)};var Mt=wt.init;wt.init=function(){if(this.$u){var It=this.$d;this.$y=It.getUTCFullYear(),this.$M=It.getUTCMonth(),this.$D=It.getUTCDate(),this.$W=It.getUTCDay(),this.$H=It.getUTCHours(),this.$m=It.getUTCMinutes(),this.$s=It.getUTCSeconds(),this.$ms=It.getUTCMilliseconds()}else Mt.call(this)};var _t=wt.utcOffset;wt.utcOffset=function(It,Lt){var Ot=this.$utils().u;if(Ot(It))return this.$u?0:Ot(this.$offset)?_t.call(this):this.$offset;if(typeof It=="string"&&(It=function(Vt){Vt===void 0&&(Vt="");var Jt=Vt.match(et);if(!Jt)return null;var ir=(""+Jt[0]).match(nt)||["-",0,0],rr=ir[0],er=60*+ir[1]+ +ir[2];return er===0?0:rr==="+"?er:-er}(It),It===null))return this;var Nt=Math.abs(It)<=16?60*It:It,Ft=this;if(Lt)return Ft.$offset=Nt,Ft.$u=It===0,Ft;if(It!==0){var jt=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(Ft=this.local().add(Nt+jt,d)).$offset=Nt,Ft.$x.$localOffset=jt}else Ft=this.utc();return Ft};var Tt=wt.format;wt.format=function(It){var Lt=It||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return Tt.call(this,Lt)},wt.valueOf=function(){var It=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*It},wt.isUTC=function(){return!!this.$u},wt.toISOString=function(){return this.toDate().toISOString()},wt.toString=function(){return this.toDate().toUTCString()};var Rt=wt.toDate;wt.toDate=function(It){return It==="s"&&this.$offset?gt(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():Rt.call(this)};var kt=wt.diff;wt.diff=function(It,Lt,Ot){if(It&&this.$u===It.$u)return kt.call(this,It,Lt,Ot);var Nt=this.local(),Ft=gt(It).local();return kt.call(Nt,Ft,Lt,Ot)}}})})(utc);var utcExports=utc.exports;const utcPlugin=getDefaultExportFromCjs(utcExports);dayjs.extend(utcPlugin);dayjs.extend(timezonePlugin);function getTimezoneOffset(c,a){return a?dayjs(c).tz(a).utcOffset()+c.getTimezoneOffset():0}const updateTimezone=(c,a,d)=>{if(!c)return null;if(!a)return c;let et=getTimezoneOffset(c,a);return d==="remove"&&(et*=-1),dayjs(c).add(et,"minutes").toDate()};function shiftTimezone(c,a,d,et){return et||!a?a:Array.isArray(a)?a.map(nt=>updateTimezone(nt,d,c)):updateTimezone(a,d,c)}const DATES_PROVIDER_DEFAULT_SETTINGS={locale:"en",timezone:null,firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:"–",consistentWeeks:!1},DatesProviderContext=reactExports.createContext(DATES_PROVIDER_DEFAULT_SETTINGS);function useDatesContext(){const c=reactExports.useContext(DatesProviderContext),a=reactExports.useCallback(bt=>bt||c.locale,[c.locale]),d=reactExports.useCallback(bt=>bt||c.timezone||void 0,[c.timezone]),et=reactExports.useCallback(bt=>typeof bt=="number"?bt:c.firstDayOfWeek,[c.firstDayOfWeek]),nt=reactExports.useCallback(bt=>Array.isArray(bt)?bt:c.weekendDays,[c.weekendDays]),tt=reactExports.useCallback(bt=>typeof bt=="string"?bt:c.labelSeparator,[c.labelSeparator]);return{...c,getLocale:a,getTimezone:d,getFirstDayOfWeek:et,getWeekendDays:nt,getLabelSeparator:tt}}function formatValue(c,a){if(a==="range"&&Array.isArray(c)){const[d,et]=c;return d?et?`${d.toISOString()} – ${et.toISOString()}`:`${d.toISOString()} –`:""}return a==="multiple"&&Array.isArray(c)?c.map(d=>d==null?void 0:d.toISOString()).filter(Boolean).join(", "):!Array.isArray(c)&&c?c.toISOString():""}function HiddenDatesInput({value:c,type:a,name:d,form:et}){return React.createElement("input",{type:"hidden",value:formatValue(c,a),name:d,form:et})}HiddenDatesInput.displayName="@mantine/dates/HiddenDatesInput";var classes$b={input:"m_468e7eda"};const defaultProps$i={},TimeInput=factory((c,a)=>{const d=useProps("TimeInput",defaultProps$i,c),{classNames:et,styles:nt,unstyled:tt,vars:bt,withSeconds:gt,minTime:wt,maxTime:St,value:Mt,onChange:_t,...Tt}=d,{resolvedClassNames:Rt,resolvedStyles:kt}=useResolvedStylesApi({classNames:et,styles:nt,props:d}),It=Ot=>{if(wt!==void 0||St!==void 0){const[Nt,Ft,jt]=Ot.split(":").map(Number);if(wt){const[Vt,Jt,ir]=wt.split(":").map(Number);if(NtVt||Nt===Vt&&Ft>Jt||gt&&Nt===Vt&&Ft===Jt&&jt>ir)return 1}}return 0},Lt=Ot=>{var Nt,Ft,jt;if((Nt=d.onBlur)==null||Nt.call(d,Ot),wt!==void 0||St!==void 0){const Vt=Ot.currentTarget.value;if(Vt){const Jt=It(Vt);Jt===1?(Ot.currentTarget.value=St,(Ft=d.onChange)==null||Ft.call(d,Ot)):Jt===-1&&(Ot.currentTarget.value=wt,(jt=d.onChange)==null||jt.call(d,Ot))}}};return React.createElement(InputBase,{classNames:{...Rt,input:clsx(classes$b.input,Rt==null?void 0:Rt.input)},styles:kt,unstyled:tt,ref:a,value:Mt,...Tt,step:gt?1:60,onChange:_t,onBlur:Lt,type:"time",__staticSelector:"TimeInput"})});TimeInput.classes=InputBase.classes;TimeInput.displayName="@mantine/dates/TimeInput";var classes$a={day:"m_396ce5cb"};const defaultProps$h={},varsResolver$3=(c,{size:a})=>({day:{"--day-size":getSize(a,"day-size")}}),Day=factory((c,a)=>{const d=useProps("Day",defaultProps$h,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,date:St,disabled:Mt,__staticSelector:_t,weekend:Tt,outside:Rt,selected:kt,renderDay:It,inRange:Lt,firstInRange:Ot,lastInRange:Nt,hidden:Ft,static:jt,...Vt}=d,Jt=useStyles({name:_t||"Day",classes:classes$a,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$3,rootSelector:"day"}),ir=useDatesContext();return React.createElement(UnstyledButton,{...Jt("day",{style:Ft?{display:"none"}:void 0}),component:jt?"div":"button",ref:a,disabled:Mt,"data-today":dayjs(St).isSame(shiftTimezone("add",new Date,ir.getTimezone()),"day")||void 0,"data-hidden":Ft||void 0,"data-disabled":Mt||void 0,"data-weekend":!Mt&&!Rt&&Tt||void 0,"data-outside":!Mt&&Rt||void 0,"data-selected":!Mt&&kt||void 0,"data-in-range":Lt&&!Mt||void 0,"data-first-in-range":Ot&&!Mt||void 0,"data-last-in-range":Nt&&!Mt||void 0,"data-static":jt||void 0,unstyled:gt,...Vt},(It==null?void 0:It(St))||St.getDate())});Day.classes=classes$a;Day.displayName="@mantine/dates/Day";function getWeekdayNames({locale:c,format:a="dd",firstDayOfWeek:d=1}){const et=dayjs().day(d),nt=[];for(let tt=0;tt<7;tt+=1)typeof a=="string"?nt.push(dayjs(et).add(tt,"days").locale(c).format(a)):nt.push(a(dayjs(et).add(tt,"days").toDate()));return nt}var classes$9={weekday:"m_18a3eca"};const defaultProps$g={},varsResolver$2=(c,{size:a})=>({weekdaysRow:{"--wr-fz":getFontSize(a),"--wr-spacing":getSpacing(a)}}),WeekdaysRow=factory((c,a)=>{const d=useProps("WeekdaysRow",defaultProps$g,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,locale:St,firstDayOfWeek:Mt,weekdayFormat:_t,cellComponent:Tt="th",__staticSelector:Rt,...kt}=d,It=useStyles({name:Rt||"WeekdaysRow",classes:classes$9,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$2,rootSelector:"weekdaysRow"}),Lt=useDatesContext(),Ot=getWeekdayNames({locale:Lt.getLocale(St),format:_t,firstDayOfWeek:Lt.getFirstDayOfWeek(Mt)}).map((Nt,Ft)=>React.createElement(Tt,{key:Ft,...It("weekday")},Nt));return React.createElement(Box,{component:"tr",ref:a,...It("weekdaysRow"),...kt},Ot)});WeekdaysRow.classes=classes$9;WeekdaysRow.displayName="@mantine/dates/WeekdaysRow";function getEndOfWeek(c,a=1){const d=new Date(c),et=a===0?6:a-1;for(;d.getDay()!==et;)d.setDate(d.getDate()+1);return d}function getStartOfWeek(c,a=1){const d=new Date(c);for(;d.getDay()!==a;)d.setDate(d.getDate()-1);return d}function getMonthDays({month:c,firstDayOfWeek:a=1,consistentWeeks:d}){const et=c.getMonth(),nt=new Date(c.getFullYear(),et,1),tt=new Date(c.getFullYear(),c.getMonth()+1,0),bt=getEndOfWeek(tt,a),gt=getStartOfWeek(nt,a),wt=[];for(;gt<=bt;){const St=[];for(let Mt=0;Mt<7;Mt+=1)St.push(new Date(gt)),gt.setDate(gt.getDate()+1);wt.push(St)}if(d&&wt.length<6){const St=wt[wt.length-1],Mt=St[St.length-1],_t=new Date(Mt);for(_t.setDate(_t.getDate()+1);wt.length<6;){const Tt=[];for(let Rt=0;Rt<7;Rt+=1)Tt.push(new Date(_t)),_t.setDate(_t.getDate()+1);wt.push(Tt)}}return wt}function isSameMonth(c,a){return c.getFullYear()===a.getFullYear()&&c.getMonth()===a.getMonth()}function isAfterMinDate(c,a){return a instanceof Date?dayjs(c).isAfter(dayjs(a).subtract(1,"day"),"day"):!0}function isBeforeMaxDate(c,a){return a instanceof Date?dayjs(c).isBefore(dayjs(a).add(1,"day"),"day"):!0}function getDateInTabOrder(c,a,d,et,nt,tt,bt){const gt=c.flat().filter(Mt=>{var _t;return isBeforeMaxDate(Mt,d)&&isAfterMinDate(Mt,a)&&!(nt!=null&&nt(Mt))&&!((_t=et==null?void 0:et(Mt))!=null&&_t.disabled)&&(!tt||isSameMonth(Mt,bt))}),wt=gt.find(Mt=>{var _t;return(_t=et==null?void 0:et(Mt))==null?void 0:_t.selected});if(wt)return wt;const St=gt.find(Mt=>dayjs().isSame(Mt,"date"));return St||gt[0]}var classes$8={month:"m_cc9820d3",monthCell:"m_8f457cd5"};const defaultProps$f={withCellSpacing:!0},Month=factory((c,a)=>{const d=useProps("Month",defaultProps$f,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,__staticSelector:St,locale:Mt,firstDayOfWeek:_t,weekdayFormat:Tt,month:Rt,weekendDays:kt,getDayProps:It,excludeDate:Lt,minDate:Ot,maxDate:Nt,renderDay:Ft,hideOutsideDates:jt,hideWeekdays:Vt,getDayAriaLabel:Jt,static:ir,__getDayRef:rr,__onDayKeyDown:er,__onDayClick:lr,__onDayMouseEnter:Ct,__preventFocus:dt,__stopPropagation:mt,withCellSpacing:yt,size:vt,...Et}=d,At=useStyles({name:St||"Month",classes:classes$8,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,rootSelector:"month"}),Pt=useDatesContext(),xt=getMonthDays({month:Rt,firstDayOfWeek:Pt.getFirstDayOfWeek(_t),consistentWeeks:Pt.consistentWeeks}),ht=getDateInTabOrder(xt,Ot,Nt,It,Lt,jt,Rt),{resolvedClassNames:$t,resolvedStyles:Bt}=useResolvedStylesApi({classNames:et,styles:bt,props:d}),Dt=xt.map((Ht,tr)=>{const Xt=Ht.map((Ut,qt)=>{const Gt=!isSameMonth(Ut,Rt),Zt=(Jt==null?void 0:Jt(Ut))||dayjs(Ut).locale(Mt||Pt.locale).format("D MMMM YYYY"),Yt=It==null?void 0:It(Ut),Kt=dayjs(Ut).isSame(ht,"date");return React.createElement("td",{key:Ut.toString(),...At("monthCell"),"data-with-spacing":yt||void 0},React.createElement(Day,{__staticSelector:St||"Month",classNames:$t,styles:Bt,unstyled:gt,"data-mantine-stop-propagation":mt||void 0,renderDay:Ft,date:Ut,size:vt,weekend:Pt.getWeekendDays(kt).includes(Ut.getDay()),outside:Gt,hidden:jt?Gt:!1,"aria-label":Zt,static:ir,disabled:(Lt==null?void 0:Lt(Ut))||!isBeforeMaxDate(Ut,Nt)||!isAfterMinDate(Ut,Ot),ref:ar=>rr==null?void 0:rr(tr,qt,ar),...Yt,onKeyDown:ar=>{var gr;(gr=Yt==null?void 0:Yt.onKeyDown)==null||gr.call(Yt,ar),er==null||er(ar,{rowIndex:tr,cellIndex:qt,date:Ut})},onMouseEnter:ar=>{var gr;(gr=Yt==null?void 0:Yt.onMouseEnter)==null||gr.call(Yt,ar),Ct==null||Ct(ar,Ut)},onClick:ar=>{var gr;(gr=Yt==null?void 0:Yt.onClick)==null||gr.call(Yt,ar),lr==null||lr(ar,Ut)},onMouseDown:ar=>{var gr;(gr=Yt==null?void 0:Yt.onMouseDown)==null||gr.call(Yt,ar),dt&&ar.preventDefault()},tabIndex:dt||!Kt?-1:0}))});return React.createElement("tr",{key:tr,...At("monthRow")},Xt)});return React.createElement(Box,{component:"table",...At("month"),size:vt,ref:a,...Et},!Vt&&React.createElement("thead",{...At("monthThead")},React.createElement(WeekdaysRow,{__staticSelector:St||"Month",locale:Mt,firstDayOfWeek:_t,weekdayFormat:Tt,size:vt,classNames:$t,styles:Bt,unstyled:gt})),React.createElement("tbody",{...At("monthTbody")},Dt))});Month.classes=classes$8;Month.displayName="@mantine/dates/Month";var classes$7={pickerControl:"m_dc6a3c71"};const defaultProps$e={},varsResolver$1=(c,{size:a})=>({pickerControl:{"--dpc-fz":getFontSize(a),"--dpc-size":getSize(a,"dpc-size")}}),PickerControl=factory((c,a)=>{const d=useProps("PickerControl",defaultProps$e,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,firstInRange:St,lastInRange:Mt,inRange:_t,__staticSelector:Tt,selected:Rt,disabled:kt,...It}=d,Lt=useStyles({name:Tt||"PickerControl",classes:classes$7,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver:varsResolver$1,rootSelector:"pickerControl"});return React.createElement(UnstyledButton,{...Lt("pickerControl"),ref:a,unstyled:gt,"data-picker-control":!0,"data-selected":Rt&&!kt||void 0,"data-disabled":kt||void 0,"data-in-range":_t&&!kt&&!Rt||void 0,"data-first-in-range":St&&!kt||void 0,"data-last-in-range":Mt&&!kt||void 0,disabled:kt,...It})});PickerControl.classes=classes$7;PickerControl.displayName="@mantine/dates/PickerControl";function isYearDisabled(c,a,d){return!a&&!d?!1:!!(a&&dayjs(c).isBefore(a,"year")||d&&dayjs(c).isAfter(d,"year"))}function getYearInTabOrder(c,a,d,et){const nt=c.flat().filter(gt=>{var wt;return!isYearDisabled(gt,a,d)&&!((wt=et==null?void 0:et(gt))!=null&&wt.disabled)}),tt=nt.find(gt=>{var wt;return(wt=et==null?void 0:et(gt))==null?void 0:wt.selected});if(tt)return tt;const bt=nt.find(gt=>dayjs().isSame(gt,"year"));return bt||nt[0]}function getYearsData(c){const a=c.getFullYear(),d=a-a%10;let et=0;const nt=[[],[],[],[]];for(let tt=0;tt<4;tt+=1){const bt=tt===3?1:3;for(let gt=0;gt{const d=useProps("YearsList",defaultProps$d,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,decade:St,yearsListFormat:Mt,locale:_t,minDate:Tt,maxDate:Rt,getYearControlProps:kt,__staticSelector:It,__getControlRef:Lt,__onControlKeyDown:Ot,__onControlClick:Nt,__onControlMouseEnter:Ft,__preventFocus:jt,__stopPropagation:Vt,withCellSpacing:Jt,size:ir,...rr}=d,er=useStyles({name:It||"YearsList",classes:classes$6,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,rootSelector:"yearsList"}),lr=useDatesContext(),Ct=getYearsData(St),dt=getYearInTabOrder(Ct,Tt,Rt,kt),mt=Ct.map((yt,vt)=>{const Et=yt.map((At,Pt)=>{const xt=kt==null?void 0:kt(At),ht=dayjs(At).isSame(dt,"year");return React.createElement("td",{key:Pt,...er("yearsListCell"),"data-with-spacing":Jt||void 0},React.createElement(PickerControl,{...er("yearsListControl"),size:ir,unstyled:gt,"data-mantine-stop-propagation":Vt||void 0,disabled:isYearDisabled(At,Tt,Rt),ref:$t=>Lt==null?void 0:Lt(vt,Pt,$t),...xt,onKeyDown:$t=>{var Bt;(Bt=xt==null?void 0:xt.onKeyDown)==null||Bt.call(xt,$t),Ot==null||Ot($t,{rowIndex:vt,cellIndex:Pt,date:At})},onClick:$t=>{var Bt;(Bt=xt==null?void 0:xt.onClick)==null||Bt.call(xt,$t),Nt==null||Nt($t,At)},onMouseEnter:$t=>{var Bt;(Bt=xt==null?void 0:xt.onMouseEnter)==null||Bt.call(xt,$t),Ft==null||Ft($t,At)},onMouseDown:$t=>{var Bt;(Bt=xt==null?void 0:xt.onMouseDown)==null||Bt.call(xt,$t),jt&&$t.preventDefault()},tabIndex:jt||!ht?-1:0},dayjs(At).locale(lr.getLocale(_t)).format(Mt)))});return React.createElement("tr",{key:vt,...er("yearsListRow")},Et)});return React.createElement(Box,{component:"table",ref:a,size:ir,...er("yearsList"),...rr},React.createElement("tbody",null,mt))});YearsList.classes=classes$6;YearsList.displayName="@mantine/dates/YearsList";function isMonthDisabled(c,a,d){return!a&&!d?!1:!!(a&&dayjs(c).isBefore(a,"month")||d&&dayjs(c).isAfter(d,"month"))}function getMonthInTabOrder(c,a,d,et){const nt=c.flat().filter(gt=>{var wt;return!isMonthDisabled(gt,a,d)&&!((wt=et==null?void 0:et(gt))!=null&&wt.disabled)}),tt=nt.find(gt=>{var wt;return(wt=et==null?void 0:et(gt))==null?void 0:wt.selected});if(tt)return tt;const bt=nt.find(gt=>dayjs().isSame(gt,"month"));return bt||nt[0]}function getMonthsData(c){const a=dayjs(c).startOf("year").toDate(),d=[[],[],[],[]];let et=0;for(let nt=0;nt<4;nt+=1)for(let tt=0;tt<3;tt+=1)d[nt].push(dayjs(a).add(et,"months").toDate()),et+=1;return d}var classes$5={monthsList:"m_2a6c32d",monthsListCell:"m_fe27622f"};const defaultProps$c={monthsListFormat:"MMM",withCellSpacing:!0},MonthsList=factory((c,a)=>{const d=useProps("MonthsList",defaultProps$c,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,__staticSelector:St,year:Mt,monthsListFormat:_t,locale:Tt,minDate:Rt,maxDate:kt,getMonthControlProps:It,__getControlRef:Lt,__onControlKeyDown:Ot,__onControlClick:Nt,__onControlMouseEnter:Ft,__preventFocus:jt,__stopPropagation:Vt,withCellSpacing:Jt,size:ir,...rr}=d,er=useStyles({name:St||"MonthsList",classes:classes$5,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,rootSelector:"monthsList"}),lr=useDatesContext(),Ct=getMonthsData(Mt),dt=getMonthInTabOrder(Ct,Rt,kt,It),mt=Ct.map((yt,vt)=>{const Et=yt.map((At,Pt)=>{const xt=It==null?void 0:It(At),ht=dayjs(At).isSame(dt,"month");return React.createElement("td",{key:Pt,...er("monthsListCell"),"data-with-spacing":Jt||void 0},React.createElement(PickerControl,{...er("monthsListControl"),size:ir,unstyled:gt,__staticSelector:St||"MonthsList","data-mantine-stop-propagation":Vt||void 0,disabled:isMonthDisabled(At,Rt,kt),ref:$t=>Lt==null?void 0:Lt(vt,Pt,$t),...xt,onKeyDown:$t=>{var Bt;(Bt=xt==null?void 0:xt.onKeyDown)==null||Bt.call(xt,$t),Ot==null||Ot($t,{rowIndex:vt,cellIndex:Pt,date:At})},onClick:$t=>{var Bt;(Bt=xt==null?void 0:xt.onClick)==null||Bt.call(xt,$t),Nt==null||Nt($t,At)},onMouseEnter:$t=>{var Bt;(Bt=xt==null?void 0:xt.onMouseEnter)==null||Bt.call(xt,$t),Ft==null||Ft($t,At)},onMouseDown:$t=>{var Bt;(Bt=xt==null?void 0:xt.onMouseDown)==null||Bt.call(xt,$t),jt&&$t.preventDefault()},tabIndex:jt||!ht?-1:0},dayjs(At).locale(lr.getLocale(Tt)).format(_t)))});return React.createElement("tr",{key:vt,...er("monthsListRow")},Et)});return React.createElement(Box,{component:"table",ref:a,size:ir,...er("monthsList"),...rr},React.createElement("tbody",null,mt))});MonthsList.classes=classes$5;MonthsList.displayName="@mantine/dates/MonthsList";var classes$4={calendarHeader:"m_730a79ed",calendarHeaderLevel:"m_f6645d97",calendarHeaderControl:"m_2351eeb0",calendarHeaderControlIcon:"m_367dc749"};const defaultProps$b={nextDisabled:!1,previousDisabled:!1,hasNextLevel:!0,withNext:!0,withPrevious:!0},varsResolver=(c,{size:a})=>({calendarHeader:{"--dch-control-size":getSize(a,"dch-control-size"),"--dch-fz":getFontSize(a)}}),CalendarHeader=factory((c,a)=>{const d=useProps("CalendarHeader",defaultProps$b,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,nextIcon:St,previousIcon:Mt,nextLabel:_t,previousLabel:Tt,onNext:Rt,onPrevious:kt,onLevelClick:It,label:Lt,nextDisabled:Ot,previousDisabled:Nt,hasNextLevel:Ft,levelControlAriaLabel:jt,withNext:Vt,withPrevious:Jt,__staticSelector:ir,__preventFocus:rr,__stopPropagation:er,...lr}=d,Ct=useStyles({name:ir||"CalendarHeader",classes:classes$4,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,varsResolver,rootSelector:"calendarHeader"}),dt=rr?mt=>mt.preventDefault():void 0;return React.createElement(Box,{...Ct("calendarHeader"),ref:a,...lr},Jt&&React.createElement(UnstyledButton,{...Ct("calendarHeaderControl"),"data-direction":"previous","aria-label":Tt,onClick:kt,unstyled:gt,onMouseDown:dt,disabled:Nt,"data-disabled":Nt||void 0,tabIndex:rr||Nt?-1:0,"data-mantine-stop-propagation":er||void 0},Mt||React.createElement(AccordionChevron,{...Ct("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})),React.createElement(UnstyledButton,{component:Ft?"button":"div",...Ct("calendarHeaderLevel"),onClick:Ft?It:void 0,unstyled:gt,onMouseDown:Ft?dt:void 0,disabled:!Ft,"data-static":!Ft||void 0,"aria-label":jt,tabIndex:rr||!Ft?-1:0,"data-mantine-stop-propagation":er||void 0},Lt),Vt&&React.createElement(UnstyledButton,{...Ct("calendarHeaderControl"),"data-direction":"next","aria-label":_t,onClick:Rt,unstyled:gt,onMouseDown:dt,disabled:Ot,"data-disabled":Ot||void 0,tabIndex:rr||Ot?-1:0,"data-mantine-stop-propagation":er||void 0},St||React.createElement(AccordionChevron,{...Ct("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})))});CalendarHeader.classes=classes$4;CalendarHeader.displayName="@mantine/dates/CalendarHeader";function getDecadeRange(c){const a=getYearsData(c);return[a[0][0],a[3][0]]}const defaultProps$a={decadeLabelFormat:"YYYY"},DecadeLevel=factory((c,a)=>{const d=useProps("DecadeLevel",defaultProps$a,c),{decade:et,locale:nt,minDate:tt,maxDate:bt,yearsListFormat:gt,getYearControlProps:wt,__getControlRef:St,__onControlKeyDown:Mt,__onControlClick:_t,__onControlMouseEnter:Tt,withCellSpacing:Rt,__preventFocus:kt,nextIcon:It,previousIcon:Lt,nextLabel:Ot,previousLabel:Nt,onNext:Ft,onPrevious:jt,nextDisabled:Vt,previousDisabled:Jt,levelControlAriaLabel:ir,withNext:rr,withPrevious:er,decadeLabelFormat:lr,classNames:Ct,styles:dt,unstyled:mt,__staticSelector:yt,__stopPropagation:vt,size:Et,...At}=d,Pt=useDatesContext(),[xt,ht]=getDecadeRange(et),$t={__staticSelector:yt||"DecadeLevel",classNames:Ct,styles:dt,unstyled:mt,size:Et},Bt=typeof Vt=="boolean"?Vt:bt?!dayjs(ht).endOf("year").isBefore(bt):!1,Dt=typeof Jt=="boolean"?Jt:tt?!dayjs(xt).startOf("year").isAfter(tt):!1,Ht=(tr,Xt)=>dayjs(tr).locale(nt||Pt.locale).format(Xt);return React.createElement(Box,{"data-decade-level":!0,size:Et,ref:a,...At},React.createElement(CalendarHeader,{label:typeof lr=="function"?lr(xt,ht):`${Ht(xt,lr)} – ${Ht(ht,lr)}`,__preventFocus:kt,__stopPropagation:vt,nextIcon:It,previousIcon:Lt,nextLabel:Ot,previousLabel:Nt,onNext:Ft,onPrevious:jt,nextDisabled:Bt,previousDisabled:Dt,hasNextLevel:!1,levelControlAriaLabel:ir,withNext:rr,withPrevious:er,...$t}),React.createElement(YearsList,{decade:et,locale:nt,minDate:tt,maxDate:bt,yearsListFormat:gt,getYearControlProps:wt,__getControlRef:St,__onControlKeyDown:Mt,__onControlClick:_t,__onControlMouseEnter:Tt,__preventFocus:kt,__stopPropagation:vt,withCellSpacing:Rt,...$t}))});DecadeLevel.classes={...YearsList.classes,...CalendarHeader.classes};DecadeLevel.displayName="@mantine/dates/DecadeLevel";const defaultProps$9={yearLabelFormat:"YYYY"},YearLevel=factory((c,a)=>{const d=useProps("YearLevel",defaultProps$9,c),{year:et,locale:nt,minDate:tt,maxDate:bt,monthsListFormat:gt,getMonthControlProps:wt,__getControlRef:St,__onControlKeyDown:Mt,__onControlClick:_t,__onControlMouseEnter:Tt,withCellSpacing:Rt,__preventFocus:kt,nextIcon:It,previousIcon:Lt,nextLabel:Ot,previousLabel:Nt,onNext:Ft,onPrevious:jt,onLevelClick:Vt,nextDisabled:Jt,previousDisabled:ir,hasNextLevel:rr,levelControlAriaLabel:er,withNext:lr,withPrevious:Ct,yearLabelFormat:dt,__staticSelector:mt,__stopPropagation:yt,size:vt,classNames:Et,styles:At,unstyled:Pt,...xt}=d,ht=useDatesContext(),$t={__staticSelector:mt||"YearLevel",classNames:Et,styles:At,unstyled:Pt,size:vt},Bt=typeof Jt=="boolean"?Jt:bt?!dayjs(et).endOf("year").isBefore(bt):!1,Dt=typeof ir=="boolean"?ir:tt?!dayjs(et).startOf("year").isAfter(tt):!1;return React.createElement(Box,{"data-year-level":!0,size:vt,ref:a,...xt},React.createElement(CalendarHeader,{label:typeof dt=="function"?dt(et):dayjs(et).locale(nt||ht.locale).format(dt),__preventFocus:kt,__stopPropagation:yt,nextIcon:It,previousIcon:Lt,nextLabel:Ot,previousLabel:Nt,onNext:Ft,onPrevious:jt,onLevelClick:Vt,nextDisabled:Bt,previousDisabled:Dt,hasNextLevel:rr,levelControlAriaLabel:er,withNext:lr,withPrevious:Ct,...$t}),React.createElement(MonthsList,{year:et,locale:nt,minDate:tt,maxDate:bt,monthsListFormat:gt,getMonthControlProps:wt,__getControlRef:St,__onControlKeyDown:Mt,__onControlClick:_t,__onControlMouseEnter:Tt,__preventFocus:kt,__stopPropagation:yt,withCellSpacing:Rt,...$t}))});YearLevel.classes={...CalendarHeader.classes,...MonthsList.classes};YearLevel.displayName="@mantine/dates/YearLevel";const defaultProps$8={monthLabelFormat:"MMMM YYYY"},MonthLevel=factory((c,a)=>{const d=useProps("MonthLevel",defaultProps$8,c),{month:et,locale:nt,firstDayOfWeek:tt,weekdayFormat:bt,weekendDays:gt,getDayProps:wt,excludeDate:St,minDate:Mt,maxDate:_t,renderDay:Tt,hideOutsideDates:Rt,hideWeekdays:kt,getDayAriaLabel:It,__getDayRef:Lt,__onDayKeyDown:Ot,__onDayClick:Nt,__onDayMouseEnter:Ft,withCellSpacing:jt,__preventFocus:Vt,__stopPropagation:Jt,nextIcon:ir,previousIcon:rr,nextLabel:er,previousLabel:lr,onNext:Ct,onPrevious:dt,onLevelClick:mt,nextDisabled:yt,previousDisabled:vt,hasNextLevel:Et,levelControlAriaLabel:At,withNext:Pt,withPrevious:xt,monthLabelFormat:ht,classNames:$t,styles:Bt,unstyled:Dt,__staticSelector:Ht,size:tr,static:Xt,...Ut}=d,qt=useDatesContext(),Gt={__staticSelector:Ht||"MonthLevel",classNames:$t,styles:Bt,unstyled:Dt,size:tr},Zt=typeof yt=="boolean"?yt:_t?!dayjs(et).endOf("month").isBefore(_t):!1,Yt=typeof vt=="boolean"?vt:Mt?!dayjs(et).startOf("month").isAfter(Mt):!1;return React.createElement(Box,{"data-month-level":!0,size:tr,ref:a,...Ut},React.createElement(CalendarHeader,{label:typeof ht=="function"?ht(et):dayjs(et).locale(nt||qt.locale).format(ht),__preventFocus:Vt,__stopPropagation:Jt,nextIcon:ir,previousIcon:rr,nextLabel:er,previousLabel:lr,onNext:Ct,onPrevious:dt,onLevelClick:mt,nextDisabled:Zt,previousDisabled:Yt,hasNextLevel:Et,levelControlAriaLabel:At,withNext:Pt,withPrevious:xt,...Gt}),React.createElement(Month,{month:et,locale:nt,firstDayOfWeek:tt,weekdayFormat:bt,weekendDays:gt,getDayProps:wt,excludeDate:St,minDate:Mt,maxDate:_t,renderDay:Tt,hideOutsideDates:Rt,hideWeekdays:kt,getDayAriaLabel:It,__getDayRef:Lt,__onDayKeyDown:Ot,__onDayClick:Nt,__onDayMouseEnter:Ft,__preventFocus:Vt,__stopPropagation:Jt,static:Xt,withCellSpacing:jt,...Gt}))});MonthLevel.classes={...Month.classes,...CalendarHeader.classes};MonthLevel.displayName="@mantine/dates/MonthLevel";var classes$3={levelsGroup:"m_30b26e33"};const defaultProps$7={},LevelsGroup=factory((c,a)=>{const d=useProps("LevelsGroup",defaultProps$7,c),{classNames:et,className:nt,style:tt,styles:bt,unstyled:gt,vars:wt,__staticSelector:St,...Mt}=d,_t=useStyles({name:St||"LevelsGroup",classes:classes$3,props:d,className:nt,style:tt,classNames:et,styles:bt,unstyled:gt,vars:wt,rootSelector:"levelsGroup"});return React.createElement(Box,{ref:a,..._t("levelsGroup"),...Mt})});LevelsGroup.classes=classes$3;LevelsGroup.displayName="@mantine/dates/LevelsGroup";const defaultProps$6={numberOfColumns:1},DecadeLevelGroup=factory((c,a)=>{const d=useProps("DecadeLevelGroup",defaultProps$6,c),{decade:et,locale:nt,minDate:tt,maxDate:bt,yearsListFormat:gt,getYearControlProps:wt,__onControlClick:St,__onControlMouseEnter:Mt,withCellSpacing:_t,__preventFocus:Tt,nextIcon:Rt,previousIcon:kt,nextLabel:It,previousLabel:Lt,onNext:Ot,onPrevious:Nt,nextDisabled:Ft,previousDisabled:jt,classNames:Vt,styles:Jt,unstyled:ir,__staticSelector:rr,__stopPropagation:er,numberOfColumns:lr,levelControlAriaLabel:Ct,decadeLabelFormat:dt,size:mt,vars:yt,...vt}=d,Et=reactExports.useRef([]),At=Array(lr).fill(0).map((Pt,xt)=>{const ht=dayjs(et).add(xt*10,"years").toDate();return React.createElement(DecadeLevel,{key:xt,size:mt,yearsListFormat:gt,decade:ht,withNext:xt===lr-1,withPrevious:xt===0,decadeLabelFormat:dt,__onControlClick:St,__onControlMouseEnter:Mt,__onControlKeyDown:($t,Bt)=>handleControlKeyDown({levelIndex:xt,rowIndex:Bt.rowIndex,cellIndex:Bt.cellIndex,event:$t,controlsRef:Et}),__getControlRef:($t,Bt,Dt)=>{Array.isArray(Et.current[xt])||(Et.current[xt]=[]),Array.isArray(Et.current[xt][$t])||(Et.current[xt][$t]=[]),Et.current[xt][$t][Bt]=Dt},levelControlAriaLabel:typeof Ct=="function"?Ct(ht):Ct,locale:nt,minDate:tt,maxDate:bt,__preventFocus:Tt,__stopPropagation:er,nextIcon:Rt,previousIcon:kt,nextLabel:It,previousLabel:Lt,onNext:Ot,onPrevious:Nt,nextDisabled:Ft,previousDisabled:jt,getYearControlProps:wt,__staticSelector:rr||"DecadeLevelGroup",classNames:Vt,styles:Jt,unstyled:ir,withCellSpacing:_t})});return React.createElement(LevelsGroup,{classNames:Vt,styles:Jt,__staticSelector:rr||"DecadeLevelGroup",ref:a,size:mt,unstyled:ir,...vt},At)});DecadeLevelGroup.classes={...LevelsGroup.classes,...DecadeLevel.classes};DecadeLevelGroup.displayName="@mantine/dates/DecadeLevelGroup";const defaultProps$5={numberOfColumns:1},YearLevelGroup=factory((c,a)=>{const d=useProps("YearLevelGroup",defaultProps$5,c),{year:et,locale:nt,minDate:tt,maxDate:bt,monthsListFormat:gt,getMonthControlProps:wt,__onControlClick:St,__onControlMouseEnter:Mt,withCellSpacing:_t,__preventFocus:Tt,nextIcon:Rt,previousIcon:kt,nextLabel:It,previousLabel:Lt,onNext:Ot,onPrevious:Nt,onLevelClick:Ft,nextDisabled:jt,previousDisabled:Vt,hasNextLevel:Jt,classNames:ir,styles:rr,unstyled:er,__staticSelector:lr,__stopPropagation:Ct,numberOfColumns:dt,levelControlAriaLabel:mt,yearLabelFormat:yt,size:vt,vars:Et,...At}=d,Pt=reactExports.useRef([]),xt=Array(dt).fill(0).map((ht,$t)=>{const Bt=dayjs(et).add($t,"years").toDate();return React.createElement(YearLevel,{key:$t,size:vt,monthsListFormat:gt,year:Bt,withNext:$t===dt-1,withPrevious:$t===0,yearLabelFormat:yt,__stopPropagation:Ct,__onControlClick:St,__onControlMouseEnter:Mt,__onControlKeyDown:(Dt,Ht)=>handleControlKeyDown({levelIndex:$t,rowIndex:Ht.rowIndex,cellIndex:Ht.cellIndex,event:Dt,controlsRef:Pt}),__getControlRef:(Dt,Ht,tr)=>{Array.isArray(Pt.current[$t])||(Pt.current[$t]=[]),Array.isArray(Pt.current[$t][Dt])||(Pt.current[$t][Dt]=[]),Pt.current[$t][Dt][Ht]=tr},levelControlAriaLabel:typeof mt=="function"?mt(Bt):mt,locale:nt,minDate:tt,maxDate:bt,__preventFocus:Tt,nextIcon:Rt,previousIcon:kt,nextLabel:It,previousLabel:Lt,onNext:Ot,onPrevious:Nt,onLevelClick:Ft,nextDisabled:jt,previousDisabled:Vt,hasNextLevel:Jt,getMonthControlProps:wt,classNames:ir,styles:rr,unstyled:er,__staticSelector:lr||"YearLevelGroup",withCellSpacing:_t})});return React.createElement(LevelsGroup,{classNames:ir,styles:rr,__staticSelector:lr||"YearLevelGroup",ref:a,size:vt,unstyled:er,...At},xt)});YearLevelGroup.classes={...YearLevel.classes,...LevelsGroup.classes};YearLevelGroup.displayName="@mantine/dates/YearLevelGroup";const defaultProps$4={numberOfColumns:1},MonthLevelGroup=factory((c,a)=>{const d=useProps("MonthLevelGroup",defaultProps$4,c),{month:et,locale:nt,firstDayOfWeek:tt,weekdayFormat:bt,weekendDays:gt,getDayProps:wt,excludeDate:St,minDate:Mt,maxDate:_t,renderDay:Tt,hideOutsideDates:Rt,hideWeekdays:kt,getDayAriaLabel:It,__onDayClick:Lt,__onDayMouseEnter:Ot,withCellSpacing:Nt,__preventFocus:Ft,nextIcon:jt,previousIcon:Vt,nextLabel:Jt,previousLabel:ir,onNext:rr,onPrevious:er,onLevelClick:lr,nextDisabled:Ct,previousDisabled:dt,hasNextLevel:mt,classNames:yt,styles:vt,unstyled:Et,numberOfColumns:At,levelControlAriaLabel:Pt,monthLabelFormat:xt,__staticSelector:ht,__stopPropagation:$t,size:Bt,static:Dt,vars:Ht,...tr}=d,Xt=reactExports.useRef([]),Ut=Array(At).fill(0).map((qt,Gt)=>{const Zt=dayjs(et).add(Gt,"months").toDate();return React.createElement(MonthLevel,{key:Gt,month:Zt,withNext:Gt===At-1,withPrevious:Gt===0,monthLabelFormat:xt,__stopPropagation:$t,__onDayClick:Lt,__onDayMouseEnter:Ot,__onDayKeyDown:(Yt,Kt)=>handleControlKeyDown({levelIndex:Gt,rowIndex:Kt.rowIndex,cellIndex:Kt.cellIndex,event:Yt,controlsRef:Xt}),__getDayRef:(Yt,Kt,ar)=>{Array.isArray(Xt.current[Gt])||(Xt.current[Gt]=[]),Array.isArray(Xt.current[Gt][Yt])||(Xt.current[Gt][Yt]=[]),Xt.current[Gt][Yt][Kt]=ar},levelControlAriaLabel:typeof Pt=="function"?Pt(Zt):Pt,locale:nt,firstDayOfWeek:tt,weekdayFormat:bt,weekendDays:gt,getDayProps:wt,excludeDate:St,minDate:Mt,maxDate:_t,renderDay:Tt,hideOutsideDates:Rt,hideWeekdays:kt,getDayAriaLabel:It,__preventFocus:Ft,nextIcon:jt,previousIcon:Vt,nextLabel:Jt,previousLabel:ir,onNext:rr,onPrevious:er,onLevelClick:lr,nextDisabled:Ct,previousDisabled:dt,hasNextLevel:mt,classNames:yt,styles:vt,unstyled:Et,__staticSelector:ht||"MonthLevelGroup",size:Bt,static:Dt,withCellSpacing:Nt})});return React.createElement(LevelsGroup,{classNames:yt,styles:vt,__staticSelector:ht||"MonthLevelGroup",ref:a,size:Bt,...tr},Ut)});MonthLevelGroup.classes={...LevelsGroup.classes,...MonthLevel.classes};MonthLevelGroup.displayName="@mantine/dates/MonthLevelGroup";var classes$2={input:"m_6fa5e2aa"};const defaultProps$3={},PickerInputBase=factory((c,a)=>{const{inputProps:d,wrapperProps:et,placeholder:nt,classNames:tt,styles:bt,unstyled:gt,popoverProps:wt,modalProps:St,dropdownType:Mt,children:_t,formattedValue:Tt,dropdownHandlers:Rt,dropdownOpened:kt,onClick:It,clearable:Lt,onClear:Ot,clearButtonProps:Nt,rightSection:Ft,shouldClear:jt,readOnly:Vt,disabled:Jt,value:ir,name:rr,form:er,type:lr,...Ct}=useInputProps("PickerInputBase",defaultProps$3,c),dt=Ft||(Lt&&jt&&!Vt&&!Jt?React.createElement(CloseButton,{variant:"transparent",onClick:Ot,unstyled:gt,size:d.size||"sm",...Nt}):null),mt=()=>{lr==="range"&&Array.isArray(ir)&&ir[0]&&!ir[1]&&Ot(),Rt.close()};return React.createElement(React.Fragment,null,Mt==="modal"&&!Vt&&React.createElement(Modal,{opened:kt,onClose:mt,withCloseButton:!1,size:"auto","data-dates-modal":!0,unstyled:gt,...St},_t),React.createElement(Input.Wrapper,{...et},React.createElement(Popover,{position:"bottom-start",opened:kt,trapFocus:!0,returnFocus:!0,unstyled:gt,...wt,disabled:(wt==null?void 0:wt.disabled)||Mt==="modal"||Vt,onClose:()=>{var yt;(yt=wt==null?void 0:wt.onClose)==null||yt.call(wt),mt()}},React.createElement(Popover.Target,null,React.createElement(Input,{"aria-label":Tt||nt,"data-dates-input":!0,"data-read-only":Vt||void 0,disabled:Jt,component:"button",type:"button",multiline:!0,onClick:yt=>{It==null||It(yt),Rt.toggle()},rightSection:dt,...d,ref:a,classNames:{...tt,input:clsx(classes$2.input,tt==null?void 0:tt.input)},...Ct},Tt||React.createElement(Input.Placeholder,{error:d.error,unstyled:gt,className:tt==null?void 0:tt.placeholder,style:bt==null?void 0:bt.placeholder},nt))),React.createElement(Popover.Dropdown,{"data-dates-dropdown":!0},_t))),React.createElement(HiddenDatesInput,{value:ir,name:rr,form:er,type:lr}))});PickerInputBase.classes=classes$2;PickerInputBase.displayName="@mantine/dates/PickerInputBase";const getEmptyValue=c=>c==="range"?[null,null]:c==="multiple"?[]:null;function useUncontrolledDates({type:c,value:a,defaultValue:d,onChange:et,applyTimezone:nt=!0}){const tt=reactExports.useRef(c),bt=useDatesContext(),[gt,wt,St]=useUncontrolled({value:shiftTimezone("add",a,bt.getTimezone(),!nt),defaultValue:shiftTimezone("add",d,bt.getTimezone(),!nt),finalValue:getEmptyValue(c),onChange:_t=>{et==null||et(shiftTimezone("remove",_t,bt.getTimezone(),!nt))}});let Mt=gt;return tt.current!==c&&(tt.current=c,a===void 0&&(Mt=d!==void 0?d:getEmptyValue(c),wt(Mt))),[Mt,wt,St]}function levelToNumber(c,a){return c?c==="month"?0:c==="year"?1:2:a||0}function levelNumberToLevel(c){return c===0?"month":c===1?"year":"decade"}function clampLevel(c,a,d){return levelNumberToLevel(clamp$1(levelToNumber(c,0),levelToNumber(a,0),levelToNumber(d,2)))}const defaultProps$2={maxLevel:"decade",minLevel:"month",__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0},Calendar=factory((c,a)=>{const d=useProps("Calendar",defaultProps$2,c),{vars:et,maxLevel:nt,minLevel:tt,defaultLevel:bt,level:gt,onLevelChange:wt,date:St,defaultDate:Mt,onDateChange:_t,numberOfColumns:Tt,columnsToScroll:Rt,ariaLabels:kt,onYearSelect:It,onMonthSelect:Lt,onYearMouseEnter:Ot,onMonthMouseEnter:Nt,__updateDateOnYearSelect:Ft,__updateDateOnMonthSelect:jt,firstDayOfWeek:Vt,weekdayFormat:Jt,weekendDays:ir,getDayProps:rr,excludeDate:er,renderDay:lr,hideOutsideDates:Ct,hideWeekdays:dt,getDayAriaLabel:mt,monthLabelFormat:yt,nextIcon:vt,previousIcon:Et,__onDayClick:At,__onDayMouseEnter:Pt,withCellSpacing:xt,monthsListFormat:ht,getMonthControlProps:$t,yearLabelFormat:Bt,yearsListFormat:Dt,getYearControlProps:Ht,decadeLabelFormat:tr,classNames:Xt,styles:Ut,unstyled:qt,minDate:Gt,maxDate:Zt,locale:Yt,__staticSelector:Kt,size:ar,__preventFocus:gr,__stopPropagation:cr,onNextDecade:ur,onPreviousDecade:Pr,onNextYear:br,onPreviousYear:dr,onNextMonth:Kr,onPreviousMonth:xr,static:Sr,__timezoneApplied:Zr,...$r}=d,{resolvedClassNames:Mr,resolvedStyles:Xr}=useResolvedStylesApi({classNames:Xt,styles:Ut,props:d}),[Qt,zt]=useUncontrolled({value:gt?clampLevel(gt,tt,nt):void 0,defaultValue:bt?clampLevel(bt,tt,nt):void 0,finalValue:clampLevel(void 0,tt,nt),onChange:wt}),[Wt,nr]=useUncontrolledDates({type:"default",value:St,defaultValue:Mt,onChange:_t,applyTimezone:!Zr}),fr={__staticSelector:Kt||"Calendar",styles:Xr,classNames:Mr,unstyled:qt,size:ar},Er=useDatesContext(),pr=Rt||Tt||1,vr=Wt||shiftTimezone("add",new Date,Er.getTimezone()),Jr=()=>{const Qr=dayjs(vr).add(pr,"month").toDate();Kr==null||Kr(Qr),nr(Qr)},wr=()=>{const Qr=dayjs(vr).subtract(pr,"month").toDate();xr==null||xr(Qr),nr(Qr)},Ar=()=>{const Qr=dayjs(vr).add(pr,"year").toDate();br==null||br(Qr),nr(Qr)},Yr=()=>{const Qr=dayjs(vr).subtract(pr,"year").toDate();dr==null||dr(Qr),nr(Qr)},Cr=()=>{const Qr=dayjs(vr).add(10*pr,"year").toDate();ur==null||ur(Qr),nr(Qr)},Or=()=>{const Qr=dayjs(vr).subtract(10*pr,"year").toDate();Pr==null||Pr(Qr),nr(Qr)};return React.createElement(Box,{ref:a,size:ar,"data-calendar":!0,...$r},Qt==="month"&&React.createElement(MonthLevelGroup,{month:vr,minDate:Gt,maxDate:Zt,firstDayOfWeek:Vt,weekdayFormat:Jt,weekendDays:ir,getDayProps:rr,excludeDate:er,renderDay:lr,hideOutsideDates:Ct,hideWeekdays:dt,getDayAriaLabel:mt,onNext:Jr,onPrevious:wr,hasNextLevel:nt!=="month",onLevelClick:()=>zt("year"),numberOfColumns:Tt,locale:Yt,levelControlAriaLabel:kt==null?void 0:kt.monthLevelControl,nextLabel:kt==null?void 0:kt.nextMonth,nextIcon:vt,previousLabel:kt==null?void 0:kt.previousMonth,previousIcon:Et,monthLabelFormat:yt,__onDayClick:At,__onDayMouseEnter:Pt,__preventFocus:gr,__stopPropagation:cr,static:Sr,withCellSpacing:xt,...fr}),Qt==="year"&&React.createElement(YearLevelGroup,{year:vr,numberOfColumns:Tt,minDate:Gt,maxDate:Zt,monthsListFormat:ht,getMonthControlProps:$t,locale:Yt,onNext:Ar,onPrevious:Yr,hasNextLevel:nt!=="month"&&nt!=="year",onLevelClick:()=>zt("decade"),levelControlAriaLabel:kt==null?void 0:kt.yearLevelControl,nextLabel:kt==null?void 0:kt.nextYear,nextIcon:vt,previousLabel:kt==null?void 0:kt.previousYear,previousIcon:Et,yearLabelFormat:Bt,__onControlMouseEnter:Nt,__onControlClick:(Qr,_r)=>{jt&&nr(_r),zt(clampLevel("month",tt,nt)),Lt==null||Lt(_r)},__preventFocus:gr,__stopPropagation:cr,withCellSpacing:xt,...fr}),Qt==="decade"&&React.createElement(DecadeLevelGroup,{decade:vr,minDate:Gt,maxDate:Zt,yearsListFormat:Dt,getYearControlProps:Ht,locale:Yt,onNext:Cr,onPrevious:Or,numberOfColumns:Tt,nextLabel:kt==null?void 0:kt.nextDecade,nextIcon:vt,previousLabel:kt==null?void 0:kt.previousDecade,previousIcon:Et,decadeLabelFormat:tr,__onControlMouseEnter:Ot,__onControlClick:(Qr,_r)=>{Ft&&nr(_r),zt(clampLevel("year",tt,nt)),It==null||It(_r)},__preventFocus:gr,__stopPropagation:cr,withCellSpacing:xt,...fr}))});Calendar.classes={...DecadeLevelGroup.classes,...YearLevelGroup.classes,...MonthLevelGroup.classes};Calendar.displayName="@mantine/dates/Calendar";function pickCalendarProps(c){const{maxLevel:a,minLevel:d,defaultLevel:et,level:nt,onLevelChange:tt,nextIcon:bt,previousIcon:gt,date:wt,defaultDate:St,onDateChange:Mt,numberOfColumns:_t,columnsToScroll:Tt,ariaLabels:Rt,onYearSelect:kt,onMonthSelect:It,onYearMouseEnter:Lt,onMonthMouseEnter:Ot,onNextMonth:Nt,onPreviousMonth:Ft,onNextYear:jt,onPreviousYear:Vt,onNextDecade:Jt,onPreviousDecade:ir,withCellSpacing:rr,__updateDateOnYearSelect:er,__updateDateOnMonthSelect:lr,firstDayOfWeek:Ct,weekdayFormat:dt,weekendDays:mt,getDayProps:yt,excludeDate:vt,renderDay:Et,hideOutsideDates:At,hideWeekdays:Pt,getDayAriaLabel:xt,monthLabelFormat:ht,monthsListFormat:$t,getMonthControlProps:Bt,yearLabelFormat:Dt,yearsListFormat:Ht,getYearControlProps:tr,decadeLabelFormat:Xt,allowSingleDateInRange:Ut,allowDeselect:qt,minDate:Gt,maxDate:Zt,locale:Yt,...Kt}=c;return{calendarProps:{maxLevel:a,minLevel:d,defaultLevel:et,level:nt,onLevelChange:tt,nextIcon:bt,previousIcon:gt,date:wt,defaultDate:St,onDateChange:Mt,numberOfColumns:_t,columnsToScroll:Tt,ariaLabels:Rt,onYearSelect:kt,onMonthSelect:It,onYearMouseEnter:Lt,onMonthMouseEnter:Ot,onNextMonth:Nt,onPreviousMonth:Ft,onNextYear:jt,onPreviousYear:Vt,onNextDecade:Jt,onPreviousDecade:ir,withCellSpacing:rr,__updateDateOnYearSelect:er,__updateDateOnMonthSelect:lr,firstDayOfWeek:Ct,weekdayFormat:dt,weekendDays:mt,getDayProps:yt,excludeDate:vt,renderDay:Et,hideOutsideDates:At,hideWeekdays:Pt,getDayAriaLabel:xt,monthLabelFormat:ht,monthsListFormat:$t,getMonthControlProps:Bt,yearLabelFormat:Dt,yearsListFormat:Ht,getYearControlProps:tr,decadeLabelFormat:Xt,allowSingleDateInRange:Ut,allowDeselect:qt,minDate:Gt,maxDate:Zt,locale:Yt},others:Kt}}function isInRange(c,a){const d=[...a].sort((et,nt)=>et.getTime()-nt.getTime());return dayjs(d[0]).startOf("day").subtract(1,"ms").isBefore(c)&&dayjs(d[1]).endOf("day").add(1,"ms").isAfter(c)}function useDatesState({type:c,level:a,value:d,defaultValue:et,onChange:nt,allowSingleDateInRange:tt,allowDeselect:bt,onMouseLeave:gt,applyTimezone:wt=!0}){const[St,Mt]=useUncontrolledDates({type:c,value:d,defaultValue:et,onChange:nt,applyTimezone:wt}),[_t,Tt]=reactExports.useState(c==="range"&&St[0]&&!St[1]?St[0]:null),[Rt,kt]=reactExports.useState(null),It=Jt=>{if(c==="range"){if(_t instanceof Date&&!St[1]){if(dayjs(Jt).isSame(_t,a)&&!tt){Tt(null),kt(null),Mt([null,null]);return}const ir=[Jt,_t];ir.sort((rr,er)=>rr.getTime()-er.getTime()),Mt(ir),kt(null),Tt(null);return}if(St[0]&&!St[1]&&dayjs(Jt).isSame(St[0],a)&&!tt){Tt(null),kt(null),Mt([null,null]);return}Mt([Jt,null]),kt(null),Tt(Jt);return}if(c==="multiple"){St.some(ir=>dayjs(ir).isSame(Jt,a))?Mt(St.filter(ir=>!dayjs(ir).isSame(Jt,a))):Mt([...St,Jt]);return}St&&bt&&dayjs(Jt).isSame(St,a)?Mt(null):Mt(Jt)},Lt=Jt=>_t instanceof Date&&Rt instanceof Date?isInRange(Jt,[Rt,_t]):St[0]instanceof Date&&St[1]instanceof Date?isInRange(Jt,St):!1,Ot=c==="range"?Jt=>{gt==null||gt(Jt),kt(null)}:gt,Nt=Jt=>St[0]instanceof Date&&dayjs(Jt).isSame(St[0],a)?!(Rt&&dayjs(Rt).isBefore(St[0])):!1,Ft=Jt=>St[1]instanceof Date?dayjs(Jt).isSame(St[1],a):!(St[0]instanceof Date)||!Rt?!1:dayjs(Rt).isBefore(St[0])&&dayjs(Jt).isSame(St[0],a),jt=Jt=>{if(c==="range")return{selected:St.some(rr=>rr&&dayjs(rr).isSame(Jt,a)),inRange:Lt(Jt),firstInRange:Nt(Jt),lastInRange:Ft(Jt),"data-autofocus":!!St[0]&&dayjs(St[0]).isSame(Jt,a)||void 0};if(c==="multiple")return{selected:St.some(rr=>rr&&dayjs(rr).isSame(Jt,a)),"data-autofocus":!!St[0]&&dayjs(St[0]).isSame(Jt,a)||void 0};const ir=dayjs(St).isSame(Jt,a);return{selected:ir,"data-autofocus":ir||void 0}},Vt=c==="range"&&_t?kt:()=>{};return reactExports.useEffect(()=>{c==="range"&&!St[0]&&!St[1]&&Tt(null)},[d]),{onDateChange:It,onRootMouseLeave:Ot,onHoveredDateChange:Vt,getControlProps:jt,_value:St,setValue:Mt}}const defaultProps$1={type:"default",defaultLevel:"month",numberOfColumns:1},DatePicker=factory((c,a)=>{const d=useProps("DatePicker",defaultProps$1,c),{classNames:et,styles:nt,vars:tt,type:bt,defaultValue:gt,value:wt,onChange:St,__staticSelector:Mt,getDayProps:_t,allowSingleDateInRange:Tt,allowDeselect:Rt,onMouseLeave:kt,numberOfColumns:It,hideOutsideDates:Lt,__onDayMouseEnter:Ot,__onDayClick:Nt,__timezoneApplied:Ft,...jt}=d,{onDateChange:Vt,onRootMouseLeave:Jt,onHoveredDateChange:ir,getControlProps:rr}=useDatesState({type:bt,level:"day",allowDeselect:Rt,allowSingleDateInRange:Tt,value:wt,defaultValue:gt,onChange:St,onMouseLeave:kt,applyTimezone:!Ft}),{resolvedClassNames:er,resolvedStyles:lr}=useResolvedStylesApi({classNames:et,styles:nt,props:d}),Ct=useDatesContext();return React.createElement(Calendar,{ref:a,minLevel:"month",classNames:er,styles:lr,__staticSelector:Mt||"DatePicker",onMouseLeave:Jt,numberOfColumns:It,hideOutsideDates:Lt??It!==1,__onDayMouseEnter:(dt,mt)=>{ir(mt),Ot==null||Ot(dt,mt)},__onDayClick:(dt,mt)=>{Vt(mt),Nt==null||Nt(dt,mt)},getDayProps:dt=>({...rr(dt),..._t==null?void 0:_t(dt)}),...jt,date:shiftTimezone("add",jt.date,Ct.getTimezone(),Ft),__timezoneApplied:!0})});DatePicker.classes=Calendar.classes;DatePicker.displayName="@mantine/dates/DatePicker";var classes$1={timeWrapper:"m_208d2562",timeInput:"m_62ee059"};const defaultProps={dropdownType:"popover"},DateTimePicker=factory((c,a)=>{const d=useProps("DateTimePicker",defaultProps,c),{value:et,defaultValue:nt,onChange:tt,valueFormat:bt,locale:gt,classNames:wt,styles:St,unstyled:Mt,timeInputProps:_t,submitButtonProps:Tt,withSeconds:Rt,level:kt,defaultLevel:It,size:Lt,variant:Ot,dropdownType:Nt,vars:Ft,minDate:jt,maxDate:Vt,...Jt}=d,ir=useStyles({name:"DateTimePicker",classes:classes$1,props:d,classNames:wt,styles:St,unstyled:Mt,vars:Ft}),{resolvedClassNames:rr,resolvedStyles:er}=useResolvedStylesApi({classNames:wt,styles:St,props:d}),lr=bt||(Rt?"DD/MM/YYYY HH:mm:ss":"DD/MM/YYYY HH:mm"),Ct=reactExports.useRef(),dt=useMergedRef(Ct,_t==null?void 0:_t.ref),{calendarProps:{allowSingleDateInRange:mt,...yt},others:vt}=pickCalendarProps(Jt),Et=useDatesContext(),[At,Pt]=useUncontrolledDates({type:"default",value:et,defaultValue:nt,onChange:tt}),xt=ar=>ar?dayjs(ar).format(Rt?"HH:mm:ss":"HH:mm"):"",[ht,$t]=reactExports.useState(xt(At)),[Bt,Dt]=reactExports.useState(kt||It||"month"),[Ht,tr]=useDisclosure(!1),Xt=At?dayjs(At).locale(Et.getLocale(gt)).format(lr):"",Ut=ar=>{var cr;(cr=_t==null?void 0:_t.onChange)==null||cr.call(_t,ar);const gr=ar.currentTarget.value;if($t(gr),gr){const[ur,Pr,br]=gr.split(":").map(Number),dr=shiftTimezone("add",new Date,Et.getTimezone());dr.setHours(ur),dr.setMinutes(Pr),dr.setSeconds(br||0),Pt(assignTime(dr,At||shiftTimezone("add",new Date,Et.getTimezone())))}},qt=ar=>{var gr;ar&&Pt(assignTime(At,ar)),(gr=Ct.current)==null||gr.focus()},Gt=ar=>{var gr;(gr=_t==null?void 0:_t.onKeyDown)==null||gr.call(_t,ar),ar.key==="Enter"&&(ar.preventDefault(),tr.close())};useDidUpdate(()=>{Ht||$t(xt(At))},[At,Ht]),useDidUpdate(()=>{Ht&&Dt("month")},[Ht]);const Zt=jt?dayjs(jt).format("HH:mm:ss"):null,Yt=Vt?dayjs(Vt).format("HH:mm:ss"):null,Kt=Nt==="popover";return React.createElement(PickerInputBase,{formattedValue:Xt,dropdownOpened:Ht,dropdownHandlers:tr,classNames:rr,styles:er,unstyled:Mt,ref:a,onClear:()=>Pt(null),shouldClear:!!At,value:At,size:Lt,variant:Ot,dropdownType:Nt,...vt,type:"default",__staticSelector:"DateTimePicker"},React.createElement(DatePicker,{...yt,maxDate:Vt,minDate:jt,size:Lt,variant:Ot,type:"default",value:At,defaultDate:At,onChange:qt,locale:gt,classNames:rr,styles:er,unstyled:Mt,__staticSelector:"DateTimePicker",__stopPropagation:Kt,level:kt,defaultLevel:It,onLevelChange:ar=>{var gr;Dt(ar),(gr=yt.onLevelChange)==null||gr.call(yt,ar)},__timezoneApplied:!0}),Bt==="month"&&React.createElement("div",{...ir("timeWrapper")},React.createElement(TimeInput,{value:ht,withSeconds:Rt,ref:dt,unstyled:Mt,..._t,...ir("timeInput",{className:_t==null?void 0:_t.className,style:_t==null?void 0:_t.style}),onChange:Ut,onKeyDown:Gt,minTime:At&&jt&&At.toDateString()===jt.toDateString()?Zt??void 0:void 0,maxTime:At&&Vt&&At.toDateString()===Vt.toDateString()?Yt??void 0:void 0,size:Lt,"data-mantine-stop-propagation":Kt||void 0}),React.createElement(ActionIcon,{variant:"default",size:`input-${Lt||"sm"}`,...ir("submitButton",{className:Tt==null?void 0:Tt.className,style:Tt==null?void 0:Tt.style}),unstyled:Mt,"data-mantine-stop-propagation":Kt||void 0,children:React.createElement(CheckIcon,{size:"30%"}),...Tt,onClick:ar=>{var gr;(gr=Tt==null?void 0:Tt.onClick)==null||gr.call(Tt,ar),tr.close()}})))});DateTimePicker.classes={...classes$1,...PickerInputBase.classes,...DatePicker.classes};DateTimePicker.displayName="@mantine/dates/DateTimePicker";const SAFE_ABI=["function isModuleEnabled(address module) public view returns (bool)","function nonce() public view returns (uint256)","function enableModule(address module) public","function isModuleInstalled(uint256 moduleType, address module, bytes calldata additionalContext) public view returns (bool)","function setFallbackHandler(address module) public","function setGuard(address module) public","function execTransaction(address to,uint256 value,bytes calldata data,uint8 operation,uint256 safeTxGas,uint256 baseGas,uint256 gasPrice,address gasToken,address payable refundReceiver,bytes memory signatures) public payable returns (bool success)"],getSafe=async c=>{const a=await getProvider();return new Contract(c,SAFE_ABI,a)},isModuleEnabled=async(c,a)=>await(await getSafe(c)).isModuleEnabled(a),isModuleInstalled=async(c,a,d)=>{const et=await getSafe(c);let nt=!1;try{nt=await et.isModuleInstalled(d,a,"0x")}catch{console.log("Not Installed")}return nt},buildEnableModule=async(c,a)=>{const d=await getSafe(c);return{to:c,value:"0",data:(await d.enableModule.populateTransaction(a)).data}},buildUpdateFallbackHandler=async(c,a)=>{const d=await getSafe(c);return{to:c,value:"0",data:(await d.setFallbackHandler.populateTransaction(a)).data}},_format$1="hh-sol-artifact-1",contractName$1="Safe7579",sourceName$1="contracts/Safe7579.sol",abi$2=[{inputs:[],name:"AccountAccessUnauthorized",type:"error"},{inputs:[],name:"AccountInitializationFailed",type:"error"},{inputs:[],name:"ExecutionFailed",type:"error"},{inputs:[{internalType:"bytes4",name:"msgSig",type:"bytes4"}],name:"FallbackInstalled",type:"error"},{inputs:[{internalType:"address",name:"currentHook",type:"address"}],name:"HookAlreadyInstalled",type:"error"},{inputs:[],name:"HookPostCheckFailed",type:"error"},{inputs:[],name:"InitializerError",type:"error"},{inputs:[{internalType:"bytes4",name:"msgSig",type:"bytes4"}],name:"InvalidFallbackHandler",type:"error"},{inputs:[],name:"InvalidHookType",type:"error"},{inputs:[{internalType:"address",name:"safe",type:"address"}],name:"InvalidInitData",type:"error"},{inputs:[],name:"InvalidInput",type:"error"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"InvalidModule",type:"error"},{inputs:[],name:"LinkedListError",type:"error"},{inputs:[],name:"LinkedList_AlreadyInitialized",type:"error"},{inputs:[],name:"LinkedList_AlreadyInitialized",type:"error"},{inputs:[{internalType:"address",name:"entry",type:"address"}],name:"LinkedList_EntryAlreadyInList",type:"error"},{inputs:[{internalType:"address",name:"entry",type:"address"}],name:"LinkedList_EntryAlreadyInList",type:"error"},{inputs:[{internalType:"address",name:"entry",type:"address"}],name:"LinkedList_InvalidEntry",type:"error"},{inputs:[{internalType:"address",name:"entry",type:"address"}],name:"LinkedList_InvalidEntry",type:"error"},{inputs:[],name:"LinkedList_InvalidPage",type:"error"},{inputs:[],name:"LinkedList_InvalidPage",type:"error"},{inputs:[{internalType:"bytes4",name:"msgSig",type:"bytes4"}],name:"NoFallbackHandler",type:"error"},{inputs:[{internalType:"CallType",name:"callType",type:"bytes1"}],name:"UnsupportedCallType",type:"error"},{inputs:[{internalType:"ExecType",name:"execType",type:"bytes1"}],name:"UnsupportedExecType",type:"error"},{inputs:[{internalType:"uint256",name:"moduleTypeId",type:"uint256"}],name:"UnsupportedModuleType",type:"error"},{inputs:[],name:"ValidatorStorageHelperError",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"smartAccount",type:"address"},{indexed:!0,internalType:"contract IERC7484",name:"registry",type:"address"}],name:"ERC7484RegistryConfigured",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"moduleTypeId",type:"uint256"},{indexed:!1,internalType:"address",name:"module",type:"address"}],name:"ModuleInstalled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"moduleTypeId",type:"uint256"},{indexed:!1,internalType:"address",name:"module",type:"address"}],name:"ModuleUninstalled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"safe",type:"address"}],name:"Safe7579Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract ISafe",name:"safe",type:"address"},{indexed:!1,internalType:"uint256",name:"numberInBatch",type:"uint256"}],name:"TryExecutionFailed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract ISafe",name:"safe",type:"address"},{indexed:!1,internalType:"bool[]",name:"success",type:"bool[]"}],name:"TryExecutionsFailed",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"accountId",outputs:[{internalType:"string",name:"accountImplementationId",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"entryPoint",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"ModeCode",name:"mode",type:"bytes32"},{internalType:"bytes",name:"executionCalldata",type:"bytes"}],name:"execute",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"ModeCode",name:"mode",type:"bytes32"},{internalType:"bytes",name:"executionCalldata",type:"bytes"}],name:"executeFromExecutor",outputs:[{internalType:"bytes[]",name:"returnDatas",type:"bytes[]"}],stateMutability:"payable",type:"function"},{inputs:[],name:"getActiveHook",outputs:[{internalType:"address",name:"hook",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"getActiveHook",outputs:[{internalType:"address",name:"hook",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"cursor",type:"address"},{internalType:"uint256",name:"size",type:"uint256"}],name:"getExecutorsPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"safe",type:"address"},{internalType:"address",name:"validator",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getValidatorPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"module",type:"address"},{internalType:"bytes",name:"initData",type:"bytes"}],internalType:"struct ModuleInit[]",name:"validators",type:"tuple[]"},{components:[{internalType:"address",name:"module",type:"address"},{internalType:"bytes",name:"initData",type:"bytes"}],internalType:"struct ModuleInit[]",name:"executors",type:"tuple[]"},{components:[{internalType:"address",name:"module",type:"address"},{internalType:"bytes",name:"initData",type:"bytes"}],internalType:"struct ModuleInit[]",name:"fallbacks",type:"tuple[]"},{components:[{internalType:"address",name:"module",type:"address"},{internalType:"bytes",name:"initData",type:"bytes"}],internalType:"struct ModuleInit[]",name:"hooks",type:"tuple[]"},{components:[{internalType:"contract IERC7484",name:"registry",type:"address"},{internalType:"address[]",name:"attesters",type:"address[]"},{internalType:"uint8",name:"threshold",type:"uint8"}],internalType:"struct RegistryInit",name:"registryInit",type:"tuple"}],name:"initializeAccount",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"moduleType",type:"uint256"},{internalType:"address",name:"module",type:"address"},{internalType:"bytes",name:"initData",type:"bytes"}],name:"installModule",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"moduleType",type:"uint256"},{internalType:"address",name:"module",type:"address"},{internalType:"bytes",name:"additionalContext",type:"bytes"}],name:"isModuleInstalled",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"hash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"magicValue",type:"bytes4"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"module",type:"address"},{internalType:"bytes",name:"initData",type:"bytes"}],internalType:"struct ModuleInit[]",name:"validators",type:"tuple[]"}],name:"launchpadValidators",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"contract IERC7484",name:"registry",type:"address"},{internalType:"address[]",name:"attesters",type:"address[]"},{internalType:"uint8",name:"threshold",type:"uint8"}],name:"setRegistry",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"ModeCode",name:"encodedMode",type:"bytes32"}],name:"supportsExecutionMode",outputs:[{internalType:"bool",name:"supported",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"moduleTypeId",type:"uint256"}],name:"supportsModule",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"moduleType",type:"uint256"},{internalType:"address",name:"module",type:"address"},{internalType:"bytes",name:"deInitData",type:"bytes"}],name:"uninstallModule",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"bytes32",name:"accountGasLimits",type:"bytes32"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"bytes32",name:"gasFees",type:"bytes32"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct PackedUserOperation",name:"userOp",type:"tuple"},{internalType:"bytes32",name:"userOpHash",type:"bytes32"},{internalType:"uint256",name:"missingAccountFunds",type:"uint256"}],name:"validateUserOp",outputs:[{internalType:"uint256",name:"validSignature",type:"uint256"}],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}],bytecode$2="0x60806040523480156200001157600080fd5b50604051620000209062000064565b604051809103906000f0801580156200003d573d6000803e3d6000fd5b50600080546001600160a01b0319166001600160a01b039290921691909117905562000072565b610a0b8062004e3983390190565b614db780620000826000396000f3fe6080604052600436106101635760003560e01c8063b0d691fe116100c0578063e9ae5c5311610074578063eab77e1711610059578063eab77e1714610482578063f2dc691d146104a2578063f698da25146104c25761016a565b8063e9ae5c531461044f578063ea5f61d0146104625761016a565b8063d03c7914116100a5578063d03c7914146103ef578063d691c9641461040f578063d828435d1461042f5761016a565b8063b0d691fe14610380578063b875d5d8146103a35761016a565b80636a5e1515116101175780639517e29f116100fc5780639517e29f146103385780639cfd7cff1461034b578063a71763a81461036d5761016a565b80636a5e1515146102f7578063855713681461030a5761016a565b80631626ba7e116101485780631626ba7e1461028857806319822f7c146102c1578063540fb4f9146102e25761016a565b80630a664dba14610214578063112d3a7d146102585761016a565b3661016a57005b600036606060003560e01c63bc197c81811463f23a6e6182141763150b7a028214171561019b57806020526020603cf35b5033600090815260056020908152604080832054600683528184206001600160e01b031985351680865293529083205491926001600160a01b039182169290911690806101e8848461052b565b915091506101f6888861060a565b955061020484848484610756565b5050505050915050805190602001f35b34801561022057600080fd5b50336000908152600560205260409020546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b34801561026457600080fd5b50610278610273366004613d4e565b6107f2565b604051901515815260200161024f565b34801561029457600080fd5b506102a86102a3366004613daa565b61084f565b6040516001600160e01b0319909116815260200161024f565b6102d46102cf366004613df6565b610b17565b60405190815260200161024f565b6102f56102f0366004613ea7565b610c3c565b005b6102f5610305366004613f8e565b610c89565b34801561031657600080fd5b5061032a610325366004613fd0565b610cea565b60405161024f929190613ffc565b6102f5610346366004613d4e565b610d06565b34801561035757600080fd5b50610360610e52565b60405161024f91906140ac565b6102f561037b366004613d4e565b610ee4565b34801561038c57600080fd5b506f71727de22e5e9d8baf0edac6f37da03261023b565b3480156103af57600080fd5b5061023b6103be3660046140d5565b3360009081526006602090815260408083206001600160e01b0319909416835292905220546001600160a01b031690565b3480156103fb57600080fd5b5061027861040a3660046140f2565b611072565b61042261041d366004613daa565b61111b565b60405161024f919061410b565b34801561043b57600080fd5b506102d461044a36600461416f565b61120f565b6102f561045d366004613daa565b6112e6565b34801561046e57600080fd5b5061032a61047d366004613fd0565b61168b565b34801561048e57600080fd5b506102f561049d3660046141b9565b6116b5565b3480156104ae57600080fd5b506102786104bd3660046140f2565b61170b565b3480156104ce57600080fd5b506102d4604080517f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a794692186020820152469181019190915230606082015260009060800160405160208183030381529060405280519060200120905090565b6060806001600160a01b038416156105c6576105ad3385600036601319013560601c5b346000366040516024016105659493929190614249565b60408051601f198184030181529190526020810180516001600160e01b03167fd68f60250000000000000000000000000000000000000000000000000000000017905261175a565b9150818060200190518101906105c39190614340565b91505b6001600160a01b03831615610603576105ea3384600036601319013560601c61054e565b9050808060200190518101906106009190614340565b90505b9250929050565b3360009081526004602090815260408083206001600160e01b0319843516845290915290208054606091906001600160a01b03811690600160a01b900460f81b81610694576040517f48c9ceda0000000000000000000000000000000000000000000000000000000081526001600160e01b03196000351660048201526024015b60405180910390fd5b6001600160f81b031981167ffe0000000000000000000000000000000000000000000000000000000000000003610705576106fb3383888836601319013560601c6040516020016106e793929190614375565b604051602081830303815290604052611803565b9350505050610750565b6001600160f81b0319811661074c576106fb33836000898936601319013560601c60405160200161073893929190614375565b60405160208183030381529060405261175a565b5050505b92915050565b6001600160a01b038416156107c5576107c5338560008560405160240161077d91906140ac565b60408051601f198184030181529190526020810180516001600160e01b03167f173bf7da000000000000000000000000000000000000000000000000000000001790526118f5565b6001600160a01b038316156107ec576107ec338460008460405160240161077d91906140ac565b50505050565b60006001850361080c5761080584611994565b9050610847565b6002850361081d57610805846119a2565b60038503610830576108058484846119bb565b6004850361084357610805848484611a08565b5060005b949350505050565b600033821580156108e057506040517f5ae6bd37000000000000000000000000000000000000000000000000000000008152600481018690526001600160a01b03821690635ae6bd3790602401602060405180830381865afa1580156108b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108dd919061439b565b15155b156108f55750630b135d3f60e11b9050610b10565b600061090460148286886143b4565b61090d916143de565b60601c9050801580610925575061092381611994565b155b15610a7b5760006109f0836001600160a01b031663f698da256040518163ffffffff1660e01b8152600401602060405180830381865afa15801561096d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610991919061439b565b60408051602081018b90527f60b3cbf8b4a223d68d641b3b6ddf9a298e7f33710cf3d3a9d1146b5a6150fbca910160408051601f1981840301815282825280516020918201209083015201604051602081830303815290604052611a43565b805160208201209091506001600160a01b03841663934f3a118284610a188a6014818e6143b4565b6040518563ffffffff1660e01b8152600401610a379493929190614413565b60006040518083038186803b158015610a4f57600080fd5b505afa158015610a63573d6000803e3d6000fd5b50630b135d3f60e11b9750610b109650505050505050565b6000610af4338336601319013560601c8a610a998a6014818e6143b4565b604051602401610aac9493929190614249565b60408051601f198184030181529190526020810180516001600160e01b03167ff551e2ee00000000000000000000000000000000000000000000000000000000179052611803565b905080806020019051810190610b0a919061444a565b93505050505b9392505050565b600060131936013560601c6f71727de22e5e9d8baf0edac6f37da03214610b5157604051635629665f60e11b815260040160405180910390fd5b6020840135606081901c90811580610b6f5750610b6d82611994565b155b15610b8457610b7d86611abd565b9250610c02565b6000610be8338460008a8a604051602401610ba09291906144ad565b60408051601f198184030181529190526020810180516001600160e01b03167f970032030000000000000000000000000000000000000000000000000000000017905261175a565b905080806020019051810190610bfe919061439b565b9350505b8315610c3357610c33336f71727de22e5e9d8baf0edac6f37da03286604051806020016040528060008152506118f5565b50509392505050565b610c6e610c4c60208301836145ac565b610c5960208401846145c9565b610c696060860160408701614613565b611b7c565b610c7e8989898989898989611c43565b505050505050505050565b610c94600233611e9f565b8060005b818110156107ec5736848483818110610cb357610cb361462e565b9050602002810190610cc59190614644565b9050610ce133610cd860208401846145ac565b60029190611f1a565b50600101610c98565b60606000610cfb600233868661200f565b915091509250929050565b3360009081526005602090815260408083205460068352818420639517e29f60e01b80865293529083205491926001600160a01b03918216929091169080610d4e848461052b565b91509150606060018a03610d6e57610d678989896121d4565b9050610dec565b60028a03610d8157610d67898989612230565b60038a03610d9457610d6789898961229a565b60048a03610da757610d67898989612457565b89610db757610d678989896125ef565b6040517f41c38b30000000000000000000000000000000000000000000000000000000008152600481018b905260240161068b565b600054604051610e459133916001600160a01b0390911690610e16908e908e908790602401614664565b60408051601f198184030181529190526020810180516001600160e01b0316639517e29f60e01b179052612790565b50610c7e84848484610756565b60606000336001600160a01b031663ffa1ad746040518163ffffffff1660e01b8152600401600060405180830381865afa158015610e94573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610ebc919081019061468c565b905080604051602001610ecf91906146d5565b60405160208183030381529060405291505090565b33600090815260056020908152604080832054600683528184207fa71763a80000000000000000000000000000000000000000000000000000000080865293529083205491926001600160a01b03918216929091169080610f45848461052b565b91509150610f606f71727de22e5e9d8baf0edac6f37da03290565b6001600160a01b031636601319013560601c6001600160a01b03161480610f8e57503360131936013560601c145b610fab57604051635629665f60e11b815260040160405180910390fd5b606060018a03610fc757610fc0898989612829565b9050611000565b60028a03610fda57610fc0898989612852565b60038a03610fed57610fc089898961287f565b60048a03610db757610fc08989896128cd565b600054604051610e459133916001600160a01b039091169061102a908e908e908790602401614664565b60408051601f198184030181529190526020810180516001600160e01b03167f7827252500000000000000000000000000000000000000000000000000000000179052612985565b600081600881901b6001600160f81b03198216600160f81b0361109857600192506110d4565b6001600160f81b031982166110b057600192506110d4565b6001600160f81b0319808316036110ca57600192506110d4565b5060009392505050565b8280156110e957506001600160f81b03198116155b156110f5575050919050565b82801561110f57506001600160f81b03198116600160f81b145b156110ca575050919050565b606061112d366013190135821c6119a2565b61116d576040517fb927fe5e00000000000000000000000000000000000000000000000000000000815260131936013560601c600482015260240161068b565b33600090815260056020908152604080832054600683528184207fd691c9640000000000000000000000000000000000000000000000000000000080865293529083205491926001600160a01b039182169290911690806111ce848461052b565b915091503360026111df8282612a4d565b8a600881901b6111f181838e8e612af1565b99505050505061120384848484610756565b50505050509392505050565b6000602082901b77ffffffffffffffffffffffffffffffffffffffff00000000166f71727de22e5e9d8baf0edac6f37da0326040517f35567e1a0000000000000000000000000000000000000000000000000000000081526001600160a01b03868116600483015277ffffffffffffffffffffffffffffffffffffffffffffffff8416602483015291909116906335567e1a90604401602060405180830381865afa1580156112c2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610847919061439b565b33600090815260056020908152604080832054600683528184207fe9ae5c530000000000000000000000000000000000000000000000000000000080865293529083205491926001600160a01b03918216929091169080611347848461052b565b915091506113626f71727de22e5e9d8baf0edac6f37da03290565b6001600160a01b031636601319013560601c6001600160a01b0316148061139057503360131936013560601c145b6113ad57604051635629665f60e11b815260040160405180910390fd5b87600881901b336001600160f81b0319821661151c576001600160f81b03198316600160f81b036113f45789358a016020810190356113ed838383612ea4565b5050611672565b6001600160f81b03198316611466576000803660006114138e8e612f14565b935093509350935061145d85858585858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506118f592505050565b50505050611672565b6001600160f81b0319808416036114f75760006114866014828c8e6143b4565b61148f916143de565b60601c90503660008c8c60149080926114aa939291906143b4565b915091506114ef848484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061279092505050565b505050611672565b604051632e5bf3f960e21b81526001600160f81b03198416600482015260240161068b565b6001600160f81b03198216600160f81b0361164d576001600160f81b03198316600160f81b0361155b5789358a016020810190356113ed838383612f65565b6001600160f81b031983166115c45760008036600061157a8e8e612f14565b935093509350935061145d85858585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612fd592505050565b6001600160f81b0319808416036114f75760006115e46014828c8e6143b4565b6115ed916143de565b60601c90503660008c8c6014908092611608939291906143b4565b915091506114ef848484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061298592505050565b6040516308c3ee0360e11b81526001600160f81b03198316600482015260240161068b565b50505061168184848484610756565b5050505050505050565b336000908152600360205260408120606091906116a981868661309d565b92509250509250929050565b60131936013560601c6f71727de22e5e9d8baf0edac6f37da03214806116e257503360131936013560601c145b6116ff57604051635629665f60e11b815260040160405180910390fd5b6107ec84848484611b7c565b60006001820361171d57506001919050565b6002820361172d57506001919050565b6003820361173d57506001919050565b6004820361174d57506001919050565b506000919050565b919050565b60606000856001600160a01b0316635229073f86868660006040518563ffffffff1660e01b81526004016117919493929190614741565b6000604051808303816000875af11580156117b0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526117d8919081019061478d565b92509050806117fa57604051632b3f6d1160e21b815260040160405180910390fd5b50949350505050565b60606000838360405160240161181a9291906147db565b60408051601f198184030181529181526020820180516001600160e01b03167f6a221657000000000000000000000000000000000000000000000000000000001790526000805491519293509161187f916001600160a01b03169084906024016147db565b60408051601f19818403018152919052602080820180516001600160e01b03167fb4faba090000000000000000000000000000000000000000000000000000000017815282519293509091600091895afa5060203d036040519350808401604052806020853e50600051610c3357825160208401fd5b60405163468721a760e01b81526000906001600160a01b0386169063468721a79061192a908790879087908790600401614741565b6020604051808303816000875af1158015611949573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196d91906147fd565b90508061198d57604051632b3f6d1160e21b815260040160405180910390fd5b5050505050565b60006107506002338461324a565b336000908152600360205260408120610b10818461328e565b6000806119ca838501856140d5565b3360009081526004602090815260408083206001600160e01b0319909416835292905220546001600160a01b03908116908616149150509392505050565b60008080611a1884860186614827565b915091506000611a2883836132c8565b6001600160a01b039081169088161493505050509392505050565b6060601960f81b600160f81b858585604051602001611a63929190614853565b60408051808303601f190181529082905280516020918201206001600160f81b0319958616918301919091529290931660218401526022830152604282015260620160405160208183030381529060405290509392505050565b600080600080366000611acf87613360565b845160208601206040517f934f3a11000000000000000000000000000000000000000000000000000000008152959a5093985091965094509250339163934f3a1191611b2391899087908790600401614413565b60006040518083038186803b158015611b3b57600080fd5b505afa925050508015611b4c575060015b611b6357611b5c600184866135e5565b9550611b72565b611b6f600084866135e5565b95505b5050505050919050565b3360008181526001602052604080822080546001600160a01b0319166001600160a01b03891617905551611c0792918791611bbf90869089908990602401614879565b60408051601f198184030181529190526020810180516001600160e01b03167ff05c04e1000000000000000000000000000000000000000000000000000000001790526118f5565b6040516001600160a01b0385169033907f9452c8fb077c3ea8f28a77c87488af657b1e44d010ad9a5992d73870da040e9490600090a350505050565b3360009081527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e0602052604090205487906001600160a01b0316611cf057611c8c600233611e9f565b60005b81811015611cea57368a8a83818110611caa57611caa61462e565b9050602002810190611cbc9190614644565b9050611ce0611cce60208301836145ac565b611cdb60208401846148d4565b6121d4565b5050600101611c8f565b50611d2a565b8015611d2a576040517fd8e3ed1b00000000000000000000000000000000000000000000000000000000815233600482015260240161068b565b336000908152600360205260409020611d428161361d565b86915060005b82811015611da35736898983818110611d6357611d6361462e565b9050602002810190611d759190614644565b9050611d99611d8760208301836145ac565b611d9460208401846148d4565b612230565b5050600101611d48565b5084915060005b82811015611e055736878783818110611dc557611dc561462e565b9050602002810190611dd79190614644565b9050611dfb611de960208301836145ac565b611df660208401846148d4565b61229a565b5050600101611daa565b5082915060005b82811015611e675736858583818110611e2757611e2761462e565b9050602002810190611e399190614644565b9050611e5d611e4b60208301836145ac565b611e5860208401846148d4565b612457565b5050600101611e0c565b5060405133907ff48581d8a62b775b74f2fb67f1d5806a9a356fbcc598040ab3071d3e37af40c290600090a250505050505050505050565b60016000908152602083815260408083206001600160a01b0380861685529252909120541615611ee2576040516329e42f3360e11b815260040160405180910390fd5b60016000818152602093845260408082206001600160a01b0394909416825292909352912080546001600160a01b0319169091179055565b6001600160a01b0381161580611f3957506001600160a01b0381166001145b15611f6257604051637c84ecfb60e01b81526001600160a01b038216600482015260240161068b565b6001600160a01b0381811660009081526020858152604080832086851684529091529020541615611fb157604051631034f46960e21b81526001600160a01b038216600482015260240161068b565b60016000908152602084815260408083206001600160a01b039586168085528184528285208054968816808752988552838620918652908452919093208054949095166001600160a01b031994851617909455528154169091179055565b606060006001600160a01b038416600114801590612035575061203386868661324a565b155b1561205e57604051637c84ecfb60e01b81526001600160a01b038516600482015260240161068b565b8260000361207f5760405163f725081760e01b815260040160405180910390fd5b8267ffffffffffffffff8111156120985761209861427c565b6040519080825280602002602001820160405280156120c1578160200160208202803683370190505b506001600160a01b038086166000908152602089815260408083208a85168452909152812054929450911691505b6001600160a01b0382161580159061211157506001600160a01b038216600114155b801561211c57508381105b1561218157818382815181106121345761213461462e565b6001600160a01b039283166020918202929092018101919091529281166000908152888452604080822089841683529094529290922054909116908061217981614931565b9150506120ef565b6001600160a01b03821660011480159061219b5750600081115b156121c757826121ac60018361494a565b815181106121bc576121bc61462e565b602002602001015191505b8083525094509492505050565b60608360016121e38282612a4d565b6121ef60023388611f1a565b84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929998505050505050505050565b606083600261223f8282612a4d565b336000908152600360205260409020612258818861367a565b85858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929a9950505050505050505050565b60608360036122a98282612a4d565b600080806122b9878901896149ae565b919450925090506001600160e01b031983167f6d61fe7000000000000000000000000000000000000000000000000000000000148061232157506001600160e01b031983167f8a91b0e300000000000000000000000000000000000000000000000000000000145b15612364576040517f79bd117b0000000000000000000000000000000000000000000000000000000081526001600160e01b03198416600482015260240161068b565b3360009081526004602090815260408083206001600160e01b0319871684529091529020546001600160a01b0316156123d5576040517f74420d150000000000000000000000000000000000000000000000000000000081526001600160e01b03198416600482015260240161068b565b3360009081526004602090815260408083206001600160e01b031990961683529490529290922080546001600160a01b038a166001600160a01b031960f89490941c600160a01b02939093167fffffffffffffffffffffff00000000000000000000000000000000000000000090911617919091179055925050509392505050565b60608360046124668282612a4d565b6000808061247687890189614a1d565b9194509250905060008084600181111561249257612492614a4b565b1480156124a757506001600160e01b03198316155b1561251d5750336000908152600560205260409020546001600160a01b031680156124f05760405163741cbe0360e01b81526001600160a01b038216600482015260240161068b565b33600090815260056020526040902080546001600160a01b0319166001600160a01b038c161790556125e2565b600184600181111561253157612531614a4b565b036125b0576001600160a01b038116156125695760405163741cbe0360e01b81526001600160a01b038216600482015260240161068b565b503360009081526006602090815260408083206001600160e01b031986168452909152902080546001600160a01b038b81166001600160a01b0319831617909255166125e2565b6040517f5691922f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5098975050505050505050565b60608235830160208181019135908581013586018082019190359060408801358801908101903584838114612650576040517fb4fa3fb300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8181101561274957600088888381811061266f5761266f61462e565b905060200201359050600181036126ae576126a88d8888858181106126965761269661462e565b9050602002810190611cdb91906148d4565b50612740565b600281036126de576126a88d8888858181106126cc576126cc61462e565b9050602002810190611d9491906148d4565b6003810361270e576126a88d8888858181106126fc576126fc61462e565b9050602002810190611df691906148d4565b600481036127405761273e8d88888581811061272c5761272c61462e565b9050602002810190611e5891906148d4565b505b50600101612653565b5082828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929e9d5050505050505050505050505050565b60405163468721a760e01b81526000906001600160a01b0385169063468721a7906127c690869085908790600190600401614741565b6020604051808303816000875af11580156127e5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061280991906147fd565b9050806107ec57604051632b3f6d1160e21b815260040160405180910390fd5b6060600061283983850185614a61565b9250905061284a6002338388613750565b509392505050565b33600090815260036020526040812060609161287084860186614a61565b93509050610c33828288613847565b6060600061288f83850185614aa7565b3360009081526004602090815260408083206001600160e01b031990951683529390529190912080546001600160a01b031916905595945050505050565b60606000806128de84860186614a1d565b9450909250905060008260018111156128f9576128f9614a4b565b14801561290e57506001600160e01b03198116155b156129355733600090815260056020526040902080546001600160a01b0319169055610c33565b600182600181111561294957612949614a4b565b036125b0573360009081526006602090815260408083206001600160e01b031985168452909152902080546001600160a01b0319169055610c33565b60405163468721a760e01b81526000906001600160a01b0385169063468721a7906129bb90869085908790600190600401614741565b6020604051808303816000875af11580156129da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129fe91906147fd565b9050806107ec57604080516001600160a01b0386168152600060208201527fb8bc84bd77f5eb08210b8eb20fd63b3ec6a7992d277ab94663bae0e066f792ac910160405180910390a150505050565b336000908152600160205260409020546001600160a01b03168015612aec576040517f529562a10000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0384811660248301526044820184905282169063529562a19060640160006040518083038186803b158015612ad357600080fd5b505afa158015612ae7573d6000803e3d6000fd5b505050505b505050565b60606001600160f81b03198516612cee576001600160f81b03198416600160f81b03612b355782358301602081019035612b2c33838361391c565b92505050610847565b6001600160f81b03198416612bf357600080366000612b548787612f14565b6040805160018082528183019092529498509296509094509250816020015b6060815260200190600190039081612b73579050509450612bcc33858585858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061175a92505050565b85600081518110612bdf57612bdf61462e565b602002602001018190525050505050610847565b6001600160f81b031980851603612cc9576000612c1360148285876143b4565b612c1c916143de565b60601c9050366000612c3185601481896143b4565b604080516001808252818301909252929450909250816020015b6060815260200190600190039081612c4b579050509350612ca3338484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506139ae92505050565b84600081518110612cb657612cb661462e565b6020026020010181905250505050610847565b604051632e5bf3f960e21b81526001600160f81b03198516600482015260240161068b565b6001600160f81b03198516600160f81b03612e7f576001600160f81b03198416600160f81b03612d385782358301602081019035612d2d338383613a4f565b935061084792505050565b6001600160f81b03198416612dcf57600080366000612d578787612f14565b6040805160018082528183019092529498509296509094509250816020015b6060815260200190600190039081612d76579050509450612bcc33858585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250613aea92505050565b6001600160f81b031980851603612cc9576000612def60148285876143b4565b612df8916143de565b60601c9050366000612e0d85601481896143b4565b604080516001808252818301909252929450909250816020015b6060815260200190600190039081612e27579050509350612ca3338484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250613bbc92505050565b6040516308c3ee0360e11b81526001600160f81b03198616600482015260240161068b565b600054604051612aec9185916001600160a01b0390911690612ecc9086908690602401614ac5565b60408051601f198184030181529190526020810180516001600160e01b03167f3f707e6b00000000000000000000000000000000000000000000000000000000179052612790565b6000803681612f2660148287896143b4565b612f2f916143de565b60601c9350612f426034601487896143b4565b612f4b91614b70565b9250612f5a85603481896143b4565b949793965094505050565b600054604051612aec9185916001600160a01b0390911690612f8d9086908690602401614ac5565b60408051601f198184030181529190526020810180516001600160e01b03167f50c8902200000000000000000000000000000000000000000000000000000000179052612985565b60405163468721a760e01b81526000906001600160a01b0386169063468721a79061300a908790879087908790600401614741565b6020604051808303816000875af1158015613029573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061304d91906147fd565b90508061198d57604080516001600160a01b0387168152600060208201527fb8bc84bd77f5eb08210b8eb20fd63b3ec6a7992d277ab94663bae0e066f792ac910160405180910390a15050505050565b606060006001600160a01b0384166001148015906130c257506130c0858561328e565b155b156130eb57604051637c84ecfb60e01b81526001600160a01b038516600482015260240161068b565b8260000361310c5760405163f725081760e01b815260040160405180910390fd5b8267ffffffffffffffff8111156131255761312561427c565b60405190808252806020026020018201604052801561314e578160200160208202803683370190505b506001600160a01b03808616600090815260208890526040812054929450911691505b6001600160a01b0382161580159061319357506001600160a01b038216600114155b801561319e57508381105b156131f857818382815181106131b6576131b661462e565b6001600160a01b0392831660209182029290920181019190915292811660009081529287905260409092205490911690806131f081614931565b915050613171565b6001600160a01b0382166001148015906132125750600081115b1561323e578261322360018361494a565b815181106132335761323361462e565b602002602001015191505b80835250935093915050565b600060016001600160a01b038316148015906108475750506001600160a01b0390811660009081526020938452604080822093831682529290935291205416151590565b600060016001600160a01b03831614801590610b105750506001600160a01b03908116600090815260209290925260409091205416151590565b6000808360018111156132dd576132dd614a4b565b1480156132f257506001600160e01b03198216155b156133125750336000908152600560205260409020546001600160a01b03165b600183600181111561332657613326614a4b565b0361075057503360009081526006602090815260408083206001600160e01b0319851684529091529020546001600160a01b031692915050565b6060600080368181816133776101008901896148d4565b909250905061338a6006600083856143b4565b61339391614b8e565b60d01c95506133a6600c600683856143b4565b6133af91614b8e565b60d01c94506133c181600c81856143b4565b9350935050506000604051806101c001604052807f84aa190356f56b8c87825f54884392a9907c23ee0f8e1ea86336b763faf021bd60001b8152602001336001600160a01b031681526020018860200135815260200188806040019061342791906148d4565b604051613435929190614bd4565b604051908190039020815260200161345060608a018a6148d4565b60405161345e929190614bd4565b6040518091039020815260200161347489613c8e565b815260200161348289613cac565b81526020018860a00135815260200161349a89613cbc565b81526020016134a889613cda565b81526020016134ba60e08a018a6148d4565b6040516134c8929190614bd4565b604051809103902081526020018665ffffffffffff1681526020018565ffffffffffff1681526020016135086f71727de22e5e9d8baf0edac6f37da03290565b6001600160a01b031690526101c081209091507f1900000000000000000000000000000000000000000000000000000000000000600160f81b61359d604080517f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a794692186020820152469181019190915230606082015260009060800160405160208183030381529060405280519060200120905090565b6040516001600160f81b031993841660208201529290911660218301526022820152604281018290526062016040516020818303038152906040529650505091939590929450565b600060d08265ffffffffffff16901b60a08465ffffffffffff16901b8561360d576000613610565b60015b60ff161717949350505050565b60016000908152602082905260409020546001600160a01b031615613655576040516329e42f3360e11b815260040160405180910390fd5b60016000818152602092909252604090912080546001600160a01b0319169091179055565b6001600160a01b038116158061369957506001600160a01b0381166001145b156136c257604051637c84ecfb60e01b81526001600160a01b038216600482015260240161068b565b6001600160a01b03818116600090815260208490526040902054161561370657604051631034f46960e21b81526001600160a01b038216600482015260240161068b565b60016000818152602093909352604080842080546001600160a01b039485168087529286208054959091166001600160a01b03199586161790559190935280549091169091179055565b6001600160a01b038116158061376f57506001600160a01b0381166001145b1561379857604051637c84ecfb60e01b81526001600160a01b038316600482015260240161068b565b6001600160a01b0382811660009081526020868152604080832087851684529091529020548116908216146137eb57604051637c84ecfb60e01b81526001600160a01b038216600482015260240161068b565b6001600160a01b039081166000908152602085815260408083209584168084528683528184208054968616855297835281842090845282529091208054939092166001600160a01b031993841617909155919091528154169055565b6001600160a01b038116158061386657506001600160a01b0381166001145b1561388f57604051637c84ecfb60e01b81526001600160a01b038316600482015260240161068b565b6001600160a01b038281166000908152602085905260409020548116908216146138d757604051637c84ecfb60e01b81526001600160a01b038216600482015260240161068b565b6001600160a01b0390811660008181526020949094526040808520805494841686529085208054949093166001600160a01b0319948516179092559092528154169055565b600080546040516060929161398f9187916001600160a01b0316906139479088908890602401614ac5565b60408051601f198184030181529190526020810180516001600160e01b03167f61085573000000000000000000000000000000000000000000000000000000001790526139ae565b9050808060200190518101906139a59190614c93565b95945050505050565b60606000846001600160a01b0316635229073f8560008660016040518563ffffffff1660e01b81526004016139e69493929190614741565b6000604051808303816000875af1158015613a05573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613a2d919081019061478d565b925090508061284a57604051632b3f6d1160e21b815260040160405180910390fd5b6060806000613ac78660008054906101000a90046001600160a01b03168787604051602401613a7f929190614ac5565b60408051601f198184030181529190526020810180516001600160e01b03167f9abb6e1700000000000000000000000000000000000000000000000000000000179052613bbc565b905080806020019051810190613add9190614cc8565b9097909650945050505050565b60606000856001600160a01b0316635229073f86868660006040518563ffffffff1660e01b8152600401613b219493929190614741565b6000604051808303816000875af1158015613b40573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613b68919081019061478d565b92509050806117fa57604080516001600160a01b0388168152600060208201527fb8bc84bd77f5eb08210b8eb20fd63b3ec6a7992d277ab94663bae0e066f792ac910160405180910390a150949350505050565b60606000846001600160a01b0316635229073f8560008660016040518563ffffffff1660e01b8152600401613bf49493929190614741565b6000604051808303816000875af1158015613c13573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613c3b919081019061478d565b925090508061284a57604080516001600160a01b0387168152600060208201527fb8bc84bd77f5eb08210b8eb20fd63b3ec6a7992d277ab94663bae0e066f792ac910160405180910390a1509392505050565b60006fffffffffffffffffffffffffffffffff608083013516610750565b6000610750826080013560801c90565b60006fffffffffffffffffffffffffffffffff60c083013516610750565b600060c082013560801c610750565b6001600160a01b0381168114613cfe57600080fd5b50565b803561175581613ce9565b60008083601f840112613d1e57600080fd5b50813567ffffffffffffffff811115613d3657600080fd5b60208301915083602082850101111561060357600080fd5b60008060008060608587031215613d6457600080fd5b843593506020850135613d7681613ce9565b9250604085013567ffffffffffffffff811115613d9257600080fd5b613d9e87828801613d0c565b95989497509550505050565b600080600060408486031215613dbf57600080fd5b83359250602084013567ffffffffffffffff811115613ddd57600080fd5b613de986828701613d0c565b9497909650939450505050565b600080600060608486031215613e0b57600080fd5b833567ffffffffffffffff811115613e2257600080fd5b84016101208187031215613e3557600080fd5b95602085013595506040909401359392505050565b60008083601f840112613e5c57600080fd5b50813567ffffffffffffffff811115613e7457600080fd5b6020830191508360208260051b850101111561060357600080fd5b600060608284031215613ea157600080fd5b50919050565b600080600080600080600080600060a08a8c031215613ec557600080fd5b893567ffffffffffffffff80821115613edd57600080fd5b613ee98d838e01613e4a565b909b50995060208c0135915080821115613f0257600080fd5b613f0e8d838e01613e4a565b909950975060408c0135915080821115613f2757600080fd5b613f338d838e01613e4a565b909750955060608c0135915080821115613f4c57600080fd5b613f588d838e01613e4a565b909550935060808c0135915080821115613f7157600080fd5b50613f7e8c828d01613e8f565b9150509295985092959850929598565b60008060208385031215613fa157600080fd5b823567ffffffffffffffff811115613fb857600080fd5b613fc485828601613e4a565b90969095509350505050565b60008060408385031215613fe357600080fd5b8235613fee81613ce9565b946020939093013593505050565b604080825283519082018190526000906020906060840190828701845b8281101561403e5781516001600160a01b031684529284019290840190600101614019565b50505080925050506001600160a01b03831660208301529392505050565b60005b8381101561407757818101518382015260200161405f565b50506000910152565b6000815180845261409881602086016020860161405c565b601f01601f19169290920160200192915050565b602081526000610b106020830184614080565b6001600160e01b031981168114613cfe57600080fd5b6000602082840312156140e757600080fd5b8135610b10816140bf565b60006020828403121561410457600080fd5b5035919050565b600060208083016020845280855180835260408601915060408160051b87010192506020870160005b8281101561416257603f19888603018452614150858351614080565b94509285019290850190600101614134565b5092979650505050505050565b6000806040838503121561418257600080fd5b823561418d81613ce9565b9150602083013561419d81613ce9565b809150509250929050565b803560ff8116811461175557600080fd5b600080600080606085870312156141cf57600080fd5b84356141da81613ce9565b9350602085013567ffffffffffffffff8111156141f657600080fd5b61420287828801613e4a565b90945092506142159050604086016141a8565b905092959194509250565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b0385168152836020820152606060408201526000614272606083018486614220565b9695505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156142bb576142bb61427c565b604052919050565b600067ffffffffffffffff8211156142dd576142dd61427c565b50601f01601f191660200190565b60006142fe6142f9846142c3565b614292565b905082815283838301111561431257600080fd5b610b1083602083018461405c565b600082601f83011261433157600080fd5b610b10838351602085016142eb565b60006020828403121561435257600080fd5b815167ffffffffffffffff81111561436957600080fd5b61084784828501614320565b8284823760609190911b6bffffffffffffffffffffffff19169101908152601401919050565b6000602082840312156143ad57600080fd5b5051919050565b600080858511156143c457600080fd5b838611156143d157600080fd5b5050820193919092039150565b6bffffffffffffffffffffffff19813581811691601485101561440b5780818660140360031b1b83161692505b505092915050565b84815260606020820152600061442c6060830186614080565b828103604084015261443f818587614220565b979650505050505050565b60006020828403121561445c57600080fd5b8151610b10816140bf565b6000808335601e1984360301811261447e57600080fd5b830160208101925035905067ffffffffffffffff81111561449e57600080fd5b80360382131561060357600080fd5b604081526144ce604082016144c185613d01565b6001600160a01b03169052565b6020830135606082015260006144e76040850185614467565b6101208060808601526144ff61016086018385614220565b925061450e6060880188614467565b9250603f19808786030160a0880152614528858584614220565b9450608089013560c088015260a089013560e0880152610100935060c08901358488015261455960e08a018a614467565b925081888703018489015261456f868483614220565b95505061457e848a018a614467565b945092508087860301610140880152505061459a838383614220565b93505050508260208301529392505050565b6000602082840312156145be57600080fd5b8135610b1081613ce9565b6000808335601e198436030181126145e057600080fd5b83018035915067ffffffffffffffff8211156145fb57600080fd5b6020019150600581901b360382131561060357600080fd5b60006020828403121561462557600080fd5b610b10826141a8565b634e487b7160e01b600052603260045260246000fd5b60008235603e1983360301811261465a57600080fd5b9190910192915050565b8381526001600160a01b03831660208201526060604082015260006139a56060830184614080565b60006020828403121561469e57600080fd5b815167ffffffffffffffff8111156146b557600080fd5b8201601f810184136146c657600080fd5b610847848251602084016142eb565b7f736166652d00000000000000000000000000000000000000000000000000000081526000825161470d81600585016020870161405c565b7f2e657263373537392e76302e302e3100000000000000000000000000000000006005939091019283015250601401919050565b6001600160a01b03851681528360208201526080604082015260006147696080830185614080565b905060ff8316606083015295945050505050565b8051801515811461175557600080fd5b600080604083850312156147a057600080fd5b6147a98361477d565b9150602083015167ffffffffffffffff8111156147c557600080fd5b6147d185828601614320565b9150509250929050565b6001600160a01b03831681526040602082015260006108476040830184614080565b60006020828403121561480f57600080fd5b610b108261477d565b80356002811061175557600080fd5b6000806040838503121561483a57600080fd5b61484383614818565b9150602083013561419d816140bf565b8281526000825161486b81602085016020870161405c565b919091016020019392505050565b60ff8416815260406020808301829052908201839052600090849060608401835b868110156148c85783356148ad81613ce9565b6001600160a01b03168252928201929082019060010161489a565b50979650505050505050565b6000808335601e198436030181126148eb57600080fd5b83018035915067ffffffffffffffff82111561490657600080fd5b60200191503681900382131561060357600080fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016149435761494361491b565b5060010190565b818103818111156107505761075061491b565b600082601f83011261496e57600080fd5b813561497c6142f9826142c3565b81815284602083860101111561499157600080fd5b816020850160208301376000918101602001919091529392505050565b6000806000606084860312156149c357600080fd5b83356149ce816140bf565b925060208401356001600160f81b0319811681146149eb57600080fd5b9150604084013567ffffffffffffffff811115614a0757600080fd5b614a138682870161495d565b9150509250925092565b600080600060608486031215614a3257600080fd5b614a3b84614818565b925060208401356149eb816140bf565b634e487b7160e01b600052602160045260246000fd5b60008060408385031215614a7457600080fd5b8235614a7f81613ce9565b9150602083013567ffffffffffffffff811115614a9b57600080fd5b6147d18582860161495d565b60008060408385031215614aba57600080fd5b8235614a7f816140bf565b60208082528181018390526000906040808401600586901b850182018785805b89811015614b6157888403603f190185528235368c9003605e19018112614b0a578283fd5b8b0160608135614b1981613ce9565b6001600160a01b031686528189013589870152614b3888830183614467565b92508189880152614b4c8288018483614220565b978a0197965050509287019250600101614ae5565b50919998505050505050505050565b8035602083101561075057600019602084900360031b1b1692915050565b7fffffffffffff0000000000000000000000000000000000000000000000000000813581811691600685101561440b5760069490940360031b84901b1690921692915050565b8183823760009101908152919050565b600067ffffffffffffffff821115614bfe57614bfe61427c565b5060051b60200190565b600082601f830112614c1957600080fd5b81516020614c296142f983614be4565b82815260059290921b84018101918181019086841115614c4857600080fd5b8286015b84811015614c8857805167ffffffffffffffff811115614c6c5760008081fd5b614c7a8986838b0101614320565b845250918301918301614c4c565b509695505050505050565b600060208284031215614ca557600080fd5b815167ffffffffffffffff811115614cbc57600080fd5b61084784828501614c08565b60008060408385031215614cdb57600080fd5b825167ffffffffffffffff80821115614cf357600080fd5b818501915085601f830112614d0757600080fd5b81516020614d176142f983614be4565b82815260059290921b84018101918181019089841115614d3657600080fd5b948201945b83861015614d5b57614d4c8661477d565b82529482019490820190614d3b565b91880151919650909350505080821115614d7457600080fd5b506147d185828601614c0856fea2646970667358221220310490ce1c9ce1b361eae1667f3c75f8c90f8265fa8bcd2024bdff0a007dc05564736f6c63430008170033608060405234801561001057600080fd5b506109eb806100206000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80636a2216571161005b5780636a221657146100df57806378272525146100f25780639517e29f146101055780639abb6e171461011857600080fd5b80633f707e6b1461008257806350c890221461009757806361085573146100bf575b600080fd5b6100956100903660046105fb565b610139565b005b6100aa6100a53660046105fb565b6101a3565b60405190151581526020015b60405180910390f35b6100d26100cd3660046105fb565b610212565b6040516100b691906106f8565b6100956100ed366004610744565b6102cc565b610095610100366004610806565b6102ef565b610095610113366004610806565b6103b1565b61012b6101263660046105fb565b610469565b6040516100b692919061088d565b8060005b8181101561019d5736848483818110610158576101586108e7565b905060200281019061016a91906108fd565b905061019361017c602083018361091d565b602083013561018e6040850185610938565b610593565b505060010161013d565b50505050565b600081815b8181101561020a57368585838181106101c3576101c36108e7565b90506020028101906101d591906108fd565b90506101fe6101e7602083018361091d565b60208301356101f96040850185610938565b6105c9565b509350506001016101a8565b505092915050565b6060818067ffffffffffffffff81111561022e5761022e61072e565b60405190808252806020026020018201604052801561026157816020015b606081526020019060019003908161024c5790505b50915060005b8181101561020a5736858583818110610282576102826108e7565b905060200281019061029491906108fd565b90506102a661017c602083018361091d565b8483815181106102b8576102b86108e7565b602090810291909101015250600101610267565b604051600080835160208501865afa3d6000833e80156102ea573d82f35b503d81fd5b6040517f8a91b0e30000000000000000000000000000000000000000000000000000000081526001600160a01b03841690638a91b0e3906103369085908590600401610986565b600060405180830381600087803b15801561035057600080fd5b505af1158015610364573d6000803e3d6000fd5b5050604080518781526001600160a01b03871660208201527f341347516a9de374859dfda710fa4828b2d48cb57d4fbe4c1149612b8e02276e93500190505b60405180910390a150505050565b6040517f6d61fe700000000000000000000000000000000000000000000000000000000081526001600160a01b03841690636d61fe70906103f89085908590600401610986565b600060405180830381600087803b15801561041257600080fd5b505af1158015610426573d6000803e3d6000fd5b5050604080518781526001600160a01b03871660208201527fd21d0b289f126c4b473ea641963e766833c2f13866e4ff480abd787c100ef12393500190506103a3565b606080828067ffffffffffffffff8111156104865761048661072e565b6040519080825280602002602001820160405280156104b957816020015b60608152602001906001900390816104a45790505b5091508067ffffffffffffffff8111156104d5576104d561072e565b6040519080825280602002602001820160405280156104fe578160200160208202803683370190505b50925060005b8181101561058a573686868381811061051f5761051f6108e7565b905060200281019061053191906108fd565b90506105436101e7602083018361091d565b868481518110610555576105556108e7565b6020026020010186858151811061056e5761056e6108e7565b6020908102919091010191909152901515905250600101610504565b50509250929050565b60405181838237600038838387895af16105b0573d6000823e3d81fd5b3d8152602081013d6000823e3d01604052949350505050565b604051600090828482376000388483888a5af11591503d8152602081013d6000823e3d81016040525094509492505050565b6000806020838503121561060e57600080fd5b823567ffffffffffffffff8082111561062657600080fd5b818501915085601f83011261063a57600080fd5b81358181111561064957600080fd5b8660208260051b850101111561065e57600080fd5b60209290920196919550909350505050565b600082825180855260208086019550808260051b8401018186016000805b858110156106ea57601f1980888603018b5283518051808752845b818110156106c4578281018901518882018a015288016106a9565b5086810188018590529b87019b601f01909116909401850193509184019160010161068e565b509198975050505050505050565b60208152600061070b6020830184610670565b9392505050565b80356001600160a01b038116811461072957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561075757600080fd5b61076083610712565b9150602083013567ffffffffffffffff8082111561077d57600080fd5b818501915085601f83011261079157600080fd5b8135818111156107a3576107a361072e565b604051601f8201601f19908116603f011681019083821181831017156107cb576107cb61072e565b816040528281528860208487010111156107e457600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6000806000806060858703121561081c57600080fd5b8435935061082c60208601610712565b9250604085013567ffffffffffffffff8082111561084957600080fd5b818701915087601f83011261085d57600080fd5b81358181111561086c57600080fd5b88602082850101111561087e57600080fd5b95989497505060200194505050565b604080825283519082018190526000906020906060840190828701845b828110156108c85781511515845292840192908401906001016108aa565b50505083810360208501526108dd8186610670565b9695505050505050565b634e487b7160e01b600052603260045260246000fd5b60008235605e1983360301811261091357600080fd5b9190910192915050565b60006020828403121561092f57600080fd5b61070b82610712565b6000808335601e1984360301811261094f57600080fd5b83018035915067ffffffffffffffff82111561096a57600080fd5b60200191503681900382131561097f57600080fd5b9250929050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f1916010191905056fea2646970667358221220b34bcdfa8e8aa5a58ed221d3799926e5a9a47e630242a4d564baf7fa090efe3364736f6c63430008170033",deployedBytecode$2="0x6080604052600436106101635760003560e01c8063b0d691fe116100c0578063e9ae5c5311610074578063eab77e1711610059578063eab77e1714610482578063f2dc691d146104a2578063f698da25146104c25761016a565b8063e9ae5c531461044f578063ea5f61d0146104625761016a565b8063d03c7914116100a5578063d03c7914146103ef578063d691c9641461040f578063d828435d1461042f5761016a565b8063b0d691fe14610380578063b875d5d8146103a35761016a565b80636a5e1515116101175780639517e29f116100fc5780639517e29f146103385780639cfd7cff1461034b578063a71763a81461036d5761016a565b80636a5e1515146102f7578063855713681461030a5761016a565b80631626ba7e116101485780631626ba7e1461028857806319822f7c146102c1578063540fb4f9146102e25761016a565b80630a664dba14610214578063112d3a7d146102585761016a565b3661016a57005b600036606060003560e01c63bc197c81811463f23a6e6182141763150b7a028214171561019b57806020526020603cf35b5033600090815260056020908152604080832054600683528184206001600160e01b031985351680865293529083205491926001600160a01b039182169290911690806101e8848461052b565b915091506101f6888861060a565b955061020484848484610756565b5050505050915050805190602001f35b34801561022057600080fd5b50336000908152600560205260409020546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b34801561026457600080fd5b50610278610273366004613d4e565b6107f2565b604051901515815260200161024f565b34801561029457600080fd5b506102a86102a3366004613daa565b61084f565b6040516001600160e01b0319909116815260200161024f565b6102d46102cf366004613df6565b610b17565b60405190815260200161024f565b6102f56102f0366004613ea7565b610c3c565b005b6102f5610305366004613f8e565b610c89565b34801561031657600080fd5b5061032a610325366004613fd0565b610cea565b60405161024f929190613ffc565b6102f5610346366004613d4e565b610d06565b34801561035757600080fd5b50610360610e52565b60405161024f91906140ac565b6102f561037b366004613d4e565b610ee4565b34801561038c57600080fd5b506f71727de22e5e9d8baf0edac6f37da03261023b565b3480156103af57600080fd5b5061023b6103be3660046140d5565b3360009081526006602090815260408083206001600160e01b0319909416835292905220546001600160a01b031690565b3480156103fb57600080fd5b5061027861040a3660046140f2565b611072565b61042261041d366004613daa565b61111b565b60405161024f919061410b565b34801561043b57600080fd5b506102d461044a36600461416f565b61120f565b6102f561045d366004613daa565b6112e6565b34801561046e57600080fd5b5061032a61047d366004613fd0565b61168b565b34801561048e57600080fd5b506102f561049d3660046141b9565b6116b5565b3480156104ae57600080fd5b506102786104bd3660046140f2565b61170b565b3480156104ce57600080fd5b506102d4604080517f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a794692186020820152469181019190915230606082015260009060800160405160208183030381529060405280519060200120905090565b6060806001600160a01b038416156105c6576105ad3385600036601319013560601c5b346000366040516024016105659493929190614249565b60408051601f198184030181529190526020810180516001600160e01b03167fd68f60250000000000000000000000000000000000000000000000000000000017905261175a565b9150818060200190518101906105c39190614340565b91505b6001600160a01b03831615610603576105ea3384600036601319013560601c61054e565b9050808060200190518101906106009190614340565b90505b9250929050565b3360009081526004602090815260408083206001600160e01b0319843516845290915290208054606091906001600160a01b03811690600160a01b900460f81b81610694576040517f48c9ceda0000000000000000000000000000000000000000000000000000000081526001600160e01b03196000351660048201526024015b60405180910390fd5b6001600160f81b031981167ffe0000000000000000000000000000000000000000000000000000000000000003610705576106fb3383888836601319013560601c6040516020016106e793929190614375565b604051602081830303815290604052611803565b9350505050610750565b6001600160f81b0319811661074c576106fb33836000898936601319013560601c60405160200161073893929190614375565b60405160208183030381529060405261175a565b5050505b92915050565b6001600160a01b038416156107c5576107c5338560008560405160240161077d91906140ac565b60408051601f198184030181529190526020810180516001600160e01b03167f173bf7da000000000000000000000000000000000000000000000000000000001790526118f5565b6001600160a01b038316156107ec576107ec338460008460405160240161077d91906140ac565b50505050565b60006001850361080c5761080584611994565b9050610847565b6002850361081d57610805846119a2565b60038503610830576108058484846119bb565b6004850361084357610805848484611a08565b5060005b949350505050565b600033821580156108e057506040517f5ae6bd37000000000000000000000000000000000000000000000000000000008152600481018690526001600160a01b03821690635ae6bd3790602401602060405180830381865afa1580156108b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108dd919061439b565b15155b156108f55750630b135d3f60e11b9050610b10565b600061090460148286886143b4565b61090d916143de565b60601c9050801580610925575061092381611994565b155b15610a7b5760006109f0836001600160a01b031663f698da256040518163ffffffff1660e01b8152600401602060405180830381865afa15801561096d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610991919061439b565b60408051602081018b90527f60b3cbf8b4a223d68d641b3b6ddf9a298e7f33710cf3d3a9d1146b5a6150fbca910160408051601f1981840301815282825280516020918201209083015201604051602081830303815290604052611a43565b805160208201209091506001600160a01b03841663934f3a118284610a188a6014818e6143b4565b6040518563ffffffff1660e01b8152600401610a379493929190614413565b60006040518083038186803b158015610a4f57600080fd5b505afa158015610a63573d6000803e3d6000fd5b50630b135d3f60e11b9750610b109650505050505050565b6000610af4338336601319013560601c8a610a998a6014818e6143b4565b604051602401610aac9493929190614249565b60408051601f198184030181529190526020810180516001600160e01b03167ff551e2ee00000000000000000000000000000000000000000000000000000000179052611803565b905080806020019051810190610b0a919061444a565b93505050505b9392505050565b600060131936013560601c6f71727de22e5e9d8baf0edac6f37da03214610b5157604051635629665f60e11b815260040160405180910390fd5b6020840135606081901c90811580610b6f5750610b6d82611994565b155b15610b8457610b7d86611abd565b9250610c02565b6000610be8338460008a8a604051602401610ba09291906144ad565b60408051601f198184030181529190526020810180516001600160e01b03167f970032030000000000000000000000000000000000000000000000000000000017905261175a565b905080806020019051810190610bfe919061439b565b9350505b8315610c3357610c33336f71727de22e5e9d8baf0edac6f37da03286604051806020016040528060008152506118f5565b50509392505050565b610c6e610c4c60208301836145ac565b610c5960208401846145c9565b610c696060860160408701614613565b611b7c565b610c7e8989898989898989611c43565b505050505050505050565b610c94600233611e9f565b8060005b818110156107ec5736848483818110610cb357610cb361462e565b9050602002810190610cc59190614644565b9050610ce133610cd860208401846145ac565b60029190611f1a565b50600101610c98565b60606000610cfb600233868661200f565b915091509250929050565b3360009081526005602090815260408083205460068352818420639517e29f60e01b80865293529083205491926001600160a01b03918216929091169080610d4e848461052b565b91509150606060018a03610d6e57610d678989896121d4565b9050610dec565b60028a03610d8157610d67898989612230565b60038a03610d9457610d6789898961229a565b60048a03610da757610d67898989612457565b89610db757610d678989896125ef565b6040517f41c38b30000000000000000000000000000000000000000000000000000000008152600481018b905260240161068b565b600054604051610e459133916001600160a01b0390911690610e16908e908e908790602401614664565b60408051601f198184030181529190526020810180516001600160e01b0316639517e29f60e01b179052612790565b50610c7e84848484610756565b60606000336001600160a01b031663ffa1ad746040518163ffffffff1660e01b8152600401600060405180830381865afa158015610e94573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610ebc919081019061468c565b905080604051602001610ecf91906146d5565b60405160208183030381529060405291505090565b33600090815260056020908152604080832054600683528184207fa71763a80000000000000000000000000000000000000000000000000000000080865293529083205491926001600160a01b03918216929091169080610f45848461052b565b91509150610f606f71727de22e5e9d8baf0edac6f37da03290565b6001600160a01b031636601319013560601c6001600160a01b03161480610f8e57503360131936013560601c145b610fab57604051635629665f60e11b815260040160405180910390fd5b606060018a03610fc757610fc0898989612829565b9050611000565b60028a03610fda57610fc0898989612852565b60038a03610fed57610fc089898961287f565b60048a03610db757610fc08989896128cd565b600054604051610e459133916001600160a01b039091169061102a908e908e908790602401614664565b60408051601f198184030181529190526020810180516001600160e01b03167f7827252500000000000000000000000000000000000000000000000000000000179052612985565b600081600881901b6001600160f81b03198216600160f81b0361109857600192506110d4565b6001600160f81b031982166110b057600192506110d4565b6001600160f81b0319808316036110ca57600192506110d4565b5060009392505050565b8280156110e957506001600160f81b03198116155b156110f5575050919050565b82801561110f57506001600160f81b03198116600160f81b145b156110ca575050919050565b606061112d366013190135821c6119a2565b61116d576040517fb927fe5e00000000000000000000000000000000000000000000000000000000815260131936013560601c600482015260240161068b565b33600090815260056020908152604080832054600683528184207fd691c9640000000000000000000000000000000000000000000000000000000080865293529083205491926001600160a01b039182169290911690806111ce848461052b565b915091503360026111df8282612a4d565b8a600881901b6111f181838e8e612af1565b99505050505061120384848484610756565b50505050509392505050565b6000602082901b77ffffffffffffffffffffffffffffffffffffffff00000000166f71727de22e5e9d8baf0edac6f37da0326040517f35567e1a0000000000000000000000000000000000000000000000000000000081526001600160a01b03868116600483015277ffffffffffffffffffffffffffffffffffffffffffffffff8416602483015291909116906335567e1a90604401602060405180830381865afa1580156112c2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610847919061439b565b33600090815260056020908152604080832054600683528184207fe9ae5c530000000000000000000000000000000000000000000000000000000080865293529083205491926001600160a01b03918216929091169080611347848461052b565b915091506113626f71727de22e5e9d8baf0edac6f37da03290565b6001600160a01b031636601319013560601c6001600160a01b0316148061139057503360131936013560601c145b6113ad57604051635629665f60e11b815260040160405180910390fd5b87600881901b336001600160f81b0319821661151c576001600160f81b03198316600160f81b036113f45789358a016020810190356113ed838383612ea4565b5050611672565b6001600160f81b03198316611466576000803660006114138e8e612f14565b935093509350935061145d85858585858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506118f592505050565b50505050611672565b6001600160f81b0319808416036114f75760006114866014828c8e6143b4565b61148f916143de565b60601c90503660008c8c60149080926114aa939291906143b4565b915091506114ef848484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061279092505050565b505050611672565b604051632e5bf3f960e21b81526001600160f81b03198416600482015260240161068b565b6001600160f81b03198216600160f81b0361164d576001600160f81b03198316600160f81b0361155b5789358a016020810190356113ed838383612f65565b6001600160f81b031983166115c45760008036600061157a8e8e612f14565b935093509350935061145d85858585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612fd592505050565b6001600160f81b0319808416036114f75760006115e46014828c8e6143b4565b6115ed916143de565b60601c90503660008c8c6014908092611608939291906143b4565b915091506114ef848484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061298592505050565b6040516308c3ee0360e11b81526001600160f81b03198316600482015260240161068b565b50505061168184848484610756565b5050505050505050565b336000908152600360205260408120606091906116a981868661309d565b92509250509250929050565b60131936013560601c6f71727de22e5e9d8baf0edac6f37da03214806116e257503360131936013560601c145b6116ff57604051635629665f60e11b815260040160405180910390fd5b6107ec84848484611b7c565b60006001820361171d57506001919050565b6002820361172d57506001919050565b6003820361173d57506001919050565b6004820361174d57506001919050565b506000919050565b919050565b60606000856001600160a01b0316635229073f86868660006040518563ffffffff1660e01b81526004016117919493929190614741565b6000604051808303816000875af11580156117b0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526117d8919081019061478d565b92509050806117fa57604051632b3f6d1160e21b815260040160405180910390fd5b50949350505050565b60606000838360405160240161181a9291906147db565b60408051601f198184030181529181526020820180516001600160e01b03167f6a221657000000000000000000000000000000000000000000000000000000001790526000805491519293509161187f916001600160a01b03169084906024016147db565b60408051601f19818403018152919052602080820180516001600160e01b03167fb4faba090000000000000000000000000000000000000000000000000000000017815282519293509091600091895afa5060203d036040519350808401604052806020853e50600051610c3357825160208401fd5b60405163468721a760e01b81526000906001600160a01b0386169063468721a79061192a908790879087908790600401614741565b6020604051808303816000875af1158015611949573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196d91906147fd565b90508061198d57604051632b3f6d1160e21b815260040160405180910390fd5b5050505050565b60006107506002338461324a565b336000908152600360205260408120610b10818461328e565b6000806119ca838501856140d5565b3360009081526004602090815260408083206001600160e01b0319909416835292905220546001600160a01b03908116908616149150509392505050565b60008080611a1884860186614827565b915091506000611a2883836132c8565b6001600160a01b039081169088161493505050509392505050565b6060601960f81b600160f81b858585604051602001611a63929190614853565b60408051808303601f190181529082905280516020918201206001600160f81b0319958616918301919091529290931660218401526022830152604282015260620160405160208183030381529060405290509392505050565b600080600080366000611acf87613360565b845160208601206040517f934f3a11000000000000000000000000000000000000000000000000000000008152959a5093985091965094509250339163934f3a1191611b2391899087908790600401614413565b60006040518083038186803b158015611b3b57600080fd5b505afa925050508015611b4c575060015b611b6357611b5c600184866135e5565b9550611b72565b611b6f600084866135e5565b95505b5050505050919050565b3360008181526001602052604080822080546001600160a01b0319166001600160a01b03891617905551611c0792918791611bbf90869089908990602401614879565b60408051601f198184030181529190526020810180516001600160e01b03167ff05c04e1000000000000000000000000000000000000000000000000000000001790526118f5565b6040516001600160a01b0385169033907f9452c8fb077c3ea8f28a77c87488af657b1e44d010ad9a5992d73870da040e9490600090a350505050565b3360009081527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e0602052604090205487906001600160a01b0316611cf057611c8c600233611e9f565b60005b81811015611cea57368a8a83818110611caa57611caa61462e565b9050602002810190611cbc9190614644565b9050611ce0611cce60208301836145ac565b611cdb60208401846148d4565b6121d4565b5050600101611c8f565b50611d2a565b8015611d2a576040517fd8e3ed1b00000000000000000000000000000000000000000000000000000000815233600482015260240161068b565b336000908152600360205260409020611d428161361d565b86915060005b82811015611da35736898983818110611d6357611d6361462e565b9050602002810190611d759190614644565b9050611d99611d8760208301836145ac565b611d9460208401846148d4565b612230565b5050600101611d48565b5084915060005b82811015611e055736878783818110611dc557611dc561462e565b9050602002810190611dd79190614644565b9050611dfb611de960208301836145ac565b611df660208401846148d4565b61229a565b5050600101611daa565b5082915060005b82811015611e675736858583818110611e2757611e2761462e565b9050602002810190611e399190614644565b9050611e5d611e4b60208301836145ac565b611e5860208401846148d4565b612457565b5050600101611e0c565b5060405133907ff48581d8a62b775b74f2fb67f1d5806a9a356fbcc598040ab3071d3e37af40c290600090a250505050505050505050565b60016000908152602083815260408083206001600160a01b0380861685529252909120541615611ee2576040516329e42f3360e11b815260040160405180910390fd5b60016000818152602093845260408082206001600160a01b0394909416825292909352912080546001600160a01b0319169091179055565b6001600160a01b0381161580611f3957506001600160a01b0381166001145b15611f6257604051637c84ecfb60e01b81526001600160a01b038216600482015260240161068b565b6001600160a01b0381811660009081526020858152604080832086851684529091529020541615611fb157604051631034f46960e21b81526001600160a01b038216600482015260240161068b565b60016000908152602084815260408083206001600160a01b039586168085528184528285208054968816808752988552838620918652908452919093208054949095166001600160a01b031994851617909455528154169091179055565b606060006001600160a01b038416600114801590612035575061203386868661324a565b155b1561205e57604051637c84ecfb60e01b81526001600160a01b038516600482015260240161068b565b8260000361207f5760405163f725081760e01b815260040160405180910390fd5b8267ffffffffffffffff8111156120985761209861427c565b6040519080825280602002602001820160405280156120c1578160200160208202803683370190505b506001600160a01b038086166000908152602089815260408083208a85168452909152812054929450911691505b6001600160a01b0382161580159061211157506001600160a01b038216600114155b801561211c57508381105b1561218157818382815181106121345761213461462e565b6001600160a01b039283166020918202929092018101919091529281166000908152888452604080822089841683529094529290922054909116908061217981614931565b9150506120ef565b6001600160a01b03821660011480159061219b5750600081115b156121c757826121ac60018361494a565b815181106121bc576121bc61462e565b602002602001015191505b8083525094509492505050565b60608360016121e38282612a4d565b6121ef60023388611f1a565b84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929998505050505050505050565b606083600261223f8282612a4d565b336000908152600360205260409020612258818861367a565b85858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929a9950505050505050505050565b60608360036122a98282612a4d565b600080806122b9878901896149ae565b919450925090506001600160e01b031983167f6d61fe7000000000000000000000000000000000000000000000000000000000148061232157506001600160e01b031983167f8a91b0e300000000000000000000000000000000000000000000000000000000145b15612364576040517f79bd117b0000000000000000000000000000000000000000000000000000000081526001600160e01b03198416600482015260240161068b565b3360009081526004602090815260408083206001600160e01b0319871684529091529020546001600160a01b0316156123d5576040517f74420d150000000000000000000000000000000000000000000000000000000081526001600160e01b03198416600482015260240161068b565b3360009081526004602090815260408083206001600160e01b031990961683529490529290922080546001600160a01b038a166001600160a01b031960f89490941c600160a01b02939093167fffffffffffffffffffffff00000000000000000000000000000000000000000090911617919091179055925050509392505050565b60608360046124668282612a4d565b6000808061247687890189614a1d565b9194509250905060008084600181111561249257612492614a4b565b1480156124a757506001600160e01b03198316155b1561251d5750336000908152600560205260409020546001600160a01b031680156124f05760405163741cbe0360e01b81526001600160a01b038216600482015260240161068b565b33600090815260056020526040902080546001600160a01b0319166001600160a01b038c161790556125e2565b600184600181111561253157612531614a4b565b036125b0576001600160a01b038116156125695760405163741cbe0360e01b81526001600160a01b038216600482015260240161068b565b503360009081526006602090815260408083206001600160e01b031986168452909152902080546001600160a01b038b81166001600160a01b0319831617909255166125e2565b6040517f5691922f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5098975050505050505050565b60608235830160208181019135908581013586018082019190359060408801358801908101903584838114612650576040517fb4fa3fb300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8181101561274957600088888381811061266f5761266f61462e565b905060200201359050600181036126ae576126a88d8888858181106126965761269661462e565b9050602002810190611cdb91906148d4565b50612740565b600281036126de576126a88d8888858181106126cc576126cc61462e565b9050602002810190611d9491906148d4565b6003810361270e576126a88d8888858181106126fc576126fc61462e565b9050602002810190611df691906148d4565b600481036127405761273e8d88888581811061272c5761272c61462e565b9050602002810190611e5891906148d4565b505b50600101612653565b5082828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929e9d5050505050505050505050505050565b60405163468721a760e01b81526000906001600160a01b0385169063468721a7906127c690869085908790600190600401614741565b6020604051808303816000875af11580156127e5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061280991906147fd565b9050806107ec57604051632b3f6d1160e21b815260040160405180910390fd5b6060600061283983850185614a61565b9250905061284a6002338388613750565b509392505050565b33600090815260036020526040812060609161287084860186614a61565b93509050610c33828288613847565b6060600061288f83850185614aa7565b3360009081526004602090815260408083206001600160e01b031990951683529390529190912080546001600160a01b031916905595945050505050565b60606000806128de84860186614a1d565b9450909250905060008260018111156128f9576128f9614a4b565b14801561290e57506001600160e01b03198116155b156129355733600090815260056020526040902080546001600160a01b0319169055610c33565b600182600181111561294957612949614a4b565b036125b0573360009081526006602090815260408083206001600160e01b031985168452909152902080546001600160a01b0319169055610c33565b60405163468721a760e01b81526000906001600160a01b0385169063468721a7906129bb90869085908790600190600401614741565b6020604051808303816000875af11580156129da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129fe91906147fd565b9050806107ec57604080516001600160a01b0386168152600060208201527fb8bc84bd77f5eb08210b8eb20fd63b3ec6a7992d277ab94663bae0e066f792ac910160405180910390a150505050565b336000908152600160205260409020546001600160a01b03168015612aec576040517f529562a10000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0384811660248301526044820184905282169063529562a19060640160006040518083038186803b158015612ad357600080fd5b505afa158015612ae7573d6000803e3d6000fd5b505050505b505050565b60606001600160f81b03198516612cee576001600160f81b03198416600160f81b03612b355782358301602081019035612b2c33838361391c565b92505050610847565b6001600160f81b03198416612bf357600080366000612b548787612f14565b6040805160018082528183019092529498509296509094509250816020015b6060815260200190600190039081612b73579050509450612bcc33858585858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061175a92505050565b85600081518110612bdf57612bdf61462e565b602002602001018190525050505050610847565b6001600160f81b031980851603612cc9576000612c1360148285876143b4565b612c1c916143de565b60601c9050366000612c3185601481896143b4565b604080516001808252818301909252929450909250816020015b6060815260200190600190039081612c4b579050509350612ca3338484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506139ae92505050565b84600081518110612cb657612cb661462e565b6020026020010181905250505050610847565b604051632e5bf3f960e21b81526001600160f81b03198516600482015260240161068b565b6001600160f81b03198516600160f81b03612e7f576001600160f81b03198416600160f81b03612d385782358301602081019035612d2d338383613a4f565b935061084792505050565b6001600160f81b03198416612dcf57600080366000612d578787612f14565b6040805160018082528183019092529498509296509094509250816020015b6060815260200190600190039081612d76579050509450612bcc33858585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250613aea92505050565b6001600160f81b031980851603612cc9576000612def60148285876143b4565b612df8916143de565b60601c9050366000612e0d85601481896143b4565b604080516001808252818301909252929450909250816020015b6060815260200190600190039081612e27579050509350612ca3338484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250613bbc92505050565b6040516308c3ee0360e11b81526001600160f81b03198616600482015260240161068b565b600054604051612aec9185916001600160a01b0390911690612ecc9086908690602401614ac5565b60408051601f198184030181529190526020810180516001600160e01b03167f3f707e6b00000000000000000000000000000000000000000000000000000000179052612790565b6000803681612f2660148287896143b4565b612f2f916143de565b60601c9350612f426034601487896143b4565b612f4b91614b70565b9250612f5a85603481896143b4565b949793965094505050565b600054604051612aec9185916001600160a01b0390911690612f8d9086908690602401614ac5565b60408051601f198184030181529190526020810180516001600160e01b03167f50c8902200000000000000000000000000000000000000000000000000000000179052612985565b60405163468721a760e01b81526000906001600160a01b0386169063468721a79061300a908790879087908790600401614741565b6020604051808303816000875af1158015613029573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061304d91906147fd565b90508061198d57604080516001600160a01b0387168152600060208201527fb8bc84bd77f5eb08210b8eb20fd63b3ec6a7992d277ab94663bae0e066f792ac910160405180910390a15050505050565b606060006001600160a01b0384166001148015906130c257506130c0858561328e565b155b156130eb57604051637c84ecfb60e01b81526001600160a01b038516600482015260240161068b565b8260000361310c5760405163f725081760e01b815260040160405180910390fd5b8267ffffffffffffffff8111156131255761312561427c565b60405190808252806020026020018201604052801561314e578160200160208202803683370190505b506001600160a01b03808616600090815260208890526040812054929450911691505b6001600160a01b0382161580159061319357506001600160a01b038216600114155b801561319e57508381105b156131f857818382815181106131b6576131b661462e565b6001600160a01b0392831660209182029290920181019190915292811660009081529287905260409092205490911690806131f081614931565b915050613171565b6001600160a01b0382166001148015906132125750600081115b1561323e578261322360018361494a565b815181106132335761323361462e565b602002602001015191505b80835250935093915050565b600060016001600160a01b038316148015906108475750506001600160a01b0390811660009081526020938452604080822093831682529290935291205416151590565b600060016001600160a01b03831614801590610b105750506001600160a01b03908116600090815260209290925260409091205416151590565b6000808360018111156132dd576132dd614a4b565b1480156132f257506001600160e01b03198216155b156133125750336000908152600560205260409020546001600160a01b03165b600183600181111561332657613326614a4b565b0361075057503360009081526006602090815260408083206001600160e01b0319851684529091529020546001600160a01b031692915050565b6060600080368181816133776101008901896148d4565b909250905061338a6006600083856143b4565b61339391614b8e565b60d01c95506133a6600c600683856143b4565b6133af91614b8e565b60d01c94506133c181600c81856143b4565b9350935050506000604051806101c001604052807f84aa190356f56b8c87825f54884392a9907c23ee0f8e1ea86336b763faf021bd60001b8152602001336001600160a01b031681526020018860200135815260200188806040019061342791906148d4565b604051613435929190614bd4565b604051908190039020815260200161345060608a018a6148d4565b60405161345e929190614bd4565b6040518091039020815260200161347489613c8e565b815260200161348289613cac565b81526020018860a00135815260200161349a89613cbc565b81526020016134a889613cda565b81526020016134ba60e08a018a6148d4565b6040516134c8929190614bd4565b604051809103902081526020018665ffffffffffff1681526020018565ffffffffffff1681526020016135086f71727de22e5e9d8baf0edac6f37da03290565b6001600160a01b031690526101c081209091507f1900000000000000000000000000000000000000000000000000000000000000600160f81b61359d604080517f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a794692186020820152469181019190915230606082015260009060800160405160208183030381529060405280519060200120905090565b6040516001600160f81b031993841660208201529290911660218301526022820152604281018290526062016040516020818303038152906040529650505091939590929450565b600060d08265ffffffffffff16901b60a08465ffffffffffff16901b8561360d576000613610565b60015b60ff161717949350505050565b60016000908152602082905260409020546001600160a01b031615613655576040516329e42f3360e11b815260040160405180910390fd5b60016000818152602092909252604090912080546001600160a01b0319169091179055565b6001600160a01b038116158061369957506001600160a01b0381166001145b156136c257604051637c84ecfb60e01b81526001600160a01b038216600482015260240161068b565b6001600160a01b03818116600090815260208490526040902054161561370657604051631034f46960e21b81526001600160a01b038216600482015260240161068b565b60016000818152602093909352604080842080546001600160a01b039485168087529286208054959091166001600160a01b03199586161790559190935280549091169091179055565b6001600160a01b038116158061376f57506001600160a01b0381166001145b1561379857604051637c84ecfb60e01b81526001600160a01b038316600482015260240161068b565b6001600160a01b0382811660009081526020868152604080832087851684529091529020548116908216146137eb57604051637c84ecfb60e01b81526001600160a01b038216600482015260240161068b565b6001600160a01b039081166000908152602085815260408083209584168084528683528184208054968616855297835281842090845282529091208054939092166001600160a01b031993841617909155919091528154169055565b6001600160a01b038116158061386657506001600160a01b0381166001145b1561388f57604051637c84ecfb60e01b81526001600160a01b038316600482015260240161068b565b6001600160a01b038281166000908152602085905260409020548116908216146138d757604051637c84ecfb60e01b81526001600160a01b038216600482015260240161068b565b6001600160a01b0390811660008181526020949094526040808520805494841686529085208054949093166001600160a01b0319948516179092559092528154169055565b600080546040516060929161398f9187916001600160a01b0316906139479088908890602401614ac5565b60408051601f198184030181529190526020810180516001600160e01b03167f61085573000000000000000000000000000000000000000000000000000000001790526139ae565b9050808060200190518101906139a59190614c93565b95945050505050565b60606000846001600160a01b0316635229073f8560008660016040518563ffffffff1660e01b81526004016139e69493929190614741565b6000604051808303816000875af1158015613a05573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613a2d919081019061478d565b925090508061284a57604051632b3f6d1160e21b815260040160405180910390fd5b6060806000613ac78660008054906101000a90046001600160a01b03168787604051602401613a7f929190614ac5565b60408051601f198184030181529190526020810180516001600160e01b03167f9abb6e1700000000000000000000000000000000000000000000000000000000179052613bbc565b905080806020019051810190613add9190614cc8565b9097909650945050505050565b60606000856001600160a01b0316635229073f86868660006040518563ffffffff1660e01b8152600401613b219493929190614741565b6000604051808303816000875af1158015613b40573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613b68919081019061478d565b92509050806117fa57604080516001600160a01b0388168152600060208201527fb8bc84bd77f5eb08210b8eb20fd63b3ec6a7992d277ab94663bae0e066f792ac910160405180910390a150949350505050565b60606000846001600160a01b0316635229073f8560008660016040518563ffffffff1660e01b8152600401613bf49493929190614741565b6000604051808303816000875af1158015613c13573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613c3b919081019061478d565b925090508061284a57604080516001600160a01b0387168152600060208201527fb8bc84bd77f5eb08210b8eb20fd63b3ec6a7992d277ab94663bae0e066f792ac910160405180910390a1509392505050565b60006fffffffffffffffffffffffffffffffff608083013516610750565b6000610750826080013560801c90565b60006fffffffffffffffffffffffffffffffff60c083013516610750565b600060c082013560801c610750565b6001600160a01b0381168114613cfe57600080fd5b50565b803561175581613ce9565b60008083601f840112613d1e57600080fd5b50813567ffffffffffffffff811115613d3657600080fd5b60208301915083602082850101111561060357600080fd5b60008060008060608587031215613d6457600080fd5b843593506020850135613d7681613ce9565b9250604085013567ffffffffffffffff811115613d9257600080fd5b613d9e87828801613d0c565b95989497509550505050565b600080600060408486031215613dbf57600080fd5b83359250602084013567ffffffffffffffff811115613ddd57600080fd5b613de986828701613d0c565b9497909650939450505050565b600080600060608486031215613e0b57600080fd5b833567ffffffffffffffff811115613e2257600080fd5b84016101208187031215613e3557600080fd5b95602085013595506040909401359392505050565b60008083601f840112613e5c57600080fd5b50813567ffffffffffffffff811115613e7457600080fd5b6020830191508360208260051b850101111561060357600080fd5b600060608284031215613ea157600080fd5b50919050565b600080600080600080600080600060a08a8c031215613ec557600080fd5b893567ffffffffffffffff80821115613edd57600080fd5b613ee98d838e01613e4a565b909b50995060208c0135915080821115613f0257600080fd5b613f0e8d838e01613e4a565b909950975060408c0135915080821115613f2757600080fd5b613f338d838e01613e4a565b909750955060608c0135915080821115613f4c57600080fd5b613f588d838e01613e4a565b909550935060808c0135915080821115613f7157600080fd5b50613f7e8c828d01613e8f565b9150509295985092959850929598565b60008060208385031215613fa157600080fd5b823567ffffffffffffffff811115613fb857600080fd5b613fc485828601613e4a565b90969095509350505050565b60008060408385031215613fe357600080fd5b8235613fee81613ce9565b946020939093013593505050565b604080825283519082018190526000906020906060840190828701845b8281101561403e5781516001600160a01b031684529284019290840190600101614019565b50505080925050506001600160a01b03831660208301529392505050565b60005b8381101561407757818101518382015260200161405f565b50506000910152565b6000815180845261409881602086016020860161405c565b601f01601f19169290920160200192915050565b602081526000610b106020830184614080565b6001600160e01b031981168114613cfe57600080fd5b6000602082840312156140e757600080fd5b8135610b10816140bf565b60006020828403121561410457600080fd5b5035919050565b600060208083016020845280855180835260408601915060408160051b87010192506020870160005b8281101561416257603f19888603018452614150858351614080565b94509285019290850190600101614134565b5092979650505050505050565b6000806040838503121561418257600080fd5b823561418d81613ce9565b9150602083013561419d81613ce9565b809150509250929050565b803560ff8116811461175557600080fd5b600080600080606085870312156141cf57600080fd5b84356141da81613ce9565b9350602085013567ffffffffffffffff8111156141f657600080fd5b61420287828801613e4a565b90945092506142159050604086016141a8565b905092959194509250565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b0385168152836020820152606060408201526000614272606083018486614220565b9695505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156142bb576142bb61427c565b604052919050565b600067ffffffffffffffff8211156142dd576142dd61427c565b50601f01601f191660200190565b60006142fe6142f9846142c3565b614292565b905082815283838301111561431257600080fd5b610b1083602083018461405c565b600082601f83011261433157600080fd5b610b10838351602085016142eb565b60006020828403121561435257600080fd5b815167ffffffffffffffff81111561436957600080fd5b61084784828501614320565b8284823760609190911b6bffffffffffffffffffffffff19169101908152601401919050565b6000602082840312156143ad57600080fd5b5051919050565b600080858511156143c457600080fd5b838611156143d157600080fd5b5050820193919092039150565b6bffffffffffffffffffffffff19813581811691601485101561440b5780818660140360031b1b83161692505b505092915050565b84815260606020820152600061442c6060830186614080565b828103604084015261443f818587614220565b979650505050505050565b60006020828403121561445c57600080fd5b8151610b10816140bf565b6000808335601e1984360301811261447e57600080fd5b830160208101925035905067ffffffffffffffff81111561449e57600080fd5b80360382131561060357600080fd5b604081526144ce604082016144c185613d01565b6001600160a01b03169052565b6020830135606082015260006144e76040850185614467565b6101208060808601526144ff61016086018385614220565b925061450e6060880188614467565b9250603f19808786030160a0880152614528858584614220565b9450608089013560c088015260a089013560e0880152610100935060c08901358488015261455960e08a018a614467565b925081888703018489015261456f868483614220565b95505061457e848a018a614467565b945092508087860301610140880152505061459a838383614220565b93505050508260208301529392505050565b6000602082840312156145be57600080fd5b8135610b1081613ce9565b6000808335601e198436030181126145e057600080fd5b83018035915067ffffffffffffffff8211156145fb57600080fd5b6020019150600581901b360382131561060357600080fd5b60006020828403121561462557600080fd5b610b10826141a8565b634e487b7160e01b600052603260045260246000fd5b60008235603e1983360301811261465a57600080fd5b9190910192915050565b8381526001600160a01b03831660208201526060604082015260006139a56060830184614080565b60006020828403121561469e57600080fd5b815167ffffffffffffffff8111156146b557600080fd5b8201601f810184136146c657600080fd5b610847848251602084016142eb565b7f736166652d00000000000000000000000000000000000000000000000000000081526000825161470d81600585016020870161405c565b7f2e657263373537392e76302e302e3100000000000000000000000000000000006005939091019283015250601401919050565b6001600160a01b03851681528360208201526080604082015260006147696080830185614080565b905060ff8316606083015295945050505050565b8051801515811461175557600080fd5b600080604083850312156147a057600080fd5b6147a98361477d565b9150602083015167ffffffffffffffff8111156147c557600080fd5b6147d185828601614320565b9150509250929050565b6001600160a01b03831681526040602082015260006108476040830184614080565b60006020828403121561480f57600080fd5b610b108261477d565b80356002811061175557600080fd5b6000806040838503121561483a57600080fd5b61484383614818565b9150602083013561419d816140bf565b8281526000825161486b81602085016020870161405c565b919091016020019392505050565b60ff8416815260406020808301829052908201839052600090849060608401835b868110156148c85783356148ad81613ce9565b6001600160a01b03168252928201929082019060010161489a565b50979650505050505050565b6000808335601e198436030181126148eb57600080fd5b83018035915067ffffffffffffffff82111561490657600080fd5b60200191503681900382131561060357600080fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016149435761494361491b565b5060010190565b818103818111156107505761075061491b565b600082601f83011261496e57600080fd5b813561497c6142f9826142c3565b81815284602083860101111561499157600080fd5b816020850160208301376000918101602001919091529392505050565b6000806000606084860312156149c357600080fd5b83356149ce816140bf565b925060208401356001600160f81b0319811681146149eb57600080fd5b9150604084013567ffffffffffffffff811115614a0757600080fd5b614a138682870161495d565b9150509250925092565b600080600060608486031215614a3257600080fd5b614a3b84614818565b925060208401356149eb816140bf565b634e487b7160e01b600052602160045260246000fd5b60008060408385031215614a7457600080fd5b8235614a7f81613ce9565b9150602083013567ffffffffffffffff811115614a9b57600080fd5b6147d18582860161495d565b60008060408385031215614aba57600080fd5b8235614a7f816140bf565b60208082528181018390526000906040808401600586901b850182018785805b89811015614b6157888403603f190185528235368c9003605e19018112614b0a578283fd5b8b0160608135614b1981613ce9565b6001600160a01b031686528189013589870152614b3888830183614467565b92508189880152614b4c8288018483614220565b978a0197965050509287019250600101614ae5565b50919998505050505050505050565b8035602083101561075057600019602084900360031b1b1692915050565b7fffffffffffff0000000000000000000000000000000000000000000000000000813581811691600685101561440b5760069490940360031b84901b1690921692915050565b8183823760009101908152919050565b600067ffffffffffffffff821115614bfe57614bfe61427c565b5060051b60200190565b600082601f830112614c1957600080fd5b81516020614c296142f983614be4565b82815260059290921b84018101918181019086841115614c4857600080fd5b8286015b84811015614c8857805167ffffffffffffffff811115614c6c5760008081fd5b614c7a8986838b0101614320565b845250918301918301614c4c565b509695505050505050565b600060208284031215614ca557600080fd5b815167ffffffffffffffff811115614cbc57600080fd5b61084784828501614c08565b60008060408385031215614cdb57600080fd5b825167ffffffffffffffff80821115614cf357600080fd5b818501915085601f830112614d0757600080fd5b81516020614d176142f983614be4565b82815260059290921b84018101918181019089841115614d3657600080fd5b948201945b83861015614d5b57614d4c8661477d565b82529482019490820190614d3b565b91880151919650909350505080821115614d7457600080fd5b506147d185828601614c0856fea2646970667358221220310490ce1c9ce1b361eae1667f3c75f8c90f8265fa8bcd2024bdff0a007dc05564736f6c63430008170033",linkReferences$1={},deployedLinkReferences$1={},Safe7579={_format:_format$1,contractName:contractName$1,sourceName:sourceName$1,abi:abi$2,bytecode:bytecode$2,deployedBytecode:deployedBytecode$2,linkReferences:linkReferences$1,deployedLinkReferences:deployedLinkReferences$1},_format="hh-sol-artifact-1",contractName="SafeFaucetModule",sourceName="contracts/executor/SafeFaucetModule.sol",abi$1=[{inputs:[{internalType:"address",name:"smartAccount",type:"address"}],name:"AlreadyInitialized",type:"error"},{inputs:[],name:"ExecutionFailed",type:"error"},{inputs:[],name:"InvalidRecipient",type:"error"},{inputs:[{internalType:"address",name:"smartAccount",type:"address"}],name:"NotInitialized",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sessionKey",type:"address"},{indexed:!0,internalType:"address",name:"account",type:"address"}],name:"SessionKeyAdded",type:"event"},{inputs:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"address",name:"account",type:"address"},{internalType:"uint48",name:"validAfter",type:"uint48"},{internalType:"uint48",name:"validUntil",type:"uint48"},{internalType:"uint256",name:"limitAmount",type:"uint256"},{internalType:"uint48",name:"refreshInterval",type:"uint48"},{components:[{internalType:"address[]",name:"singletons",type:"address[]"},{internalType:"string[]",name:"versions",type:"string[]"},{internalType:"bool",name:"supported",type:"bool"}],internalType:"struct SafeFaucetModule.AccountSupport",name:"safe",type:"tuple"},{components:[{internalType:"address[]",name:"singletons",type:"address[]"},{internalType:"string[]",name:"versions",type:"string[]"},{internalType:"bool",name:"supported",type:"bool"}],internalType:"struct SafeFaucetModule.AccountSupport",name:"cbSW",type:"tuple"},{components:[{internalType:"address[]",name:"singletons",type:"address[]"},{internalType:"string[]",name:"versions",type:"string[]"},{internalType:"bool",name:"supported",type:"bool"}],internalType:"struct SafeFaucetModule.AccountSupport",name:"eoa",type:"tuple"}],internalType:"struct SafeFaucetModule.FaucetData",name:"faucetData",type:"tuple"}],name:"addFaucet",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"faucetId",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"execute",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"}],name:"faucetUsers",outputs:[{internalType:"uint256",name:"faucetId",type:"uint256"},{internalType:"uint256",name:"limitUsed",type:"uint256"},{internalType:"uint48",name:"lastUsed",type:"uint48"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"faucets",outputs:[{internalType:"address",name:"token",type:"address"},{internalType:"address",name:"account",type:"address"},{internalType:"uint48",name:"validAfter",type:"uint48"},{internalType:"uint48",name:"validUntil",type:"uint48"},{internalType:"uint256",name:"limitAmount",type:"uint256"},{internalType:"uint48",name:"refreshInterval",type:"uint48"},{components:[{internalType:"address[]",name:"singletons",type:"address[]"},{internalType:"string[]",name:"versions",type:"string[]"},{internalType:"bool",name:"supported",type:"bool"}],internalType:"struct SafeFaucetModule.AccountSupport",name:"safe",type:"tuple"},{components:[{internalType:"address[]",name:"singletons",type:"address[]"},{internalType:"string[]",name:"versions",type:"string[]"},{internalType:"bool",name:"supported",type:"bool"}],internalType:"struct SafeFaucetModule.AccountSupport",name:"cbSW",type:"tuple"},{components:[{internalType:"address[]",name:"singletons",type:"address[]"},{internalType:"string[]",name:"versions",type:"string[]"},{internalType:"bool",name:"supported",type:"bool"}],internalType:"struct SafeFaucetModule.AccountSupport",name:"eoa",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"smartAccount",type:"address"}],name:"isInitialized",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"typeID",type:"uint256"}],name:"isModuleType",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"hash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"}],name:"isValidSignatureWithSender",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"view",type:"function"},{inputs:[],name:"listFaucets",outputs:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"address",name:"account",type:"address"},{internalType:"uint48",name:"validAfter",type:"uint48"},{internalType:"uint48",name:"validUntil",type:"uint48"},{internalType:"uint256",name:"limitAmount",type:"uint256"},{internalType:"uint48",name:"refreshInterval",type:"uint48"},{components:[{internalType:"address[]",name:"singletons",type:"address[]"},{internalType:"string[]",name:"versions",type:"string[]"},{internalType:"bool",name:"supported",type:"bool"}],internalType:"struct SafeFaucetModule.AccountSupport",name:"safe",type:"tuple"},{components:[{internalType:"address[]",name:"singletons",type:"address[]"},{internalType:"string[]",name:"versions",type:"string[]"},{internalType:"bool",name:"supported",type:"bool"}],internalType:"struct SafeFaucetModule.AccountSupport",name:"cbSW",type:"tuple"},{components:[{internalType:"address[]",name:"singletons",type:"address[]"},{internalType:"string[]",name:"versions",type:"string[]"},{internalType:"bool",name:"supported",type:"bool"}],internalType:"struct SafeFaucetModule.AccountSupport",name:"eoa",type:"tuple"}],internalType:"struct SafeFaucetModule.FaucetData[]",name:"",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"}],name:"onInstall",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"",type:"bytes"}],name:"onUninstall",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"bytes32",name:"accountGasLimits",type:"bytes32"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"bytes32",name:"gasFees",type:"bytes32"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct PackedUserOperation",name:"userOp",type:"tuple"},{internalType:"bytes32",name:"userOpHash",type:"bytes32"}],name:"validateUserOp",outputs:[{internalType:"ERC7579ValidatorBase.ValidationData",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"pure",type:"function"}],bytecode$1="0x6080806040523461001657611ea0908161001c8239f35b600080fdfe608080604052600436101561001357600080fd5b60e0600035811c91826306fdde0314611223575081631a777d4f146111495781633233583b146110e257816344c028fe14610dc55781634784f7ed146103f657816354fd4d50146103945781636d61fe701461038f5781638a91b0e31461038f578163970032031461034b578163c534b7ef1461015957508063d60b347f14610134578063ecd05961146100fc5763f551e2ee146100b057600080fd5b346100f75760603660031901126100f7576100c96115e8565b5060443567ffffffffffffffff81116100f7576100ea903690600401611612565b5050602060405160008152f35b600080fd5b346100f75760203660031901126100f757602060043560018114908115610129575b506040519015158152f35b60029150148261011e565b346100f75760203660031901126100f75761014d6115e8565b50602060405160008152f35b346100f75760003660031901126100f7576000546101768161138c565b90610184604051928361136a565b80825260208083019182600080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5636000915b8383106102a95750505050604051928184019082855251809152604084019160408260051b86010193926000965b8388106101f25786860387f35b90919293948380610298600193603f198b820301875289516102846102746101206001600160a01b03808551168652878501511687860152604084015165ffffffffffff80911660408701526060818187015116908701526080808601519087015260a09081860151169086015260c090808286015192870152850190611531565b888301518482038a860152611531565b916101008092015191818403910152611531565b9701930197019690939291936101e5565b600d856001926040999799516102be81611315565b6001600160a01b03808754168252858701549081168483015265ffffffffffff60a0918181841c16604085015260d01c60608401526002880154608084015260038801541690820152610313600487016113de565b60c0820152610324600787016113de565b8c820152610334600a87016113de565b6101008201528152019201920191909593956101b7565b346100f7576003196040368201126100f7576004359067ffffffffffffffff82116100f75761012091360301126100f757602060405165ffffffffffff60a01b8152f35b6117e4565b346100f75760003660031901126100f7576103f26040516103b48161134e565b600581527f302e302e3100000000000000000000000000000000000000000000000000000060208201526040519182916020835260208301906112a2565b0390f35b346100f7576003196020368201126100f7576004359067ffffffffffffffff82116100f7576101209082360301126100f7576040519161043583611315565b610441826004016115fe565b835261044f602483016115fe565b916020840192835261046360448201611640565b6040850190815261047660648301611640565b906060860191825260808601906084840135825261049660a48501611640565b9260a0880193845260c485013567ffffffffffffffff81116100f7576104c290600436918801016116a6565b9460c0890195865260e481013567ffffffffffffffff81116100f7576104ee90600436918401016116a6565b878a01526101048101359067ffffffffffffffff82116100f757600461051792369201016116a6565b610100890152338752600054600160401b8110156109445780600161053f92016000556112c7565b979097610daf5765ffffffffffff60a01b6001600160a01b037fffffffffffff000000000000000000000000000000000000000000000000000092818c51167fffffffffffffffffffffffff00000000000000000000000000000000000000008c5416178b555116935160a01b16915160d01b16911717600186015551600285015565ffffffffffff6003850191511665ffffffffffff198254161790556004830190519081519081519167ffffffffffffffff831161094457600160401b8311610944576020908254848455808510610d92575b500190600052602060002060005b838110610d7557505050506020810151805190600160401b8211610944576005850154826005870155808310610cfc575b5060200190600585016000526020600020916000905b828210610be15750505050604060068401910151151560ff8019835416911617905582015191825180519067ffffffffffffffff821161094457600160401b8211610944576020906007850154836007870155808410610bc1575b500160078401600052602060002060005b838110610ba45750505050602083015192835193600160401b8511610944576008840154856008860155808610610b2b575b5060200193600884016000526020600020946000905b828210610a1057856101008686604060098501910151151560ff80198354169116179055015190815180519067ffffffffffffffff821161094457600160401b821161094457602090600a84015483600a8601558084106109f0575b5001600a8301600052602060002060005b8381106109d35785856020820151805190600160401b821161094457600b83015482600b85015580831061095a575b5060200190600b83016000526020600020916000905b82821061081e57856040600c8701910151151560ff80198354169116179055600054600019810190811161080857602090604051908152f35b634e487b7160e01b600052601160045260246000fd5b805180519067ffffffffffffffff82116109445761083c86546113a4565b90601f9182811161090a575b50602091831160011461089a57926108808360019594602094879660009261088f575b50508160011b916000199060031b1c19161790565b87555b019401910190926107cf565b015190508c8061086b565b908660005260206000209160005b601f19851681106108f2575083602093600196938796938794601f198116106108d9575b505050811b018755610883565b015160001960f88460031b161c191690558b80806108cc565b919260206001819286850151815501940192016108a8565b610935908860005260206000208480870160051c8201926020881061093b575b0160051c0190611817565b89610848565b9250819261092a565b634e487b7160e01b600052604160045260246000fd5b600b84016000526020600020908382015b818301811061097b5750506107b9565b80610988600192546113a4565b80610995575b500161096b565b601f9081811184146109ae575050600081555b8861098e565b6109ca60009284845260208420920160051c8201858301611817565b818355556109a8565b60019060206001600160a01b03855116940193818401550161078a565b610a0a90600a860160005284846000209182019101611817565b85610779565b805180519067ffffffffffffffff821161094457610a2e89546113a4565b90601f91828111610afb575b506020918311600114610a8b5792610a7183600195946020948796600092610a805750508160011b916000199060031b1c19161790565b8a555b0197019101909561071d565b015190508d8061086b565b908960005260206000209160005b601f1985168110610ae3575083602093600196938796938794601f19811610610aca575b505050811b018a55610a74565b015160001960f88460031b161c191690558c8080610abd565b91926020600181928685015181550194019201610a99565b610b25908b60005260206000208480870160051c8201926020881061093b570160051c0190611817565b8a610a3a565b600885016000526020600020908682015b8183018110610b4c575050610707565b80610b59600192546113a4565b80610b66575b5001610b3c565b601f908181118414610b7f575050600081555b89610b5f565b610b9b60009284845260208420920160051c8201858301611817565b81835555610b79565b60019060206001600160a01b0385511694019381840155016106d5565b610bdb906007870160005284846000209182019101611817565b866106c4565b805180519067ffffffffffffffff821161094457610bff86546113a4565b90601f91828111610ccc575b506020918311600114610c5c5792610c4283600195946020948796600092610c515750508160011b916000199060031b1c19161790565b87555b01940191019092610669565b015190508e8061086b565b908660005260206000209160005b601f1985168110610cb4575083602093600196938796938794601f19811610610c9b575b505050811b018755610c45565b015160001960f88460031b161c191690558d8080610c8e565b91926020600181928685015181550194019201610c6a565b610cf6908860005260206000208480870160051c8201926020881061093b570160051c0190611817565b8b610c0b565b600586016000526020600020908382015b8183018110610d1d575050610653565b80610d2a600192546113a4565b80610d37575b5001610d0d565b601f908181118414610d50575050600081555b8a610d30565b610d6c60009284845260208420920160051c8201858301611817565b81835555610d4a565b60019060206001600160a01b038551169401938184015501610622565b610da9908460005285846000209182019101611817565b88610614565b634e487b7160e01b600052600060045260246000fd5b346100f75760803660031901126100f7576024356004356001600160a01b03821682036100f7576044359067ffffffffffffffff906064358281116100f757610e12903690600401611612565b939091811580156110db57865b610e32610e2d36898861166f565b61182e565b9083156110d357925b156110cb57925b610e4c838261189c565b1561108757610e5a93611d3b565b1561105d57610e70600092610f3c95369161166f565b94604051906020968783019285845285602182015285602282015285602682015285602a820152888152610ea38161134e565b51925192888110611048575b50610efb916054916040519586926bffffffffffffffffffffffff199060601b168b8401526034830152610eeb815180928c868601910161127f565b810103603481018552018361136a565b60405194859283927fd691c96400000000000000000000000000000000000000000000000000000000845260048401526040602484015260448301906112a2565b038183335af191821561103c57600092610f88575b5050805115610f7257810151906103f26040519282849384528301906112a2565b634e487b7160e01b600052603260045260246000fd5b9091503d806000833e610f9b818361136a565b81019083818303126100f7578051908382116100f757019080601f830112156100f7578151610fc98161138c565b93610fd7604051958661136a565b818552858086019260051b850101938385116100f757868101925b858410611006575050505050508280610f51565b83518381116100f757820185603f820112156100f75788916110318783604086809601519101611865565b815201930192610ff2565b6040513d6000823e3d90fd5b851990890360031b1b90921691610efb610eaf565b60046040517facfdb444000000000000000000000000000000000000000000000000000000008152fd5b606460405162461bcd60e51b815260206004820152601660248201527f496e76616c6964207461726765742061646472657373000000000000000000006044820152fd5b508392610e42565b508892610e3b565b6000610e1f565b346100f75760403660031901126100f7576001600160a01b036111036115e8565b16600052600160205260406000206024356000526020526060604060002080549065ffffffffffff60026001830154920154169060405192835260208301526040820152f35b346100f75760203660031901126100f757600435906000548210156100f7576103f26111766020936112c7565b506112146001600160a01b03938483541692611207600182015465ffffffffffff95600284015487600386015416906111b1600487016113de565b936111ca600a6111c360078a016113de565b98016113de565b99604051809e819e61012097835284169101528160a01c1660408d015260d01c60608c015260808b015260a08a01528060c08a0152880190611531565b9186830390870152611531565b90838203610100850152611531565b346100f75760003660031901126100f757806112416103f29261134e565b601181527f5370656e644c696d697453657373696f6e00000000000000000000000000000060208201526040519182916020835260208301906112a2565b60005b8381106112925750506000910152565b8181015183820152602001611282565b906020916112bb8151809281855285808601910161127f565b601f01601f1916010190565b90600091825481101561130157600d90838052027f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563019190565b602483634e487b7160e01b81526032600452fd5b610120810190811067ffffffffffffffff82111761094457604052565b6060810190811067ffffffffffffffff82111761094457604052565b6040810190811067ffffffffffffffff82111761094457604052565b90601f8019910116810190811067ffffffffffffffff82111761094457604052565b67ffffffffffffffff81116109445760051b60200190565b90600182811c921680156113d4575b60208310146113be57565b634e487b7160e01b600052602260045260246000fd5b91607f16916113b3565b90604091604051906113ef82611332565b8193604051808354908183526020809301918160009387855285852092855b87828210611512575050506114259250038261136a565b855260018085018054906114388261138c565b95611446604051978861136a565b82875290845284842084918688015b848410611479575050505050505060409260ff926002928601520154161515910152565b85888351928993865461148b816113a4565b808352908581169081156114f657506001146114be575b506114b0818596038261136a565b815201930193019291611455565b878c52838c208c96505b8187106114df5750509384018201936114b06114a2565b805483880186015293909501948a948d94016114c8565b60ff19168584015250151560051b8101830194506114b06114a2565b85546001600160a01b031684526001958601958795509301920161140e565b906060810191805192606083528351809152608083019060208095019060005b868282106115cb579250505082015193838203818501528451908183528083019281808460051b8301019701936000915b84831061159d57505050505050604080910151151591015290565b90919293949784806115bb600193601f198682030187528c516112a2565b9a01930193019194939290611582565b83516001600160a01b031685529384019390920191600101611551565b600435906001600160a01b03821682036100f757565b35906001600160a01b03821682036100f757565b9181601f840112156100f75782359167ffffffffffffffff83116100f757602083818601950101116100f757565b359065ffffffffffff821682036100f757565b67ffffffffffffffff811161094457601f01601f191660200190565b92919261167b82611653565b91611689604051938461136a565b8294818452818301116100f7578281602093846000960137010152565b90916060828403126100f75760408051906116c082611332565b8193803567ffffffffffffffff908181116100f75782019680601f890112156100f75760209780356116f18161138c565b916116fe8751938461136a565b8183528a8084019260051b820101918483116100f7578b809201905b8382106117cd57505050508552878301358281116100f75783019080601f830112156100f757813561174b8161138c565b936117588751958661136a565b8185528a8086019260051b850101938385116100f7578b8101925b85841061179857505050505050839495968394015201359182151583036100f7570152565b83358381116100f757820185603f820112156100f7578d916117c287838d8680960135910161166f565b815201930192611773565b8280916117d9846115fe565b81520191019061171a565b346100f75760203660031901126100f75760043567ffffffffffffffff81116100f757611815903690600401611612565b005b818110611822575050565b60008155600101611817565b906044825110611845576044602483015192015190565b600091508190565b8054821015610f725760005260206000200190600090565b9092919261187281611653565b91611880604051938461136a565b8294828452828201116100f757602061189a93019061127f565b565b91600060ff600c6118ac866112c7565b50015416611d32576001600160a01b03809316936040928351957f5c60da1b00000000000000000000000000000000000000000000000000000000875260209660049688828981865afa869281611cf6575b50611bd157505090600086928651938480927fffa1ad740000000000000000000000000000000000000000000000000000000082525afa60009281611b74575b506119ab576084868887519162461bcd60e51b8352820152602f60248201527f4e6f7420612076616c69642053616665204163636f756e74206f7220436f696e60448201527f62617365536d61727457616c6c657400000000000000000000000000000000006064820152fd5b60ff60066119bb859698956112c7565b5001541615611b325760005b6119d0856112c7565b50600580910154821015611ade57611a1f8288518b810190611a0b8d82816119fe8c8781519384920161127f565b810103808452018261136a565b51902092611a18896112c7565b500161184d565b509087518a8101908b816000865496611a37886113a4565b906001988981169081600014611ac05750600114611a80575b5050611a65925003601f19810183528261136a565b51902014611a77575b506001016119c7565b96506001611a6e565b90915060005282600020876000915b838310611aa95750505091611a65928201018e9238611a50565b805487840187015286945091850191899101611a8f565b915050611a6594925060ff19168652801515028201018e9238611a50565b505095925050918315611af15750505090565b606493508190519262461bcd60e51b845283015260248201527f4e6f7420612076616c69642053616665204163636f756e742076657273696f6e6044820152fd5b6064838887519162461bcd60e51b8352820152601260248201527f53616665206e6f7420737570706f7274656400000000000000000000000000006044820152fd5b90923d8082843e611b85818461136a565b8201918981840312611bcd5780519067ffffffffffffffff8211611bc957019082601f83011215611bc657508051611bbf92918a01611865565b913861193e565b80fd5b8280fd5b5080fd5b94915094969560ff6009611be4866112c7565b5001541615611c8e57815b611bf8856112c7565b50600780910154821015611c3757611c15828892611a18896112c7565b90549060031b1c1686881614611c2e575b600101611bef565b60019250611c26565b505094509492509490508315611c4d5750505090565b60649350519162461bcd60e51b8352820152601f60248201527f4e6f7420612076616c696420436f696e62617365536d61727457616c6c6574006044820152fd5b6084908789519162461bcd60e51b8352820152602160248201527f436f696e62617365536d61727457616c6c6574206e6f7420737570706f72746560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152fd5b9092508981813d8311611d2b575b611d0e818361136a565b81010312611d2757518181168103611d275791386118fe565b8680fd5b503d611d04565b50915050600190565b9290611d46816112c7565b50926001600160a01b039182600094168452600160205260408420908452602052604083209180855416911603611e635765ffffffffffff92836003820154169360028201549260028101916001835492019660018854950154828160a01c164210908115611e56575b50611e4a578015908115611e1e575b5015611df1575050508401938410908115611de7575b50611de1575055600190565b91505090565b9050831138611dd5565b94919680949196935011611e1557505542169065ffffffffffff1916179055600190565b94505050505090565b905081831601818111611e3657814291161138611dbf565b602487634e487b7160e01b81526011600452fd5b50505050505091505090565b905060d01c421138611db0565b509150509056fea2646970667358221220eaa11b85578377b836cc78885b1dfbd20be00271d1fc039622a92c1f04ba2be164736f6c63430008170033",deployedBytecode$1="0x608080604052600436101561001357600080fd5b60e0600035811c91826306fdde0314611223575081631a777d4f146111495781633233583b146110e257816344c028fe14610dc55781634784f7ed146103f657816354fd4d50146103945781636d61fe701461038f5781638a91b0e31461038f578163970032031461034b578163c534b7ef1461015957508063d60b347f14610134578063ecd05961146100fc5763f551e2ee146100b057600080fd5b346100f75760603660031901126100f7576100c96115e8565b5060443567ffffffffffffffff81116100f7576100ea903690600401611612565b5050602060405160008152f35b600080fd5b346100f75760203660031901126100f757602060043560018114908115610129575b506040519015158152f35b60029150148261011e565b346100f75760203660031901126100f75761014d6115e8565b50602060405160008152f35b346100f75760003660031901126100f7576000546101768161138c565b90610184604051928361136a565b80825260208083019182600080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5636000915b8383106102a95750505050604051928184019082855251809152604084019160408260051b86010193926000965b8388106101f25786860387f35b90919293948380610298600193603f198b820301875289516102846102746101206001600160a01b03808551168652878501511687860152604084015165ffffffffffff80911660408701526060818187015116908701526080808601519087015260a09081860151169086015260c090808286015192870152850190611531565b888301518482038a860152611531565b916101008092015191818403910152611531565b9701930197019690939291936101e5565b600d856001926040999799516102be81611315565b6001600160a01b03808754168252858701549081168483015265ffffffffffff60a0918181841c16604085015260d01c60608401526002880154608084015260038801541690820152610313600487016113de565b60c0820152610324600787016113de565b8c820152610334600a87016113de565b6101008201528152019201920191909593956101b7565b346100f7576003196040368201126100f7576004359067ffffffffffffffff82116100f75761012091360301126100f757602060405165ffffffffffff60a01b8152f35b6117e4565b346100f75760003660031901126100f7576103f26040516103b48161134e565b600581527f302e302e3100000000000000000000000000000000000000000000000000000060208201526040519182916020835260208301906112a2565b0390f35b346100f7576003196020368201126100f7576004359067ffffffffffffffff82116100f7576101209082360301126100f7576040519161043583611315565b610441826004016115fe565b835261044f602483016115fe565b916020840192835261046360448201611640565b6040850190815261047660648301611640565b906060860191825260808601906084840135825261049660a48501611640565b9260a0880193845260c485013567ffffffffffffffff81116100f7576104c290600436918801016116a6565b9460c0890195865260e481013567ffffffffffffffff81116100f7576104ee90600436918401016116a6565b878a01526101048101359067ffffffffffffffff82116100f757600461051792369201016116a6565b610100890152338752600054600160401b8110156109445780600161053f92016000556112c7565b979097610daf5765ffffffffffff60a01b6001600160a01b037fffffffffffff000000000000000000000000000000000000000000000000000092818c51167fffffffffffffffffffffffff00000000000000000000000000000000000000008c5416178b555116935160a01b16915160d01b16911717600186015551600285015565ffffffffffff6003850191511665ffffffffffff198254161790556004830190519081519081519167ffffffffffffffff831161094457600160401b8311610944576020908254848455808510610d92575b500190600052602060002060005b838110610d7557505050506020810151805190600160401b8211610944576005850154826005870155808310610cfc575b5060200190600585016000526020600020916000905b828210610be15750505050604060068401910151151560ff8019835416911617905582015191825180519067ffffffffffffffff821161094457600160401b8211610944576020906007850154836007870155808410610bc1575b500160078401600052602060002060005b838110610ba45750505050602083015192835193600160401b8511610944576008840154856008860155808610610b2b575b5060200193600884016000526020600020946000905b828210610a1057856101008686604060098501910151151560ff80198354169116179055015190815180519067ffffffffffffffff821161094457600160401b821161094457602090600a84015483600a8601558084106109f0575b5001600a8301600052602060002060005b8381106109d35785856020820151805190600160401b821161094457600b83015482600b85015580831061095a575b5060200190600b83016000526020600020916000905b82821061081e57856040600c8701910151151560ff80198354169116179055600054600019810190811161080857602090604051908152f35b634e487b7160e01b600052601160045260246000fd5b805180519067ffffffffffffffff82116109445761083c86546113a4565b90601f9182811161090a575b50602091831160011461089a57926108808360019594602094879660009261088f575b50508160011b916000199060031b1c19161790565b87555b019401910190926107cf565b015190508c8061086b565b908660005260206000209160005b601f19851681106108f2575083602093600196938796938794601f198116106108d9575b505050811b018755610883565b015160001960f88460031b161c191690558b80806108cc565b919260206001819286850151815501940192016108a8565b610935908860005260206000208480870160051c8201926020881061093b575b0160051c0190611817565b89610848565b9250819261092a565b634e487b7160e01b600052604160045260246000fd5b600b84016000526020600020908382015b818301811061097b5750506107b9565b80610988600192546113a4565b80610995575b500161096b565b601f9081811184146109ae575050600081555b8861098e565b6109ca60009284845260208420920160051c8201858301611817565b818355556109a8565b60019060206001600160a01b03855116940193818401550161078a565b610a0a90600a860160005284846000209182019101611817565b85610779565b805180519067ffffffffffffffff821161094457610a2e89546113a4565b90601f91828111610afb575b506020918311600114610a8b5792610a7183600195946020948796600092610a805750508160011b916000199060031b1c19161790565b8a555b0197019101909561071d565b015190508d8061086b565b908960005260206000209160005b601f1985168110610ae3575083602093600196938796938794601f19811610610aca575b505050811b018a55610a74565b015160001960f88460031b161c191690558c8080610abd565b91926020600181928685015181550194019201610a99565b610b25908b60005260206000208480870160051c8201926020881061093b570160051c0190611817565b8a610a3a565b600885016000526020600020908682015b8183018110610b4c575050610707565b80610b59600192546113a4565b80610b66575b5001610b3c565b601f908181118414610b7f575050600081555b89610b5f565b610b9b60009284845260208420920160051c8201858301611817565b81835555610b79565b60019060206001600160a01b0385511694019381840155016106d5565b610bdb906007870160005284846000209182019101611817565b866106c4565b805180519067ffffffffffffffff821161094457610bff86546113a4565b90601f91828111610ccc575b506020918311600114610c5c5792610c4283600195946020948796600092610c515750508160011b916000199060031b1c19161790565b87555b01940191019092610669565b015190508e8061086b565b908660005260206000209160005b601f1985168110610cb4575083602093600196938796938794601f19811610610c9b575b505050811b018755610c45565b015160001960f88460031b161c191690558d8080610c8e565b91926020600181928685015181550194019201610c6a565b610cf6908860005260206000208480870160051c8201926020881061093b570160051c0190611817565b8b610c0b565b600586016000526020600020908382015b8183018110610d1d575050610653565b80610d2a600192546113a4565b80610d37575b5001610d0d565b601f908181118414610d50575050600081555b8a610d30565b610d6c60009284845260208420920160051c8201858301611817565b81835555610d4a565b60019060206001600160a01b038551169401938184015501610622565b610da9908460005285846000209182019101611817565b88610614565b634e487b7160e01b600052600060045260246000fd5b346100f75760803660031901126100f7576024356004356001600160a01b03821682036100f7576044359067ffffffffffffffff906064358281116100f757610e12903690600401611612565b939091811580156110db57865b610e32610e2d36898861166f565b61182e565b9083156110d357925b156110cb57925b610e4c838261189c565b1561108757610e5a93611d3b565b1561105d57610e70600092610f3c95369161166f565b94604051906020968783019285845285602182015285602282015285602682015285602a820152888152610ea38161134e565b51925192888110611048575b50610efb916054916040519586926bffffffffffffffffffffffff199060601b168b8401526034830152610eeb815180928c868601910161127f565b810103603481018552018361136a565b60405194859283927fd691c96400000000000000000000000000000000000000000000000000000000845260048401526040602484015260448301906112a2565b038183335af191821561103c57600092610f88575b5050805115610f7257810151906103f26040519282849384528301906112a2565b634e487b7160e01b600052603260045260246000fd5b9091503d806000833e610f9b818361136a565b81019083818303126100f7578051908382116100f757019080601f830112156100f7578151610fc98161138c565b93610fd7604051958661136a565b818552858086019260051b850101938385116100f757868101925b858410611006575050505050508280610f51565b83518381116100f757820185603f820112156100f75788916110318783604086809601519101611865565b815201930192610ff2565b6040513d6000823e3d90fd5b851990890360031b1b90921691610efb610eaf565b60046040517facfdb444000000000000000000000000000000000000000000000000000000008152fd5b606460405162461bcd60e51b815260206004820152601660248201527f496e76616c6964207461726765742061646472657373000000000000000000006044820152fd5b508392610e42565b508892610e3b565b6000610e1f565b346100f75760403660031901126100f7576001600160a01b036111036115e8565b16600052600160205260406000206024356000526020526060604060002080549065ffffffffffff60026001830154920154169060405192835260208301526040820152f35b346100f75760203660031901126100f757600435906000548210156100f7576103f26111766020936112c7565b506112146001600160a01b03938483541692611207600182015465ffffffffffff95600284015487600386015416906111b1600487016113de565b936111ca600a6111c360078a016113de565b98016113de565b99604051809e819e61012097835284169101528160a01c1660408d015260d01c60608c015260808b015260a08a01528060c08a0152880190611531565b9186830390870152611531565b90838203610100850152611531565b346100f75760003660031901126100f757806112416103f29261134e565b601181527f5370656e644c696d697453657373696f6e00000000000000000000000000000060208201526040519182916020835260208301906112a2565b60005b8381106112925750506000910152565b8181015183820152602001611282565b906020916112bb8151809281855285808601910161127f565b601f01601f1916010190565b90600091825481101561130157600d90838052027f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563019190565b602483634e487b7160e01b81526032600452fd5b610120810190811067ffffffffffffffff82111761094457604052565b6060810190811067ffffffffffffffff82111761094457604052565b6040810190811067ffffffffffffffff82111761094457604052565b90601f8019910116810190811067ffffffffffffffff82111761094457604052565b67ffffffffffffffff81116109445760051b60200190565b90600182811c921680156113d4575b60208310146113be57565b634e487b7160e01b600052602260045260246000fd5b91607f16916113b3565b90604091604051906113ef82611332565b8193604051808354908183526020809301918160009387855285852092855b87828210611512575050506114259250038261136a565b855260018085018054906114388261138c565b95611446604051978861136a565b82875290845284842084918688015b848410611479575050505050505060409260ff926002928601520154161515910152565b85888351928993865461148b816113a4565b808352908581169081156114f657506001146114be575b506114b0818596038261136a565b815201930193019291611455565b878c52838c208c96505b8187106114df5750509384018201936114b06114a2565b805483880186015293909501948a948d94016114c8565b60ff19168584015250151560051b8101830194506114b06114a2565b85546001600160a01b031684526001958601958795509301920161140e565b906060810191805192606083528351809152608083019060208095019060005b868282106115cb579250505082015193838203818501528451908183528083019281808460051b8301019701936000915b84831061159d57505050505050604080910151151591015290565b90919293949784806115bb600193601f198682030187528c516112a2565b9a01930193019194939290611582565b83516001600160a01b031685529384019390920191600101611551565b600435906001600160a01b03821682036100f757565b35906001600160a01b03821682036100f757565b9181601f840112156100f75782359167ffffffffffffffff83116100f757602083818601950101116100f757565b359065ffffffffffff821682036100f757565b67ffffffffffffffff811161094457601f01601f191660200190565b92919261167b82611653565b91611689604051938461136a565b8294818452818301116100f7578281602093846000960137010152565b90916060828403126100f75760408051906116c082611332565b8193803567ffffffffffffffff908181116100f75782019680601f890112156100f75760209780356116f18161138c565b916116fe8751938461136a565b8183528a8084019260051b820101918483116100f7578b809201905b8382106117cd57505050508552878301358281116100f75783019080601f830112156100f757813561174b8161138c565b936117588751958661136a565b8185528a8086019260051b850101938385116100f7578b8101925b85841061179857505050505050839495968394015201359182151583036100f7570152565b83358381116100f757820185603f820112156100f7578d916117c287838d8680960135910161166f565b815201930192611773565b8280916117d9846115fe565b81520191019061171a565b346100f75760203660031901126100f75760043567ffffffffffffffff81116100f757611815903690600401611612565b005b818110611822575050565b60008155600101611817565b906044825110611845576044602483015192015190565b600091508190565b8054821015610f725760005260206000200190600090565b9092919261187281611653565b91611880604051938461136a565b8294828452828201116100f757602061189a93019061127f565b565b91600060ff600c6118ac866112c7565b50015416611d32576001600160a01b03809316936040928351957f5c60da1b00000000000000000000000000000000000000000000000000000000875260209660049688828981865afa869281611cf6575b50611bd157505090600086928651938480927fffa1ad740000000000000000000000000000000000000000000000000000000082525afa60009281611b74575b506119ab576084868887519162461bcd60e51b8352820152602f60248201527f4e6f7420612076616c69642053616665204163636f756e74206f7220436f696e60448201527f62617365536d61727457616c6c657400000000000000000000000000000000006064820152fd5b60ff60066119bb859698956112c7565b5001541615611b325760005b6119d0856112c7565b50600580910154821015611ade57611a1f8288518b810190611a0b8d82816119fe8c8781519384920161127f565b810103808452018261136a565b51902092611a18896112c7565b500161184d565b509087518a8101908b816000865496611a37886113a4565b906001988981169081600014611ac05750600114611a80575b5050611a65925003601f19810183528261136a565b51902014611a77575b506001016119c7565b96506001611a6e565b90915060005282600020876000915b838310611aa95750505091611a65928201018e9238611a50565b805487840187015286945091850191899101611a8f565b915050611a6594925060ff19168652801515028201018e9238611a50565b505095925050918315611af15750505090565b606493508190519262461bcd60e51b845283015260248201527f4e6f7420612076616c69642053616665204163636f756e742076657273696f6e6044820152fd5b6064838887519162461bcd60e51b8352820152601260248201527f53616665206e6f7420737570706f7274656400000000000000000000000000006044820152fd5b90923d8082843e611b85818461136a565b8201918981840312611bcd5780519067ffffffffffffffff8211611bc957019082601f83011215611bc657508051611bbf92918a01611865565b913861193e565b80fd5b8280fd5b5080fd5b94915094969560ff6009611be4866112c7565b5001541615611c8e57815b611bf8856112c7565b50600780910154821015611c3757611c15828892611a18896112c7565b90549060031b1c1686881614611c2e575b600101611bef565b60019250611c26565b505094509492509490508315611c4d5750505090565b60649350519162461bcd60e51b8352820152601f60248201527f4e6f7420612076616c696420436f696e62617365536d61727457616c6c6574006044820152fd5b6084908789519162461bcd60e51b8352820152602160248201527f436f696e62617365536d61727457616c6c6574206e6f7420737570706f72746560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152fd5b9092508981813d8311611d2b575b611d0e818361136a565b81010312611d2757518181168103611d275791386118fe565b8680fd5b503d611d04565b50915050600190565b9290611d46816112c7565b50926001600160a01b039182600094168452600160205260408420908452602052604083209180855416911603611e635765ffffffffffff92836003820154169360028201549260028101916001835492019660018854950154828160a01c164210908115611e56575b50611e4a578015908115611e1e575b5015611df1575050508401938410908115611de7575b50611de1575055600190565b91505090565b9050831138611dd5565b94919680949196935011611e1557505542169065ffffffffffff1916179055600190565b94505050505090565b905081831601818111611e3657814291161138611dbf565b602487634e487b7160e01b81526011600452fd5b50505050505091505090565b905060d01c421138611db0565b509150509056fea2646970667358221220eaa11b85578377b836cc78885b1dfbd20be00271d1fc039622a92c1f04ba2be164736f6c63430008170033",linkReferences={},deployedLinkReferences={},SafeFaucetModule={_format,contractName,sourceName,abi:abi$1,bytecode:bytecode$1,deployedBytecode:deployedBytecode$1,linkReferences,deployedLinkReferences};function execTyped(c,a){const d=c.exec(a);return d==null?void 0:d.groups}const tupleRegex=/^tuple(?(\[(\d*)\])*)$/;function formatAbiParameter(c){let a=c.type;if(tupleRegex.test(c.type)&&"components"in c){a="(";const d=c.components.length;for(let nt=0;nt{var nt,tt;return((nt=c[a.name])==null?void 0:nt.call(c,et))??((tt=c[d])==null?void 0:tt.call(c,et))??a(c,et)}}function formatAbiItem(c,{includeName:a=!1}={}){if(c.type!=="function"&&c.type!=="event"&&c.type!=="error")throw new InvalidDefinitionTypeError(c.type);return`${c.name}(${formatAbiParams(c.inputs,{includeName:a})})`}function formatAbiParams(c,{includeName:a=!1}={}){return c?c.map(d=>formatAbiParam(d,{includeName:a})).join(a?", ":","):""}function formatAbiParam(c,{includeName:a}){return c.type.startsWith("tuple")?`(${formatAbiParams(c.components,{includeName:a})})${c.type.slice(5)}`:c.type+(a&&c.name?` ${c.name}`:"")}function isHex(c,{strict:a=!0}={}){return!c||typeof c!="string"?!1:a?/^0x[0-9a-fA-F]*$/.test(c):c.startsWith("0x")}function size$1(c){return isHex(c,{strict:!1})?Math.ceil((c.length-2)/2):c.length}const version="2.13.8",getContractAddress=c=>c,getUrl=c=>c,getVersion=()=>`viem@${version}`;class BaseError extends Error{constructor(a,d={}){var tt;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:getVersion()});const et=d.cause instanceof BaseError?d.cause.details:(tt=d.cause)!=null&&tt.message?d.cause.message:d.details,nt=d.cause instanceof BaseError&&d.cause.docsPath||d.docsPath;this.message=[a||"An error occurred.","",...d.metaMessages?[...d.metaMessages,""]:[],...nt?[`Docs: https://viem.sh${nt}${d.docsSlug?`#${d.docsSlug}`:""}`]:[],...et?[`Details: ${et}`]:[],`Version: ${this.version}`].join(` `),d.cause&&(this.cause=d.cause),this.details=et,this.docsPath=nt,this.metaMessages=d.metaMessages,this.shortMessage=a}walk(a){return walk(this,a)}}function walk(c,a){return a!=null&&a(c)?c:c&&typeof c=="object"&&"cause"in c?walk(c.cause,a):a?null:c}class AbiConstructorNotFoundError extends BaseError{constructor({docsPath:a}){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(` `),{docsPath:a}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}class AbiConstructorParamsNotFoundError extends BaseError{constructor({docsPath:a}){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(` `),{docsPath:a}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}}class AbiDecodingDataSizeTooSmallError extends BaseError{constructor({data:a,params:d,size:et}){super([`Data size of ${et} bytes is too small for given parameters.`].join(` @@ -175,7 +175,7 @@ use chrome, FireFox or Internet Explorer 11`)}var safeBuffer=safeBufferExports$1 `),{docsPath:d}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}}class InvalidAbiDecodingTypeError extends BaseError{constructor(a,{docsPath:d}){super([`Type "${a}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(` `),{docsPath:d}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}}class InvalidArrayError extends BaseError{constructor(a){super([`Value "${a}" is not a valid array.`].join(` `)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}}class InvalidDefinitionTypeError extends BaseError{constructor(a){super([`"${a}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}class UnsupportedPackedAbiType extends BaseError{constructor(a){super(`Type "${a}" is not supported for packed encoding.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedPackedAbiType"})}}class FilterTypeNotSupportedError extends BaseError{constructor(a){super(`Filter type "${a}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}}class SliceOffsetOutOfBoundsError extends BaseError{constructor({offset:a,position:d,size:et}){super(`Slice ${d==="start"?"starting":"ending"} at offset "${a}" is out-of-bounds (size: ${et}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}}class SizeExceedsPaddingSizeError extends BaseError{constructor({size:a,targetSize:d,type:et}){super(`${et.charAt(0).toUpperCase()}${et.slice(1).toLowerCase()} size (${a}) exceeds padding size (${d}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}}class InvalidBytesLengthError extends BaseError{constructor({size:a,targetSize:d,type:et}){super(`${et.charAt(0).toUpperCase()}${et.slice(1).toLowerCase()} is expected to be ${d} ${et} long, but is ${a} ${et} long.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidBytesLengthError"})}}function pad(c,{dir:a,size:d=32}={}){return typeof c=="string"?padHex(c,{dir:a,size:d}):padBytes(c,{dir:a,size:d})}function padHex(c,{dir:a,size:d=32}={}){if(d===null)return c;const et=c.replace("0x","");if(et.length>d*2)throw new SizeExceedsPaddingSizeError({size:Math.ceil(et.length/2),targetSize:d,type:"hex"});return`0x${et[a==="right"?"padEnd":"padStart"](d*2,"0")}`}function padBytes(c,{dir:a,size:d=32}={}){if(d===null)return c;if(c.length>d)throw new SizeExceedsPaddingSizeError({size:c.length,targetSize:d,type:"bytes"});const et=new Uint8Array(d);for(let nt=0;nta)throw new SizeOverflowError({givenSize:size$1(c),maxSize:a})}function hexToBigInt(c,a={}){const{signed:d}=a;a.size&&assertSize(c,{size:a.size});const et=BigInt(c);if(!d)return et;const nt=(c.length-2)/2,tt=(1n<a.toString(16).padStart(2,"0"));function toHex(c,a={}){return typeof c=="number"||typeof c=="bigint"?numberToHex(c,a):typeof c=="string"?stringToHex(c,a):typeof c=="boolean"?boolToHex(c,a):bytesToHex(c,a)}function boolToHex(c,a={}){const d=`0x${Number(c)}`;return typeof a.size=="number"?(assertSize(d,{size:a.size}),pad(d,{size:a.size})):d}function bytesToHex(c,a={}){let d="";for(let nt=0;nttt||nt=charCodeMap.zero&&c<=charCodeMap.nine)return c-charCodeMap.zero;if(c>=charCodeMap.A&&c<=charCodeMap.F)return c-(charCodeMap.A-10);if(c>=charCodeMap.a&&c<=charCodeMap.f)return c-(charCodeMap.a-10)}function hexToBytes(c,a={}){let d=c;a.size&&(assertSize(d,{size:a.size}),d=pad(d,{dir:"right",size:a.size}));let et=d.slice(2);et.length%2&&(et=`0${et}`);const nt=et.length/2,tt=new Uint8Array(nt);for(let bt=0,gt=0;btkeccak256(toBytes(c));function hashSignature(c){return hash(c)}function normalizeSignature(c){let a=!0,d="",et=0,nt="",tt=!1;for(let bt=0;bt{const a=(()=>typeof c=="string"?c:formatAbiItem$1(c))();return normalizeSignature(a)};function toSignatureHash(c){return hashSignature(toSignature(c))}const toEventSelector=toSignatureHash;class InvalidAddressError extends BaseError{constructor({address:a}){super(`Address "${a}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}class LruMap extends Map{constructor(a){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=a}set(a,d){return super.set(a,d),this.maxSize&&this.size>this.maxSize&&this.delete(this.keys().next().value),this}}const checksumAddressCache=new LruMap(8192);function checksumAddress(c,a){if(checksumAddressCache.has(`${c}.${a}`))return checksumAddressCache.get(`${c}.${a}`);const d=a?`${a}${c.toLowerCase()}`:c.substring(2).toLowerCase(),et=keccak256(stringToBytes(d),"bytes"),nt=(a?d.substring(`${a}0x`.length):d).split("");for(let bt=0;bt<40;bt+=2)et[bt>>1]>>4>=8&&nt[bt]&&(nt[bt]=nt[bt].toUpperCase()),(et[bt>>1]&15)>=8&&nt[bt+1]&&(nt[bt+1]=nt[bt+1].toUpperCase());const tt=`0x${nt.join("")}`;return checksumAddressCache.set(`${c}.${a}`,tt),tt}function getAddress(c,a){if(!isAddress(c,{strict:!1}))throw new InvalidAddressError({address:c});return checksumAddress(c,a)}const addressRegex=/^0x[a-fA-F0-9]{40}$/,isAddressCache=new LruMap(8192);function isAddress(c,a){const{strict:d=!0}=a??{},et=`${c}.${d}`;if(isAddressCache.has(et))return isAddressCache.get(et);const nt=(()=>addressRegex.test(c)?c.toLowerCase()===c?!0:d?checksumAddress(c)===c:!0:!1)();return isAddressCache.set(et,nt),nt}function concat(c){return typeof c[0]=="string"?concatHex(c):concatBytes(c)}function concatBytes(c){let a=0;for(const nt of c)a+=nt.length;const d=new Uint8Array(a);let et=0;for(const nt of c)d.set(nt,et),et+=nt.length;return d}function concatHex(c){return`0x${c.reduce((a,d)=>a+d.replace("0x",""),"")}`}function slice(c,a,d,{strict:et}={}){return isHex(c,{strict:!1})?sliceHex(c,a,d,{strict:et}):sliceBytes(c,a,d,{strict:et})}function assertStartOffset(c,a){if(typeof a=="number"&&a>0&&a>size$1(c)-1)throw new SliceOffsetOutOfBoundsError({offset:a,position:"start",size:size$1(c)})}function assertEndOffset(c,a,d){if(typeof a=="number"&&typeof d=="number"&&size$1(c)!==d-a)throw new SliceOffsetOutOfBoundsError({offset:d,position:"end",size:size$1(c)})}function sliceBytes(c,a,d,{strict:et}={}){assertStartOffset(c,a);const nt=c.slice(a,d);return et&&assertEndOffset(nt,a,d),nt}function sliceHex(c,a,d,{strict:et}={}){assertStartOffset(c,a);const nt=`0x${c.replace("0x","").slice((a??0)*2,(d??c.length)*2)}`;return et&&assertEndOffset(nt,a,d),nt}function encodeAbiParameters(c,a){if(c.length!==a.length)throw new AbiEncodingLengthMismatchError({expectedLength:c.length,givenLength:a.length});const d=prepareParams({params:c,values:a}),et=encodeParams(d);return et.length===0?"0x":et}function prepareParams({params:c,values:a}){const d=[];for(let et=0;et0?concat([gt,bt]):gt}}if(nt)return{dynamic:!0,encoded:bt}}return{dynamic:!1,encoded:concat(tt.map(({encoded:bt})=>bt))}}function encodeBytes(c,{param:a}){const[,d]=a.type.split("bytes"),et=size$1(c);if(!d){let nt=c;return et%32!==0&&(nt=padHex(nt,{dir:"right",size:Math.ceil((c.length-2)/2/32)*32})),{dynamic:!0,encoded:concat([padHex(numberToHex(et,{size:32})),nt])}}if(et!==Number.parseInt(d))throw new AbiEncodingBytesSizeMismatchError({expectedSize:Number.parseInt(d),value:c});return{dynamic:!1,encoded:padHex(c,{dir:"right"})}}function encodeBool(c){if(typeof c!="boolean")throw new BaseError(`Invalid boolean value: "${c}" (type: ${typeof c}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:padHex(boolToHex(c))}}function encodeNumber(c,{signed:a}){return{dynamic:!1,encoded:numberToHex(c,{size:32,signed:a})}}function encodeString(c){const a=stringToHex(c),d=Math.ceil(size$1(a)/32),et=[];for(let nt=0;ntnt))}}function getArrayComponents(c){const a=c.match(/^(.*)\[(\d+)?\]$/);return a?[a[2]?Number(a[2]):null,a[1]]:void 0}const toFunctionSelector=c=>slice(toSignatureHash(c),0,4);function getAbiItem(c){const{abi:a,args:d=[],name:et}=c,nt=isHex(et,{strict:!1}),tt=a.filter(gt=>nt?gt.type==="function"?toFunctionSelector(gt)===et:gt.type==="event"?toEventSelector(gt)===et:!1:"name"in gt&>.name===et);if(tt.length===0)return;if(tt.length===1)return tt[0];let bt;for(const gt of tt){if(!("inputs"in gt))continue;if(!d||d.length===0){if(!gt.inputs||gt.inputs.length===0)return gt;continue}if(!gt.inputs||gt.inputs.length===0||gt.inputs.length!==d.length)continue;if(d.every((St,Mt)=>{const _t="inputs"in gt&>.inputs[Mt];return _t?isArgOfType(St,_t):!1})){if(bt&&"inputs"in bt&&bt.inputs){const St=getAmbiguousTypes(gt.inputs,bt.inputs,d);if(St)throw new AbiItemAmbiguityError({abiItem:gt,type:St[0]},{abiItem:bt,type:St[1]})}bt=gt}}return bt||tt[0]}function isArgOfType(c,a){const d=typeof c,et=a.type;switch(et){case"address":return isAddress(c,{strict:!1});case"bool":return d==="boolean";case"function":return d==="string";case"string":return d==="string";default:return et==="tuple"&&"components"in a?Object.values(a.components).every((nt,tt)=>isArgOfType(Object.values(c)[tt],nt)):/^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(et)?d==="number"||d==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(et)?d==="string"||c instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(et)?Array.isArray(c)&&c.every(nt=>isArgOfType(nt,{...a,type:et.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function getAmbiguousTypes(c,a,d){for(const et in c){const nt=c[et],tt=a[et];if(nt.type==="tuple"&&tt.type==="tuple"&&"components"in nt&&"components"in tt)return getAmbiguousTypes(nt.components,tt.components,d[et]);const bt=[nt.type,tt.type];if((()=>bt.includes("address")&&bt.includes("bytes20")?!0:bt.includes("address")&&bt.includes("string")?isAddress(d[et],{strict:!1}):bt.includes("address")&&bt.includes("bytes")?isAddress(d[et],{strict:!1}):!1)())return bt}}const docsPath$4="/docs/contract/encodeEventTopics";function encodeEventTopics(c){var wt;const{abi:a,eventName:d,args:et}=c;let nt=a[0];if(d){const St=getAbiItem({abi:a,name:d});if(!St)throw new AbiEventNotFoundError(d,{docsPath:docsPath$4});nt=St}if(nt.type!=="event")throw new AbiEventNotFoundError(void 0,{docsPath:docsPath$4});const tt=formatAbiItem(nt),bt=toEventSelector(tt);let gt=[];if(et&&"inputs"in nt){const St=(wt=nt.inputs)==null?void 0:wt.filter(_t=>"indexed"in _t&&_t.indexed),Mt=Array.isArray(et)?et:Object.values(et).length>0?(St==null?void 0:St.map(_t=>et[_t.name]))??[]:[];Mt.length>0&&(gt=(St==null?void 0:St.map((_t,Tt)=>Array.isArray(Mt[Tt])?Mt[Tt].map((Bt,kt)=>encodeArg({param:_t,value:Mt[Tt][kt]})):Mt[Tt]?encodeArg({param:_t,value:Mt[Tt]}):null))??[])}return[bt,...gt]}function encodeArg({param:c,value:a}){if(c.type==="string"||c.type==="bytes")return keccak256(toBytes(a));if(c.type==="tuple"||c.type.match(/^(.*)\[(\d+)?\]$/))throw new FilterTypeNotSupportedError(c.type);return encodeAbiParameters([c],[a])}function createFilterRequestScope(c,{method:a}){var et,nt;const d={};return c.transport.type==="fallback"&&((nt=(et=c.transport).onResponse)==null||nt.call(et,({method:tt,response:bt,status:gt,transport:wt})=>{gt==="success"&&a===tt&&(d[bt]=wt.request)})),tt=>d[tt]||c.request}async function createContractEventFilter(c,a){const{address:d,abi:et,args:nt,eventName:tt,fromBlock:bt,strict:gt,toBlock:wt}=a,St=createFilterRequestScope(c,{method:"eth_newFilter"}),Mt=tt?encodeEventTopics({abi:et,args:nt,eventName:tt}):void 0,_t=await c.request({method:"eth_newFilter",params:[{address:d,fromBlock:typeof bt=="bigint"?numberToHex(bt):bt,toBlock:typeof wt=="bigint"?numberToHex(wt):wt,topics:Mt}]});return{abi:et,args:nt,eventName:tt,id:_t,request:St(_t),strict:!!gt,type:"event"}}function parseAccount(c){return typeof c=="string"?{address:c,type:"json-rpc"}:c}const docsPath$3="/docs/contract/encodeFunctionData";function prepareEncodeFunctionData(c){const{abi:a,args:d,functionName:et}=c;let nt=a[0];if(et){const tt=getAbiItem({abi:a,args:d,name:et});if(!tt)throw new AbiFunctionNotFoundError(et,{docsPath:docsPath$3});nt=tt}if(nt.type!=="function")throw new AbiFunctionNotFoundError(void 0,{docsPath:docsPath$3});return{abi:[nt],functionName:toFunctionSelector(formatAbiItem(nt))}}function encodeFunctionData(c){const{args:a}=c,{abi:d,functionName:et}=(()=>{var gt;return c.abi.length===1&&((gt=c.functionName)!=null&>.startsWith("0x"))?c:prepareEncodeFunctionData(c)})(),nt=d[0],tt=et,bt="inputs"in nt&&nt.inputs?encodeAbiParameters(nt.inputs,a??[]):void 0;return concatHex([tt,bt??"0x"])}const panicReasons={1:"An `assert` condition failed.",17:"Arithmetic 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."},solidityError={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},solidityPanic={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};class NegativeOffsetError extends BaseError{constructor({offset:a}){super(`Offset \`${a}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NegativeOffsetError"})}}class PositionOutOfBoundsError extends BaseError{constructor({length:a,position:d}){super(`Position \`${d}\` is out of bounds (\`0 < position < ${a}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PositionOutOfBoundsError"})}}class RecursiveReadLimitExceededError extends BaseError{constructor({count:a,limit:d}){super(`Recursive read limit of \`${d}\` exceeded (recursive read count: \`${a}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RecursiveReadLimitExceededError"})}}const staticCursor={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new RecursiveReadLimitExceededError({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(c){if(c<0||c>this.bytes.length-1)throw new PositionOutOfBoundsError({length:this.bytes.length,position:c})},decrementPosition(c){if(c<0)throw new NegativeOffsetError({offset:c});const a=this.position-c;this.assertPosition(a),this.position=a},getReadCount(c){return this.positionReadCount.get(c||this.position)||0},incrementPosition(c){if(c<0)throw new NegativeOffsetError({offset:c});const a=this.position+c;this.assertPosition(a),this.position=a},inspectByte(c){const a=c??this.position;return this.assertPosition(a),this.bytes[a]},inspectBytes(c,a){const d=a??this.position;return this.assertPosition(d+c-1),this.bytes.subarray(d,d+c)},inspectUint8(c){const a=c??this.position;return this.assertPosition(a),this.bytes[a]},inspectUint16(c){const a=c??this.position;return this.assertPosition(a+1),this.dataView.getUint16(a)},inspectUint24(c){const a=c??this.position;return this.assertPosition(a+2),(this.dataView.getUint16(a)<<8)+this.dataView.getUint8(a+2)},inspectUint32(c){const a=c??this.position;return this.assertPosition(a+3),this.dataView.getUint32(a)},pushByte(c){this.assertPosition(this.position),this.bytes[this.position]=c,this.position++},pushBytes(c){this.assertPosition(this.position+c.length-1),this.bytes.set(c,this.position),this.position+=c.length},pushUint8(c){this.assertPosition(this.position),this.bytes[this.position]=c,this.position++},pushUint16(c){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,c),this.position+=2},pushUint24(c){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,c>>8),this.dataView.setUint8(this.position+2,c&255),this.position+=3},pushUint32(c){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,c),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const c=this.inspectByte();return this.position++,c},readBytes(c,a){this.assertReadLimit(),this._touch();const d=this.inspectBytes(c);return this.position+=a??c,d},readUint8(){this.assertReadLimit(),this._touch();const c=this.inspectUint8();return this.position+=1,c},readUint16(){this.assertReadLimit(),this._touch();const c=this.inspectUint16();return this.position+=2,c},readUint24(){this.assertReadLimit(),this._touch();const c=this.inspectUint24();return this.position+=3,c},readUint32(){this.assertReadLimit(),this._touch();const c=this.inspectUint32();return this.position+=4,c},get remaining(){return this.bytes.length-this.position},setPosition(c){const a=this.position;return this.assertPosition(c),this.position=c,()=>this.position=a},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const c=this.getReadCount();this.positionReadCount.set(this.position,c+1),c>0&&this.recursiveReadCount++}};function createCursor(c,{recursiveReadLimit:a=8192}={}){const d=Object.create(staticCursor);return d.bytes=c,d.dataView=new DataView(c.buffer,c.byteOffset,c.byteLength),d.positionReadCount=new Map,d.recursiveReadLimit=a,d}function bytesToBigInt(c,a={}){typeof a.size<"u"&&assertSize(c,{size:a.size});const d=bytesToHex(c,a);return hexToBigInt(d,a)}function bytesToBool(c,a={}){let d=c;if(typeof a.size<"u"&&(assertSize(d,{size:a.size}),d=trim(d)),d.length>1||d[0]>1)throw new InvalidBytesBooleanError(d);return!!d[0]}function bytesToNumber(c,a={}){typeof a.size<"u"&&assertSize(c,{size:a.size});const d=bytesToHex(c,a);return hexToNumber(d,a)}function bytesToString(c,a={}){let d=c;return typeof a.size<"u"&&(assertSize(d,{size:a.size}),d=trim(d,{dir:"right"})),new TextDecoder().decode(d)}function decodeAbiParameters(c,a){const d=typeof a=="string"?hexToBytes(a):a,et=createCursor(d);if(size$1(d)===0&&c.length>0)throw new AbiDecodingZeroDataError;if(size$1(a)&&size$1(a)<32)throw new AbiDecodingDataSizeTooSmallError({data:typeof a=="string"?a:bytesToHex(a),params:c,size:size$1(a)});let nt=0;const tt=[];for(let bt=0;bt48?bytesToBigInt(nt,{signed:d}):bytesToNumber(nt,{signed:d}),32]}function decodeTuple(c,a,{staticPosition:d}){const et=a.components.length===0||a.components.some(({name:bt})=>!bt),nt=et?[]:{};let tt=0;if(hasDynamicChild(a)){const bt=bytesToNumber(c.readBytes(sizeOfOffset)),gt=d+bt;for(let wt=0;wtbt.type==="error"&&et===toFunctionSelector(formatAbiItem(bt)));if(!tt)throw new AbiErrorSignatureNotFoundError(et,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:tt,args:"inputs"in tt&&tt.inputs&&tt.inputs.length>0?decodeAbiParameters(tt.inputs,slice(d,4)):void 0,errorName:tt.name}}const stringify=(c,a,d)=>JSON.stringify(c,(et,nt)=>{const tt=typeof nt=="bigint"?nt.toString():nt;return typeof a=="function"?a(et,tt):tt},d);function formatAbiItemWithArgs({abiItem:c,args:a,includeFunctionName:d=!0,includeName:et=!1}){if("name"in c&&"inputs"in c&&c.inputs)return`${d?c.name:""}(${c.inputs.map((nt,tt)=>`${et&&nt.name?`${nt.name}: `:""}${typeof a[tt]=="object"?stringify(a[tt]):a[tt]}`).join(", ")})`}const etherUnits={gwei:9,wei:18},gweiUnits={ether:-9,wei:9};function formatUnits(c,a){let d=c.toString();const et=d.startsWith("-");et&&(d=d.slice(1)),d=d.padStart(a,"0");let[nt,tt]=[d.slice(0,d.length-a),d.slice(d.length-a)];return tt=tt.replace(/(0+)$/,""),`${et?"-":""}${nt||"0"}${tt?`.${tt}`:""}`}function formatEther(c,a="wei"){return formatUnits(c,etherUnits[a])}function formatGwei(c,a="wei"){return formatUnits(c,gweiUnits[a])}class AccountStateConflictError extends BaseError{constructor({address:a}){super(`State for account "${a}" is set multiple times.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountStateConflictError"})}}class StateAssignmentConflictError extends BaseError{constructor(){super("state and stateDiff are set on the same account."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"StateAssignmentConflictError"})}}function prettyStateMapping(c){return c.reduce((a,{slot:d,value:et})=>`${a} ${d}: ${et} +`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}class UnsupportedPackedAbiType extends BaseError{constructor(a){super(`Type "${a}" is not supported for packed encoding.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedPackedAbiType"})}}class FilterTypeNotSupportedError extends BaseError{constructor(a){super(`Filter type "${a}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}}class SliceOffsetOutOfBoundsError extends BaseError{constructor({offset:a,position:d,size:et}){super(`Slice ${d==="start"?"starting":"ending"} at offset "${a}" is out-of-bounds (size: ${et}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}}class SizeExceedsPaddingSizeError extends BaseError{constructor({size:a,targetSize:d,type:et}){super(`${et.charAt(0).toUpperCase()}${et.slice(1).toLowerCase()} size (${a}) exceeds padding size (${d}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}}class InvalidBytesLengthError extends BaseError{constructor({size:a,targetSize:d,type:et}){super(`${et.charAt(0).toUpperCase()}${et.slice(1).toLowerCase()} is expected to be ${d} ${et} long, but is ${a} ${et} long.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidBytesLengthError"})}}function pad(c,{dir:a,size:d=32}={}){return typeof c=="string"?padHex(c,{dir:a,size:d}):padBytes(c,{dir:a,size:d})}function padHex(c,{dir:a,size:d=32}={}){if(d===null)return c;const et=c.replace("0x","");if(et.length>d*2)throw new SizeExceedsPaddingSizeError({size:Math.ceil(et.length/2),targetSize:d,type:"hex"});return`0x${et[a==="right"?"padEnd":"padStart"](d*2,"0")}`}function padBytes(c,{dir:a,size:d=32}={}){if(d===null)return c;if(c.length>d)throw new SizeExceedsPaddingSizeError({size:c.length,targetSize:d,type:"bytes"});const et=new Uint8Array(d);for(let nt=0;nta)throw new SizeOverflowError({givenSize:size$1(c),maxSize:a})}function hexToBigInt(c,a={}){const{signed:d}=a;a.size&&assertSize(c,{size:a.size});const et=BigInt(c);if(!d)return et;const nt=(c.length-2)/2,tt=(1n<a.toString(16).padStart(2,"0"));function toHex(c,a={}){return typeof c=="number"||typeof c=="bigint"?numberToHex(c,a):typeof c=="string"?stringToHex(c,a):typeof c=="boolean"?boolToHex(c,a):bytesToHex(c,a)}function boolToHex(c,a={}){const d=`0x${Number(c)}`;return typeof a.size=="number"?(assertSize(d,{size:a.size}),pad(d,{size:a.size})):d}function bytesToHex(c,a={}){let d="";for(let nt=0;nttt||nt=charCodeMap.zero&&c<=charCodeMap.nine)return c-charCodeMap.zero;if(c>=charCodeMap.A&&c<=charCodeMap.F)return c-(charCodeMap.A-10);if(c>=charCodeMap.a&&c<=charCodeMap.f)return c-(charCodeMap.a-10)}function hexToBytes(c,a={}){let d=c;a.size&&(assertSize(d,{size:a.size}),d=pad(d,{dir:"right",size:a.size}));let et=d.slice(2);et.length%2&&(et=`0${et}`);const nt=et.length/2,tt=new Uint8Array(nt);for(let bt=0,gt=0;btkeccak256(toBytes(c));function hashSignature(c){return hash(c)}function normalizeSignature(c){let a=!0,d="",et=0,nt="",tt=!1;for(let bt=0;bt{const a=(()=>typeof c=="string"?c:formatAbiItem$1(c))();return normalizeSignature(a)};function toSignatureHash(c){return hashSignature(toSignature(c))}const toEventSelector=toSignatureHash;class InvalidAddressError extends BaseError{constructor({address:a}){super(`Address "${a}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}class LruMap extends Map{constructor(a){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=a}set(a,d){return super.set(a,d),this.maxSize&&this.size>this.maxSize&&this.delete(this.keys().next().value),this}}const checksumAddressCache=new LruMap(8192);function checksumAddress(c,a){if(checksumAddressCache.has(`${c}.${a}`))return checksumAddressCache.get(`${c}.${a}`);const d=a?`${a}${c.toLowerCase()}`:c.substring(2).toLowerCase(),et=keccak256(stringToBytes(d),"bytes"),nt=(a?d.substring(`${a}0x`.length):d).split("");for(let bt=0;bt<40;bt+=2)et[bt>>1]>>4>=8&&nt[bt]&&(nt[bt]=nt[bt].toUpperCase()),(et[bt>>1]&15)>=8&&nt[bt+1]&&(nt[bt+1]=nt[bt+1].toUpperCase());const tt=`0x${nt.join("")}`;return checksumAddressCache.set(`${c}.${a}`,tt),tt}function getAddress(c,a){if(!isAddress(c,{strict:!1}))throw new InvalidAddressError({address:c});return checksumAddress(c,a)}const addressRegex=/^0x[a-fA-F0-9]{40}$/,isAddressCache=new LruMap(8192);function isAddress(c,a){const{strict:d=!0}=a??{},et=`${c}.${d}`;if(isAddressCache.has(et))return isAddressCache.get(et);const nt=(()=>addressRegex.test(c)?c.toLowerCase()===c?!0:d?checksumAddress(c)===c:!0:!1)();return isAddressCache.set(et,nt),nt}function concat(c){return typeof c[0]=="string"?concatHex(c):concatBytes(c)}function concatBytes(c){let a=0;for(const nt of c)a+=nt.length;const d=new Uint8Array(a);let et=0;for(const nt of c)d.set(nt,et),et+=nt.length;return d}function concatHex(c){return`0x${c.reduce((a,d)=>a+d.replace("0x",""),"")}`}function slice(c,a,d,{strict:et}={}){return isHex(c,{strict:!1})?sliceHex(c,a,d,{strict:et}):sliceBytes(c,a,d,{strict:et})}function assertStartOffset(c,a){if(typeof a=="number"&&a>0&&a>size$1(c)-1)throw new SliceOffsetOutOfBoundsError({offset:a,position:"start",size:size$1(c)})}function assertEndOffset(c,a,d){if(typeof a=="number"&&typeof d=="number"&&size$1(c)!==d-a)throw new SliceOffsetOutOfBoundsError({offset:d,position:"end",size:size$1(c)})}function sliceBytes(c,a,d,{strict:et}={}){assertStartOffset(c,a);const nt=c.slice(a,d);return et&&assertEndOffset(nt,a,d),nt}function sliceHex(c,a,d,{strict:et}={}){assertStartOffset(c,a);const nt=`0x${c.replace("0x","").slice((a??0)*2,(d??c.length)*2)}`;return et&&assertEndOffset(nt,a,d),nt}function encodeAbiParameters(c,a){if(c.length!==a.length)throw new AbiEncodingLengthMismatchError({expectedLength:c.length,givenLength:a.length});const d=prepareParams({params:c,values:a}),et=encodeParams(d);return et.length===0?"0x":et}function prepareParams({params:c,values:a}){const d=[];for(let et=0;et0?concat([gt,bt]):gt}}if(nt)return{dynamic:!0,encoded:bt}}return{dynamic:!1,encoded:concat(tt.map(({encoded:bt})=>bt))}}function encodeBytes(c,{param:a}){const[,d]=a.type.split("bytes"),et=size$1(c);if(!d){let nt=c;return et%32!==0&&(nt=padHex(nt,{dir:"right",size:Math.ceil((c.length-2)/2/32)*32})),{dynamic:!0,encoded:concat([padHex(numberToHex(et,{size:32})),nt])}}if(et!==Number.parseInt(d))throw new AbiEncodingBytesSizeMismatchError({expectedSize:Number.parseInt(d),value:c});return{dynamic:!1,encoded:padHex(c,{dir:"right"})}}function encodeBool(c){if(typeof c!="boolean")throw new BaseError(`Invalid boolean value: "${c}" (type: ${typeof c}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:padHex(boolToHex(c))}}function encodeNumber(c,{signed:a}){return{dynamic:!1,encoded:numberToHex(c,{size:32,signed:a})}}function encodeString(c){const a=stringToHex(c),d=Math.ceil(size$1(a)/32),et=[];for(let nt=0;ntnt))}}function getArrayComponents(c){const a=c.match(/^(.*)\[(\d+)?\]$/);return a?[a[2]?Number(a[2]):null,a[1]]:void 0}const toFunctionSelector=c=>slice(toSignatureHash(c),0,4);function getAbiItem(c){const{abi:a,args:d=[],name:et}=c,nt=isHex(et,{strict:!1}),tt=a.filter(gt=>nt?gt.type==="function"?toFunctionSelector(gt)===et:gt.type==="event"?toEventSelector(gt)===et:!1:"name"in gt&>.name===et);if(tt.length===0)return;if(tt.length===1)return tt[0];let bt;for(const gt of tt){if(!("inputs"in gt))continue;if(!d||d.length===0){if(!gt.inputs||gt.inputs.length===0)return gt;continue}if(!gt.inputs||gt.inputs.length===0||gt.inputs.length!==d.length)continue;if(d.every((St,Mt)=>{const _t="inputs"in gt&>.inputs[Mt];return _t?isArgOfType(St,_t):!1})){if(bt&&"inputs"in bt&&bt.inputs){const St=getAmbiguousTypes(gt.inputs,bt.inputs,d);if(St)throw new AbiItemAmbiguityError({abiItem:gt,type:St[0]},{abiItem:bt,type:St[1]})}bt=gt}}return bt||tt[0]}function isArgOfType(c,a){const d=typeof c,et=a.type;switch(et){case"address":return isAddress(c,{strict:!1});case"bool":return d==="boolean";case"function":return d==="string";case"string":return d==="string";default:return et==="tuple"&&"components"in a?Object.values(a.components).every((nt,tt)=>isArgOfType(Object.values(c)[tt],nt)):/^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(et)?d==="number"||d==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(et)?d==="string"||c instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(et)?Array.isArray(c)&&c.every(nt=>isArgOfType(nt,{...a,type:et.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function getAmbiguousTypes(c,a,d){for(const et in c){const nt=c[et],tt=a[et];if(nt.type==="tuple"&&tt.type==="tuple"&&"components"in nt&&"components"in tt)return getAmbiguousTypes(nt.components,tt.components,d[et]);const bt=[nt.type,tt.type];if((()=>bt.includes("address")&&bt.includes("bytes20")?!0:bt.includes("address")&&bt.includes("string")?isAddress(d[et],{strict:!1}):bt.includes("address")&&bt.includes("bytes")?isAddress(d[et],{strict:!1}):!1)())return bt}}const docsPath$4="/docs/contract/encodeEventTopics";function encodeEventTopics(c){var wt;const{abi:a,eventName:d,args:et}=c;let nt=a[0];if(d){const St=getAbiItem({abi:a,name:d});if(!St)throw new AbiEventNotFoundError(d,{docsPath:docsPath$4});nt=St}if(nt.type!=="event")throw new AbiEventNotFoundError(void 0,{docsPath:docsPath$4});const tt=formatAbiItem(nt),bt=toEventSelector(tt);let gt=[];if(et&&"inputs"in nt){const St=(wt=nt.inputs)==null?void 0:wt.filter(_t=>"indexed"in _t&&_t.indexed),Mt=Array.isArray(et)?et:Object.values(et).length>0?(St==null?void 0:St.map(_t=>et[_t.name]))??[]:[];Mt.length>0&&(gt=(St==null?void 0:St.map((_t,Tt)=>Array.isArray(Mt[Tt])?Mt[Tt].map((Rt,kt)=>encodeArg({param:_t,value:Mt[Tt][kt]})):Mt[Tt]?encodeArg({param:_t,value:Mt[Tt]}):null))??[])}return[bt,...gt]}function encodeArg({param:c,value:a}){if(c.type==="string"||c.type==="bytes")return keccak256(toBytes(a));if(c.type==="tuple"||c.type.match(/^(.*)\[(\d+)?\]$/))throw new FilterTypeNotSupportedError(c.type);return encodeAbiParameters([c],[a])}function createFilterRequestScope(c,{method:a}){var et,nt;const d={};return c.transport.type==="fallback"&&((nt=(et=c.transport).onResponse)==null||nt.call(et,({method:tt,response:bt,status:gt,transport:wt})=>{gt==="success"&&a===tt&&(d[bt]=wt.request)})),tt=>d[tt]||c.request}async function createContractEventFilter(c,a){const{address:d,abi:et,args:nt,eventName:tt,fromBlock:bt,strict:gt,toBlock:wt}=a,St=createFilterRequestScope(c,{method:"eth_newFilter"}),Mt=tt?encodeEventTopics({abi:et,args:nt,eventName:tt}):void 0,_t=await c.request({method:"eth_newFilter",params:[{address:d,fromBlock:typeof bt=="bigint"?numberToHex(bt):bt,toBlock:typeof wt=="bigint"?numberToHex(wt):wt,topics:Mt}]});return{abi:et,args:nt,eventName:tt,id:_t,request:St(_t),strict:!!gt,type:"event"}}function parseAccount(c){return typeof c=="string"?{address:c,type:"json-rpc"}:c}const docsPath$3="/docs/contract/encodeFunctionData";function prepareEncodeFunctionData(c){const{abi:a,args:d,functionName:et}=c;let nt=a[0];if(et){const tt=getAbiItem({abi:a,args:d,name:et});if(!tt)throw new AbiFunctionNotFoundError(et,{docsPath:docsPath$3});nt=tt}if(nt.type!=="function")throw new AbiFunctionNotFoundError(void 0,{docsPath:docsPath$3});return{abi:[nt],functionName:toFunctionSelector(formatAbiItem(nt))}}function encodeFunctionData(c){const{args:a}=c,{abi:d,functionName:et}=(()=>{var gt;return c.abi.length===1&&((gt=c.functionName)!=null&>.startsWith("0x"))?c:prepareEncodeFunctionData(c)})(),nt=d[0],tt=et,bt="inputs"in nt&&nt.inputs?encodeAbiParameters(nt.inputs,a??[]):void 0;return concatHex([tt,bt??"0x"])}const panicReasons={1:"An `assert` condition failed.",17:"Arithmetic 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."},solidityError={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},solidityPanic={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};class NegativeOffsetError extends BaseError{constructor({offset:a}){super(`Offset \`${a}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NegativeOffsetError"})}}class PositionOutOfBoundsError extends BaseError{constructor({length:a,position:d}){super(`Position \`${d}\` is out of bounds (\`0 < position < ${a}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PositionOutOfBoundsError"})}}class RecursiveReadLimitExceededError extends BaseError{constructor({count:a,limit:d}){super(`Recursive read limit of \`${d}\` exceeded (recursive read count: \`${a}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RecursiveReadLimitExceededError"})}}const staticCursor={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new RecursiveReadLimitExceededError({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(c){if(c<0||c>this.bytes.length-1)throw new PositionOutOfBoundsError({length:this.bytes.length,position:c})},decrementPosition(c){if(c<0)throw new NegativeOffsetError({offset:c});const a=this.position-c;this.assertPosition(a),this.position=a},getReadCount(c){return this.positionReadCount.get(c||this.position)||0},incrementPosition(c){if(c<0)throw new NegativeOffsetError({offset:c});const a=this.position+c;this.assertPosition(a),this.position=a},inspectByte(c){const a=c??this.position;return this.assertPosition(a),this.bytes[a]},inspectBytes(c,a){const d=a??this.position;return this.assertPosition(d+c-1),this.bytes.subarray(d,d+c)},inspectUint8(c){const a=c??this.position;return this.assertPosition(a),this.bytes[a]},inspectUint16(c){const a=c??this.position;return this.assertPosition(a+1),this.dataView.getUint16(a)},inspectUint24(c){const a=c??this.position;return this.assertPosition(a+2),(this.dataView.getUint16(a)<<8)+this.dataView.getUint8(a+2)},inspectUint32(c){const a=c??this.position;return this.assertPosition(a+3),this.dataView.getUint32(a)},pushByte(c){this.assertPosition(this.position),this.bytes[this.position]=c,this.position++},pushBytes(c){this.assertPosition(this.position+c.length-1),this.bytes.set(c,this.position),this.position+=c.length},pushUint8(c){this.assertPosition(this.position),this.bytes[this.position]=c,this.position++},pushUint16(c){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,c),this.position+=2},pushUint24(c){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,c>>8),this.dataView.setUint8(this.position+2,c&255),this.position+=3},pushUint32(c){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,c),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const c=this.inspectByte();return this.position++,c},readBytes(c,a){this.assertReadLimit(),this._touch();const d=this.inspectBytes(c);return this.position+=a??c,d},readUint8(){this.assertReadLimit(),this._touch();const c=this.inspectUint8();return this.position+=1,c},readUint16(){this.assertReadLimit(),this._touch();const c=this.inspectUint16();return this.position+=2,c},readUint24(){this.assertReadLimit(),this._touch();const c=this.inspectUint24();return this.position+=3,c},readUint32(){this.assertReadLimit(),this._touch();const c=this.inspectUint32();return this.position+=4,c},get remaining(){return this.bytes.length-this.position},setPosition(c){const a=this.position;return this.assertPosition(c),this.position=c,()=>this.position=a},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const c=this.getReadCount();this.positionReadCount.set(this.position,c+1),c>0&&this.recursiveReadCount++}};function createCursor(c,{recursiveReadLimit:a=8192}={}){const d=Object.create(staticCursor);return d.bytes=c,d.dataView=new DataView(c.buffer,c.byteOffset,c.byteLength),d.positionReadCount=new Map,d.recursiveReadLimit=a,d}function bytesToBigInt(c,a={}){typeof a.size<"u"&&assertSize(c,{size:a.size});const d=bytesToHex(c,a);return hexToBigInt(d,a)}function bytesToBool(c,a={}){let d=c;if(typeof a.size<"u"&&(assertSize(d,{size:a.size}),d=trim(d)),d.length>1||d[0]>1)throw new InvalidBytesBooleanError(d);return!!d[0]}function bytesToNumber(c,a={}){typeof a.size<"u"&&assertSize(c,{size:a.size});const d=bytesToHex(c,a);return hexToNumber(d,a)}function bytesToString(c,a={}){let d=c;return typeof a.size<"u"&&(assertSize(d,{size:a.size}),d=trim(d,{dir:"right"})),new TextDecoder().decode(d)}function decodeAbiParameters(c,a){const d=typeof a=="string"?hexToBytes(a):a,et=createCursor(d);if(size$1(d)===0&&c.length>0)throw new AbiDecodingZeroDataError;if(size$1(a)&&size$1(a)<32)throw new AbiDecodingDataSizeTooSmallError({data:typeof a=="string"?a:bytesToHex(a),params:c,size:size$1(a)});let nt=0;const tt=[];for(let bt=0;bt48?bytesToBigInt(nt,{signed:d}):bytesToNumber(nt,{signed:d}),32]}function decodeTuple(c,a,{staticPosition:d}){const et=a.components.length===0||a.components.some(({name:bt})=>!bt),nt=et?[]:{};let tt=0;if(hasDynamicChild(a)){const bt=bytesToNumber(c.readBytes(sizeOfOffset)),gt=d+bt;for(let wt=0;wtbt.type==="error"&&et===toFunctionSelector(formatAbiItem(bt)));if(!tt)throw new AbiErrorSignatureNotFoundError(et,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:tt,args:"inputs"in tt&&tt.inputs&&tt.inputs.length>0?decodeAbiParameters(tt.inputs,slice(d,4)):void 0,errorName:tt.name}}const stringify=(c,a,d)=>JSON.stringify(c,(et,nt)=>{const tt=typeof nt=="bigint"?nt.toString():nt;return typeof a=="function"?a(et,tt):tt},d);function formatAbiItemWithArgs({abiItem:c,args:a,includeFunctionName:d=!0,includeName:et=!1}){if("name"in c&&"inputs"in c&&c.inputs)return`${d?c.name:""}(${c.inputs.map((nt,tt)=>`${et&&nt.name?`${nt.name}: `:""}${typeof a[tt]=="object"?stringify(a[tt]):a[tt]}`).join(", ")})`}const etherUnits={gwei:9,wei:18},gweiUnits={ether:-9,wei:9};function formatUnits(c,a){let d=c.toString();const et=d.startsWith("-");et&&(d=d.slice(1)),d=d.padStart(a,"0");let[nt,tt]=[d.slice(0,d.length-a),d.slice(d.length-a)];return tt=tt.replace(/(0+)$/,""),`${et?"-":""}${nt||"0"}${tt?`.${tt}`:""}`}function formatEther(c,a="wei"){return formatUnits(c,etherUnits[a])}function formatGwei(c,a="wei"){return formatUnits(c,gweiUnits[a])}class AccountStateConflictError extends BaseError{constructor({address:a}){super(`State for account "${a}" is set multiple times.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountStateConflictError"})}}class StateAssignmentConflictError extends BaseError{constructor(){super("state and stateDiff are set on the same account."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"StateAssignmentConflictError"})}}function prettyStateMapping(c){return c.reduce((a,{slot:d,value:et})=>`${a} ${d}: ${et} `,"")}function prettyStateOverride(c){return c.reduce((a,{address:d,...et})=>{let nt=`${a} ${d}: `;return et.nonce&&(nt+=` nonce: ${et.nonce} `),et.balance&&(nt+=` balance: ${et.balance} @@ -185,15 +185,15 @@ use chrome, FireFox or Internet Explorer 11`)}var safeBuffer=safeBufferExports$1 `,nt+=prettyStateMapping(et.stateDiff)),nt},` State Override: `).slice(0,-1)}function prettyPrint$1(c){const a=Object.entries(c).map(([et,nt])=>nt===void 0||nt===!1?null:[et,nt]).filter(Boolean),d=a.reduce((et,[nt])=>Math.max(et,nt.length),0);return a.map(([et,nt])=>` ${`${et}:`.padEnd(d+1)} ${nt}`).join(` `)}class FeeConflictError extends BaseError{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}}class InvalidLegacyVError extends BaseError{constructor({v:a}){super(`Invalid \`v\` value "${a}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}}class InvalidSerializableTransactionError extends BaseError{constructor({transaction:a}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",prettyPrint$1(a),"}","","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","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}class InvalidStorageKeySizeError extends BaseError{constructor({storageKey:a}){super(`Size for storage key "${a}" is invalid. Expected 32 bytes. Got ${Math.floor((a.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}}class TransactionNotFoundError extends BaseError{constructor({blockHash:a,blockNumber:d,blockTag:et,hash:nt,index:tt}){let bt="Transaction";et&&tt!==void 0&&(bt=`Transaction at block time "${et}" at index "${tt}"`),a&&tt!==void 0&&(bt=`Transaction at block hash "${a}" at index "${tt}"`),d&&tt!==void 0&&(bt=`Transaction at block number "${d}" at index "${tt}"`),nt&&(bt=`Transaction with hash "${nt}"`),super(`${bt} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}}class TransactionReceiptNotFoundError extends BaseError{constructor({hash:a}){super(`Transaction receipt with hash "${a}" 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 WaitForTransactionReceiptTimeoutError extends BaseError{constructor({hash:a}){super(`Timed out while waiting for transaction with hash "${a}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}}class CallExecutionError extends BaseError{constructor(a,{account:d,docsPath:et,chain:nt,data:tt,gas:bt,gasPrice:gt,maxFeePerGas:wt,maxPriorityFeePerGas:St,nonce:Mt,to:_t,value:Tt,stateOverride:Bt}){var Lt;const kt=d?parseAccount(d):void 0;let It=prettyPrint$1({from:kt==null?void 0:kt.address,to:_t,value:typeof Tt<"u"&&`${formatEther(Tt)} ${((Lt=nt==null?void 0:nt.nativeCurrency)==null?void 0:Lt.symbol)||"ETH"}`,data:tt,gas:bt,gasPrice:typeof gt<"u"&&`${formatGwei(gt)} gwei`,maxFeePerGas:typeof wt<"u"&&`${formatGwei(wt)} gwei`,maxPriorityFeePerGas:typeof St<"u"&&`${formatGwei(St)} gwei`,nonce:Mt});Bt&&(It+=` -${prettyStateOverride(Bt)}`),super(a.shortMessage,{cause:a,docsPath:et,metaMessages:[...a.metaMessages?[...a.metaMessages," "]:[],"Raw Call Arguments:",It].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=a}}class ContractFunctionExecutionError extends BaseError{constructor(a,{abi:d,args:et,contractAddress:nt,docsPath:tt,functionName:bt,sender:gt}){const wt=getAbiItem({abi:d,args:et,name:bt}),St=wt?formatAbiItemWithArgs({abiItem:wt,args:et,includeFunctionName:!1,includeName:!1}):void 0,Mt=wt?formatAbiItem(wt,{includeName:!0}):void 0,_t=prettyPrint$1({address:nt&&getContractAddress(nt),function:Mt,args:St&&St!=="()"&&`${[...Array((bt==null?void 0:bt.length)??0).keys()].map(()=>" ").join("")}${St}`,sender:gt});super(a.shortMessage||`An unknown error occurred while executing the contract function "${bt}".`,{cause:a,docsPath:tt,metaMessages:[...a.metaMessages?[...a.metaMessages," "]:[],"Contract Call:",_t].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=d,this.args=et,this.cause=a,this.contractAddress=nt,this.functionName=bt,this.sender=gt}}class ContractFunctionRevertedError extends BaseError{constructor({abi:a,data:d,functionName:et,message:nt}){let tt,bt,gt,wt;if(d&&d!=="0x")try{bt=decodeErrorResult({abi:a,data:d});const{abiItem:Mt,errorName:_t,args:Tt}=bt;if(_t==="Error")wt=Tt[0];else if(_t==="Panic"){const[Bt]=Tt;wt=panicReasons[Bt]}else{const Bt=Mt?formatAbiItem(Mt,{includeName:!0}):void 0,kt=Mt&&Tt?formatAbiItemWithArgs({abiItem:Mt,args:Tt,includeFunctionName:!1,includeName:!1}):void 0;gt=[Bt?`Error: ${Bt}`:"",kt&&kt!=="()"?` ${[...Array((_t==null?void 0:_t.length)??0).keys()].map(()=>" ").join("")}${kt}`:""]}}catch(Mt){tt=Mt}else nt&&(wt=nt);let St;tt instanceof AbiErrorSignatureNotFoundError&&(St=tt.signature,gt=[`Unable to decode signature "${St}" 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=${St}.`]),super(wt&&wt!=="execution reverted"||St?[`The contract function "${et}" reverted with the following ${St?"signature":"reason"}:`,wt||St].join(` +`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}}class InvalidLegacyVError extends BaseError{constructor({v:a}){super(`Invalid \`v\` value "${a}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}}class InvalidSerializableTransactionError extends BaseError{constructor({transaction:a}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",prettyPrint$1(a),"}","","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","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}class InvalidStorageKeySizeError extends BaseError{constructor({storageKey:a}){super(`Size for storage key "${a}" is invalid. Expected 32 bytes. Got ${Math.floor((a.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}}class TransactionNotFoundError extends BaseError{constructor({blockHash:a,blockNumber:d,blockTag:et,hash:nt,index:tt}){let bt="Transaction";et&&tt!==void 0&&(bt=`Transaction at block time "${et}" at index "${tt}"`),a&&tt!==void 0&&(bt=`Transaction at block hash "${a}" at index "${tt}"`),d&&tt!==void 0&&(bt=`Transaction at block number "${d}" at index "${tt}"`),nt&&(bt=`Transaction with hash "${nt}"`),super(`${bt} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}}class TransactionReceiptNotFoundError extends BaseError{constructor({hash:a}){super(`Transaction receipt with hash "${a}" 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 WaitForTransactionReceiptTimeoutError extends BaseError{constructor({hash:a}){super(`Timed out while waiting for transaction with hash "${a}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}}class CallExecutionError extends BaseError{constructor(a,{account:d,docsPath:et,chain:nt,data:tt,gas:bt,gasPrice:gt,maxFeePerGas:wt,maxPriorityFeePerGas:St,nonce:Mt,to:_t,value:Tt,stateOverride:Rt}){var Lt;const kt=d?parseAccount(d):void 0;let It=prettyPrint$1({from:kt==null?void 0:kt.address,to:_t,value:typeof Tt<"u"&&`${formatEther(Tt)} ${((Lt=nt==null?void 0:nt.nativeCurrency)==null?void 0:Lt.symbol)||"ETH"}`,data:tt,gas:bt,gasPrice:typeof gt<"u"&&`${formatGwei(gt)} gwei`,maxFeePerGas:typeof wt<"u"&&`${formatGwei(wt)} gwei`,maxPriorityFeePerGas:typeof St<"u"&&`${formatGwei(St)} gwei`,nonce:Mt});Rt&&(It+=` +${prettyStateOverride(Rt)}`),super(a.shortMessage,{cause:a,docsPath:et,metaMessages:[...a.metaMessages?[...a.metaMessages," "]:[],"Raw Call Arguments:",It].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=a}}class ContractFunctionExecutionError extends BaseError{constructor(a,{abi:d,args:et,contractAddress:nt,docsPath:tt,functionName:bt,sender:gt}){const wt=getAbiItem({abi:d,args:et,name:bt}),St=wt?formatAbiItemWithArgs({abiItem:wt,args:et,includeFunctionName:!1,includeName:!1}):void 0,Mt=wt?formatAbiItem(wt,{includeName:!0}):void 0,_t=prettyPrint$1({address:nt&&getContractAddress(nt),function:Mt,args:St&&St!=="()"&&`${[...Array((bt==null?void 0:bt.length)??0).keys()].map(()=>" ").join("")}${St}`,sender:gt});super(a.shortMessage||`An unknown error occurred while executing the contract function "${bt}".`,{cause:a,docsPath:tt,metaMessages:[...a.metaMessages?[...a.metaMessages," "]:[],"Contract Call:",_t].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=d,this.args=et,this.cause=a,this.contractAddress=nt,this.functionName=bt,this.sender=gt}}class ContractFunctionRevertedError extends BaseError{constructor({abi:a,data:d,functionName:et,message:nt}){let tt,bt,gt,wt;if(d&&d!=="0x")try{bt=decodeErrorResult({abi:a,data:d});const{abiItem:Mt,errorName:_t,args:Tt}=bt;if(_t==="Error")wt=Tt[0];else if(_t==="Panic"){const[Rt]=Tt;wt=panicReasons[Rt]}else{const Rt=Mt?formatAbiItem(Mt,{includeName:!0}):void 0,kt=Mt&&Tt?formatAbiItemWithArgs({abiItem:Mt,args:Tt,includeFunctionName:!1,includeName:!1}):void 0;gt=[Rt?`Error: ${Rt}`:"",kt&&kt!=="()"?` ${[...Array((_t==null?void 0:_t.length)??0).keys()].map(()=>" ").join("")}${kt}`:""]}}catch(Mt){tt=Mt}else nt&&(wt=nt);let St;tt instanceof AbiErrorSignatureNotFoundError&&(St=tt.signature,gt=[`Unable to decode signature "${St}" 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=${St}.`]),super(wt&&wt!=="execution reverted"||St?[`The contract function "${et}" reverted with the following ${St?"signature":"reason"}:`,wt||St].join(` `):`The contract function "${et}" reverted.`,{cause:tt,metaMessages:gt}),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=bt,this.reason=wt,this.signature=St}}class ContractFunctionZeroDataError extends BaseError{constructor({functionName:a}){super(`The contract function "${a}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${a}",`," - 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 RawContractError extends BaseError{constructor({data:a,message:d}){super(d||""),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=a}}class HttpRequestError extends BaseError{constructor({body:a,details:d,headers:et,status:nt,url:tt}){super("HTTP request failed.",{details:d,metaMessages:[nt&&`Status: ${nt}`,`URL: ${getUrl(tt)}`,a&&`Request body: ${stringify(a)}`].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=a,this.headers=et,this.status=nt,this.url=tt}}class RpcRequestError extends BaseError{constructor({body:a,error:d,url:et}){super("RPC Request failed.",{cause:d,details:d.message,metaMessages:[`URL: ${getUrl(et)}`,`Request body: ${stringify(a)}`]}),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=d.code}}class TimeoutError extends BaseError{constructor({body:a,url:d}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${getUrl(d)}`,`Request body: ${stringify(a)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}}const unknownErrorCode=-1;class RpcError extends BaseError{constructor(a,{code:d,docsPath:et,metaMessages:nt,shortMessage:tt}){super(tt,{cause:a,docsPath:et,metaMessages:nt||(a==null?void 0:a.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=a.name,this.code=a instanceof RpcRequestError?a.code:d??unknownErrorCode}}class ProviderRpcError extends RpcError{constructor(a,d){super(a,d),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=d.data}}class ParseRpcError extends RpcError{constructor(a){super(a,{code:ParseRpcError.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(ParseRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class InvalidRequestRpcError extends RpcError{constructor(a){super(a,{code:InvalidRequestRpcError.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}}Object.defineProperty(InvalidRequestRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class MethodNotFoundRpcError extends RpcError{constructor(a){super(a,{code:MethodNotFoundRpcError.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}}Object.defineProperty(MethodNotFoundRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class InvalidParamsRpcError extends RpcError{constructor(a){super(a,{code:InvalidParamsRpcError.code,shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(` `)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}}Object.defineProperty(InvalidParamsRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class InternalRpcError extends RpcError{constructor(a){super(a,{code:InternalRpcError.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}}Object.defineProperty(InternalRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class InvalidInputRpcError extends RpcError{constructor(a){super(a,{code:InvalidInputRpcError.code,shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(` -`)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}}Object.defineProperty(InvalidInputRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class ResourceNotFoundRpcError extends RpcError{constructor(a){super(a,{code:ResourceNotFoundRpcError.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(ResourceNotFoundRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class ResourceUnavailableRpcError extends RpcError{constructor(a){super(a,{code:ResourceUnavailableRpcError.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}}Object.defineProperty(ResourceUnavailableRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class TransactionRejectedRpcError extends RpcError{constructor(a){super(a,{code:TransactionRejectedRpcError.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}}Object.defineProperty(TransactionRejectedRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class MethodNotSupportedRpcError extends RpcError{constructor(a){super(a,{code:MethodNotSupportedRpcError.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}}Object.defineProperty(MethodNotSupportedRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class LimitExceededRpcError extends RpcError{constructor(a){super(a,{code:LimitExceededRpcError.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}}Object.defineProperty(LimitExceededRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class JsonRpcVersionUnsupportedError extends RpcError{constructor(a){super(a,{code:JsonRpcVersionUnsupportedError.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}}Object.defineProperty(JsonRpcVersionUnsupportedError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class UserRejectedRequestError extends ProviderRpcError{constructor(a){super(a,{code:UserRejectedRequestError.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}}Object.defineProperty(UserRejectedRequestError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class UnauthorizedProviderError extends ProviderRpcError{constructor(a){super(a,{code:UnauthorizedProviderError.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(UnauthorizedProviderError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class UnsupportedProviderMethodError extends ProviderRpcError{constructor(a){super(a,{code:UnsupportedProviderMethodError.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}}Object.defineProperty(UnsupportedProviderMethodError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class ProviderDisconnectedError extends ProviderRpcError{constructor(a){super(a,{code:ProviderDisconnectedError.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}}Object.defineProperty(ProviderDisconnectedError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class ChainDisconnectedError extends ProviderRpcError{constructor(a){super(a,{code:ChainDisconnectedError.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(ChainDisconnectedError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class SwitchChainError extends ProviderRpcError{constructor(a){super(a,{code:SwitchChainError.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}}Object.defineProperty(SwitchChainError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class UnknownRpcError extends RpcError{constructor(a){super(a,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}}const EXECUTION_REVERTED_ERROR_CODE=3;function getContractError(c,{abi:a,address:d,args:et,docsPath:nt,functionName:tt,sender:bt}){const{code:gt,data:wt,message:St,shortMessage:Mt}=c instanceof RawContractError?c:c instanceof BaseError?c.walk(Tt=>"data"in Tt)||c.walk():{},_t=(()=>c instanceof AbiDecodingZeroDataError?new ContractFunctionZeroDataError({functionName:tt}):[EXECUTION_REVERTED_ERROR_CODE,InternalRpcError.code].includes(gt)&&(wt||St||Mt)?new ContractFunctionRevertedError({abi:a,data:typeof wt=="object"?wt.data:wt,functionName:tt,message:Mt??St}):c)();return new ContractFunctionExecutionError(_t,{abi:a,args:et,contractAddress:d,docsPath:nt,functionName:tt,sender:bt})}class EstimateGasExecutionError extends BaseError{constructor(a,{account:d,docsPath:et,chain:nt,data:tt,gas:bt,gasPrice:gt,maxFeePerGas:wt,maxPriorityFeePerGas:St,nonce:Mt,to:_t,value:Tt}){var kt;const Bt=prettyPrint$1({from:d==null?void 0:d.address,to:_t,value:typeof Tt<"u"&&`${formatEther(Tt)} ${((kt=nt==null?void 0:nt.nativeCurrency)==null?void 0:kt.symbol)||"ETH"}`,data:tt,gas:bt,gasPrice:typeof gt<"u"&&`${formatGwei(gt)} gwei`,maxFeePerGas:typeof wt<"u"&&`${formatGwei(wt)} gwei`,maxPriorityFeePerGas:typeof St<"u"&&`${formatGwei(St)} gwei`,nonce:Mt});super(a.shortMessage,{cause:a,docsPath:et,metaMessages:[...a.metaMessages?[...a.metaMessages," "]:[],"Estimate Gas Arguments:",Bt].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=a}}class ExecutionRevertedError extends BaseError{constructor({cause:a,message:d}={}){var nt;const et=(nt=d==null?void 0:d.replace("execution reverted: ",""))==null?void 0:nt.replace("execution reverted","");super(`Execution reverted ${et?`with reason: ${et}`:"for an unknown reason"}.`,{cause:a}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}}Object.defineProperty(ExecutionRevertedError,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(ExecutionRevertedError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class FeeCapTooHighError extends BaseError{constructor({cause:a,maxFeePerGas:d}={}){super(`The fee cap (\`maxFeePerGas\`${d?` = ${formatGwei(d)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:a}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(FeeCapTooHighError,"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 FeeCapTooLowError extends BaseError{constructor({cause:a,maxFeePerGas:d}={}){super(`The fee cap (\`maxFeePerGas\`${d?` = ${formatGwei(d)}`:""} gwei) cannot be lower than the block base fee.`,{cause:a}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}}Object.defineProperty(FeeCapTooLowError,"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 NonceTooHighError extends BaseError{constructor({cause:a,nonce:d}={}){super(`Nonce provided for the transaction ${d?`(${d}) `:""}is higher than the next one expected.`,{cause:a}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}}Object.defineProperty(NonceTooHighError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class NonceTooLowError extends BaseError{constructor({cause:a,nonce:d}={}){super([`Nonce provided for the transaction ${d?`(${d}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(` +`)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}}Object.defineProperty(InvalidInputRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class ResourceNotFoundRpcError extends RpcError{constructor(a){super(a,{code:ResourceNotFoundRpcError.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(ResourceNotFoundRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class ResourceUnavailableRpcError extends RpcError{constructor(a){super(a,{code:ResourceUnavailableRpcError.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}}Object.defineProperty(ResourceUnavailableRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class TransactionRejectedRpcError extends RpcError{constructor(a){super(a,{code:TransactionRejectedRpcError.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}}Object.defineProperty(TransactionRejectedRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class MethodNotSupportedRpcError extends RpcError{constructor(a){super(a,{code:MethodNotSupportedRpcError.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}}Object.defineProperty(MethodNotSupportedRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class LimitExceededRpcError extends RpcError{constructor(a){super(a,{code:LimitExceededRpcError.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}}Object.defineProperty(LimitExceededRpcError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class JsonRpcVersionUnsupportedError extends RpcError{constructor(a){super(a,{code:JsonRpcVersionUnsupportedError.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}}Object.defineProperty(JsonRpcVersionUnsupportedError,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class UserRejectedRequestError extends ProviderRpcError{constructor(a){super(a,{code:UserRejectedRequestError.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}}Object.defineProperty(UserRejectedRequestError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class UnauthorizedProviderError extends ProviderRpcError{constructor(a){super(a,{code:UnauthorizedProviderError.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(UnauthorizedProviderError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class UnsupportedProviderMethodError extends ProviderRpcError{constructor(a){super(a,{code:UnsupportedProviderMethodError.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}}Object.defineProperty(UnsupportedProviderMethodError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class ProviderDisconnectedError extends ProviderRpcError{constructor(a){super(a,{code:ProviderDisconnectedError.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}}Object.defineProperty(ProviderDisconnectedError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class ChainDisconnectedError extends ProviderRpcError{constructor(a){super(a,{code:ChainDisconnectedError.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(ChainDisconnectedError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class SwitchChainError extends ProviderRpcError{constructor(a){super(a,{code:SwitchChainError.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}}Object.defineProperty(SwitchChainError,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class UnknownRpcError extends RpcError{constructor(a){super(a,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}}const EXECUTION_REVERTED_ERROR_CODE=3;function getContractError(c,{abi:a,address:d,args:et,docsPath:nt,functionName:tt,sender:bt}){const{code:gt,data:wt,message:St,shortMessage:Mt}=c instanceof RawContractError?c:c instanceof BaseError?c.walk(Tt=>"data"in Tt)||c.walk():{},_t=(()=>c instanceof AbiDecodingZeroDataError?new ContractFunctionZeroDataError({functionName:tt}):[EXECUTION_REVERTED_ERROR_CODE,InternalRpcError.code].includes(gt)&&(wt||St||Mt)?new ContractFunctionRevertedError({abi:a,data:typeof wt=="object"?wt.data:wt,functionName:tt,message:Mt??St}):c)();return new ContractFunctionExecutionError(_t,{abi:a,args:et,contractAddress:d,docsPath:nt,functionName:tt,sender:bt})}class EstimateGasExecutionError extends BaseError{constructor(a,{account:d,docsPath:et,chain:nt,data:tt,gas:bt,gasPrice:gt,maxFeePerGas:wt,maxPriorityFeePerGas:St,nonce:Mt,to:_t,value:Tt}){var kt;const Rt=prettyPrint$1({from:d==null?void 0:d.address,to:_t,value:typeof Tt<"u"&&`${formatEther(Tt)} ${((kt=nt==null?void 0:nt.nativeCurrency)==null?void 0:kt.symbol)||"ETH"}`,data:tt,gas:bt,gasPrice:typeof gt<"u"&&`${formatGwei(gt)} gwei`,maxFeePerGas:typeof wt<"u"&&`${formatGwei(wt)} gwei`,maxPriorityFeePerGas:typeof St<"u"&&`${formatGwei(St)} gwei`,nonce:Mt});super(a.shortMessage,{cause:a,docsPath:et,metaMessages:[...a.metaMessages?[...a.metaMessages," "]:[],"Estimate Gas Arguments:",Rt].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=a}}class ExecutionRevertedError extends BaseError{constructor({cause:a,message:d}={}){var nt;const et=(nt=d==null?void 0:d.replace("execution reverted: ",""))==null?void 0:nt.replace("execution reverted","");super(`Execution reverted ${et?`with reason: ${et}`:"for an unknown reason"}.`,{cause:a}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}}Object.defineProperty(ExecutionRevertedError,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(ExecutionRevertedError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class FeeCapTooHighError extends BaseError{constructor({cause:a,maxFeePerGas:d}={}){super(`The fee cap (\`maxFeePerGas\`${d?` = ${formatGwei(d)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:a}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(FeeCapTooHighError,"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 FeeCapTooLowError extends BaseError{constructor({cause:a,maxFeePerGas:d}={}){super(`The fee cap (\`maxFeePerGas\`${d?` = ${formatGwei(d)}`:""} gwei) cannot be lower than the block base fee.`,{cause:a}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}}Object.defineProperty(FeeCapTooLowError,"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 NonceTooHighError extends BaseError{constructor({cause:a,nonce:d}={}){super(`Nonce provided for the transaction ${d?`(${d}) `:""}is higher than the next one expected.`,{cause:a}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}}Object.defineProperty(NonceTooHighError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class NonceTooLowError extends BaseError{constructor({cause:a,nonce:d}={}){super([`Nonce provided for the transaction ${d?`(${d}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(` `),{cause:a}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}}Object.defineProperty(NonceTooLowError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class NonceMaxValueError extends BaseError{constructor({cause:a,nonce:d}={}){super(`Nonce provided for the transaction ${d?`(${d}) `:""}exceeds the maximum allowed nonce.`,{cause:a}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}}Object.defineProperty(NonceMaxValueError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class InsufficientFundsError extends BaseError{constructor({cause:a}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(` `),{cause:a,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(InsufficientFundsError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/});class IntrinsicGasTooHighError extends BaseError{constructor({cause:a,gas:d}={}){super(`The amount of gas ${d?`(${d}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:a}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}}Object.defineProperty(IntrinsicGasTooHighError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class IntrinsicGasTooLowError extends BaseError{constructor({cause:a,gas:d}={}){super(`The amount of gas ${d?`(${d}) `:""}provided for the transaction is too low.`,{cause:a}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}}Object.defineProperty(IntrinsicGasTooLowError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class TransactionTypeNotSupportedError extends BaseError{constructor({cause:a}){super("The transaction type is not supported for this chain.",{cause:a}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}}Object.defineProperty(TransactionTypeNotSupportedError,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class TipAboveFeeCapError extends BaseError{constructor({cause:a,maxPriorityFeePerGas:d,maxFeePerGas:et}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${d?` = ${formatGwei(d)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${et?` = ${formatGwei(et)} gwei`:""}).`].join(` -`),{cause:a}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(TipAboveFeeCapError,"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 UnknownNodeError extends BaseError{constructor({cause:a}){super(`An error occurred while executing: ${a==null?void 0:a.shortMessage}`,{cause:a}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}function getNodeError(c,a){const d=(c.details||"").toLowerCase(),et=c instanceof BaseError?c.walk(nt=>nt.code===ExecutionRevertedError.code):c;return et instanceof BaseError?new ExecutionRevertedError({cause:c,message:et.details}):ExecutionRevertedError.nodeMessage.test(d)?new ExecutionRevertedError({cause:c,message:c.details}):FeeCapTooHighError.nodeMessage.test(d)?new FeeCapTooHighError({cause:c,maxFeePerGas:a==null?void 0:a.maxFeePerGas}):FeeCapTooLowError.nodeMessage.test(d)?new FeeCapTooLowError({cause:c,maxFeePerGas:a==null?void 0:a.maxFeePerGas}):NonceTooHighError.nodeMessage.test(d)?new NonceTooHighError({cause:c,nonce:a==null?void 0:a.nonce}):NonceTooLowError.nodeMessage.test(d)?new NonceTooLowError({cause:c,nonce:a==null?void 0:a.nonce}):NonceMaxValueError.nodeMessage.test(d)?new NonceMaxValueError({cause:c,nonce:a==null?void 0:a.nonce}):InsufficientFundsError.nodeMessage.test(d)?new InsufficientFundsError({cause:c}):IntrinsicGasTooHighError.nodeMessage.test(d)?new IntrinsicGasTooHighError({cause:c,gas:a==null?void 0:a.gas}):IntrinsicGasTooLowError.nodeMessage.test(d)?new IntrinsicGasTooLowError({cause:c,gas:a==null?void 0:a.gas}):TransactionTypeNotSupportedError.nodeMessage.test(d)?new TransactionTypeNotSupportedError({cause:c}):TipAboveFeeCapError.nodeMessage.test(d)?new TipAboveFeeCapError({cause:c,maxFeePerGas:a==null?void 0:a.maxFeePerGas,maxPriorityFeePerGas:a==null?void 0:a.maxPriorityFeePerGas}):new UnknownNodeError({cause:c})}function getEstimateGasError(c,{docsPath:a,...d}){const et=(()=>{const nt=getNodeError(c,d);return nt instanceof UnknownNodeError?c:nt})();return new EstimateGasExecutionError(et,{docsPath:a,...d})}function extract(c,{format:a}){if(!a)return{};const d={};function et(tt){const bt=Object.keys(tt);for(const gt of bt)gt in c&&(d[gt]=c[gt]),tt[gt]&&typeof tt[gt]=="object"&&!Array.isArray(tt[gt])&&et(tt[gt])}const nt=a(c||{});return et(nt),d}function defineFormatter(c,a){return({exclude:d,format:et})=>({exclude:d,format:nt=>{const tt=a(nt);if(d)for(const bt of d)delete tt[bt];return{...tt,...et(nt)}},type:c})}const rpcTransactionType={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3"};function formatTransactionRequest(c){const a={};return typeof c.accessList<"u"&&(a.accessList=c.accessList),typeof c.blobVersionedHashes<"u"&&(a.blobVersionedHashes=c.blobVersionedHashes),typeof c.blobs<"u"&&(typeof c.blobs[0]!="string"?a.blobs=c.blobs.map(d=>bytesToHex(d)):a.blobs=c.blobs),typeof c.data<"u"&&(a.data=c.data),typeof c.from<"u"&&(a.from=c.from),typeof c.gas<"u"&&(a.gas=numberToHex(c.gas)),typeof c.gasPrice<"u"&&(a.gasPrice=numberToHex(c.gasPrice)),typeof c.maxFeePerBlobGas<"u"&&(a.maxFeePerBlobGas=numberToHex(c.maxFeePerBlobGas)),typeof c.maxFeePerGas<"u"&&(a.maxFeePerGas=numberToHex(c.maxFeePerGas)),typeof c.maxPriorityFeePerGas<"u"&&(a.maxPriorityFeePerGas=numberToHex(c.maxPriorityFeePerGas)),typeof c.nonce<"u"&&(a.nonce=numberToHex(c.nonce)),typeof c.to<"u"&&(a.to=c.to),typeof c.type<"u"&&(a.type=rpcTransactionType[c.type]),typeof c.value<"u"&&(a.value=numberToHex(c.value)),a}const defineTransactionRequest=defineFormatter("transactionRequest",formatTransactionRequest);function serializeStateMapping(c){if(!(!c||c.length===0))return c.reduce((a,{slot:d,value:et})=>{if(d.length!==66)throw new InvalidBytesLengthError({size:d.length,targetSize:66,type:"hex"});if(et.length!==66)throw new InvalidBytesLengthError({size:et.length,targetSize:66,type:"hex"});return a[d]=et,a},{})}function serializeAccountStateOverride(c){const{balance:a,nonce:d,state:et,stateDiff:nt,code:tt}=c,bt={};if(tt!==void 0&&(bt.code=tt),a!==void 0&&(bt.balance=numberToHex(a)),d!==void 0&&(bt.nonce=numberToHex(d)),et!==void 0&&(bt.state=serializeStateMapping(et)),nt!==void 0){if(bt.state)throw new StateAssignmentConflictError;bt.stateDiff=serializeStateMapping(nt)}return bt}function serializeStateOverride(c){if(!c)return;const a={};for(const{address:d,...et}of c){if(!isAddress(d,{strict:!1}))throw new InvalidAddressError({address:d});if(a[d])throw new AccountStateConflictError({address:d});a[d]=serializeAccountStateOverride(et)}return a}function assertRequest(c){const{account:a,gasPrice:d,maxFeePerGas:et,maxPriorityFeePerGas:nt,to:tt}=c,bt=a?parseAccount(a):void 0;if(bt&&!isAddress(bt.address))throw new InvalidAddressError({address:bt.address});if(tt&&!isAddress(tt))throw new InvalidAddressError({address:tt});if(typeof d<"u"&&(typeof et<"u"||typeof nt<"u"))throw new FeeConflictError;if(et&&et>2n**256n-1n)throw new FeeCapTooHighError({maxFeePerGas:et});if(nt&&et&&nt>et)throw new TipAboveFeeCapError({maxFeePerGas:et,maxPriorityFeePerGas:nt})}class BaseFeeScalarError extends BaseError{constructor(){super("`baseFeeMultiplier` must be greater than 1."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseFeeScalarError"})}}class Eip1559FeesNotSupportedError extends BaseError{constructor(){super("Chain does not support EIP-1559 fees."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Eip1559FeesNotSupportedError"})}}class MaxFeePerGasTooLowError extends BaseError{constructor({maxPriorityFeePerGas:a}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${formatGwei(a)} gwei).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MaxFeePerGasTooLowError"})}}class BlockNotFoundError extends BaseError{constructor({blockHash:a,blockNumber:d}){let et="Block";a&&(et=`Block at hash "${a}"`),d&&(et=`Block at number "${d}"`),super(`${et} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}const transactionType={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844"};function formatTransaction(c){const a={...c,blockHash:c.blockHash?c.blockHash:null,blockNumber:c.blockNumber?BigInt(c.blockNumber):null,chainId:c.chainId?hexToNumber(c.chainId):void 0,gas:c.gas?BigInt(c.gas):void 0,gasPrice:c.gasPrice?BigInt(c.gasPrice):void 0,maxFeePerBlobGas:c.maxFeePerBlobGas?BigInt(c.maxFeePerBlobGas):void 0,maxFeePerGas:c.maxFeePerGas?BigInt(c.maxFeePerGas):void 0,maxPriorityFeePerGas:c.maxPriorityFeePerGas?BigInt(c.maxPriorityFeePerGas):void 0,nonce:c.nonce?hexToNumber(c.nonce):void 0,to:c.to?c.to:null,transactionIndex:c.transactionIndex?Number(c.transactionIndex):null,type:c.type?transactionType[c.type]:void 0,typeHex:c.type?c.type:void 0,value:c.value?BigInt(c.value):void 0,v:c.v?BigInt(c.v):void 0};return a.yParity=(()=>{if(c.yParity)return Number(c.yParity);if(typeof a.v=="bigint"){if(a.v===0n||a.v===27n)return 0;if(a.v===1n||a.v===28n)return 1;if(a.v>=35n)return a.v%2n===0n?1:0}})(),a.type==="legacy"&&(delete a.accessList,delete a.maxFeePerBlobGas,delete a.maxFeePerGas,delete a.maxPriorityFeePerGas,delete a.yParity),a.type==="eip2930"&&(delete a.maxFeePerBlobGas,delete a.maxFeePerGas,delete a.maxPriorityFeePerGas),a.type==="eip1559"&&delete a.maxFeePerBlobGas,a}const defineTransaction=defineFormatter("transaction",formatTransaction);function formatBlock(c){var d;const a=(d=c.transactions)==null?void 0:d.map(et=>typeof et=="string"?et:formatTransaction(et));return{...c,baseFeePerGas:c.baseFeePerGas?BigInt(c.baseFeePerGas):null,blobGasUsed:c.blobGasUsed?BigInt(c.blobGasUsed):void 0,difficulty:c.difficulty?BigInt(c.difficulty):void 0,excessBlobGas:c.excessBlobGas?BigInt(c.excessBlobGas):void 0,gasLimit:c.gasLimit?BigInt(c.gasLimit):void 0,gasUsed:c.gasUsed?BigInt(c.gasUsed):void 0,hash:c.hash?c.hash:null,logsBloom:c.logsBloom?c.logsBloom:null,nonce:c.nonce?c.nonce:null,number:c.number?BigInt(c.number):null,size:c.size?BigInt(c.size):void 0,timestamp:c.timestamp?BigInt(c.timestamp):void 0,transactions:a,totalDifficulty:c.totalDifficulty?BigInt(c.totalDifficulty):null}}const defineBlock=defineFormatter("block",formatBlock);async function getBlock(c,{blockHash:a,blockNumber:d,blockTag:et,includeTransactions:nt}={}){var Mt,_t,Tt;const tt=et??"latest",bt=nt??!1,gt=d!==void 0?numberToHex(d):void 0;let wt=null;if(a?wt=await c.request({method:"eth_getBlockByHash",params:[a,bt]}):wt=await c.request({method:"eth_getBlockByNumber",params:[gt||tt,bt]}),!wt)throw new BlockNotFoundError({blockHash:a,blockNumber:d});return(((Tt=(_t=(Mt=c.chain)==null?void 0:Mt.formatters)==null?void 0:_t.block)==null?void 0:Tt.format)||formatBlock)(wt)}async function getGasPrice(c){const a=await c.request({method:"eth_gasPrice"});return BigInt(a)}async function estimateMaxPriorityFeePerGas(c,a){return internal_estimateMaxPriorityFeePerGas(c,a)}async function internal_estimateMaxPriorityFeePerGas(c,a){var tt,bt,gt;const{block:d,chain:et=c.chain,request:nt}=a||{};if(typeof((tt=et==null?void 0:et.fees)==null?void 0:tt.defaultPriorityFee)=="function"){const wt=d||await getAction(c,getBlock,"getBlock")({});return et.fees.defaultPriorityFee({block:wt,client:c,request:nt})}if(typeof((bt=et==null?void 0:et.fees)==null?void 0:bt.defaultPriorityFee)<"u")return(gt=et==null?void 0:et.fees)==null?void 0:gt.defaultPriorityFee;try{const wt=await c.request({method:"eth_maxPriorityFeePerGas"});return hexToBigInt(wt)}catch{const[wt,St]=await Promise.all([d?Promise.resolve(d):getAction(c,getBlock,"getBlock")({}),getAction(c,getGasPrice,"getGasPrice")({})]);if(typeof wt.baseFeePerGas!="bigint")throw new Eip1559FeesNotSupportedError;const Mt=St-wt.baseFeePerGas;return Mt<0n?0n:Mt}}async function estimateFeesPerGas(c,a){return internal_estimateFeesPerGas(c,a)}async function internal_estimateFeesPerGas(c,a){var Tt,Bt;const{block:d,chain:et=c.chain,request:nt,type:tt="eip1559"}=a||{},bt=await(async()=>{var kt,It;return typeof((kt=et==null?void 0:et.fees)==null?void 0:kt.baseFeeMultiplier)=="function"?et.fees.baseFeeMultiplier({block:d,client:c,request:nt}):((It=et==null?void 0:et.fees)==null?void 0:It.baseFeeMultiplier)??1.2})();if(bt<1)throw new BaseFeeScalarError;const wt=10**(((Tt=bt.toString().split(".")[1])==null?void 0:Tt.length)??0),St=kt=>kt*BigInt(Math.ceil(bt*wt))/BigInt(wt),Mt=d||await getAction(c,getBlock,"getBlock")({});if(typeof((Bt=et==null?void 0:et.fees)==null?void 0:Bt.estimateFeesPerGas)=="function"){const kt=await et.fees.estimateFeesPerGas({block:d,client:c,multiply:St,request:nt,type:tt});if(kt!==null)return kt}if(tt==="eip1559"){if(typeof Mt.baseFeePerGas!="bigint")throw new Eip1559FeesNotSupportedError;const kt=typeof(nt==null?void 0:nt.maxPriorityFeePerGas)=="bigint"?nt.maxPriorityFeePerGas:await internal_estimateMaxPriorityFeePerGas(c,{block:Mt,chain:et,request:nt}),It=St(Mt.baseFeePerGas);return{maxFeePerGas:(nt==null?void 0:nt.maxFeePerGas)??It+kt,maxPriorityFeePerGas:kt}}return{gasPrice:(nt==null?void 0:nt.gasPrice)??St(await getAction(c,getGasPrice,"getGasPrice")({}))}}async function getTransactionCount(c,{address:a,blockTag:d="latest",blockNumber:et}){const nt=await c.request({method:"eth_getTransactionCount",params:[a,et?numberToHex(et):d]});return hexToNumber(nt)}function blobsToCommitments(c){const{kzg:a}=c,d=c.to??(typeof c.blobs[0]=="string"?"hex":"bytes"),et=typeof c.blobs[0]=="string"?c.blobs.map(tt=>hexToBytes(tt)):c.blobs,nt=[];for(const tt of et)nt.push(Uint8Array.from(a.blobToKzgCommitment(tt)));return d==="bytes"?nt:nt.map(tt=>bytesToHex(tt))}function blobsToProofs(c){const{kzg:a}=c,d=c.to??(typeof c.blobs[0]=="string"?"hex":"bytes"),et=typeof c.blobs[0]=="string"?c.blobs.map(bt=>hexToBytes(bt)):c.blobs,nt=typeof c.commitments[0]=="string"?c.commitments.map(bt=>hexToBytes(bt)):c.commitments,tt=[];for(let bt=0;btbytesToHex(bt))}function sha256(c,a){const d=a||"hex",et=sha256$1(isHex(c,{strict:!1})?toBytes(c):c);return d==="bytes"?et:toHex(et)}function commitmentToVersionedHash(c){const{commitment:a,version:d=1}=c,et=c.to??(typeof a=="string"?"hex":"bytes"),nt=sha256(a,"bytes");return nt.set([d],0),et==="bytes"?nt:bytesToHex(nt)}function commitmentsToVersionedHashes(c){const{commitments:a,version:d}=c,et=c.to??(typeof a[0]=="string"?"hex":"bytes"),nt=[];for(const tt of a)nt.push(commitmentToVersionedHash({commitment:tt,to:et,version:d}));return nt}const blobsPerTransaction=6,bytesPerFieldElement=32,fieldElementsPerBlob=4096,bytesPerBlob=bytesPerFieldElement*fieldElementsPerBlob,maxBytesPerTransaction=bytesPerBlob*blobsPerTransaction-1-1*fieldElementsPerBlob*blobsPerTransaction,versionedHashVersionKzg=1;class BlobSizeTooLargeError extends BaseError{constructor({maxSize:a,size:d}){super("Blob size is too large.",{metaMessages:[`Max: ${a} bytes`,`Given: ${d} bytes`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlobSizeTooLargeError"})}}class EmptyBlobError extends BaseError{constructor(){super("Blob data must not be empty."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EmptyBlobError"})}}class InvalidVersionedHashSizeError extends BaseError{constructor({hash:a,size:d}){super(`Versioned hash "${a}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${d}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidVersionedHashSizeError"})}}class InvalidVersionedHashVersionError extends BaseError{constructor({hash:a,version:d}){super(`Versioned hash "${a}" version is invalid.`,{metaMessages:[`Expected: ${versionedHashVersionKzg}`,`Received: ${d}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidVersionedHashVersionError"})}}function toBlobs(c){const a=c.to??(typeof c.data=="string"?"hex":"bytes"),d=typeof c.data=="string"?hexToBytes(c.data):c.data,et=size$1(d);if(!et)throw new EmptyBlobError;if(et>maxBytesPerTransaction)throw new BlobSizeTooLargeError({maxSize:maxBytesPerTransaction,size:et});const nt=[];let tt=!0,bt=0;for(;tt;){const gt=createCursor(new Uint8Array(bytesPerBlob));let wt=0;for(;wtgt.bytes):nt.map(gt=>bytesToHex(gt.bytes))}function toBlobSidecars(c){const{data:a,kzg:d,to:et}=c,nt=c.blobs??toBlobs({data:a,to:et}),tt=c.commitments??blobsToCommitments({blobs:nt,kzg:d,to:et}),bt=c.proofs??blobsToProofs({blobs:nt,commitments:tt,kzg:d,to:et}),gt=[];for(let wt=0;wt"u"&&_t&&(Tt.nonce=await getAction(c,getTransactionCount,"getTransactionCount")({address:_t.address,blockTag:"pending"})),(St.includes("fees")||St.includes("type"))&&typeof Mt>"u")try{Tt.type=getTransactionType(Tt)}catch{const It=await kt();Tt.type=typeof(It==null?void 0:It.baseFeePerGas)=="bigint"?"eip1559":"legacy"}if(St.includes("fees"))if(Tt.type!=="legacy"&&Tt.type!=="eip2930"){if(typeof Tt.maxFeePerGas>"u"||typeof Tt.maxPriorityFeePerGas>"u"){const It=await kt(),{maxFeePerGas:Lt,maxPriorityFeePerGas:Ot}=await internal_estimateFeesPerGas(c,{block:It,chain:nt,request:Tt});if(typeof a.maxPriorityFeePerGas>"u"&&a.maxFeePerGas&&a.maxFeePerGas"u"&&(Tt.gas=await getAction(c,estimateGas,"estimateGas")({...Tt,account:_t?{address:_t.address,type:"json-rpc"}:void 0})),assertRequest(Tt),delete Tt.parameters,Tt}async function estimateGas(c,a){var nt,tt,bt;const d=a.account??c.account,et=d?parseAccount(d):void 0;try{const{accessList:gt,blobs:wt,blobVersionedHashes:St,blockNumber:Mt,blockTag:_t,data:Tt,gas:Bt,gasPrice:kt,maxFeePerBlobGas:It,maxFeePerGas:Lt,maxPriorityFeePerGas:Ot,nonce:Nt,to:Ft,value:zt,stateOverride:Vt,...Jt}=await prepareTransactionRequest(c,{...a,parameters:(et==null?void 0:et.type)==="local"?void 0:["blobVersionedHashes"]}),rr=(Mt?numberToHex(Mt):void 0)||_t,er=serializeStateOverride(Vt);assertRequest(a);const lr=(bt=(tt=(nt=c.chain)==null?void 0:nt.formatters)==null?void 0:tt.transactionRequest)==null?void 0:bt.format,dt=(lr||formatTransactionRequest)({...extract(Jt,{format:lr}),from:et==null?void 0:et.address,accessList:gt,blobs:wt,blobVersionedHashes:St,data:Tt,gas:Bt,gasPrice:kt,maxFeePerBlobGas:It,maxFeePerGas:Lt,maxPriorityFeePerGas:Ot,nonce:Nt,to:Ft,value:zt}),mt=await c.request({method:"eth_estimateGas",params:er?[dt,rr??"latest",er]:rr?[dt,rr]:[dt]});return BigInt(mt)}catch(gt){throw getEstimateGasError(gt,{...a,account:et,chain:c.chain})}}async function estimateContractGas(c,a){const{abi:d,address:et,args:nt,functionName:tt,...bt}=a,gt=encodeFunctionData({abi:d,args:nt,functionName:tt});try{return await getAction(c,estimateGas,"estimateGas")({data:gt,to:et,...bt})}catch(wt){const St=bt.account?parseAccount(bt.account):void 0;throw getContractError(wt,{abi:d,address:et,args:nt,docsPath:"/docs/contract/estimateContractGas",functionName:tt,sender:St==null?void 0:St.address})}}const docsPath$2="/docs/contract/decodeEventLog";function decodeEventLog(c){const{abi:a,data:d,strict:et,topics:nt}=c,tt=et??!0,[bt,...gt]=nt;if(!bt)throw new AbiEventSignatureEmptyTopicsError({docsPath:docsPath$2});const wt=a.find(It=>It.type==="event"&&bt===toEventSelector(formatAbiItem(It)));if(!(wt&&"name"in wt)||wt.type!=="event")throw new AbiEventSignatureNotFoundError(bt,{docsPath:docsPath$2});const{name:St,inputs:Mt}=wt,_t=Mt==null?void 0:Mt.some(It=>!("name"in It&&It.name));let Tt=_t?[]:{};const Bt=Mt.filter(It=>"indexed"in It&&It.indexed);for(let It=0;It!("indexed"in It&&It.indexed));if(kt.length>0){if(d&&d!=="0x")try{const It=decodeAbiParameters(kt,d);if(It)if(_t)Tt=[...Tt,...It];else for(let Lt=0;Lt0?Tt:void 0}}function decodeTopic({param:c,value:a}){return c.type==="string"||c.type==="bytes"||c.type==="tuple"||c.type.match(/^(.*)\[(\d+)?\]$/)?a:(decodeAbiParameters([c],a)||[])[0]}function parseEventLogs({abi:c,eventName:a,logs:d,strict:et=!0}){return d.map(nt=>{var tt;try{const bt=decodeEventLog({...nt,abi:c,strict:et});return a&&!a.includes(bt.eventName)?null:{...bt,...nt}}catch(bt){let gt,wt;if(bt instanceof AbiEventSignatureNotFoundError)return null;if(bt instanceof DecodeLogDataMismatch||bt instanceof DecodeLogTopicsMismatch){if(et)return null;gt=bt.abiItem.name,wt=(tt=bt.abiItem.inputs)==null?void 0:tt.some(St=>!("name"in St&&St.name))}return{...nt,args:wt?[]:{},eventName:gt}}}).filter(Boolean)}function formatLog(c,{args:a,eventName:d}={}){return{...c,blockHash:c.blockHash?c.blockHash:null,blockNumber:c.blockNumber?BigInt(c.blockNumber):null,logIndex:c.logIndex?Number(c.logIndex):null,transactionHash:c.transactionHash?c.transactionHash:null,transactionIndex:c.transactionIndex?Number(c.transactionIndex):null,...d?{args:a,eventName:d}:{}}}async function getLogs(c,{address:a,blockHash:d,fromBlock:et,toBlock:nt,event:tt,events:bt,args:gt,strict:wt}={}){const St=wt??!1,Mt=bt??(tt?[tt]:void 0);let _t=[];Mt&&(_t=[Mt.flatMap(kt=>encodeEventTopics({abi:[kt],eventName:kt.name,args:gt}))],tt&&(_t=_t[0]));let Tt;d?Tt=await c.request({method:"eth_getLogs",params:[{address:a,topics:_t,blockHash:d}]}):Tt=await c.request({method:"eth_getLogs",params:[{address:a,topics:_t,fromBlock:typeof et=="bigint"?numberToHex(et):et,toBlock:typeof nt=="bigint"?numberToHex(nt):nt}]});const Bt=Tt.map(kt=>formatLog(kt));return Mt?parseEventLogs({abi:Mt,logs:Bt,strict:St}):Bt}async function getContractEvents(c,a){const{abi:d,address:et,args:nt,blockHash:tt,eventName:bt,fromBlock:gt,toBlock:wt,strict:St}=a,Mt=bt?getAbiItem({abi:d,name:bt}):void 0,_t=Mt?void 0:d.filter(Tt=>Tt.type==="event");return getAction(c,getLogs,"getLogs")({address:et,args:nt,blockHash:tt,event:Mt,events:_t,fromBlock:gt,toBlock:wt,strict:St})}const docsPath$1="/docs/contract/decodeFunctionResult";function decodeFunctionResult(c){const{abi:a,args:d,functionName:et,data:nt}=c;let tt=a[0];if(et){const gt=getAbiItem({abi:a,args:d,name:et});if(!gt)throw new AbiFunctionNotFoundError(et,{docsPath:docsPath$1});tt=gt}if(tt.type!=="function")throw new AbiFunctionNotFoundError(void 0,{docsPath:docsPath$1});if(!tt.outputs)throw new AbiFunctionOutputsNotFoundError(tt.name,{docsPath:docsPath$1});const bt=decodeAbiParameters(tt.outputs,nt);if(bt&&bt.length>1)return bt;if(bt&&bt.length===1)return bt[0]}const multicall3Abi=[{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"}],universalResolverErrors=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"},{inputs:[],name:"ResolverNotContract",type:"error"},{inputs:[{name:"returnData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{components:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"errors",type:"tuple[]"}],name:"HttpError",type:"error"}],universalResolverResolveAbi=[...universalResolverErrors,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]},{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],universalResolverReverseAbi=[...universalResolverErrors,{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"}]},{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],textResolverAbi=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],addressResolverAbi=[{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"}]}],universalSignatureValidatorAbi=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}],aggregate3Signature="0x82ad56cb";class ChainDoesNotSupportContract extends BaseError{constructor({blockNumber:a,chain:d,contract:et}){super(`Chain "${d.name}" does not support contract "${et.name}".`,{metaMessages:["This could be due to any of the following:",...a&&et.blockCreated&&et.blockCreated>a?[`- The contract "${et.name}" was not deployed until block ${et.blockCreated} (current block ${a}).`]:[`- The chain does not have the contract "${et.name}" configured.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}}class ClientChainNotConfiguredError extends BaseError{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}}class InvalidChainIdError extends BaseError{constructor({chainId:a}){super(typeof a=="number"?`Chain ID "${a}" is invalid.`:"Chain ID is invalid."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}}function getChainContractAddress({blockNumber:c,chain:a,contract:d}){var nt;const et=(nt=a==null?void 0:a.contracts)==null?void 0:nt[d];if(!et)throw new ChainDoesNotSupportContract({chain:a,contract:{name:d}});if(c&&et.blockCreated&&et.blockCreated>c)throw new ChainDoesNotSupportContract({blockNumber:c,chain:a,contract:{name:d,blockCreated:et.blockCreated}});return et.address}function getCallError(c,{docsPath:a,...d}){const et=(()=>{const nt=getNodeError(c,d);return nt instanceof UnknownNodeError?c:nt})();return new CallExecutionError(et,{docsPath:a,...d})}const schedulerCache=new Map;function createBatchScheduler({fn:c,id:a,shouldSplitBatch:d,wait:et=0,sort:nt}){const tt=async()=>{const Mt=wt();bt();const _t=Mt.map(({args:Tt})=>Tt);_t.length!==0&&c(_t).then(Tt=>{var Bt;nt&&Array.isArray(Tt)&&Tt.sort(nt);for(let kt=0;kt{var Bt;for(let kt=0;ktschedulerCache.delete(a),gt=()=>wt().map(({args:Mt})=>Mt),wt=()=>schedulerCache.get(a)||[],St=Mt=>schedulerCache.set(a,[...wt(),Mt]);return{flush:bt,async schedule(Mt){const _t={},Tt=new Promise((It,Lt)=>{_t.resolve=It,_t.reject=Lt});return(d==null?void 0:d([...gt(),Mt]))&&tt(),wt().length>0?(St({args:Mt,pendingPromise:_t}),Tt):(St({args:Mt,pendingPromise:_t}),setTimeout(tt,et),Tt)}}}async function call(c,a){var zt,Vt,Jt,ir;const{account:d=c.account,batch:et=!!((zt=c.batch)!=null&&zt.multicall),blockNumber:nt,blockTag:tt="latest",accessList:bt,blobs:gt,data:wt,gas:St,gasPrice:Mt,maxFeePerBlobGas:_t,maxFeePerGas:Tt,maxPriorityFeePerGas:Bt,nonce:kt,to:It,value:Lt,stateOverride:Ot,...Nt}=a,Ft=d?parseAccount(d):void 0;try{assertRequest(a);const er=(nt?numberToHex(nt):void 0)||tt,lr=serializeStateOverride(Ot),Ct=(ir=(Jt=(Vt=c.chain)==null?void 0:Vt.formatters)==null?void 0:Jt.transactionRequest)==null?void 0:ir.format,mt=(Ct||formatTransactionRequest)({...extract(Nt,{format:Ct}),from:Ft==null?void 0:Ft.address,accessList:bt,blobs:gt,data:wt,gas:St,gasPrice:Mt,maxFeePerBlobGas:_t,maxFeePerGas:Tt,maxPriorityFeePerGas:Bt,nonce:kt,to:It,value:Lt});if(et&&shouldPerformMulticall({request:mt})&&!lr)try{return await scheduleMulticall(c,{...mt,blockNumber:nt,blockTag:tt})}catch(vt){if(!(vt instanceof ClientChainNotConfiguredError)&&!(vt instanceof ChainDoesNotSupportContract))throw vt}const yt=await c.request({method:"eth_call",params:lr?[mt,er,lr]:[mt,er]});return yt==="0x"?{data:void 0}:{data:yt}}catch(rr){const er=getRevertErrorData(rr),{offchainLookup:lr,offchainLookupSignature:Ct}=await __vitePreload(()=>import("./ccip-2ba37519.js"),[]);if(c.ccipRead!==!1&&(er==null?void 0:er.slice(0,10))===Ct&&It)return{data:await lr(c,{data:er,to:It})};throw getCallError(rr,{...a,account:Ft,chain:c.chain})}}function shouldPerformMulticall({request:c}){const{data:a,to:d,...et}=c;return!(!a||a.startsWith(aggregate3Signature)||!d||Object.values(et).filter(nt=>typeof nt<"u").length>0)}async function scheduleMulticall(c,a){var It;const{batchSize:d=1024,wait:et=0}=typeof((It=c.batch)==null?void 0:It.multicall)=="object"?c.batch.multicall:{},{blockNumber:nt,blockTag:tt="latest",data:bt,multicallAddress:gt,to:wt}=a;let St=gt;if(!St){if(!c.chain)throw new ClientChainNotConfiguredError;St=getChainContractAddress({blockNumber:nt,chain:c.chain,contract:"multicall3"})}const _t=(nt?numberToHex(nt):void 0)||tt,{schedule:Tt}=createBatchScheduler({id:`${c.uid}.${_t}`,wait:et,shouldSplitBatch(Lt){return Lt.reduce((Nt,{data:Ft})=>Nt+(Ft.length-2),0)>d*2},fn:async Lt=>{const Ot=Lt.map(zt=>({allowFailure:!0,callData:zt.data,target:zt.to})),Nt=encodeFunctionData({abi:multicall3Abi,args:[Ot],functionName:"aggregate3"}),Ft=await c.request({method:"eth_call",params:[{data:Nt,to:St},_t]});return decodeFunctionResult({abi:multicall3Abi,args:[Ot],functionName:"aggregate3",data:Ft||"0x"})}}),[{returnData:Bt,success:kt}]=await Tt({data:bt,to:wt});if(!kt)throw new RawContractError({data:Bt});return Bt==="0x"?{data:void 0}:{data:Bt}}function getRevertErrorData(c){var d;if(!(c instanceof BaseError))return;const a=c.walk();return typeof(a==null?void 0:a.data)=="object"?(d=a.data)==null?void 0:d.data:a.data}async function readContract(c,a){const{abi:d,address:et,args:nt,functionName:tt,...bt}=a,gt=encodeFunctionData({abi:d,args:nt,functionName:tt});try{const{data:wt}=await getAction(c,call,"call")({...bt,data:gt,to:et});return decodeFunctionResult({abi:d,args:nt,functionName:tt,data:wt||"0x"})}catch(wt){throw getContractError(wt,{abi:d,address:et,args:nt,docsPath:"/docs/contract/readContract",functionName:tt})}}async function simulateContract(c,a){const{abi:d,address:et,args:nt,dataSuffix:tt,functionName:bt,...gt}=a,wt=gt.account?parseAccount(gt.account):c.account,St=encodeFunctionData({abi:d,args:nt,functionName:bt});try{const{data:Mt}=await getAction(c,call,"call")({batch:!1,data:`${St}${tt?tt.replace("0x",""):""}`,to:et,...gt,account:wt}),_t=decodeFunctionResult({abi:d,args:nt,functionName:bt,data:Mt||"0x"}),Tt=d.filter(Bt=>"name"in Bt&&Bt.name===a.functionName);return{result:_t,request:{abi:Tt,address:et,args:nt,dataSuffix:tt,functionName:bt,...gt,account:wt}}}catch(Mt){throw getContractError(Mt,{abi:d,address:et,args:nt,docsPath:"/docs/contract/simulateContract",functionName:bt,sender:wt==null?void 0:wt.address})}}const listenersCache$1=new Map,cleanupCache$1=new Map;let callbackCount$1=0;function observe$1(c,a,d){const et=++callbackCount$1,nt=()=>listenersCache$1.get(c)||[],tt=()=>{const Mt=nt();listenersCache$1.set(c,Mt.filter(_t=>_t.id!==et))},bt=()=>{const Mt=cleanupCache$1.get(c);nt().length===1&&Mt&&Mt(),tt()},gt=nt();if(listenersCache$1.set(c,[...gt,{id:et,fns:a}]),gt&>.length>0)return bt;const wt={};for(const Mt in a)wt[Mt]=(..._t)=>{var Bt,kt;const Tt=nt();if(Tt.length!==0)for(const It of Tt)(kt=(Bt=It.fns)[Mt])==null||kt.call(Bt,..._t)};const St=d(wt);return typeof St=="function"&&cleanupCache$1.set(c,St),bt}async function wait(c){return new Promise(a=>setTimeout(a,c))}function poll(c,{emitOnBegin:a,initialWaitTime:d,interval:et}){let nt=!0;const tt=()=>nt=!1;return(async()=>{let gt;a&&(gt=await c({unpoll:tt}));const wt=await(d==null?void 0:d(gt))??et;await wait(wt);const St=async()=>{nt&&(await c({unpoll:tt}),await wait(et),St())};St()})(),tt}const promiseCache=new Map,responseCache=new Map;function getCache(c){const a=(nt,tt)=>({clear:()=>tt.delete(nt),get:()=>tt.get(nt),set:bt=>tt.set(nt,bt)}),d=a(c,promiseCache),et=a(c,responseCache);return{clear:()=>{d.clear(),et.clear()},promise:d,response:et}}async function withCache(c,{cacheKey:a,cacheTime:d=Number.POSITIVE_INFINITY}){const et=getCache(a),nt=et.response.get();if(nt&&d>0&&new Date().getTime()-nt.created.getTime()`blockNumber.${c}`;async function getBlockNumber(c,{cacheTime:a=c.cacheTime}={}){const d=await withCache(()=>c.request({method:"eth_blockNumber"}),{cacheKey:cacheKey(c.uid),cacheTime:a});return BigInt(d)}async function getFilterChanges(c,{filter:a}){const d="strict"in a&&a.strict,et=await a.request({method:"eth_getFilterChanges",params:[a.id]});if(typeof et[0]=="string")return et;const nt=et.map(tt=>formatLog(tt));return!("abi"in a)||!a.abi?nt:parseEventLogs({abi:a.abi,logs:nt,strict:d})}async function uninstallFilter(c,{filter:a}){return a.request({method:"eth_uninstallFilter",params:[a.id]})}function watchContractEvent(c,a){const{abi:d,address:et,args:nt,batch:tt=!0,eventName:bt,fromBlock:gt,onError:wt,onLogs:St,poll:Mt,pollingInterval:_t=c.pollingInterval,strict:Tt}=a;return(()=>typeof Mt<"u"?Mt:typeof gt=="bigint"?!0:!(c.transport.type==="webSocket"||c.transport.type==="fallback"&&c.transport.transports[0].config.type==="webSocket"))()?(()=>{const Lt=Tt??!1,Ot=stringify(["watchContractEvent",et,nt,tt,c.uid,bt,_t,Lt,gt]);return observe$1(Ot,{onLogs:St,onError:wt},Nt=>{let Ft;gt!==void 0&&(Ft=gt-1n);let zt,Vt=!1;const Jt=poll(async()=>{var ir;if(!Vt){try{zt=await getAction(c,createContractEventFilter,"createContractEventFilter")({abi:d,address:et,args:nt,eventName:bt,strict:Lt,fromBlock:gt})}catch{}Vt=!0;return}try{let rr;if(zt)rr=await getAction(c,getFilterChanges,"getFilterChanges")({filter:zt});else{const er=await getAction(c,getBlockNumber,"getBlockNumber")({});Ft&&Ft!==er?rr=await getAction(c,getContractEvents,"getContractEvents")({abi:d,address:et,args:nt,eventName:bt,fromBlock:Ft+1n,toBlock:er,strict:Lt}):rr=[],Ft=er}if(rr.length===0)return;if(tt)Nt.onLogs(rr);else for(const er of rr)Nt.onLogs([er])}catch(rr){zt&&rr instanceof InvalidInputRpcError&&(Vt=!1),(ir=Nt.onError)==null||ir.call(Nt,rr)}},{emitOnBegin:!0,interval:_t});return async()=>{zt&&await getAction(c,uninstallFilter,"uninstallFilter")({filter:zt}),Jt()}})})():(()=>{const Lt=Tt??!1,Ot=stringify(["watchContractEvent",et,nt,tt,c.uid,bt,_t,Lt]);let Nt=!0,Ft=()=>Nt=!1;return observe$1(Ot,{onLogs:St,onError:wt},zt=>((async()=>{try{const Vt=(()=>{if(c.transport.type==="fallback"){const rr=c.transport.transports.find(er=>er.config.type==="webSocket");return rr?rr.value:c.transport}return c.transport})(),Jt=bt?encodeEventTopics({abi:d,eventName:bt,args:nt}):[],{unsubscribe:ir}=await Vt.subscribe({params:["logs",{address:et,topics:Jt}],onData(rr){var lr;if(!Nt)return;const er=rr.result;try{const{eventName:Ct,args:dt}=decodeEventLog({abi:d,data:er.data,topics:er.topics,strict:Tt}),mt=formatLog(er,{args:dt,eventName:Ct});zt.onLogs([mt])}catch(Ct){let dt,mt;if(Ct instanceof DecodeLogDataMismatch||Ct instanceof DecodeLogTopicsMismatch){if(Tt)return;dt=Ct.abiItem.name,mt=(lr=Ct.abiItem.inputs)==null?void 0:lr.some(vt=>!("name"in vt&&vt.name))}const yt=formatLog(er,{args:mt?[]:{},eventName:dt});zt.onLogs([yt])}},onError(rr){var er;(er=zt.onError)==null||er.call(zt,rr)}});Ft=ir,Nt||Ft()}catch(Vt){wt==null||wt(Vt)}})(),()=>Ft()))})()}async function sendRawTransaction(c,{serializedTransaction:a}){return c.request({method:"eth_sendRawTransaction",params:[a]},{retryCount:0})}const size=256;let index=size,buffer;function uid(c=11){if(!buffer||index+c>size*2){buffer="",index=0;for(let a=0;a{const Nt=Ot(Lt);for(const zt in kt)delete Nt[zt];const Ft={...Lt,...Nt};return Object.assign(Ft,{extend:It(Ft)})}}return Object.assign(kt,{extend:It(kt)})}function withRetry(c,{delay:a=100,retryCount:d=2,shouldRetry:et=()=>!0}={}){return new Promise((nt,tt)=>{const bt=async({count:gt=0}={})=>{const wt=async({error:St})=>{const Mt=typeof a=="function"?a({count:gt,error:St}):a;Mt&&await wait(Mt),bt({count:gt+1})};try{const St=await c();nt(St)}catch(St){if(gt{const{retryDelay:nt=150,retryCount:tt=3}={...a,...et};return withRetry(async()=>{try{return await c(d)}catch(bt){const gt=bt;switch(gt.code){case ParseRpcError.code:throw new ParseRpcError(gt);case InvalidRequestRpcError.code:throw new InvalidRequestRpcError(gt);case MethodNotFoundRpcError.code:throw new MethodNotFoundRpcError(gt);case InvalidParamsRpcError.code:throw new InvalidParamsRpcError(gt);case InternalRpcError.code:throw new InternalRpcError(gt);case InvalidInputRpcError.code:throw new InvalidInputRpcError(gt);case ResourceNotFoundRpcError.code:throw new ResourceNotFoundRpcError(gt);case ResourceUnavailableRpcError.code:throw new ResourceUnavailableRpcError(gt);case TransactionRejectedRpcError.code:throw new TransactionRejectedRpcError(gt);case MethodNotSupportedRpcError.code:throw new MethodNotSupportedRpcError(gt);case LimitExceededRpcError.code:throw new LimitExceededRpcError(gt);case JsonRpcVersionUnsupportedError.code:throw new JsonRpcVersionUnsupportedError(gt);case UserRejectedRequestError.code:throw new UserRejectedRequestError(gt);case UnauthorizedProviderError.code:throw new UnauthorizedProviderError(gt);case UnsupportedProviderMethodError.code:throw new UnsupportedProviderMethodError(gt);case ProviderDisconnectedError.code:throw new ProviderDisconnectedError(gt);case ChainDisconnectedError.code:throw new ChainDisconnectedError(gt);case SwitchChainError.code:throw new SwitchChainError(gt);case 5e3:throw new UserRejectedRequestError(gt);default:throw bt instanceof BaseError?bt:new UnknownRpcError(gt)}}},{delay:({count:bt,error:gt})=>{var wt;if(gt&> instanceof HttpRequestError){const St=(wt=gt==null?void 0:gt.headers)==null?void 0:wt.get("Retry-After");if(St!=null&&St.match(/\d/))return Number.parseInt(St)*1e3}return~~(1<shouldRetry(bt)})}}function shouldRetry(c){return"code"in c&&typeof c.code=="number"?c.code===-1||c.code===LimitExceededRpcError.code||c.code===InternalRpcError.code:c instanceof HttpRequestError&&c.status?c.status===403||c.status===408||c.status===413||c.status===429||c.status===500||c.status===502||c.status===503||c.status===504:!0}function createTransport({key:c,name:a,request:d,retryCount:et=3,retryDelay:nt=150,timeout:tt,type:bt},gt){return{config:{key:c,name:a,request:d,retryCount:et,retryDelay:nt,timeout:tt,type:bt},request:buildRequest(d,{retryCount:et,retryDelay:nt}),value:gt}}class UrlRequiredError extends BaseError{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}}function withTimeout(c,{errorInstance:a=new Error("timed out"),timeout:d,signal:et}){return new Promise((nt,tt)=>{(async()=>{let bt;try{const gt=new AbortController;d>0&&(bt=setTimeout(()=>{et?gt.abort():tt(a)},d)),nt(await c({signal:(gt==null?void 0:gt.signal)||null}))}catch(gt){(gt==null?void 0:gt.name)==="AbortError"&&tt(a),tt(gt)}finally{clearTimeout(bt)}})()})}function createIdStore(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const idCache=createIdStore();function getHttpRpcClient(c,a={}){return{async request(d){var _t;const{body:et,onRequest:nt=a.onRequest,onResponse:tt=a.onResponse,timeout:bt=a.timeout??1e4}=d,gt={...a.fetchOptions??{},...d.fetchOptions??{}},{headers:wt,method:St,signal:Mt}=gt;try{const Tt=await withTimeout(async({signal:kt})=>{const It={...gt,body:Array.isArray(et)?stringify(et.map(Nt=>({jsonrpc:"2.0",id:Nt.id??idCache.take(),...Nt}))):stringify({jsonrpc:"2.0",id:et.id??idCache.take(),...et}),headers:{...wt,"Content-Type":"application/json"},method:St||"POST",signal:Mt||(bt>0?kt:null)},Lt=new Request(c,It);return nt&&await nt(Lt),await fetch(c,It)},{errorInstance:new TimeoutError({body:et,url:c}),timeout:bt,signal:!0});tt&&await tt(Tt);let Bt;if((_t=Tt.headers.get("Content-Type"))!=null&&_t.startsWith("application/json")?Bt=await Tt.json():(Bt=await Tt.text(),Bt=JSON.parse(Bt||"{}")),!Tt.ok)throw new HttpRequestError({body:et,details:stringify(Bt.error)||Tt.statusText,headers:Tt.headers,status:Tt.status,url:c});return Bt}catch(Tt){throw Tt instanceof HttpRequestError||Tt instanceof TimeoutError?Tt:new HttpRequestError({body:et,details:Tt.message,url:c})}}}}function http(c,a={}){const{batch:d,fetchOptions:et,key:nt="http",name:tt="HTTP JSON-RPC",onFetchRequest:bt,onFetchResponse:gt,retryDelay:wt}=a;return({chain:St,retryCount:Mt,timeout:_t})=>{const{batchSize:Tt=1e3,wait:Bt=0}=typeof d=="object"?d:{},kt=a.retryCount??Mt,It=_t??a.timeout??1e4,Lt=c||(St==null?void 0:St.rpcUrls.default.http[0]);if(!Lt)throw new UrlRequiredError;const Ot=getHttpRpcClient(Lt,{fetchOptions:et,onRequest:bt,onResponse:gt,timeout:It});return createTransport({key:nt,name:tt,async request({method:Nt,params:Ft}){const zt={method:Nt,params:Ft},{schedule:Vt}=createBatchScheduler({id:Lt,wait:Bt,shouldSplitBatch(er){return er.length>Tt},fn:er=>Ot.request({body:er}),sort:(er,lr)=>er.id-lr.id}),Jt=async er=>d?Vt(er):[await Ot.request({body:er})],[{error:ir,result:rr}]=await Jt(zt);if(ir)throw new RpcRequestError({body:zt,error:ir,url:Lt});return rr},retryCount:kt,retryDelay:wt,timeout:It,type:"http"},{fetchOptions:et,url:Lt})}}function isNullUniversalResolverError(c,a){var et,nt,tt,bt,gt,wt;if(!(c instanceof BaseError))return!1;const d=c.walk(St=>St instanceof ContractFunctionRevertedError);return d instanceof ContractFunctionRevertedError?!!(((et=d.data)==null?void 0:et.errorName)==="ResolverNotFound"||((nt=d.data)==null?void 0:nt.errorName)==="ResolverWildcardNotSupported"||((tt=d.data)==null?void 0:tt.errorName)==="ResolverNotContract"||((bt=d.data)==null?void 0:bt.errorName)==="ResolverError"||((gt=d.data)==null?void 0:gt.errorName)==="HttpError"||(wt=d.reason)!=null&&wt.includes("Wildcard on non-extended resolvers is not supported")||a==="reverse"&&d.reason===panicReasons[50]):!1}function encodedLabelToLabelhash(c){if(c.length!==66||c.indexOf("[")!==0||c.indexOf("]")!==65)return null;const a=`0x${c.slice(1,65)}`;return isHex(a)?a:null}function namehash(c){let a=new Uint8Array(32).fill(0);if(!c)return bytesToHex(a);const d=c.split(".");for(let et=d.length-1;et>=0;et-=1){const nt=encodedLabelToLabelhash(d[et]),tt=nt?toBytes(nt):keccak256(stringToBytes(d[et]),"bytes");a=keccak256(concat([a,tt]),"bytes")}return bytesToHex(a)}function encodeLabelhash(c){return`[${c.slice(2)}]`}function labelhash(c){const a=new Uint8Array(32).fill(0);return c?encodedLabelToLabelhash(c)||keccak256(stringToBytes(c)):bytesToHex(a)}function packetToBytes(c){const a=c.replace(/^\.|\.$/gm,"");if(a.length===0)return new Uint8Array(1);const d=new Uint8Array(stringToBytes(a).byteLength+2);let et=0;const nt=a.split(".");for(let tt=0;tt255&&(bt=stringToBytes(encodeLabelhash(labelhash(nt[tt])))),d[et]=bt.length,d.set(bt,et+1),et+=bt.length+1}return d.byteLength!==et+1?d.slice(0,et+1):d}async function getEnsAddress(c,{blockNumber:a,blockTag:d,coinType:et,name:nt,gatewayUrls:tt,strict:bt,universalResolverAddress:gt}){let wt=gt;if(!wt){if(!c.chain)throw new Error("client chain not configured. universalResolverAddress is required.");wt=getChainContractAddress({blockNumber:a,chain:c.chain,contract:"ensUniversalResolver"})}try{const St=encodeFunctionData({abi:addressResolverAbi,functionName:"addr",...et!=null?{args:[namehash(nt),BigInt(et)]}:{args:[namehash(nt)]}}),Mt={address:wt,abi:universalResolverResolveAbi,functionName:"resolve",args:[toHex(packetToBytes(nt)),St],blockNumber:a,blockTag:d},_t=getAction(c,readContract,"readContract"),Tt=tt?await _t({...Mt,args:[...Mt.args,tt]}):await _t(Mt);if(Tt[0]==="0x")return null;const Bt=decodeFunctionResult({abi:addressResolverAbi,args:et!=null?[namehash(nt),BigInt(et)]:void 0,functionName:"addr",data:Tt[0]});return Bt==="0x"||trim(Bt)==="0x00"?null:Bt}catch(St){if(bt)throw St;if(isNullUniversalResolverError(St,"resolve"))return null;throw St}}class EnsAvatarInvalidMetadataError extends BaseError{constructor({data:a}){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(a)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}}class EnsAvatarInvalidNftUriError extends BaseError{constructor({reason:a}){super(`ENS NFT avatar URI is invalid. ${a}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}}class EnsAvatarUriResolutionError extends BaseError{constructor({uri:a}){super(`Unable to resolve ENS avatar URI "${a}". 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 EnsAvatarUnsupportedNamespaceError extends BaseError{constructor({namespace:a}){super(`ENS NFT avatar namespace "${a}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}}const networkRegex=/(?https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?\/)?(?ipfs\/|ipns\/)?(?[\w\-.]+)(?\/.*)?/,ipfsHashRegex=/^(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\-.]+))?(?\/.*)?$/,base64Regex=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,dataURIRegex=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function isImageUri(c){try{const a=await fetch(c,{method:"HEAD"});if(a.status===200){const d=a.headers.get("content-type");return d==null?void 0:d.startsWith("image/")}return!1}catch(a){return typeof a=="object"&&typeof a.response<"u"||!globalThis.hasOwnProperty("Image")?!1:new Promise(d=>{const et=new Image;et.onload=()=>{d(!0)},et.onerror=()=>{d(!1)},et.src=c})}}function getGateway(c,a){return c?c.endsWith("/")?c.slice(0,-1):c:a}function resolveAvatarUri({uri:c,gatewayUrls:a}){const d=base64Regex.test(c);if(d)return{uri:c,isOnChain:!0,isEncoded:d};const et=getGateway(a==null?void 0:a.ipfs,"https://ipfs.io"),nt=getGateway(a==null?void 0:a.arweave,"https://arweave.net"),tt=c.match(networkRegex),{protocol:bt,subpath:gt,target:wt,subtarget:St=""}=(tt==null?void 0:tt.groups)||{},Mt=bt==="ipns:/"||gt==="ipns/",_t=bt==="ipfs:/"||gt==="ipfs/"||ipfsHashRegex.test(c);if(c.startsWith("http")&&!Mt&&!_t){let Bt=c;return a!=null&&a.arweave&&(Bt=c.replace(/https:\/\/arweave.net/g,a==null?void 0:a.arweave)),{uri:Bt,isOnChain:!1,isEncoded:!1}}if((Mt||_t)&&wt)return{uri:`${et}/${Mt?"ipns":"ipfs"}/${wt}${St}`,isOnChain:!1,isEncoded:!1};if(bt==="ar:/"&&wt)return{uri:`${nt}/${wt}${St||""}`,isOnChain:!1,isEncoded:!1};let Tt=c.replace(dataURIRegex,"");if(Tt.startsWith("nt.json());return await parseAvatarUri({gatewayUrls:c,uri:getJsonImage(d)})}catch{throw new EnsAvatarUriResolutionError({uri:a})}}async function parseAvatarUri({gatewayUrls:c,uri:a}){const{uri:d,isOnChain:et}=resolveAvatarUri({uri:a,gatewayUrls:c});if(et||await isImageUri(d))return d;throw new EnsAvatarUriResolutionError({uri:a})}function parseNftUri(c){let a=c;a.startsWith("did:nft:")&&(a=a.replace("did:nft:","").replace(/_/g,"/"));const[d,et,nt]=a.split("/"),[tt,bt]=d.split(":"),[gt,wt]=et.split(":");if(!tt||tt.toLowerCase()!=="eip155")throw new EnsAvatarInvalidNftUriError({reason:"Only EIP-155 supported"});if(!bt)throw new EnsAvatarInvalidNftUriError({reason:"Chain ID not found"});if(!wt)throw new EnsAvatarInvalidNftUriError({reason:"Contract address not found"});if(!nt)throw new EnsAvatarInvalidNftUriError({reason:"Token ID not found"});if(!gt)throw new EnsAvatarInvalidNftUriError({reason:"ERC namespace not found"});return{chainID:Number.parseInt(bt),namespace:gt.toLowerCase(),contractAddress:wt,tokenID:nt}}async function getNftTokenUri(c,{nft:a}){if(a.namespace==="erc721")return readContract(c,{address:a.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(a.tokenID)]});if(a.namespace==="erc1155")return readContract(c,{address:a.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(a.tokenID)]});throw new EnsAvatarUnsupportedNamespaceError({namespace:a.namespace})}async function parseAvatarRecord(c,{gatewayUrls:a,record:d}){return/eip155:/i.test(d)?parseNftAvatarUri(c,{gatewayUrls:a,record:d}):parseAvatarUri({uri:d,gatewayUrls:a})}async function parseNftAvatarUri(c,{gatewayUrls:a,record:d}){const et=parseNftUri(d),nt=await getNftTokenUri(c,{nft:et}),{uri:tt,isOnChain:bt,isEncoded:gt}=resolveAvatarUri({uri:nt,gatewayUrls:a});if(bt&&(tt.includes("data:application/json;base64,")||tt.startsWith("{"))){const St=gt?atob(tt.replace("data:application/json;base64,","")):tt,Mt=JSON.parse(St);return parseAvatarUri({uri:getJsonImage(Mt),gatewayUrls:a})}let wt=et.tokenID;return et.namespace==="erc1155"&&(wt=wt.replace("0x","").padStart(64,"0")),getMetadataAvatarUri({gatewayUrls:a,uri:tt.replace(/(?:0x)?{id}/,wt)})}async function getEnsText(c,{blockNumber:a,blockTag:d,name:et,key:nt,gatewayUrls:tt,strict:bt,universalResolverAddress:gt}){let wt=gt;if(!wt){if(!c.chain)throw new Error("client chain not configured. universalResolverAddress is required.");wt=getChainContractAddress({blockNumber:a,chain:c.chain,contract:"ensUniversalResolver"})}try{const St={address:wt,abi:universalResolverResolveAbi,functionName:"resolve",args:[toHex(packetToBytes(et)),encodeFunctionData({abi:textResolverAbi,functionName:"text",args:[namehash(et),nt]})],blockNumber:a,blockTag:d},Mt=getAction(c,readContract,"readContract"),_t=tt?await Mt({...St,args:[...St.args,tt]}):await Mt(St);if(_t[0]==="0x")return null;const Tt=decodeFunctionResult({abi:textResolverAbi,functionName:"text",data:_t[0]});return Tt===""?null:Tt}catch(St){if(bt)throw St;if(isNullUniversalResolverError(St,"resolve"))return null;throw St}}async function getEnsAvatar(c,{blockNumber:a,blockTag:d,assetGatewayUrls:et,name:nt,gatewayUrls:tt,strict:bt,universalResolverAddress:gt}){const wt=await getAction(c,getEnsText,"getEnsText")({blockNumber:a,blockTag:d,key:"avatar",name:nt,universalResolverAddress:gt,gatewayUrls:tt,strict:bt});if(!wt)return null;try{return await parseAvatarRecord(c,{record:wt,gatewayUrls:et})}catch{return null}}async function getEnsName(c,{address:a,blockNumber:d,blockTag:et,gatewayUrls:nt,strict:tt,universalResolverAddress:bt}){let gt=bt;if(!gt){if(!c.chain)throw new Error("client chain not configured. universalResolverAddress is required.");gt=getChainContractAddress({blockNumber:d,chain:c.chain,contract:"ensUniversalResolver"})}const wt=`${a.toLowerCase().substring(2)}.addr.reverse`;try{const St={address:gt,abi:universalResolverReverseAbi,functionName:"reverse",args:[toHex(packetToBytes(wt))],blockNumber:d,blockTag:et},Mt=getAction(c,readContract,"readContract"),[_t,Tt]=nt?await Mt({...St,args:[...St.args,nt]}):await Mt(St);return a.toLowerCase()!==Tt.toLowerCase()?null:_t}catch(St){if(tt)throw St;if(isNullUniversalResolverError(St,"reverse"))return null;throw St}}async function getEnsResolver(c,{blockNumber:a,blockTag:d,name:et,universalResolverAddress:nt}){let tt=nt;if(!tt){if(!c.chain)throw new Error("client chain not configured. universalResolverAddress is required.");tt=getChainContractAddress({blockNumber:a,chain:c.chain,contract:"ensUniversalResolver"})}const[bt]=await getAction(c,readContract,"readContract")({address:tt,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[toHex(packetToBytes(et))],blockNumber:a,blockTag:d});return bt}async function createBlockFilter(c){const a=createFilterRequestScope(c,{method:"eth_newBlockFilter"}),d=await c.request({method:"eth_newBlockFilter"});return{id:d,request:a(d),type:"block"}}async function createEventFilter(c,{address:a,args:d,event:et,events:nt,fromBlock:tt,strict:bt,toBlock:gt}={}){const wt=nt??(et?[et]:void 0),St=createFilterRequestScope(c,{method:"eth_newFilter"});let Mt=[];wt&&(Mt=[wt.flatMap(Tt=>encodeEventTopics({abi:[Tt],eventName:Tt.name,args:d}))],et&&(Mt=Mt[0]));const _t=await c.request({method:"eth_newFilter",params:[{address:a,fromBlock:typeof tt=="bigint"?numberToHex(tt):tt,toBlock:typeof gt=="bigint"?numberToHex(gt):gt,...Mt.length?{topics:Mt}:{}}]});return{abi:wt,args:d,eventName:et?et.name:void 0,fromBlock:tt,id:_t,request:St(_t),strict:!!bt,toBlock:gt,type:"event"}}async function createPendingTransactionFilter(c){const a=createFilterRequestScope(c,{method:"eth_newPendingTransactionFilter"}),d=await c.request({method:"eth_newPendingTransactionFilter"});return{id:d,request:a(d),type:"transaction"}}async function getBalance(c,{address:a,blockNumber:d,blockTag:et="latest"}){const nt=d?numberToHex(d):void 0,tt=await c.request({method:"eth_getBalance",params:[a,nt||et]});return BigInt(tt)}async function getBlobBaseFee(c){const a=await c.request({method:"eth_blobBaseFee"});return BigInt(a)}async function getBlockTransactionCount(c,{blockHash:a,blockNumber:d,blockTag:et="latest"}={}){const nt=d!==void 0?numberToHex(d):void 0;let tt;return a?tt=await c.request({method:"eth_getBlockTransactionCountByHash",params:[a]}):tt=await c.request({method:"eth_getBlockTransactionCountByNumber",params:[nt||et]}),hexToNumber(tt)}async function getBytecode(c,{address:a,blockNumber:d,blockTag:et="latest"}){const nt=d!==void 0?numberToHex(d):void 0,tt=await c.request({method:"eth_getCode",params:[a,nt||et]});if(tt!=="0x")return tt}function formatFeeHistory(c){var a;return{baseFeePerGas:c.baseFeePerGas.map(d=>BigInt(d)),gasUsedRatio:c.gasUsedRatio,oldestBlock:BigInt(c.oldestBlock),reward:(a=c.reward)==null?void 0:a.map(d=>d.map(et=>BigInt(et)))}}async function getFeeHistory(c,{blockCount:a,blockNumber:d,blockTag:et="latest",rewardPercentiles:nt}){const tt=d?numberToHex(d):void 0,bt=await c.request({method:"eth_feeHistory",params:[numberToHex(a),tt||et,nt]});return formatFeeHistory(bt)}async function getFilterLogs(c,{filter:a}){const d=a.strict??!1,nt=(await a.request({method:"eth_getFilterLogs",params:[a.id]})).map(tt=>formatLog(tt));return a.abi?parseEventLogs({abi:a.abi,logs:nt,strict:d}):nt}function isAddressEqual(c,a){if(!isAddress(c,{strict:!1}))throw new InvalidAddressError({address:c});if(!isAddress(a,{strict:!1}))throw new InvalidAddressError({address:a});return c.toLowerCase()===a.toLowerCase()}function defineChain(c){return{formatters:void 0,fees:void 0,serializers:void 0,...c}}const arrayRegex=/^(.*)\[([0-9]*)\]$/,bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,integerRegex=/^(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 hashTypedData(c){const{domain:a={},message:d,primaryType:et}=c,nt={EIP712Domain:getTypesForEIP712Domain({domain:a}),...c.types};validateTypedData({domain:a,message:d,primaryType:et,types:nt});const tt=["0x1901"];return a&&tt.push(hashDomain({domain:a,types:nt})),et!=="EIP712Domain"&&tt.push(hashStruct({data:d,primaryType:et,types:nt})),keccak256(concat(tt))}function hashDomain({domain:c,types:a}){return hashStruct({data:c,primaryType:"EIP712Domain",types:a})}function hashStruct({data:c,primaryType:a,types:d}){const et=encodeData({data:c,primaryType:a,types:d});return keccak256(et)}function encodeData({data:c,primaryType:a,types:d}){const et=[{type:"bytes32"}],nt=[hashType({primaryType:a,types:d})];for(const tt of d[a]){const[bt,gt]=encodeField({types:d,name:tt.name,type:tt.type,value:c[tt.name]});et.push(bt),nt.push(gt)}return encodeAbiParameters(et,nt)}function hashType({primaryType:c,types:a}){const d=toHex(encodeType({primaryType:c,types:a}));return keccak256(d)}function encodeType({primaryType:c,types:a}){let d="";const et=findTypeDependencies({primaryType:c,types:a});et.delete(c);const nt=[c,...Array.from(et).sort()];for(const tt of nt)d+=`${tt}(${a[tt].map(({name:bt,type:gt})=>`${gt} ${bt}`).join(",")})`;return d}function findTypeDependencies({primaryType:c,types:a},d=new Set){const et=c.match(/^\w*/u),nt=et==null?void 0:et[0];if(d.has(nt)||a[nt]===void 0)return d;d.add(nt);for(const tt of a[nt])findTypeDependencies({primaryType:tt.type,types:a},d);return d}function encodeField({types:c,name:a,type:d,value:et}){if(c[d]!==void 0)return[{type:"bytes32"},keccak256(encodeData({data:et,primaryType:d,types:c}))];if(d==="bytes")return et=`0x${(et.length%2?"0":"")+et.slice(2)}`,[{type:"bytes32"},keccak256(et)];if(d==="string")return[{type:"bytes32"},keccak256(toHex(et))];if(d.lastIndexOf("]")===d.length-1){const nt=d.slice(0,d.lastIndexOf("[")),tt=et.map(bt=>encodeField({name:a,type:nt,types:c,value:bt}));return[{type:"bytes32"},keccak256(encodeAbiParameters(tt.map(([bt])=>bt),tt.map(([,bt])=>bt)))]}return[{type:d},et]}function validateTypedData(c){const{domain:a,message:d,primaryType:et,types:nt}=c,tt=(bt,gt)=>{for(const wt of bt){const{name:St,type:Mt}=wt,_t=gt[St],Tt=Mt.match(integerRegex);if(Tt&&(typeof _t=="number"||typeof _t=="bigint")){const[It,Lt,Ot]=Tt;numberToHex(_t,{signed:Lt==="int",size:Number.parseInt(Ot)/8})}if(Mt==="address"&&typeof _t=="string"&&!isAddress(_t))throw new InvalidAddressError({address:_t});const Bt=Mt.match(bytesRegex);if(Bt){const[It,Lt]=Bt;if(Lt&&size$1(_t)!==Number.parseInt(Lt))throw new BytesSizeMismatchError({expectedSize:Number.parseInt(Lt),givenSize:size$1(_t)})}const kt=nt[Mt];kt&&tt(kt,_t)}};nt.EIP712Domain&&a&&tt(nt.EIP712Domain,a),et!=="EIP712Domain"&&tt(nt[et],d)}function getTypesForEIP712Domain({domain:c}){return[typeof(c==null?void 0:c.name)=="string"&&{name:"name",type:"string"},(c==null?void 0:c.version)&&{name:"version",type:"string"},typeof(c==null?void 0:c.chainId)=="number"&&{name:"chainId",type:"uint256"},(c==null?void 0:c.verifyingContract)&&{name:"verifyingContract",type:"address"},(c==null?void 0:c.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}const docsPath="/docs/contract/encodeDeployData";function encodeDeployData(c){const{abi:a,args:d,bytecode:et}=c;if(!d||d.length===0)return et;const nt=a.find(bt=>"type"in bt&&bt.type==="constructor");if(!nt)throw new AbiConstructorNotFoundError({docsPath});if(!("inputs"in nt))throw new AbiConstructorParamsNotFoundError({docsPath});if(!nt.inputs||nt.inputs.length===0)throw new AbiConstructorParamsNotFoundError({docsPath});const tt=encodeAbiParameters(nt.inputs,d);return concatHex([et,tt])}function encodePacked(c,a){if(c.length!==a.length)throw new AbiEncodingLengthMismatchError({expectedLength:c.length,givenLength:a.length});const d=[];for(let et=0;etgetEncodable(a))):getEncodableBytes(c)}function getEncodableList(c){const a=c.reduce((nt,tt)=>nt+tt.length,0),d=getSizeOfLength(a);return{length:(()=>a<=55?1+a:1+d+a)(),encode(nt){a<=55?nt.pushByte(192+a):(nt.pushByte(192+55+d),d===1?nt.pushUint8(a):d===2?nt.pushUint16(a):d===3?nt.pushUint24(a):nt.pushUint32(a));for(const{encode:tt}of c)tt(nt)}}}function getEncodableBytes(c){const a=typeof c=="string"?hexToBytes(c):c,d=getSizeOfLength(a.length);return{length:(()=>a.length===1&&a[0]<128?1:a.length<=55?1+a.length:1+d+a.length)(),encode(nt){a.length===1&&a[0]<128?nt.pushBytes(a):a.length<=55?(nt.pushByte(128+a.length),nt.pushBytes(a)):(nt.pushByte(128+55+d),d===1?nt.pushUint8(a.length):d===2?nt.pushUint16(a.length):d===3?nt.pushUint24(a.length):nt.pushUint32(a.length),nt.pushBytes(a))}}}function getSizeOfLength(c){if(c<2**8)return 1;if(c<2**16)return 2;if(c<2**24)return 3;if(c<2**32)return 4;throw new BaseError("Length is too large.")}const receiptStatuses={"0x0":"reverted","0x1":"success"};function formatTransactionReceipt(c){const a={...c,blockNumber:c.blockNumber?BigInt(c.blockNumber):null,contractAddress:c.contractAddress?c.contractAddress:null,cumulativeGasUsed:c.cumulativeGasUsed?BigInt(c.cumulativeGasUsed):null,effectiveGasPrice:c.effectiveGasPrice?BigInt(c.effectiveGasPrice):null,gasUsed:c.gasUsed?BigInt(c.gasUsed):null,logs:c.logs?c.logs.map(d=>formatLog(d)):null,to:c.to?c.to:null,transactionIndex:c.transactionIndex?hexToNumber(c.transactionIndex):null,status:c.status?receiptStatuses[c.status]:null,type:c.type?transactionType[c.type]||c.type:null};return c.blobGasPrice&&(a.blobGasPrice=BigInt(c.blobGasPrice)),c.blobGasUsed&&(a.blobGasUsed=BigInt(c.blobGasUsed)),a}const defineTransactionReceipt=defineFormatter("transactionReceipt",formatTransactionReceipt),presignMessagePrefix=`Ethereum Signed Message: -`;function hashMessage(c,a){const d=(()=>typeof c=="string"?stringToBytes(c):c.raw instanceof Uint8Array?c.raw:toBytes(c.raw))(),et=stringToBytes(`${presignMessagePrefix}${d.length}`);return keccak256(concat([et,d]),a)}function assertTransactionEIP4844(c){const{blobVersionedHashes:a}=c;if(a){if(a.length===0)throw new EmptyBlobError;for(const d of a){const et=size$1(d),nt=hexToNumber(slice(d,0,1));if(et!==32)throw new InvalidVersionedHashSizeError({hash:d,size:et});if(nt!==versionedHashVersionKzg)throw new InvalidVersionedHashVersionError({hash:d,version:nt})}}assertTransactionEIP1559(c)}function assertTransactionEIP1559(c){const{chainId:a,maxPriorityFeePerGas:d,maxFeePerGas:et,to:nt}=c;if(a<=0)throw new InvalidChainIdError({chainId:a});if(nt&&!isAddress(nt))throw new InvalidAddressError({address:nt});if(et&&et>2n**256n-1n)throw new FeeCapTooHighError({maxFeePerGas:et});if(d&&et&&d>et)throw new TipAboveFeeCapError({maxFeePerGas:et,maxPriorityFeePerGas:d})}function assertTransactionEIP2930(c){const{chainId:a,maxPriorityFeePerGas:d,gasPrice:et,maxFeePerGas:nt,to:tt}=c;if(a<=0)throw new InvalidChainIdError({chainId:a});if(tt&&!isAddress(tt))throw new InvalidAddressError({address:tt});if(d||nt)throw new BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(et&&et>2n**256n-1n)throw new FeeCapTooHighError({maxFeePerGas:et})}function assertTransactionLegacy(c){const{chainId:a,maxPriorityFeePerGas:d,gasPrice:et,maxFeePerGas:nt,to:tt,accessList:bt}=c;if(tt&&!isAddress(tt))throw new InvalidAddressError({address:tt});if(typeof a<"u"&&a<=0)throw new InvalidChainIdError({chainId:a});if(d||nt)throw new BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(et&&et>2n**256n-1n)throw new FeeCapTooHighError({maxFeePerGas:et});if(bt)throw new BaseError("`accessList` is not a valid Legacy Transaction attribute.")}function serializeAccessList(c){if(!c||c.length===0)return[];const a=[];for(let d=0;d"u"||typeof Bt>"u")){const Ft=typeof c.blobs[0]=="string"?c.blobs:c.blobs.map(Jt=>bytesToHex(Jt)),zt=c.kzg,Vt=blobsToCommitments({blobs:Ft,kzg:zt});if(typeof Tt>"u"&&(Tt=commitmentsToVersionedHashes({commitments:Vt})),typeof Bt>"u"){const Jt=blobsToProofs({blobs:Ft,commitments:Vt,kzg:zt});Bt=toBlobSidecars({blobs:Ft,commitments:Vt,proofs:Jt})}}const kt=serializeAccessList(Mt),It=[toHex(d),nt?toHex(nt):"0x",St?toHex(St):"0x",wt?toHex(wt):"0x",et?toHex(et):"0x",tt??"0x",bt?toHex(bt):"0x",_t??"0x",kt,gt?toHex(gt):"0x",Tt??[],...toYParitySignatureArray(c,a)],Lt=[],Ot=[],Nt=[];if(Bt)for(let Ft=0;Ft{if(a.v>=35n)return(a.v-35n)/2n>0?a.v:27n+(a.v===35n?0n:1n);if(d>0)return BigInt(d*2)+BigInt(35n+a.v-27n);const _t=27n+(a.v===27n?0n:1n);if(a.v!==_t)throw new InvalidLegacyVError({v:a.v});return _t})();St=[...St,toHex(Mt),a.r,a.s]}else d>0&&(St=[...St,toHex(d),"0x","0x"]);return toRlp(St)}function toYParitySignatureArray(c,a){const{r:d,s:et,v:nt,yParity:tt}=a??c;return typeof d>"u"?[]:typeof et>"u"?[]:typeof nt>"u"&&typeof tt>"u"?[]:[(()=>typeof tt=="number"?tt?toHex(1):"0x":nt===0n?"0x":nt===1n?toHex(1):nt===27n?"0x":toHex(1))(),trim(d),trim(et)]}function formatStorageProof(c){return c.map(a=>({...a,value:BigInt(a.value)}))}function formatProof(c){return{...c,balance:c.balance?BigInt(c.balance):void 0,nonce:c.nonce?hexToNumber(c.nonce):void 0,storageProof:c.storageProof?formatStorageProof(c.storageProof):void 0}}async function getProof(c,{address:a,blockNumber:d,blockTag:et,storageKeys:nt}){const tt=et??"latest",bt=d!==void 0?numberToHex(d):void 0,gt=await c.request({method:"eth_getProof",params:[a,nt,bt||tt]});return formatProof(gt)}async function getStorageAt(c,{address:a,blockNumber:d,blockTag:et="latest",slot:nt}){const tt=d!==void 0?numberToHex(d):void 0;return await c.request({method:"eth_getStorageAt",params:[a,nt,tt||et]})}async function getTransaction(c,{blockHash:a,blockNumber:d,blockTag:et,hash:nt,index:tt}){var Mt,_t,Tt;const bt=et||"latest",gt=d!==void 0?numberToHex(d):void 0;let wt=null;if(nt?wt=await c.request({method:"eth_getTransactionByHash",params:[nt]}):a?wt=await c.request({method:"eth_getTransactionByBlockHashAndIndex",params:[a,numberToHex(tt)]}):(gt||bt)&&(wt=await c.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[gt||bt,numberToHex(tt)]})),!wt)throw new TransactionNotFoundError({blockHash:a,blockNumber:d,blockTag:bt,hash:nt,index:tt});return(((Tt=(_t=(Mt=c.chain)==null?void 0:Mt.formatters)==null?void 0:_t.transaction)==null?void 0:Tt.format)||formatTransaction)(wt)}async function getTransactionConfirmations(c,{hash:a,transactionReceipt:d}){const[et,nt]=await Promise.all([getAction(c,getBlockNumber,"getBlockNumber")({}),a?getAction(c,getTransaction,"getBlockNumber")({hash:a}):void 0]),tt=(d==null?void 0:d.blockNumber)||(nt==null?void 0:nt.blockNumber);return tt?et-tt+1n:0n}async function getTransactionReceipt(c,{hash:a}){var nt,tt,bt;const d=await c.request({method:"eth_getTransactionReceipt",params:[a]});if(!d)throw new TransactionReceiptNotFoundError({hash:a});return(((bt=(tt=(nt=c.chain)==null?void 0:nt.formatters)==null?void 0:tt.transactionReceipt)==null?void 0:bt.format)||formatTransactionReceipt)(d)}async function multicall(c,a){var Lt;const{allowFailure:d=!0,batchSize:et,blockNumber:nt,blockTag:tt,multicallAddress:bt,stateOverride:gt}=a,wt=a.contracts,St=et??(typeof((Lt=c.batch)==null?void 0:Lt.multicall)=="object"&&c.batch.multicall.batchSize||1024);let Mt=bt;if(!Mt){if(!c.chain)throw new Error("client chain not configured. multicallAddress is required.");Mt=getChainContractAddress({blockNumber:nt,chain:c.chain,contract:"multicall3"})}const _t=[[]];let Tt=0,Bt=0;for(let Ot=0;Ot0&&Bt>St&&_t[Tt].length>0&&(Tt++,Bt=(Jt.length-2)/2,_t[Tt]=[]),_t[Tt]=[..._t[Tt],{allowFailure:!0,callData:Jt,target:Ft}]}catch(Jt){const ir=getContractError(Jt,{abi:Nt,address:Ft,args:zt,docsPath:"/docs/contract/multicall",functionName:Vt});if(!d)throw ir;_t[Tt]=[..._t[Tt],{allowFailure:!0,callData:"0x",target:Ft}]}}const kt=await Promise.allSettled(_t.map(Ot=>getAction(c,readContract,"readContract")({abi:multicall3Abi,address:Mt,args:[Ot],blockNumber:nt,blockTag:tt,functionName:"aggregate3",stateOverride:gt}))),It=[];for(let Ot=0;Ot{if(et===0||et===1)return et;if(d&&(d===27n||d===28n||d>=35n))return d%2n===0n?1:0;throw new Error("Invalid `v` or `yParity` value")})();return`0x${new secp256k1.Signature(hexToBigInt(c),hexToBigInt(a)).toCompactHex()}${nt===0?"1b":"1c"}`}async function verifyHash(c,{address:a,hash:d,signature:et,...nt}){const tt=(()=>isHex(et)?et:typeof et=="object"&&"r"in et&&"s"in et?serializeSignature(et):bytesToHex(et))();try{const{data:bt}=await getAction(c,call,"call")({data:encodeDeployData({abi:universalSignatureValidatorAbi,args:[a,d,tt],bytecode:universalSignatureValidatorByteCode}),...nt});return isBytesEqual(bt??"0x0","0x1")}catch(bt){if(bt instanceof CallExecutionError)return!1;throw bt}}async function verifyMessage(c,{address:a,message:d,signature:et,...nt}){const tt=hashMessage(d);return verifyHash(c,{address:a,hash:tt,signature:et,...nt})}async function verifyTypedData(c,a){const{address:d,signature:et,message:nt,primaryType:tt,types:bt,domain:gt,...wt}=a,St=hashTypedData({message:nt,primaryType:tt,types:bt,domain:gt});return verifyHash(c,{address:d,hash:St,signature:et,...wt})}function watchBlockNumber(c,{emitOnBegin:a=!1,emitMissed:d=!1,onBlockNumber:et,onError:nt,poll:tt,pollingInterval:bt=c.pollingInterval}){const gt=(()=>typeof tt<"u"?tt:!(c.transport.type==="webSocket"||c.transport.type==="fallback"&&c.transport.transports[0].config.type==="webSocket"))();let wt;return gt?(()=>{const _t=stringify(["watchBlockNumber",c.uid,a,d,bt]);return observe$1(_t,{onBlockNumber:et,onError:nt},Tt=>poll(async()=>{var Bt;try{const kt=await getAction(c,getBlockNumber,"getBlockNumber")({cacheTime:0});if(wt){if(kt===wt)return;if(kt-wt>1&&d)for(let It=wt+1n;Itwt)&&(Tt.onBlockNumber(kt,wt),wt=kt)}catch(kt){(Bt=Tt.onError)==null||Bt.call(Tt,kt)}},{emitOnBegin:a,interval:bt}))})():(()=>{const _t=stringify(["watchBlockNumber",c.uid,a,d]);return observe$1(_t,{onBlockNumber:et,onError:nt},Tt=>{let Bt=!0,kt=()=>Bt=!1;return(async()=>{try{const It=(()=>{if(c.transport.type==="fallback"){const Ot=c.transport.transports.find(Nt=>Nt.config.type==="webSocket");return Ot?Ot.value:c.transport}return c.transport})(),{unsubscribe:Lt}=await It.subscribe({params:["newHeads"],onData(Ot){var Ft;if(!Bt)return;const Nt=hexToBigInt((Ft=Ot.result)==null?void 0:Ft.number);Tt.onBlockNumber(Nt,wt),wt=Nt},onError(Ot){var Nt;(Nt=Tt.onError)==null||Nt.call(Tt,Ot)}});kt=Lt,Bt||kt()}catch(It){nt==null||nt(It)}})(),()=>kt()})})()}async function waitForTransactionReceipt(c,{confirmations:a=1,hash:d,onReplaced:et,pollingInterval:nt=c.pollingInterval,retryCount:tt=6,retryDelay:bt=({count:wt})=>~~(1<{gt&&setTimeout(()=>It(new WaitForTransactionReceiptTimeoutError({hash:d})),gt);const Lt=observe$1(wt,{onReplaced:et,resolve:kt,reject:It},Ot=>{const Nt=getAction(c,watchBlockNumber,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:nt,async onBlockNumber(Ft){const zt=Jt=>{Nt(),Jt(),Lt()};let Vt=Ft;if(!Bt){St>tt&&zt(()=>Ot.reject(new WaitForTransactionReceiptTimeoutError({hash:d})));try{if(Tt){if(a>1&&(!Tt.blockNumber||Vt-Tt.blockNumber+1nOt.resolve(Tt));return}if(Mt||(Bt=!0,await withRetry(async()=>{Mt=await getAction(c,getTransaction,"getTransaction")({hash:d}),Mt.blockNumber&&(Vt=Mt.blockNumber)},{delay:bt,retryCount:tt}),Bt=!1),Tt=await getAction(c,getTransactionReceipt,"getTransactionReceipt")({hash:d}),a>1&&(!Tt.blockNumber||Vt-Tt.blockNumber+1nOt.resolve(Tt))}catch(Jt){if(Jt instanceof TransactionNotFoundError||Jt instanceof TransactionReceiptNotFoundError){if(!Mt){Bt=!1;return}try{_t=Mt,Bt=!0;const ir=await withRetry(()=>getAction(c,getBlock,"getBlock")({blockNumber:Vt,includeTransactions:!0}),{delay:bt,retryCount:tt,shouldRetry:({error:lr})=>lr instanceof BlockNotFoundError});Bt=!1;const rr=ir.transactions.find(({from:lr,nonce:Ct})=>lr===_t.from&&Ct===_t.nonce);if(!rr||(Tt=await getAction(c,getTransactionReceipt,"getTransactionReceipt")({hash:rr.hash}),a>1&&(!Tt.blockNumber||Vt-Tt.blockNumber+1n{var lr;(lr=Ot.onReplaced)==null||lr.call(Ot,{reason:er,replacedTransaction:_t,transaction:rr,transactionReceipt:Tt}),Ot.resolve(Tt)})}catch(ir){zt(()=>Ot.reject(ir))}}else zt(()=>Ot.reject(Jt))}finally{St++}}}})})})}function watchBlocks(c,{blockTag:a="latest",emitMissed:d=!1,emitOnBegin:et=!1,onBlock:nt,onError:tt,includeTransactions:bt,poll:gt,pollingInterval:wt=c.pollingInterval}){const St=(()=>typeof gt<"u"?gt:!(c.transport.type==="webSocket"||c.transport.type==="fallback"&&c.transport.transports[0].config.type==="webSocket"))(),Mt=bt??!1;let _t;return St?(()=>{const kt=stringify(["watchBlocks",c.uid,a,d,et,Mt,wt]);return observe$1(kt,{onBlock:nt,onError:tt},It=>poll(async()=>{var Lt;try{const Ot=await getAction(c,getBlock,"getBlock")({blockTag:a,includeTransactions:Mt});if(Ot.number&&(_t!=null&&_t.number)){if(Ot.number===_t.number)return;if(Ot.number-_t.number>1&&d)for(let Nt=(_t==null?void 0:_t.number)+1n;Nt_t.number)&&(It.onBlock(Ot,_t),_t=Ot)}catch(Ot){(Lt=It.onError)==null||Lt.call(It,Ot)}},{emitOnBegin:et,interval:wt}))})():(()=>{let kt=!0,It=()=>kt=!1;return(async()=>{try{const Lt=(()=>{if(c.transport.type==="fallback"){const Nt=c.transport.transports.find(Ft=>Ft.config.type==="webSocket");return Nt?Nt.value:c.transport}return c.transport})(),{unsubscribe:Ot}=await Lt.subscribe({params:["newHeads"],onData(Nt){var Vt,Jt,ir;if(!kt)return;const zt=(((ir=(Jt=(Vt=c.chain)==null?void 0:Vt.formatters)==null?void 0:Jt.block)==null?void 0:ir.format)||formatBlock)(Nt.result);nt(zt,_t),_t=zt},onError(Nt){tt==null||tt(Nt)}});It=Ot,kt||It()}catch(Lt){tt==null||tt(Lt)}})(),()=>It()})()}function watchEvent(c,{address:a,args:d,batch:et=!0,event:nt,events:tt,fromBlock:bt,onError:gt,onLogs:wt,poll:St,pollingInterval:Mt=c.pollingInterval,strict:_t}){const Tt=(()=>typeof St<"u"?St:typeof bt=="bigint"?!0:!(c.transport.type==="webSocket"||c.transport.type==="fallback"&&c.transport.transports[0].config.type==="webSocket"))(),Bt=_t??!1;return Tt?(()=>{const Lt=stringify(["watchEvent",a,d,et,c.uid,nt,Mt,bt]);return observe$1(Lt,{onLogs:wt,onError:gt},Ot=>{let Nt;bt!==void 0&&(Nt=bt-1n);let Ft,zt=!1;const Vt=poll(async()=>{var Jt;if(!zt){try{Ft=await getAction(c,createEventFilter,"createEventFilter")({address:a,args:d,event:nt,events:tt,strict:Bt,fromBlock:bt})}catch{}zt=!0;return}try{let ir;if(Ft)ir=await getAction(c,getFilterChanges,"getFilterChanges")({filter:Ft});else{const rr=await getAction(c,getBlockNumber,"getBlockNumber")({});Nt&&Nt!==rr?ir=await getAction(c,getLogs,"getLogs")({address:a,args:d,event:nt,events:tt,fromBlock:Nt+1n,toBlock:rr}):ir=[],Nt=rr}if(ir.length===0)return;if(et)Ot.onLogs(ir);else for(const rr of ir)Ot.onLogs([rr])}catch(ir){Ft&&ir instanceof InvalidInputRpcError&&(zt=!1),(Jt=Ot.onError)==null||Jt.call(Ot,ir)}},{emitOnBegin:!0,interval:Mt});return async()=>{Ft&&await getAction(c,uninstallFilter,"uninstallFilter")({filter:Ft}),Vt()}})})():(()=>{let Lt=!0,Ot=()=>Lt=!1;return(async()=>{try{const Nt=(()=>{if(c.transport.type==="fallback"){const Jt=c.transport.transports.find(ir=>ir.config.type==="webSocket");return Jt?Jt.value:c.transport}return c.transport})(),Ft=tt??(nt?[nt]:void 0);let zt=[];Ft&&(zt=[Ft.flatMap(Jt=>encodeEventTopics({abi:[Jt],eventName:Jt.name,args:d}))],nt&&(zt=zt[0]));const{unsubscribe:Vt}=await Nt.subscribe({params:["logs",{address:a,topics:zt}],onData(Jt){var rr;if(!Lt)return;const ir=Jt.result;try{const{eventName:er,args:lr}=decodeEventLog({abi:Ft??[],data:ir.data,topics:ir.topics,strict:Bt}),Ct=formatLog(ir,{args:lr,eventName:er});wt([Ct])}catch(er){let lr,Ct;if(er instanceof DecodeLogDataMismatch||er instanceof DecodeLogTopicsMismatch){if(_t)return;lr=er.abiItem.name,Ct=(rr=er.abiItem.inputs)==null?void 0:rr.some(mt=>!("name"in mt&&mt.name))}const dt=formatLog(ir,{args:Ct?[]:{},eventName:lr});wt([dt])}},onError(Jt){gt==null||gt(Jt)}});Ot=Vt,Lt||Ot()}catch(Nt){gt==null||gt(Nt)}})(),()=>Ot()})()}function watchPendingTransactions(c,{batch:a=!0,onError:d,onTransactions:et,poll:nt,pollingInterval:tt=c.pollingInterval}){return(typeof nt<"u"?nt:c.transport.type!=="webSocket")?(()=>{const St=stringify(["watchPendingTransactions",c.uid,a,tt]);return observe$1(St,{onTransactions:et,onError:d},Mt=>{let _t;const Tt=poll(async()=>{var Bt;try{if(!_t)try{_t=await getAction(c,createPendingTransactionFilter,"createPendingTransactionFilter")({});return}catch(It){throw Tt(),It}const kt=await getAction(c,getFilterChanges,"getFilterChanges")({filter:_t});if(kt.length===0)return;if(a)Mt.onTransactions(kt);else for(const It of kt)Mt.onTransactions([It])}catch(kt){(Bt=Mt.onError)==null||Bt.call(Mt,kt)}},{emitOnBegin:!0,interval:tt});return async()=>{_t&&await getAction(c,uninstallFilter,"uninstallFilter")({filter:_t}),Tt()}})})():(()=>{let St=!0,Mt=()=>St=!1;return(async()=>{try{const{unsubscribe:_t}=await c.transport.subscribe({params:["newPendingTransactions"],onData(Tt){if(!St)return;const Bt=Tt.result;et([Bt])},onError(Tt){d==null||d(Tt)}});Mt=_t,St||Mt()}catch(_t){d==null||d(_t)}})(),()=>Mt()})()}function parseSiweMessage(c){var _t,Tt,Bt;const{scheme:a,statement:d,...et}=((_t=c.match(prefixRegex))==null?void 0:_t.groups)??{},{chainId:nt,expirationTime:tt,issuedAt:bt,notBefore:gt,requestId:wt,...St}=((Tt=c.match(suffixRegex))==null?void 0:Tt.groups)??{},Mt=(Bt=c.split("Resources:")[1])==null?void 0:Bt.split(` +`),{cause:a}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(TipAboveFeeCapError,"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 UnknownNodeError extends BaseError{constructor({cause:a}){super(`An error occurred while executing: ${a==null?void 0:a.shortMessage}`,{cause:a}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}function getNodeError(c,a){const d=(c.details||"").toLowerCase(),et=c instanceof BaseError?c.walk(nt=>nt.code===ExecutionRevertedError.code):c;return et instanceof BaseError?new ExecutionRevertedError({cause:c,message:et.details}):ExecutionRevertedError.nodeMessage.test(d)?new ExecutionRevertedError({cause:c,message:c.details}):FeeCapTooHighError.nodeMessage.test(d)?new FeeCapTooHighError({cause:c,maxFeePerGas:a==null?void 0:a.maxFeePerGas}):FeeCapTooLowError.nodeMessage.test(d)?new FeeCapTooLowError({cause:c,maxFeePerGas:a==null?void 0:a.maxFeePerGas}):NonceTooHighError.nodeMessage.test(d)?new NonceTooHighError({cause:c,nonce:a==null?void 0:a.nonce}):NonceTooLowError.nodeMessage.test(d)?new NonceTooLowError({cause:c,nonce:a==null?void 0:a.nonce}):NonceMaxValueError.nodeMessage.test(d)?new NonceMaxValueError({cause:c,nonce:a==null?void 0:a.nonce}):InsufficientFundsError.nodeMessage.test(d)?new InsufficientFundsError({cause:c}):IntrinsicGasTooHighError.nodeMessage.test(d)?new IntrinsicGasTooHighError({cause:c,gas:a==null?void 0:a.gas}):IntrinsicGasTooLowError.nodeMessage.test(d)?new IntrinsicGasTooLowError({cause:c,gas:a==null?void 0:a.gas}):TransactionTypeNotSupportedError.nodeMessage.test(d)?new TransactionTypeNotSupportedError({cause:c}):TipAboveFeeCapError.nodeMessage.test(d)?new TipAboveFeeCapError({cause:c,maxFeePerGas:a==null?void 0:a.maxFeePerGas,maxPriorityFeePerGas:a==null?void 0:a.maxPriorityFeePerGas}):new UnknownNodeError({cause:c})}function getEstimateGasError(c,{docsPath:a,...d}){const et=(()=>{const nt=getNodeError(c,d);return nt instanceof UnknownNodeError?c:nt})();return new EstimateGasExecutionError(et,{docsPath:a,...d})}function extract(c,{format:a}){if(!a)return{};const d={};function et(tt){const bt=Object.keys(tt);for(const gt of bt)gt in c&&(d[gt]=c[gt]),tt[gt]&&typeof tt[gt]=="object"&&!Array.isArray(tt[gt])&&et(tt[gt])}const nt=a(c||{});return et(nt),d}function defineFormatter(c,a){return({exclude:d,format:et})=>({exclude:d,format:nt=>{const tt=a(nt);if(d)for(const bt of d)delete tt[bt];return{...tt,...et(nt)}},type:c})}const rpcTransactionType={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3"};function formatTransactionRequest(c){const a={};return typeof c.accessList<"u"&&(a.accessList=c.accessList),typeof c.blobVersionedHashes<"u"&&(a.blobVersionedHashes=c.blobVersionedHashes),typeof c.blobs<"u"&&(typeof c.blobs[0]!="string"?a.blobs=c.blobs.map(d=>bytesToHex(d)):a.blobs=c.blobs),typeof c.data<"u"&&(a.data=c.data),typeof c.from<"u"&&(a.from=c.from),typeof c.gas<"u"&&(a.gas=numberToHex(c.gas)),typeof c.gasPrice<"u"&&(a.gasPrice=numberToHex(c.gasPrice)),typeof c.maxFeePerBlobGas<"u"&&(a.maxFeePerBlobGas=numberToHex(c.maxFeePerBlobGas)),typeof c.maxFeePerGas<"u"&&(a.maxFeePerGas=numberToHex(c.maxFeePerGas)),typeof c.maxPriorityFeePerGas<"u"&&(a.maxPriorityFeePerGas=numberToHex(c.maxPriorityFeePerGas)),typeof c.nonce<"u"&&(a.nonce=numberToHex(c.nonce)),typeof c.to<"u"&&(a.to=c.to),typeof c.type<"u"&&(a.type=rpcTransactionType[c.type]),typeof c.value<"u"&&(a.value=numberToHex(c.value)),a}const defineTransactionRequest=defineFormatter("transactionRequest",formatTransactionRequest);function serializeStateMapping(c){if(!(!c||c.length===0))return c.reduce((a,{slot:d,value:et})=>{if(d.length!==66)throw new InvalidBytesLengthError({size:d.length,targetSize:66,type:"hex"});if(et.length!==66)throw new InvalidBytesLengthError({size:et.length,targetSize:66,type:"hex"});return a[d]=et,a},{})}function serializeAccountStateOverride(c){const{balance:a,nonce:d,state:et,stateDiff:nt,code:tt}=c,bt={};if(tt!==void 0&&(bt.code=tt),a!==void 0&&(bt.balance=numberToHex(a)),d!==void 0&&(bt.nonce=numberToHex(d)),et!==void 0&&(bt.state=serializeStateMapping(et)),nt!==void 0){if(bt.state)throw new StateAssignmentConflictError;bt.stateDiff=serializeStateMapping(nt)}return bt}function serializeStateOverride(c){if(!c)return;const a={};for(const{address:d,...et}of c){if(!isAddress(d,{strict:!1}))throw new InvalidAddressError({address:d});if(a[d])throw new AccountStateConflictError({address:d});a[d]=serializeAccountStateOverride(et)}return a}function assertRequest(c){const{account:a,gasPrice:d,maxFeePerGas:et,maxPriorityFeePerGas:nt,to:tt}=c,bt=a?parseAccount(a):void 0;if(bt&&!isAddress(bt.address))throw new InvalidAddressError({address:bt.address});if(tt&&!isAddress(tt))throw new InvalidAddressError({address:tt});if(typeof d<"u"&&(typeof et<"u"||typeof nt<"u"))throw new FeeConflictError;if(et&&et>2n**256n-1n)throw new FeeCapTooHighError({maxFeePerGas:et});if(nt&&et&&nt>et)throw new TipAboveFeeCapError({maxFeePerGas:et,maxPriorityFeePerGas:nt})}class BaseFeeScalarError extends BaseError{constructor(){super("`baseFeeMultiplier` must be greater than 1."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseFeeScalarError"})}}class Eip1559FeesNotSupportedError extends BaseError{constructor(){super("Chain does not support EIP-1559 fees."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Eip1559FeesNotSupportedError"})}}class MaxFeePerGasTooLowError extends BaseError{constructor({maxPriorityFeePerGas:a}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${formatGwei(a)} gwei).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MaxFeePerGasTooLowError"})}}class BlockNotFoundError extends BaseError{constructor({blockHash:a,blockNumber:d}){let et="Block";a&&(et=`Block at hash "${a}"`),d&&(et=`Block at number "${d}"`),super(`${et} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}const transactionType={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844"};function formatTransaction(c){const a={...c,blockHash:c.blockHash?c.blockHash:null,blockNumber:c.blockNumber?BigInt(c.blockNumber):null,chainId:c.chainId?hexToNumber(c.chainId):void 0,gas:c.gas?BigInt(c.gas):void 0,gasPrice:c.gasPrice?BigInt(c.gasPrice):void 0,maxFeePerBlobGas:c.maxFeePerBlobGas?BigInt(c.maxFeePerBlobGas):void 0,maxFeePerGas:c.maxFeePerGas?BigInt(c.maxFeePerGas):void 0,maxPriorityFeePerGas:c.maxPriorityFeePerGas?BigInt(c.maxPriorityFeePerGas):void 0,nonce:c.nonce?hexToNumber(c.nonce):void 0,to:c.to?c.to:null,transactionIndex:c.transactionIndex?Number(c.transactionIndex):null,type:c.type?transactionType[c.type]:void 0,typeHex:c.type?c.type:void 0,value:c.value?BigInt(c.value):void 0,v:c.v?BigInt(c.v):void 0};return a.yParity=(()=>{if(c.yParity)return Number(c.yParity);if(typeof a.v=="bigint"){if(a.v===0n||a.v===27n)return 0;if(a.v===1n||a.v===28n)return 1;if(a.v>=35n)return a.v%2n===0n?1:0}})(),a.type==="legacy"&&(delete a.accessList,delete a.maxFeePerBlobGas,delete a.maxFeePerGas,delete a.maxPriorityFeePerGas,delete a.yParity),a.type==="eip2930"&&(delete a.maxFeePerBlobGas,delete a.maxFeePerGas,delete a.maxPriorityFeePerGas),a.type==="eip1559"&&delete a.maxFeePerBlobGas,a}const defineTransaction=defineFormatter("transaction",formatTransaction);function formatBlock(c){var d;const a=(d=c.transactions)==null?void 0:d.map(et=>typeof et=="string"?et:formatTransaction(et));return{...c,baseFeePerGas:c.baseFeePerGas?BigInt(c.baseFeePerGas):null,blobGasUsed:c.blobGasUsed?BigInt(c.blobGasUsed):void 0,difficulty:c.difficulty?BigInt(c.difficulty):void 0,excessBlobGas:c.excessBlobGas?BigInt(c.excessBlobGas):void 0,gasLimit:c.gasLimit?BigInt(c.gasLimit):void 0,gasUsed:c.gasUsed?BigInt(c.gasUsed):void 0,hash:c.hash?c.hash:null,logsBloom:c.logsBloom?c.logsBloom:null,nonce:c.nonce?c.nonce:null,number:c.number?BigInt(c.number):null,size:c.size?BigInt(c.size):void 0,timestamp:c.timestamp?BigInt(c.timestamp):void 0,transactions:a,totalDifficulty:c.totalDifficulty?BigInt(c.totalDifficulty):null}}const defineBlock=defineFormatter("block",formatBlock);async function getBlock(c,{blockHash:a,blockNumber:d,blockTag:et,includeTransactions:nt}={}){var Mt,_t,Tt;const tt=et??"latest",bt=nt??!1,gt=d!==void 0?numberToHex(d):void 0;let wt=null;if(a?wt=await c.request({method:"eth_getBlockByHash",params:[a,bt]}):wt=await c.request({method:"eth_getBlockByNumber",params:[gt||tt,bt]}),!wt)throw new BlockNotFoundError({blockHash:a,blockNumber:d});return(((Tt=(_t=(Mt=c.chain)==null?void 0:Mt.formatters)==null?void 0:_t.block)==null?void 0:Tt.format)||formatBlock)(wt)}async function getGasPrice(c){const a=await c.request({method:"eth_gasPrice"});return BigInt(a)}async function estimateMaxPriorityFeePerGas(c,a){return internal_estimateMaxPriorityFeePerGas(c,a)}async function internal_estimateMaxPriorityFeePerGas(c,a){var tt,bt,gt;const{block:d,chain:et=c.chain,request:nt}=a||{};if(typeof((tt=et==null?void 0:et.fees)==null?void 0:tt.defaultPriorityFee)=="function"){const wt=d||await getAction(c,getBlock,"getBlock")({});return et.fees.defaultPriorityFee({block:wt,client:c,request:nt})}if(typeof((bt=et==null?void 0:et.fees)==null?void 0:bt.defaultPriorityFee)<"u")return(gt=et==null?void 0:et.fees)==null?void 0:gt.defaultPriorityFee;try{const wt=await c.request({method:"eth_maxPriorityFeePerGas"});return hexToBigInt(wt)}catch{const[wt,St]=await Promise.all([d?Promise.resolve(d):getAction(c,getBlock,"getBlock")({}),getAction(c,getGasPrice,"getGasPrice")({})]);if(typeof wt.baseFeePerGas!="bigint")throw new Eip1559FeesNotSupportedError;const Mt=St-wt.baseFeePerGas;return Mt<0n?0n:Mt}}async function estimateFeesPerGas(c,a){return internal_estimateFeesPerGas(c,a)}async function internal_estimateFeesPerGas(c,a){var Tt,Rt;const{block:d,chain:et=c.chain,request:nt,type:tt="eip1559"}=a||{},bt=await(async()=>{var kt,It;return typeof((kt=et==null?void 0:et.fees)==null?void 0:kt.baseFeeMultiplier)=="function"?et.fees.baseFeeMultiplier({block:d,client:c,request:nt}):((It=et==null?void 0:et.fees)==null?void 0:It.baseFeeMultiplier)??1.2})();if(bt<1)throw new BaseFeeScalarError;const wt=10**(((Tt=bt.toString().split(".")[1])==null?void 0:Tt.length)??0),St=kt=>kt*BigInt(Math.ceil(bt*wt))/BigInt(wt),Mt=d||await getAction(c,getBlock,"getBlock")({});if(typeof((Rt=et==null?void 0:et.fees)==null?void 0:Rt.estimateFeesPerGas)=="function"){const kt=await et.fees.estimateFeesPerGas({block:d,client:c,multiply:St,request:nt,type:tt});if(kt!==null)return kt}if(tt==="eip1559"){if(typeof Mt.baseFeePerGas!="bigint")throw new Eip1559FeesNotSupportedError;const kt=typeof(nt==null?void 0:nt.maxPriorityFeePerGas)=="bigint"?nt.maxPriorityFeePerGas:await internal_estimateMaxPriorityFeePerGas(c,{block:Mt,chain:et,request:nt}),It=St(Mt.baseFeePerGas);return{maxFeePerGas:(nt==null?void 0:nt.maxFeePerGas)??It+kt,maxPriorityFeePerGas:kt}}return{gasPrice:(nt==null?void 0:nt.gasPrice)??St(await getAction(c,getGasPrice,"getGasPrice")({}))}}async function getTransactionCount(c,{address:a,blockTag:d="latest",blockNumber:et}){const nt=await c.request({method:"eth_getTransactionCount",params:[a,et?numberToHex(et):d]});return hexToNumber(nt)}function blobsToCommitments(c){const{kzg:a}=c,d=c.to??(typeof c.blobs[0]=="string"?"hex":"bytes"),et=typeof c.blobs[0]=="string"?c.blobs.map(tt=>hexToBytes(tt)):c.blobs,nt=[];for(const tt of et)nt.push(Uint8Array.from(a.blobToKzgCommitment(tt)));return d==="bytes"?nt:nt.map(tt=>bytesToHex(tt))}function blobsToProofs(c){const{kzg:a}=c,d=c.to??(typeof c.blobs[0]=="string"?"hex":"bytes"),et=typeof c.blobs[0]=="string"?c.blobs.map(bt=>hexToBytes(bt)):c.blobs,nt=typeof c.commitments[0]=="string"?c.commitments.map(bt=>hexToBytes(bt)):c.commitments,tt=[];for(let bt=0;btbytesToHex(bt))}function sha256(c,a){const d=a||"hex",et=sha256$1(isHex(c,{strict:!1})?toBytes(c):c);return d==="bytes"?et:toHex(et)}function commitmentToVersionedHash(c){const{commitment:a,version:d=1}=c,et=c.to??(typeof a=="string"?"hex":"bytes"),nt=sha256(a,"bytes");return nt.set([d],0),et==="bytes"?nt:bytesToHex(nt)}function commitmentsToVersionedHashes(c){const{commitments:a,version:d}=c,et=c.to??(typeof a[0]=="string"?"hex":"bytes"),nt=[];for(const tt of a)nt.push(commitmentToVersionedHash({commitment:tt,to:et,version:d}));return nt}const blobsPerTransaction=6,bytesPerFieldElement=32,fieldElementsPerBlob=4096,bytesPerBlob=bytesPerFieldElement*fieldElementsPerBlob,maxBytesPerTransaction=bytesPerBlob*blobsPerTransaction-1-1*fieldElementsPerBlob*blobsPerTransaction,versionedHashVersionKzg=1;class BlobSizeTooLargeError extends BaseError{constructor({maxSize:a,size:d}){super("Blob size is too large.",{metaMessages:[`Max: ${a} bytes`,`Given: ${d} bytes`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlobSizeTooLargeError"})}}class EmptyBlobError extends BaseError{constructor(){super("Blob data must not be empty."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EmptyBlobError"})}}class InvalidVersionedHashSizeError extends BaseError{constructor({hash:a,size:d}){super(`Versioned hash "${a}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${d}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidVersionedHashSizeError"})}}class InvalidVersionedHashVersionError extends BaseError{constructor({hash:a,version:d}){super(`Versioned hash "${a}" version is invalid.`,{metaMessages:[`Expected: ${versionedHashVersionKzg}`,`Received: ${d}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidVersionedHashVersionError"})}}function toBlobs(c){const a=c.to??(typeof c.data=="string"?"hex":"bytes"),d=typeof c.data=="string"?hexToBytes(c.data):c.data,et=size$1(d);if(!et)throw new EmptyBlobError;if(et>maxBytesPerTransaction)throw new BlobSizeTooLargeError({maxSize:maxBytesPerTransaction,size:et});const nt=[];let tt=!0,bt=0;for(;tt;){const gt=createCursor(new Uint8Array(bytesPerBlob));let wt=0;for(;wtgt.bytes):nt.map(gt=>bytesToHex(gt.bytes))}function toBlobSidecars(c){const{data:a,kzg:d,to:et}=c,nt=c.blobs??toBlobs({data:a,to:et}),tt=c.commitments??blobsToCommitments({blobs:nt,kzg:d,to:et}),bt=c.proofs??blobsToProofs({blobs:nt,commitments:tt,kzg:d,to:et}),gt=[];for(let wt=0;wt"u"&&_t&&(Tt.nonce=await getAction(c,getTransactionCount,"getTransactionCount")({address:_t.address,blockTag:"pending"})),(St.includes("fees")||St.includes("type"))&&typeof Mt>"u")try{Tt.type=getTransactionType(Tt)}catch{const It=await kt();Tt.type=typeof(It==null?void 0:It.baseFeePerGas)=="bigint"?"eip1559":"legacy"}if(St.includes("fees"))if(Tt.type!=="legacy"&&Tt.type!=="eip2930"){if(typeof Tt.maxFeePerGas>"u"||typeof Tt.maxPriorityFeePerGas>"u"){const It=await kt(),{maxFeePerGas:Lt,maxPriorityFeePerGas:Ot}=await internal_estimateFeesPerGas(c,{block:It,chain:nt,request:Tt});if(typeof a.maxPriorityFeePerGas>"u"&&a.maxFeePerGas&&a.maxFeePerGas"u"&&(Tt.gas=await getAction(c,estimateGas,"estimateGas")({...Tt,account:_t?{address:_t.address,type:"json-rpc"}:void 0})),assertRequest(Tt),delete Tt.parameters,Tt}async function estimateGas(c,a){var nt,tt,bt;const d=a.account??c.account,et=d?parseAccount(d):void 0;try{const{accessList:gt,blobs:wt,blobVersionedHashes:St,blockNumber:Mt,blockTag:_t,data:Tt,gas:Rt,gasPrice:kt,maxFeePerBlobGas:It,maxFeePerGas:Lt,maxPriorityFeePerGas:Ot,nonce:Nt,to:Ft,value:jt,stateOverride:Vt,...Jt}=await prepareTransactionRequest(c,{...a,parameters:(et==null?void 0:et.type)==="local"?void 0:["blobVersionedHashes"]}),rr=(Mt?numberToHex(Mt):void 0)||_t,er=serializeStateOverride(Vt);assertRequest(a);const lr=(bt=(tt=(nt=c.chain)==null?void 0:nt.formatters)==null?void 0:tt.transactionRequest)==null?void 0:bt.format,dt=(lr||formatTransactionRequest)({...extract(Jt,{format:lr}),from:et==null?void 0:et.address,accessList:gt,blobs:wt,blobVersionedHashes:St,data:Tt,gas:Rt,gasPrice:kt,maxFeePerBlobGas:It,maxFeePerGas:Lt,maxPriorityFeePerGas:Ot,nonce:Nt,to:Ft,value:jt}),mt=await c.request({method:"eth_estimateGas",params:er?[dt,rr??"latest",er]:rr?[dt,rr]:[dt]});return BigInt(mt)}catch(gt){throw getEstimateGasError(gt,{...a,account:et,chain:c.chain})}}async function estimateContractGas(c,a){const{abi:d,address:et,args:nt,functionName:tt,...bt}=a,gt=encodeFunctionData({abi:d,args:nt,functionName:tt});try{return await getAction(c,estimateGas,"estimateGas")({data:gt,to:et,...bt})}catch(wt){const St=bt.account?parseAccount(bt.account):void 0;throw getContractError(wt,{abi:d,address:et,args:nt,docsPath:"/docs/contract/estimateContractGas",functionName:tt,sender:St==null?void 0:St.address})}}const docsPath$2="/docs/contract/decodeEventLog";function decodeEventLog(c){const{abi:a,data:d,strict:et,topics:nt}=c,tt=et??!0,[bt,...gt]=nt;if(!bt)throw new AbiEventSignatureEmptyTopicsError({docsPath:docsPath$2});const wt=a.find(It=>It.type==="event"&&bt===toEventSelector(formatAbiItem(It)));if(!(wt&&"name"in wt)||wt.type!=="event")throw new AbiEventSignatureNotFoundError(bt,{docsPath:docsPath$2});const{name:St,inputs:Mt}=wt,_t=Mt==null?void 0:Mt.some(It=>!("name"in It&&It.name));let Tt=_t?[]:{};const Rt=Mt.filter(It=>"indexed"in It&&It.indexed);for(let It=0;It!("indexed"in It&&It.indexed));if(kt.length>0){if(d&&d!=="0x")try{const It=decodeAbiParameters(kt,d);if(It)if(_t)Tt=[...Tt,...It];else for(let Lt=0;Lt0?Tt:void 0}}function decodeTopic({param:c,value:a}){return c.type==="string"||c.type==="bytes"||c.type==="tuple"||c.type.match(/^(.*)\[(\d+)?\]$/)?a:(decodeAbiParameters([c],a)||[])[0]}function parseEventLogs({abi:c,eventName:a,logs:d,strict:et=!0}){return d.map(nt=>{var tt;try{const bt=decodeEventLog({...nt,abi:c,strict:et});return a&&!a.includes(bt.eventName)?null:{...bt,...nt}}catch(bt){let gt,wt;if(bt instanceof AbiEventSignatureNotFoundError)return null;if(bt instanceof DecodeLogDataMismatch||bt instanceof DecodeLogTopicsMismatch){if(et)return null;gt=bt.abiItem.name,wt=(tt=bt.abiItem.inputs)==null?void 0:tt.some(St=>!("name"in St&&St.name))}return{...nt,args:wt?[]:{},eventName:gt}}}).filter(Boolean)}function formatLog(c,{args:a,eventName:d}={}){return{...c,blockHash:c.blockHash?c.blockHash:null,blockNumber:c.blockNumber?BigInt(c.blockNumber):null,logIndex:c.logIndex?Number(c.logIndex):null,transactionHash:c.transactionHash?c.transactionHash:null,transactionIndex:c.transactionIndex?Number(c.transactionIndex):null,...d?{args:a,eventName:d}:{}}}async function getLogs(c,{address:a,blockHash:d,fromBlock:et,toBlock:nt,event:tt,events:bt,args:gt,strict:wt}={}){const St=wt??!1,Mt=bt??(tt?[tt]:void 0);let _t=[];Mt&&(_t=[Mt.flatMap(kt=>encodeEventTopics({abi:[kt],eventName:kt.name,args:gt}))],tt&&(_t=_t[0]));let Tt;d?Tt=await c.request({method:"eth_getLogs",params:[{address:a,topics:_t,blockHash:d}]}):Tt=await c.request({method:"eth_getLogs",params:[{address:a,topics:_t,fromBlock:typeof et=="bigint"?numberToHex(et):et,toBlock:typeof nt=="bigint"?numberToHex(nt):nt}]});const Rt=Tt.map(kt=>formatLog(kt));return Mt?parseEventLogs({abi:Mt,logs:Rt,strict:St}):Rt}async function getContractEvents(c,a){const{abi:d,address:et,args:nt,blockHash:tt,eventName:bt,fromBlock:gt,toBlock:wt,strict:St}=a,Mt=bt?getAbiItem({abi:d,name:bt}):void 0,_t=Mt?void 0:d.filter(Tt=>Tt.type==="event");return getAction(c,getLogs,"getLogs")({address:et,args:nt,blockHash:tt,event:Mt,events:_t,fromBlock:gt,toBlock:wt,strict:St})}const docsPath$1="/docs/contract/decodeFunctionResult";function decodeFunctionResult(c){const{abi:a,args:d,functionName:et,data:nt}=c;let tt=a[0];if(et){const gt=getAbiItem({abi:a,args:d,name:et});if(!gt)throw new AbiFunctionNotFoundError(et,{docsPath:docsPath$1});tt=gt}if(tt.type!=="function")throw new AbiFunctionNotFoundError(void 0,{docsPath:docsPath$1});if(!tt.outputs)throw new AbiFunctionOutputsNotFoundError(tt.name,{docsPath:docsPath$1});const bt=decodeAbiParameters(tt.outputs,nt);if(bt&&bt.length>1)return bt;if(bt&&bt.length===1)return bt[0]}const multicall3Abi=[{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"}],universalResolverErrors=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"},{inputs:[],name:"ResolverNotContract",type:"error"},{inputs:[{name:"returnData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{components:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"errors",type:"tuple[]"}],name:"HttpError",type:"error"}],universalResolverResolveAbi=[...universalResolverErrors,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]},{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],universalResolverReverseAbi=[...universalResolverErrors,{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"}]},{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],textResolverAbi=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],addressResolverAbi=[{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"}]}],universalSignatureValidatorAbi=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}],aggregate3Signature="0x82ad56cb";class ChainDoesNotSupportContract extends BaseError{constructor({blockNumber:a,chain:d,contract:et}){super(`Chain "${d.name}" does not support contract "${et.name}".`,{metaMessages:["This could be due to any of the following:",...a&&et.blockCreated&&et.blockCreated>a?[`- The contract "${et.name}" was not deployed until block ${et.blockCreated} (current block ${a}).`]:[`- The chain does not have the contract "${et.name}" configured.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}}class ClientChainNotConfiguredError extends BaseError{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}}class InvalidChainIdError extends BaseError{constructor({chainId:a}){super(typeof a=="number"?`Chain ID "${a}" is invalid.`:"Chain ID is invalid."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}}function getChainContractAddress({blockNumber:c,chain:a,contract:d}){var nt;const et=(nt=a==null?void 0:a.contracts)==null?void 0:nt[d];if(!et)throw new ChainDoesNotSupportContract({chain:a,contract:{name:d}});if(c&&et.blockCreated&&et.blockCreated>c)throw new ChainDoesNotSupportContract({blockNumber:c,chain:a,contract:{name:d,blockCreated:et.blockCreated}});return et.address}function getCallError(c,{docsPath:a,...d}){const et=(()=>{const nt=getNodeError(c,d);return nt instanceof UnknownNodeError?c:nt})();return new CallExecutionError(et,{docsPath:a,...d})}const schedulerCache=new Map;function createBatchScheduler({fn:c,id:a,shouldSplitBatch:d,wait:et=0,sort:nt}){const tt=async()=>{const Mt=wt();bt();const _t=Mt.map(({args:Tt})=>Tt);_t.length!==0&&c(_t).then(Tt=>{var Rt;nt&&Array.isArray(Tt)&&Tt.sort(nt);for(let kt=0;kt{var Rt;for(let kt=0;ktschedulerCache.delete(a),gt=()=>wt().map(({args:Mt})=>Mt),wt=()=>schedulerCache.get(a)||[],St=Mt=>schedulerCache.set(a,[...wt(),Mt]);return{flush:bt,async schedule(Mt){const _t={},Tt=new Promise((It,Lt)=>{_t.resolve=It,_t.reject=Lt});return(d==null?void 0:d([...gt(),Mt]))&&tt(),wt().length>0?(St({args:Mt,pendingPromise:_t}),Tt):(St({args:Mt,pendingPromise:_t}),setTimeout(tt,et),Tt)}}}async function call(c,a){var jt,Vt,Jt,ir;const{account:d=c.account,batch:et=!!((jt=c.batch)!=null&&jt.multicall),blockNumber:nt,blockTag:tt="latest",accessList:bt,blobs:gt,data:wt,gas:St,gasPrice:Mt,maxFeePerBlobGas:_t,maxFeePerGas:Tt,maxPriorityFeePerGas:Rt,nonce:kt,to:It,value:Lt,stateOverride:Ot,...Nt}=a,Ft=d?parseAccount(d):void 0;try{assertRequest(a);const er=(nt?numberToHex(nt):void 0)||tt,lr=serializeStateOverride(Ot),Ct=(ir=(Jt=(Vt=c.chain)==null?void 0:Vt.formatters)==null?void 0:Jt.transactionRequest)==null?void 0:ir.format,mt=(Ct||formatTransactionRequest)({...extract(Nt,{format:Ct}),from:Ft==null?void 0:Ft.address,accessList:bt,blobs:gt,data:wt,gas:St,gasPrice:Mt,maxFeePerBlobGas:_t,maxFeePerGas:Tt,maxPriorityFeePerGas:Rt,nonce:kt,to:It,value:Lt});if(et&&shouldPerformMulticall({request:mt})&&!lr)try{return await scheduleMulticall(c,{...mt,blockNumber:nt,blockTag:tt})}catch(vt){if(!(vt instanceof ClientChainNotConfiguredError)&&!(vt instanceof ChainDoesNotSupportContract))throw vt}const yt=await c.request({method:"eth_call",params:lr?[mt,er,lr]:[mt,er]});return yt==="0x"?{data:void 0}:{data:yt}}catch(rr){const er=getRevertErrorData(rr),{offchainLookup:lr,offchainLookupSignature:Ct}=await __vitePreload(()=>import("./ccip-56d8fab7.js"),[]);if(c.ccipRead!==!1&&(er==null?void 0:er.slice(0,10))===Ct&&It)return{data:await lr(c,{data:er,to:It})};throw getCallError(rr,{...a,account:Ft,chain:c.chain})}}function shouldPerformMulticall({request:c}){const{data:a,to:d,...et}=c;return!(!a||a.startsWith(aggregate3Signature)||!d||Object.values(et).filter(nt=>typeof nt<"u").length>0)}async function scheduleMulticall(c,a){var It;const{batchSize:d=1024,wait:et=0}=typeof((It=c.batch)==null?void 0:It.multicall)=="object"?c.batch.multicall:{},{blockNumber:nt,blockTag:tt="latest",data:bt,multicallAddress:gt,to:wt}=a;let St=gt;if(!St){if(!c.chain)throw new ClientChainNotConfiguredError;St=getChainContractAddress({blockNumber:nt,chain:c.chain,contract:"multicall3"})}const _t=(nt?numberToHex(nt):void 0)||tt,{schedule:Tt}=createBatchScheduler({id:`${c.uid}.${_t}`,wait:et,shouldSplitBatch(Lt){return Lt.reduce((Nt,{data:Ft})=>Nt+(Ft.length-2),0)>d*2},fn:async Lt=>{const Ot=Lt.map(jt=>({allowFailure:!0,callData:jt.data,target:jt.to})),Nt=encodeFunctionData({abi:multicall3Abi,args:[Ot],functionName:"aggregate3"}),Ft=await c.request({method:"eth_call",params:[{data:Nt,to:St},_t]});return decodeFunctionResult({abi:multicall3Abi,args:[Ot],functionName:"aggregate3",data:Ft||"0x"})}}),[{returnData:Rt,success:kt}]=await Tt({data:bt,to:wt});if(!kt)throw new RawContractError({data:Rt});return Rt==="0x"?{data:void 0}:{data:Rt}}function getRevertErrorData(c){var d;if(!(c instanceof BaseError))return;const a=c.walk();return typeof(a==null?void 0:a.data)=="object"?(d=a.data)==null?void 0:d.data:a.data}async function readContract(c,a){const{abi:d,address:et,args:nt,functionName:tt,...bt}=a,gt=encodeFunctionData({abi:d,args:nt,functionName:tt});try{const{data:wt}=await getAction(c,call,"call")({...bt,data:gt,to:et});return decodeFunctionResult({abi:d,args:nt,functionName:tt,data:wt||"0x"})}catch(wt){throw getContractError(wt,{abi:d,address:et,args:nt,docsPath:"/docs/contract/readContract",functionName:tt})}}async function simulateContract(c,a){const{abi:d,address:et,args:nt,dataSuffix:tt,functionName:bt,...gt}=a,wt=gt.account?parseAccount(gt.account):c.account,St=encodeFunctionData({abi:d,args:nt,functionName:bt});try{const{data:Mt}=await getAction(c,call,"call")({batch:!1,data:`${St}${tt?tt.replace("0x",""):""}`,to:et,...gt,account:wt}),_t=decodeFunctionResult({abi:d,args:nt,functionName:bt,data:Mt||"0x"}),Tt=d.filter(Rt=>"name"in Rt&&Rt.name===a.functionName);return{result:_t,request:{abi:Tt,address:et,args:nt,dataSuffix:tt,functionName:bt,...gt,account:wt}}}catch(Mt){throw getContractError(Mt,{abi:d,address:et,args:nt,docsPath:"/docs/contract/simulateContract",functionName:bt,sender:wt==null?void 0:wt.address})}}const listenersCache$1=new Map,cleanupCache$1=new Map;let callbackCount$1=0;function observe$1(c,a,d){const et=++callbackCount$1,nt=()=>listenersCache$1.get(c)||[],tt=()=>{const Mt=nt();listenersCache$1.set(c,Mt.filter(_t=>_t.id!==et))},bt=()=>{const Mt=cleanupCache$1.get(c);nt().length===1&&Mt&&Mt(),tt()},gt=nt();if(listenersCache$1.set(c,[...gt,{id:et,fns:a}]),gt&>.length>0)return bt;const wt={};for(const Mt in a)wt[Mt]=(..._t)=>{var Rt,kt;const Tt=nt();if(Tt.length!==0)for(const It of Tt)(kt=(Rt=It.fns)[Mt])==null||kt.call(Rt,..._t)};const St=d(wt);return typeof St=="function"&&cleanupCache$1.set(c,St),bt}async function wait(c){return new Promise(a=>setTimeout(a,c))}function poll(c,{emitOnBegin:a,initialWaitTime:d,interval:et}){let nt=!0;const tt=()=>nt=!1;return(async()=>{let gt;a&&(gt=await c({unpoll:tt}));const wt=await(d==null?void 0:d(gt))??et;await wait(wt);const St=async()=>{nt&&(await c({unpoll:tt}),await wait(et),St())};St()})(),tt}const promiseCache=new Map,responseCache=new Map;function getCache(c){const a=(nt,tt)=>({clear:()=>tt.delete(nt),get:()=>tt.get(nt),set:bt=>tt.set(nt,bt)}),d=a(c,promiseCache),et=a(c,responseCache);return{clear:()=>{d.clear(),et.clear()},promise:d,response:et}}async function withCache(c,{cacheKey:a,cacheTime:d=Number.POSITIVE_INFINITY}){const et=getCache(a),nt=et.response.get();if(nt&&d>0&&new Date().getTime()-nt.created.getTime()`blockNumber.${c}`;async function getBlockNumber(c,{cacheTime:a=c.cacheTime}={}){const d=await withCache(()=>c.request({method:"eth_blockNumber"}),{cacheKey:cacheKey(c.uid),cacheTime:a});return BigInt(d)}async function getFilterChanges(c,{filter:a}){const d="strict"in a&&a.strict,et=await a.request({method:"eth_getFilterChanges",params:[a.id]});if(typeof et[0]=="string")return et;const nt=et.map(tt=>formatLog(tt));return!("abi"in a)||!a.abi?nt:parseEventLogs({abi:a.abi,logs:nt,strict:d})}async function uninstallFilter(c,{filter:a}){return a.request({method:"eth_uninstallFilter",params:[a.id]})}function watchContractEvent(c,a){const{abi:d,address:et,args:nt,batch:tt=!0,eventName:bt,fromBlock:gt,onError:wt,onLogs:St,poll:Mt,pollingInterval:_t=c.pollingInterval,strict:Tt}=a;return(()=>typeof Mt<"u"?Mt:typeof gt=="bigint"?!0:!(c.transport.type==="webSocket"||c.transport.type==="fallback"&&c.transport.transports[0].config.type==="webSocket"))()?(()=>{const Lt=Tt??!1,Ot=stringify(["watchContractEvent",et,nt,tt,c.uid,bt,_t,Lt,gt]);return observe$1(Ot,{onLogs:St,onError:wt},Nt=>{let Ft;gt!==void 0&&(Ft=gt-1n);let jt,Vt=!1;const Jt=poll(async()=>{var ir;if(!Vt){try{jt=await getAction(c,createContractEventFilter,"createContractEventFilter")({abi:d,address:et,args:nt,eventName:bt,strict:Lt,fromBlock:gt})}catch{}Vt=!0;return}try{let rr;if(jt)rr=await getAction(c,getFilterChanges,"getFilterChanges")({filter:jt});else{const er=await getAction(c,getBlockNumber,"getBlockNumber")({});Ft&&Ft!==er?rr=await getAction(c,getContractEvents,"getContractEvents")({abi:d,address:et,args:nt,eventName:bt,fromBlock:Ft+1n,toBlock:er,strict:Lt}):rr=[],Ft=er}if(rr.length===0)return;if(tt)Nt.onLogs(rr);else for(const er of rr)Nt.onLogs([er])}catch(rr){jt&&rr instanceof InvalidInputRpcError&&(Vt=!1),(ir=Nt.onError)==null||ir.call(Nt,rr)}},{emitOnBegin:!0,interval:_t});return async()=>{jt&&await getAction(c,uninstallFilter,"uninstallFilter")({filter:jt}),Jt()}})})():(()=>{const Lt=Tt??!1,Ot=stringify(["watchContractEvent",et,nt,tt,c.uid,bt,_t,Lt]);let Nt=!0,Ft=()=>Nt=!1;return observe$1(Ot,{onLogs:St,onError:wt},jt=>((async()=>{try{const Vt=(()=>{if(c.transport.type==="fallback"){const rr=c.transport.transports.find(er=>er.config.type==="webSocket");return rr?rr.value:c.transport}return c.transport})(),Jt=bt?encodeEventTopics({abi:d,eventName:bt,args:nt}):[],{unsubscribe:ir}=await Vt.subscribe({params:["logs",{address:et,topics:Jt}],onData(rr){var lr;if(!Nt)return;const er=rr.result;try{const{eventName:Ct,args:dt}=decodeEventLog({abi:d,data:er.data,topics:er.topics,strict:Tt}),mt=formatLog(er,{args:dt,eventName:Ct});jt.onLogs([mt])}catch(Ct){let dt,mt;if(Ct instanceof DecodeLogDataMismatch||Ct instanceof DecodeLogTopicsMismatch){if(Tt)return;dt=Ct.abiItem.name,mt=(lr=Ct.abiItem.inputs)==null?void 0:lr.some(vt=>!("name"in vt&&vt.name))}const yt=formatLog(er,{args:mt?[]:{},eventName:dt});jt.onLogs([yt])}},onError(rr){var er;(er=jt.onError)==null||er.call(jt,rr)}});Ft=ir,Nt||Ft()}catch(Vt){wt==null||wt(Vt)}})(),()=>Ft()))})()}async function sendRawTransaction(c,{serializedTransaction:a}){return c.request({method:"eth_sendRawTransaction",params:[a]},{retryCount:0})}const size=256;let index=size,buffer;function uid(c=11){if(!buffer||index+c>size*2){buffer="",index=0;for(let a=0;a{const Nt=Ot(Lt);for(const jt in kt)delete Nt[jt];const Ft={...Lt,...Nt};return Object.assign(Ft,{extend:It(Ft)})}}return Object.assign(kt,{extend:It(kt)})}function withRetry(c,{delay:a=100,retryCount:d=2,shouldRetry:et=()=>!0}={}){return new Promise((nt,tt)=>{const bt=async({count:gt=0}={})=>{const wt=async({error:St})=>{const Mt=typeof a=="function"?a({count:gt,error:St}):a;Mt&&await wait(Mt),bt({count:gt+1})};try{const St=await c();nt(St)}catch(St){if(gt{const{retryDelay:nt=150,retryCount:tt=3}={...a,...et};return withRetry(async()=>{try{return await c(d)}catch(bt){const gt=bt;switch(gt.code){case ParseRpcError.code:throw new ParseRpcError(gt);case InvalidRequestRpcError.code:throw new InvalidRequestRpcError(gt);case MethodNotFoundRpcError.code:throw new MethodNotFoundRpcError(gt);case InvalidParamsRpcError.code:throw new InvalidParamsRpcError(gt);case InternalRpcError.code:throw new InternalRpcError(gt);case InvalidInputRpcError.code:throw new InvalidInputRpcError(gt);case ResourceNotFoundRpcError.code:throw new ResourceNotFoundRpcError(gt);case ResourceUnavailableRpcError.code:throw new ResourceUnavailableRpcError(gt);case TransactionRejectedRpcError.code:throw new TransactionRejectedRpcError(gt);case MethodNotSupportedRpcError.code:throw new MethodNotSupportedRpcError(gt);case LimitExceededRpcError.code:throw new LimitExceededRpcError(gt);case JsonRpcVersionUnsupportedError.code:throw new JsonRpcVersionUnsupportedError(gt);case UserRejectedRequestError.code:throw new UserRejectedRequestError(gt);case UnauthorizedProviderError.code:throw new UnauthorizedProviderError(gt);case UnsupportedProviderMethodError.code:throw new UnsupportedProviderMethodError(gt);case ProviderDisconnectedError.code:throw new ProviderDisconnectedError(gt);case ChainDisconnectedError.code:throw new ChainDisconnectedError(gt);case SwitchChainError.code:throw new SwitchChainError(gt);case 5e3:throw new UserRejectedRequestError(gt);default:throw bt instanceof BaseError?bt:new UnknownRpcError(gt)}}},{delay:({count:bt,error:gt})=>{var wt;if(gt&> instanceof HttpRequestError){const St=(wt=gt==null?void 0:gt.headers)==null?void 0:wt.get("Retry-After");if(St!=null&&St.match(/\d/))return Number.parseInt(St)*1e3}return~~(1<shouldRetry(bt)})}}function shouldRetry(c){return"code"in c&&typeof c.code=="number"?c.code===-1||c.code===LimitExceededRpcError.code||c.code===InternalRpcError.code:c instanceof HttpRequestError&&c.status?c.status===403||c.status===408||c.status===413||c.status===429||c.status===500||c.status===502||c.status===503||c.status===504:!0}function createTransport({key:c,name:a,request:d,retryCount:et=3,retryDelay:nt=150,timeout:tt,type:bt},gt){return{config:{key:c,name:a,request:d,retryCount:et,retryDelay:nt,timeout:tt,type:bt},request:buildRequest(d,{retryCount:et,retryDelay:nt}),value:gt}}class UrlRequiredError extends BaseError{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}}function withTimeout(c,{errorInstance:a=new Error("timed out"),timeout:d,signal:et}){return new Promise((nt,tt)=>{(async()=>{let bt;try{const gt=new AbortController;d>0&&(bt=setTimeout(()=>{et?gt.abort():tt(a)},d)),nt(await c({signal:(gt==null?void 0:gt.signal)||null}))}catch(gt){(gt==null?void 0:gt.name)==="AbortError"&&tt(a),tt(gt)}finally{clearTimeout(bt)}})()})}function createIdStore(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const idCache=createIdStore();function getHttpRpcClient(c,a={}){return{async request(d){var _t;const{body:et,onRequest:nt=a.onRequest,onResponse:tt=a.onResponse,timeout:bt=a.timeout??1e4}=d,gt={...a.fetchOptions??{},...d.fetchOptions??{}},{headers:wt,method:St,signal:Mt}=gt;try{const Tt=await withTimeout(async({signal:kt})=>{const It={...gt,body:Array.isArray(et)?stringify(et.map(Nt=>({jsonrpc:"2.0",id:Nt.id??idCache.take(),...Nt}))):stringify({jsonrpc:"2.0",id:et.id??idCache.take(),...et}),headers:{...wt,"Content-Type":"application/json"},method:St||"POST",signal:Mt||(bt>0?kt:null)},Lt=new Request(c,It);return nt&&await nt(Lt),await fetch(c,It)},{errorInstance:new TimeoutError({body:et,url:c}),timeout:bt,signal:!0});tt&&await tt(Tt);let Rt;if((_t=Tt.headers.get("Content-Type"))!=null&&_t.startsWith("application/json")?Rt=await Tt.json():(Rt=await Tt.text(),Rt=JSON.parse(Rt||"{}")),!Tt.ok)throw new HttpRequestError({body:et,details:stringify(Rt.error)||Tt.statusText,headers:Tt.headers,status:Tt.status,url:c});return Rt}catch(Tt){throw Tt instanceof HttpRequestError||Tt instanceof TimeoutError?Tt:new HttpRequestError({body:et,details:Tt.message,url:c})}}}}function http(c,a={}){const{batch:d,fetchOptions:et,key:nt="http",name:tt="HTTP JSON-RPC",onFetchRequest:bt,onFetchResponse:gt,retryDelay:wt}=a;return({chain:St,retryCount:Mt,timeout:_t})=>{const{batchSize:Tt=1e3,wait:Rt=0}=typeof d=="object"?d:{},kt=a.retryCount??Mt,It=_t??a.timeout??1e4,Lt=c||(St==null?void 0:St.rpcUrls.default.http[0]);if(!Lt)throw new UrlRequiredError;const Ot=getHttpRpcClient(Lt,{fetchOptions:et,onRequest:bt,onResponse:gt,timeout:It});return createTransport({key:nt,name:tt,async request({method:Nt,params:Ft}){const jt={method:Nt,params:Ft},{schedule:Vt}=createBatchScheduler({id:Lt,wait:Rt,shouldSplitBatch(er){return er.length>Tt},fn:er=>Ot.request({body:er}),sort:(er,lr)=>er.id-lr.id}),Jt=async er=>d?Vt(er):[await Ot.request({body:er})],[{error:ir,result:rr}]=await Jt(jt);if(ir)throw new RpcRequestError({body:jt,error:ir,url:Lt});return rr},retryCount:kt,retryDelay:wt,timeout:It,type:"http"},{fetchOptions:et,url:Lt})}}function isNullUniversalResolverError(c,a){var et,nt,tt,bt,gt,wt;if(!(c instanceof BaseError))return!1;const d=c.walk(St=>St instanceof ContractFunctionRevertedError);return d instanceof ContractFunctionRevertedError?!!(((et=d.data)==null?void 0:et.errorName)==="ResolverNotFound"||((nt=d.data)==null?void 0:nt.errorName)==="ResolverWildcardNotSupported"||((tt=d.data)==null?void 0:tt.errorName)==="ResolverNotContract"||((bt=d.data)==null?void 0:bt.errorName)==="ResolverError"||((gt=d.data)==null?void 0:gt.errorName)==="HttpError"||(wt=d.reason)!=null&&wt.includes("Wildcard on non-extended resolvers is not supported")||a==="reverse"&&d.reason===panicReasons[50]):!1}function encodedLabelToLabelhash(c){if(c.length!==66||c.indexOf("[")!==0||c.indexOf("]")!==65)return null;const a=`0x${c.slice(1,65)}`;return isHex(a)?a:null}function namehash(c){let a=new Uint8Array(32).fill(0);if(!c)return bytesToHex(a);const d=c.split(".");for(let et=d.length-1;et>=0;et-=1){const nt=encodedLabelToLabelhash(d[et]),tt=nt?toBytes(nt):keccak256(stringToBytes(d[et]),"bytes");a=keccak256(concat([a,tt]),"bytes")}return bytesToHex(a)}function encodeLabelhash(c){return`[${c.slice(2)}]`}function labelhash(c){const a=new Uint8Array(32).fill(0);return c?encodedLabelToLabelhash(c)||keccak256(stringToBytes(c)):bytesToHex(a)}function packetToBytes(c){const a=c.replace(/^\.|\.$/gm,"");if(a.length===0)return new Uint8Array(1);const d=new Uint8Array(stringToBytes(a).byteLength+2);let et=0;const nt=a.split(".");for(let tt=0;tt255&&(bt=stringToBytes(encodeLabelhash(labelhash(nt[tt])))),d[et]=bt.length,d.set(bt,et+1),et+=bt.length+1}return d.byteLength!==et+1?d.slice(0,et+1):d}async function getEnsAddress(c,{blockNumber:a,blockTag:d,coinType:et,name:nt,gatewayUrls:tt,strict:bt,universalResolverAddress:gt}){let wt=gt;if(!wt){if(!c.chain)throw new Error("client chain not configured. universalResolverAddress is required.");wt=getChainContractAddress({blockNumber:a,chain:c.chain,contract:"ensUniversalResolver"})}try{const St=encodeFunctionData({abi:addressResolverAbi,functionName:"addr",...et!=null?{args:[namehash(nt),BigInt(et)]}:{args:[namehash(nt)]}}),Mt={address:wt,abi:universalResolverResolveAbi,functionName:"resolve",args:[toHex(packetToBytes(nt)),St],blockNumber:a,blockTag:d},_t=getAction(c,readContract,"readContract"),Tt=tt?await _t({...Mt,args:[...Mt.args,tt]}):await _t(Mt);if(Tt[0]==="0x")return null;const Rt=decodeFunctionResult({abi:addressResolverAbi,args:et!=null?[namehash(nt),BigInt(et)]:void 0,functionName:"addr",data:Tt[0]});return Rt==="0x"||trim(Rt)==="0x00"?null:Rt}catch(St){if(bt)throw St;if(isNullUniversalResolverError(St,"resolve"))return null;throw St}}class EnsAvatarInvalidMetadataError extends BaseError{constructor({data:a}){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(a)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}}class EnsAvatarInvalidNftUriError extends BaseError{constructor({reason:a}){super(`ENS NFT avatar URI is invalid. ${a}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}}class EnsAvatarUriResolutionError extends BaseError{constructor({uri:a}){super(`Unable to resolve ENS avatar URI "${a}". 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 EnsAvatarUnsupportedNamespaceError extends BaseError{constructor({namespace:a}){super(`ENS NFT avatar namespace "${a}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}}const networkRegex=/(?https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?\/)?(?ipfs\/|ipns\/)?(?[\w\-.]+)(?\/.*)?/,ipfsHashRegex=/^(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\-.]+))?(?\/.*)?$/,base64Regex=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,dataURIRegex=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function isImageUri(c){try{const a=await fetch(c,{method:"HEAD"});if(a.status===200){const d=a.headers.get("content-type");return d==null?void 0:d.startsWith("image/")}return!1}catch(a){return typeof a=="object"&&typeof a.response<"u"||!globalThis.hasOwnProperty("Image")?!1:new Promise(d=>{const et=new Image;et.onload=()=>{d(!0)},et.onerror=()=>{d(!1)},et.src=c})}}function getGateway(c,a){return c?c.endsWith("/")?c.slice(0,-1):c:a}function resolveAvatarUri({uri:c,gatewayUrls:a}){const d=base64Regex.test(c);if(d)return{uri:c,isOnChain:!0,isEncoded:d};const et=getGateway(a==null?void 0:a.ipfs,"https://ipfs.io"),nt=getGateway(a==null?void 0:a.arweave,"https://arweave.net"),tt=c.match(networkRegex),{protocol:bt,subpath:gt,target:wt,subtarget:St=""}=(tt==null?void 0:tt.groups)||{},Mt=bt==="ipns:/"||gt==="ipns/",_t=bt==="ipfs:/"||gt==="ipfs/"||ipfsHashRegex.test(c);if(c.startsWith("http")&&!Mt&&!_t){let Rt=c;return a!=null&&a.arweave&&(Rt=c.replace(/https:\/\/arweave.net/g,a==null?void 0:a.arweave)),{uri:Rt,isOnChain:!1,isEncoded:!1}}if((Mt||_t)&&wt)return{uri:`${et}/${Mt?"ipns":"ipfs"}/${wt}${St}`,isOnChain:!1,isEncoded:!1};if(bt==="ar:/"&&wt)return{uri:`${nt}/${wt}${St||""}`,isOnChain:!1,isEncoded:!1};let Tt=c.replace(dataURIRegex,"");if(Tt.startsWith("nt.json());return await parseAvatarUri({gatewayUrls:c,uri:getJsonImage(d)})}catch{throw new EnsAvatarUriResolutionError({uri:a})}}async function parseAvatarUri({gatewayUrls:c,uri:a}){const{uri:d,isOnChain:et}=resolveAvatarUri({uri:a,gatewayUrls:c});if(et||await isImageUri(d))return d;throw new EnsAvatarUriResolutionError({uri:a})}function parseNftUri(c){let a=c;a.startsWith("did:nft:")&&(a=a.replace("did:nft:","").replace(/_/g,"/"));const[d,et,nt]=a.split("/"),[tt,bt]=d.split(":"),[gt,wt]=et.split(":");if(!tt||tt.toLowerCase()!=="eip155")throw new EnsAvatarInvalidNftUriError({reason:"Only EIP-155 supported"});if(!bt)throw new EnsAvatarInvalidNftUriError({reason:"Chain ID not found"});if(!wt)throw new EnsAvatarInvalidNftUriError({reason:"Contract address not found"});if(!nt)throw new EnsAvatarInvalidNftUriError({reason:"Token ID not found"});if(!gt)throw new EnsAvatarInvalidNftUriError({reason:"ERC namespace not found"});return{chainID:Number.parseInt(bt),namespace:gt.toLowerCase(),contractAddress:wt,tokenID:nt}}async function getNftTokenUri(c,{nft:a}){if(a.namespace==="erc721")return readContract(c,{address:a.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(a.tokenID)]});if(a.namespace==="erc1155")return readContract(c,{address:a.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(a.tokenID)]});throw new EnsAvatarUnsupportedNamespaceError({namespace:a.namespace})}async function parseAvatarRecord(c,{gatewayUrls:a,record:d}){return/eip155:/i.test(d)?parseNftAvatarUri(c,{gatewayUrls:a,record:d}):parseAvatarUri({uri:d,gatewayUrls:a})}async function parseNftAvatarUri(c,{gatewayUrls:a,record:d}){const et=parseNftUri(d),nt=await getNftTokenUri(c,{nft:et}),{uri:tt,isOnChain:bt,isEncoded:gt}=resolveAvatarUri({uri:nt,gatewayUrls:a});if(bt&&(tt.includes("data:application/json;base64,")||tt.startsWith("{"))){const St=gt?atob(tt.replace("data:application/json;base64,","")):tt,Mt=JSON.parse(St);return parseAvatarUri({uri:getJsonImage(Mt),gatewayUrls:a})}let wt=et.tokenID;return et.namespace==="erc1155"&&(wt=wt.replace("0x","").padStart(64,"0")),getMetadataAvatarUri({gatewayUrls:a,uri:tt.replace(/(?:0x)?{id}/,wt)})}async function getEnsText(c,{blockNumber:a,blockTag:d,name:et,key:nt,gatewayUrls:tt,strict:bt,universalResolverAddress:gt}){let wt=gt;if(!wt){if(!c.chain)throw new Error("client chain not configured. universalResolverAddress is required.");wt=getChainContractAddress({blockNumber:a,chain:c.chain,contract:"ensUniversalResolver"})}try{const St={address:wt,abi:universalResolverResolveAbi,functionName:"resolve",args:[toHex(packetToBytes(et)),encodeFunctionData({abi:textResolverAbi,functionName:"text",args:[namehash(et),nt]})],blockNumber:a,blockTag:d},Mt=getAction(c,readContract,"readContract"),_t=tt?await Mt({...St,args:[...St.args,tt]}):await Mt(St);if(_t[0]==="0x")return null;const Tt=decodeFunctionResult({abi:textResolverAbi,functionName:"text",data:_t[0]});return Tt===""?null:Tt}catch(St){if(bt)throw St;if(isNullUniversalResolverError(St,"resolve"))return null;throw St}}async function getEnsAvatar(c,{blockNumber:a,blockTag:d,assetGatewayUrls:et,name:nt,gatewayUrls:tt,strict:bt,universalResolverAddress:gt}){const wt=await getAction(c,getEnsText,"getEnsText")({blockNumber:a,blockTag:d,key:"avatar",name:nt,universalResolverAddress:gt,gatewayUrls:tt,strict:bt});if(!wt)return null;try{return await parseAvatarRecord(c,{record:wt,gatewayUrls:et})}catch{return null}}async function getEnsName(c,{address:a,blockNumber:d,blockTag:et,gatewayUrls:nt,strict:tt,universalResolverAddress:bt}){let gt=bt;if(!gt){if(!c.chain)throw new Error("client chain not configured. universalResolverAddress is required.");gt=getChainContractAddress({blockNumber:d,chain:c.chain,contract:"ensUniversalResolver"})}const wt=`${a.toLowerCase().substring(2)}.addr.reverse`;try{const St={address:gt,abi:universalResolverReverseAbi,functionName:"reverse",args:[toHex(packetToBytes(wt))],blockNumber:d,blockTag:et},Mt=getAction(c,readContract,"readContract"),[_t,Tt]=nt?await Mt({...St,args:[...St.args,nt]}):await Mt(St);return a.toLowerCase()!==Tt.toLowerCase()?null:_t}catch(St){if(tt)throw St;if(isNullUniversalResolverError(St,"reverse"))return null;throw St}}async function getEnsResolver(c,{blockNumber:a,blockTag:d,name:et,universalResolverAddress:nt}){let tt=nt;if(!tt){if(!c.chain)throw new Error("client chain not configured. universalResolverAddress is required.");tt=getChainContractAddress({blockNumber:a,chain:c.chain,contract:"ensUniversalResolver"})}const[bt]=await getAction(c,readContract,"readContract")({address:tt,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[toHex(packetToBytes(et))],blockNumber:a,blockTag:d});return bt}async function createBlockFilter(c){const a=createFilterRequestScope(c,{method:"eth_newBlockFilter"}),d=await c.request({method:"eth_newBlockFilter"});return{id:d,request:a(d),type:"block"}}async function createEventFilter(c,{address:a,args:d,event:et,events:nt,fromBlock:tt,strict:bt,toBlock:gt}={}){const wt=nt??(et?[et]:void 0),St=createFilterRequestScope(c,{method:"eth_newFilter"});let Mt=[];wt&&(Mt=[wt.flatMap(Tt=>encodeEventTopics({abi:[Tt],eventName:Tt.name,args:d}))],et&&(Mt=Mt[0]));const _t=await c.request({method:"eth_newFilter",params:[{address:a,fromBlock:typeof tt=="bigint"?numberToHex(tt):tt,toBlock:typeof gt=="bigint"?numberToHex(gt):gt,...Mt.length?{topics:Mt}:{}}]});return{abi:wt,args:d,eventName:et?et.name:void 0,fromBlock:tt,id:_t,request:St(_t),strict:!!bt,toBlock:gt,type:"event"}}async function createPendingTransactionFilter(c){const a=createFilterRequestScope(c,{method:"eth_newPendingTransactionFilter"}),d=await c.request({method:"eth_newPendingTransactionFilter"});return{id:d,request:a(d),type:"transaction"}}async function getBalance(c,{address:a,blockNumber:d,blockTag:et="latest"}){const nt=d?numberToHex(d):void 0,tt=await c.request({method:"eth_getBalance",params:[a,nt||et]});return BigInt(tt)}async function getBlobBaseFee(c){const a=await c.request({method:"eth_blobBaseFee"});return BigInt(a)}async function getBlockTransactionCount(c,{blockHash:a,blockNumber:d,blockTag:et="latest"}={}){const nt=d!==void 0?numberToHex(d):void 0;let tt;return a?tt=await c.request({method:"eth_getBlockTransactionCountByHash",params:[a]}):tt=await c.request({method:"eth_getBlockTransactionCountByNumber",params:[nt||et]}),hexToNumber(tt)}async function getBytecode(c,{address:a,blockNumber:d,blockTag:et="latest"}){const nt=d!==void 0?numberToHex(d):void 0,tt=await c.request({method:"eth_getCode",params:[a,nt||et]});if(tt!=="0x")return tt}function formatFeeHistory(c){var a;return{baseFeePerGas:c.baseFeePerGas.map(d=>BigInt(d)),gasUsedRatio:c.gasUsedRatio,oldestBlock:BigInt(c.oldestBlock),reward:(a=c.reward)==null?void 0:a.map(d=>d.map(et=>BigInt(et)))}}async function getFeeHistory(c,{blockCount:a,blockNumber:d,blockTag:et="latest",rewardPercentiles:nt}){const tt=d?numberToHex(d):void 0,bt=await c.request({method:"eth_feeHistory",params:[numberToHex(a),tt||et,nt]});return formatFeeHistory(bt)}async function getFilterLogs(c,{filter:a}){const d=a.strict??!1,nt=(await a.request({method:"eth_getFilterLogs",params:[a.id]})).map(tt=>formatLog(tt));return a.abi?parseEventLogs({abi:a.abi,logs:nt,strict:d}):nt}function isAddressEqual(c,a){if(!isAddress(c,{strict:!1}))throw new InvalidAddressError({address:c});if(!isAddress(a,{strict:!1}))throw new InvalidAddressError({address:a});return c.toLowerCase()===a.toLowerCase()}function defineChain(c){return{formatters:void 0,fees:void 0,serializers:void 0,...c}}const arrayRegex=/^(.*)\[([0-9]*)\]$/,bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,integerRegex=/^(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 hashTypedData(c){const{domain:a={},message:d,primaryType:et}=c,nt={EIP712Domain:getTypesForEIP712Domain({domain:a}),...c.types};validateTypedData({domain:a,message:d,primaryType:et,types:nt});const tt=["0x1901"];return a&&tt.push(hashDomain({domain:a,types:nt})),et!=="EIP712Domain"&&tt.push(hashStruct({data:d,primaryType:et,types:nt})),keccak256(concat(tt))}function hashDomain({domain:c,types:a}){return hashStruct({data:c,primaryType:"EIP712Domain",types:a})}function hashStruct({data:c,primaryType:a,types:d}){const et=encodeData({data:c,primaryType:a,types:d});return keccak256(et)}function encodeData({data:c,primaryType:a,types:d}){const et=[{type:"bytes32"}],nt=[hashType({primaryType:a,types:d})];for(const tt of d[a]){const[bt,gt]=encodeField({types:d,name:tt.name,type:tt.type,value:c[tt.name]});et.push(bt),nt.push(gt)}return encodeAbiParameters(et,nt)}function hashType({primaryType:c,types:a}){const d=toHex(encodeType({primaryType:c,types:a}));return keccak256(d)}function encodeType({primaryType:c,types:a}){let d="";const et=findTypeDependencies({primaryType:c,types:a});et.delete(c);const nt=[c,...Array.from(et).sort()];for(const tt of nt)d+=`${tt}(${a[tt].map(({name:bt,type:gt})=>`${gt} ${bt}`).join(",")})`;return d}function findTypeDependencies({primaryType:c,types:a},d=new Set){const et=c.match(/^\w*/u),nt=et==null?void 0:et[0];if(d.has(nt)||a[nt]===void 0)return d;d.add(nt);for(const tt of a[nt])findTypeDependencies({primaryType:tt.type,types:a},d);return d}function encodeField({types:c,name:a,type:d,value:et}){if(c[d]!==void 0)return[{type:"bytes32"},keccak256(encodeData({data:et,primaryType:d,types:c}))];if(d==="bytes")return et=`0x${(et.length%2?"0":"")+et.slice(2)}`,[{type:"bytes32"},keccak256(et)];if(d==="string")return[{type:"bytes32"},keccak256(toHex(et))];if(d.lastIndexOf("]")===d.length-1){const nt=d.slice(0,d.lastIndexOf("[")),tt=et.map(bt=>encodeField({name:a,type:nt,types:c,value:bt}));return[{type:"bytes32"},keccak256(encodeAbiParameters(tt.map(([bt])=>bt),tt.map(([,bt])=>bt)))]}return[{type:d},et]}function validateTypedData(c){const{domain:a,message:d,primaryType:et,types:nt}=c,tt=(bt,gt)=>{for(const wt of bt){const{name:St,type:Mt}=wt,_t=gt[St],Tt=Mt.match(integerRegex);if(Tt&&(typeof _t=="number"||typeof _t=="bigint")){const[It,Lt,Ot]=Tt;numberToHex(_t,{signed:Lt==="int",size:Number.parseInt(Ot)/8})}if(Mt==="address"&&typeof _t=="string"&&!isAddress(_t))throw new InvalidAddressError({address:_t});const Rt=Mt.match(bytesRegex);if(Rt){const[It,Lt]=Rt;if(Lt&&size$1(_t)!==Number.parseInt(Lt))throw new BytesSizeMismatchError({expectedSize:Number.parseInt(Lt),givenSize:size$1(_t)})}const kt=nt[Mt];kt&&tt(kt,_t)}};nt.EIP712Domain&&a&&tt(nt.EIP712Domain,a),et!=="EIP712Domain"&&tt(nt[et],d)}function getTypesForEIP712Domain({domain:c}){return[typeof(c==null?void 0:c.name)=="string"&&{name:"name",type:"string"},(c==null?void 0:c.version)&&{name:"version",type:"string"},typeof(c==null?void 0:c.chainId)=="number"&&{name:"chainId",type:"uint256"},(c==null?void 0:c.verifyingContract)&&{name:"verifyingContract",type:"address"},(c==null?void 0:c.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}const docsPath="/docs/contract/encodeDeployData";function encodeDeployData(c){const{abi:a,args:d,bytecode:et}=c;if(!d||d.length===0)return et;const nt=a.find(bt=>"type"in bt&&bt.type==="constructor");if(!nt)throw new AbiConstructorNotFoundError({docsPath});if(!("inputs"in nt))throw new AbiConstructorParamsNotFoundError({docsPath});if(!nt.inputs||nt.inputs.length===0)throw new AbiConstructorParamsNotFoundError({docsPath});const tt=encodeAbiParameters(nt.inputs,d);return concatHex([et,tt])}function encodePacked(c,a){if(c.length!==a.length)throw new AbiEncodingLengthMismatchError({expectedLength:c.length,givenLength:a.length});const d=[];for(let et=0;etgetEncodable(a))):getEncodableBytes(c)}function getEncodableList(c){const a=c.reduce((nt,tt)=>nt+tt.length,0),d=getSizeOfLength(a);return{length:(()=>a<=55?1+a:1+d+a)(),encode(nt){a<=55?nt.pushByte(192+a):(nt.pushByte(192+55+d),d===1?nt.pushUint8(a):d===2?nt.pushUint16(a):d===3?nt.pushUint24(a):nt.pushUint32(a));for(const{encode:tt}of c)tt(nt)}}}function getEncodableBytes(c){const a=typeof c=="string"?hexToBytes(c):c,d=getSizeOfLength(a.length);return{length:(()=>a.length===1&&a[0]<128?1:a.length<=55?1+a.length:1+d+a.length)(),encode(nt){a.length===1&&a[0]<128?nt.pushBytes(a):a.length<=55?(nt.pushByte(128+a.length),nt.pushBytes(a)):(nt.pushByte(128+55+d),d===1?nt.pushUint8(a.length):d===2?nt.pushUint16(a.length):d===3?nt.pushUint24(a.length):nt.pushUint32(a.length),nt.pushBytes(a))}}}function getSizeOfLength(c){if(c<2**8)return 1;if(c<2**16)return 2;if(c<2**24)return 3;if(c<2**32)return 4;throw new BaseError("Length is too large.")}const receiptStatuses={"0x0":"reverted","0x1":"success"};function formatTransactionReceipt(c){const a={...c,blockNumber:c.blockNumber?BigInt(c.blockNumber):null,contractAddress:c.contractAddress?c.contractAddress:null,cumulativeGasUsed:c.cumulativeGasUsed?BigInt(c.cumulativeGasUsed):null,effectiveGasPrice:c.effectiveGasPrice?BigInt(c.effectiveGasPrice):null,gasUsed:c.gasUsed?BigInt(c.gasUsed):null,logs:c.logs?c.logs.map(d=>formatLog(d)):null,to:c.to?c.to:null,transactionIndex:c.transactionIndex?hexToNumber(c.transactionIndex):null,status:c.status?receiptStatuses[c.status]:null,type:c.type?transactionType[c.type]||c.type:null};return c.blobGasPrice&&(a.blobGasPrice=BigInt(c.blobGasPrice)),c.blobGasUsed&&(a.blobGasUsed=BigInt(c.blobGasUsed)),a}const defineTransactionReceipt=defineFormatter("transactionReceipt",formatTransactionReceipt),presignMessagePrefix=`Ethereum Signed Message: +`;function hashMessage(c,a){const d=(()=>typeof c=="string"?stringToBytes(c):c.raw instanceof Uint8Array?c.raw:toBytes(c.raw))(),et=stringToBytes(`${presignMessagePrefix}${d.length}`);return keccak256(concat([et,d]),a)}function assertTransactionEIP4844(c){const{blobVersionedHashes:a}=c;if(a){if(a.length===0)throw new EmptyBlobError;for(const d of a){const et=size$1(d),nt=hexToNumber(slice(d,0,1));if(et!==32)throw new InvalidVersionedHashSizeError({hash:d,size:et});if(nt!==versionedHashVersionKzg)throw new InvalidVersionedHashVersionError({hash:d,version:nt})}}assertTransactionEIP1559(c)}function assertTransactionEIP1559(c){const{chainId:a,maxPriorityFeePerGas:d,maxFeePerGas:et,to:nt}=c;if(a<=0)throw new InvalidChainIdError({chainId:a});if(nt&&!isAddress(nt))throw new InvalidAddressError({address:nt});if(et&&et>2n**256n-1n)throw new FeeCapTooHighError({maxFeePerGas:et});if(d&&et&&d>et)throw new TipAboveFeeCapError({maxFeePerGas:et,maxPriorityFeePerGas:d})}function assertTransactionEIP2930(c){const{chainId:a,maxPriorityFeePerGas:d,gasPrice:et,maxFeePerGas:nt,to:tt}=c;if(a<=0)throw new InvalidChainIdError({chainId:a});if(tt&&!isAddress(tt))throw new InvalidAddressError({address:tt});if(d||nt)throw new BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(et&&et>2n**256n-1n)throw new FeeCapTooHighError({maxFeePerGas:et})}function assertTransactionLegacy(c){const{chainId:a,maxPriorityFeePerGas:d,gasPrice:et,maxFeePerGas:nt,to:tt,accessList:bt}=c;if(tt&&!isAddress(tt))throw new InvalidAddressError({address:tt});if(typeof a<"u"&&a<=0)throw new InvalidChainIdError({chainId:a});if(d||nt)throw new BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(et&&et>2n**256n-1n)throw new FeeCapTooHighError({maxFeePerGas:et});if(bt)throw new BaseError("`accessList` is not a valid Legacy Transaction attribute.")}function serializeAccessList(c){if(!c||c.length===0)return[];const a=[];for(let d=0;d"u"||typeof Rt>"u")){const Ft=typeof c.blobs[0]=="string"?c.blobs:c.blobs.map(Jt=>bytesToHex(Jt)),jt=c.kzg,Vt=blobsToCommitments({blobs:Ft,kzg:jt});if(typeof Tt>"u"&&(Tt=commitmentsToVersionedHashes({commitments:Vt})),typeof Rt>"u"){const Jt=blobsToProofs({blobs:Ft,commitments:Vt,kzg:jt});Rt=toBlobSidecars({blobs:Ft,commitments:Vt,proofs:Jt})}}const kt=serializeAccessList(Mt),It=[toHex(d),nt?toHex(nt):"0x",St?toHex(St):"0x",wt?toHex(wt):"0x",et?toHex(et):"0x",tt??"0x",bt?toHex(bt):"0x",_t??"0x",kt,gt?toHex(gt):"0x",Tt??[],...toYParitySignatureArray(c,a)],Lt=[],Ot=[],Nt=[];if(Rt)for(let Ft=0;Ft{if(a.v>=35n)return(a.v-35n)/2n>0?a.v:27n+(a.v===35n?0n:1n);if(d>0)return BigInt(d*2)+BigInt(35n+a.v-27n);const _t=27n+(a.v===27n?0n:1n);if(a.v!==_t)throw new InvalidLegacyVError({v:a.v});return _t})();St=[...St,toHex(Mt),a.r,a.s]}else d>0&&(St=[...St,toHex(d),"0x","0x"]);return toRlp(St)}function toYParitySignatureArray(c,a){const{r:d,s:et,v:nt,yParity:tt}=a??c;return typeof d>"u"?[]:typeof et>"u"?[]:typeof nt>"u"&&typeof tt>"u"?[]:[(()=>typeof tt=="number"?tt?toHex(1):"0x":nt===0n?"0x":nt===1n?toHex(1):nt===27n?"0x":toHex(1))(),trim(d),trim(et)]}function formatStorageProof(c){return c.map(a=>({...a,value:BigInt(a.value)}))}function formatProof(c){return{...c,balance:c.balance?BigInt(c.balance):void 0,nonce:c.nonce?hexToNumber(c.nonce):void 0,storageProof:c.storageProof?formatStorageProof(c.storageProof):void 0}}async function getProof(c,{address:a,blockNumber:d,blockTag:et,storageKeys:nt}){const tt=et??"latest",bt=d!==void 0?numberToHex(d):void 0,gt=await c.request({method:"eth_getProof",params:[a,nt,bt||tt]});return formatProof(gt)}async function getStorageAt(c,{address:a,blockNumber:d,blockTag:et="latest",slot:nt}){const tt=d!==void 0?numberToHex(d):void 0;return await c.request({method:"eth_getStorageAt",params:[a,nt,tt||et]})}async function getTransaction(c,{blockHash:a,blockNumber:d,blockTag:et,hash:nt,index:tt}){var Mt,_t,Tt;const bt=et||"latest",gt=d!==void 0?numberToHex(d):void 0;let wt=null;if(nt?wt=await c.request({method:"eth_getTransactionByHash",params:[nt]}):a?wt=await c.request({method:"eth_getTransactionByBlockHashAndIndex",params:[a,numberToHex(tt)]}):(gt||bt)&&(wt=await c.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[gt||bt,numberToHex(tt)]})),!wt)throw new TransactionNotFoundError({blockHash:a,blockNumber:d,blockTag:bt,hash:nt,index:tt});return(((Tt=(_t=(Mt=c.chain)==null?void 0:Mt.formatters)==null?void 0:_t.transaction)==null?void 0:Tt.format)||formatTransaction)(wt)}async function getTransactionConfirmations(c,{hash:a,transactionReceipt:d}){const[et,nt]=await Promise.all([getAction(c,getBlockNumber,"getBlockNumber")({}),a?getAction(c,getTransaction,"getBlockNumber")({hash:a}):void 0]),tt=(d==null?void 0:d.blockNumber)||(nt==null?void 0:nt.blockNumber);return tt?et-tt+1n:0n}async function getTransactionReceipt(c,{hash:a}){var nt,tt,bt;const d=await c.request({method:"eth_getTransactionReceipt",params:[a]});if(!d)throw new TransactionReceiptNotFoundError({hash:a});return(((bt=(tt=(nt=c.chain)==null?void 0:nt.formatters)==null?void 0:tt.transactionReceipt)==null?void 0:bt.format)||formatTransactionReceipt)(d)}async function multicall(c,a){var Lt;const{allowFailure:d=!0,batchSize:et,blockNumber:nt,blockTag:tt,multicallAddress:bt,stateOverride:gt}=a,wt=a.contracts,St=et??(typeof((Lt=c.batch)==null?void 0:Lt.multicall)=="object"&&c.batch.multicall.batchSize||1024);let Mt=bt;if(!Mt){if(!c.chain)throw new Error("client chain not configured. multicallAddress is required.");Mt=getChainContractAddress({blockNumber:nt,chain:c.chain,contract:"multicall3"})}const _t=[[]];let Tt=0,Rt=0;for(let Ot=0;Ot0&&Rt>St&&_t[Tt].length>0&&(Tt++,Rt=(Jt.length-2)/2,_t[Tt]=[]),_t[Tt]=[..._t[Tt],{allowFailure:!0,callData:Jt,target:Ft}]}catch(Jt){const ir=getContractError(Jt,{abi:Nt,address:Ft,args:jt,docsPath:"/docs/contract/multicall",functionName:Vt});if(!d)throw ir;_t[Tt]=[..._t[Tt],{allowFailure:!0,callData:"0x",target:Ft}]}}const kt=await Promise.allSettled(_t.map(Ot=>getAction(c,readContract,"readContract")({abi:multicall3Abi,address:Mt,args:[Ot],blockNumber:nt,blockTag:tt,functionName:"aggregate3",stateOverride:gt}))),It=[];for(let Ot=0;Ot{if(et===0||et===1)return et;if(d&&(d===27n||d===28n||d>=35n))return d%2n===0n?1:0;throw new Error("Invalid `v` or `yParity` value")})();return`0x${new secp256k1.Signature(hexToBigInt(c),hexToBigInt(a)).toCompactHex()}${nt===0?"1b":"1c"}`}async function verifyHash(c,{address:a,hash:d,signature:et,...nt}){const tt=(()=>isHex(et)?et:typeof et=="object"&&"r"in et&&"s"in et?serializeSignature(et):bytesToHex(et))();try{const{data:bt}=await getAction(c,call,"call")({data:encodeDeployData({abi:universalSignatureValidatorAbi,args:[a,d,tt],bytecode:universalSignatureValidatorByteCode}),...nt});return isBytesEqual(bt??"0x0","0x1")}catch(bt){if(bt instanceof CallExecutionError)return!1;throw bt}}async function verifyMessage(c,{address:a,message:d,signature:et,...nt}){const tt=hashMessage(d);return verifyHash(c,{address:a,hash:tt,signature:et,...nt})}async function verifyTypedData(c,a){const{address:d,signature:et,message:nt,primaryType:tt,types:bt,domain:gt,...wt}=a,St=hashTypedData({message:nt,primaryType:tt,types:bt,domain:gt});return verifyHash(c,{address:d,hash:St,signature:et,...wt})}function watchBlockNumber(c,{emitOnBegin:a=!1,emitMissed:d=!1,onBlockNumber:et,onError:nt,poll:tt,pollingInterval:bt=c.pollingInterval}){const gt=(()=>typeof tt<"u"?tt:!(c.transport.type==="webSocket"||c.transport.type==="fallback"&&c.transport.transports[0].config.type==="webSocket"))();let wt;return gt?(()=>{const _t=stringify(["watchBlockNumber",c.uid,a,d,bt]);return observe$1(_t,{onBlockNumber:et,onError:nt},Tt=>poll(async()=>{var Rt;try{const kt=await getAction(c,getBlockNumber,"getBlockNumber")({cacheTime:0});if(wt){if(kt===wt)return;if(kt-wt>1&&d)for(let It=wt+1n;Itwt)&&(Tt.onBlockNumber(kt,wt),wt=kt)}catch(kt){(Rt=Tt.onError)==null||Rt.call(Tt,kt)}},{emitOnBegin:a,interval:bt}))})():(()=>{const _t=stringify(["watchBlockNumber",c.uid,a,d]);return observe$1(_t,{onBlockNumber:et,onError:nt},Tt=>{let Rt=!0,kt=()=>Rt=!1;return(async()=>{try{const It=(()=>{if(c.transport.type==="fallback"){const Ot=c.transport.transports.find(Nt=>Nt.config.type==="webSocket");return Ot?Ot.value:c.transport}return c.transport})(),{unsubscribe:Lt}=await It.subscribe({params:["newHeads"],onData(Ot){var Ft;if(!Rt)return;const Nt=hexToBigInt((Ft=Ot.result)==null?void 0:Ft.number);Tt.onBlockNumber(Nt,wt),wt=Nt},onError(Ot){var Nt;(Nt=Tt.onError)==null||Nt.call(Tt,Ot)}});kt=Lt,Rt||kt()}catch(It){nt==null||nt(It)}})(),()=>kt()})})()}async function waitForTransactionReceipt(c,{confirmations:a=1,hash:d,onReplaced:et,pollingInterval:nt=c.pollingInterval,retryCount:tt=6,retryDelay:bt=({count:wt})=>~~(1<{gt&&setTimeout(()=>It(new WaitForTransactionReceiptTimeoutError({hash:d})),gt);const Lt=observe$1(wt,{onReplaced:et,resolve:kt,reject:It},Ot=>{const Nt=getAction(c,watchBlockNumber,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:nt,async onBlockNumber(Ft){const jt=Jt=>{Nt(),Jt(),Lt()};let Vt=Ft;if(!Rt){St>tt&&jt(()=>Ot.reject(new WaitForTransactionReceiptTimeoutError({hash:d})));try{if(Tt){if(a>1&&(!Tt.blockNumber||Vt-Tt.blockNumber+1nOt.resolve(Tt));return}if(Mt||(Rt=!0,await withRetry(async()=>{Mt=await getAction(c,getTransaction,"getTransaction")({hash:d}),Mt.blockNumber&&(Vt=Mt.blockNumber)},{delay:bt,retryCount:tt}),Rt=!1),Tt=await getAction(c,getTransactionReceipt,"getTransactionReceipt")({hash:d}),a>1&&(!Tt.blockNumber||Vt-Tt.blockNumber+1nOt.resolve(Tt))}catch(Jt){if(Jt instanceof TransactionNotFoundError||Jt instanceof TransactionReceiptNotFoundError){if(!Mt){Rt=!1;return}try{_t=Mt,Rt=!0;const ir=await withRetry(()=>getAction(c,getBlock,"getBlock")({blockNumber:Vt,includeTransactions:!0}),{delay:bt,retryCount:tt,shouldRetry:({error:lr})=>lr instanceof BlockNotFoundError});Rt=!1;const rr=ir.transactions.find(({from:lr,nonce:Ct})=>lr===_t.from&&Ct===_t.nonce);if(!rr||(Tt=await getAction(c,getTransactionReceipt,"getTransactionReceipt")({hash:rr.hash}),a>1&&(!Tt.blockNumber||Vt-Tt.blockNumber+1n{var lr;(lr=Ot.onReplaced)==null||lr.call(Ot,{reason:er,replacedTransaction:_t,transaction:rr,transactionReceipt:Tt}),Ot.resolve(Tt)})}catch(ir){jt(()=>Ot.reject(ir))}}else jt(()=>Ot.reject(Jt))}finally{St++}}}})})})}function watchBlocks(c,{blockTag:a="latest",emitMissed:d=!1,emitOnBegin:et=!1,onBlock:nt,onError:tt,includeTransactions:bt,poll:gt,pollingInterval:wt=c.pollingInterval}){const St=(()=>typeof gt<"u"?gt:!(c.transport.type==="webSocket"||c.transport.type==="fallback"&&c.transport.transports[0].config.type==="webSocket"))(),Mt=bt??!1;let _t;return St?(()=>{const kt=stringify(["watchBlocks",c.uid,a,d,et,Mt,wt]);return observe$1(kt,{onBlock:nt,onError:tt},It=>poll(async()=>{var Lt;try{const Ot=await getAction(c,getBlock,"getBlock")({blockTag:a,includeTransactions:Mt});if(Ot.number&&(_t!=null&&_t.number)){if(Ot.number===_t.number)return;if(Ot.number-_t.number>1&&d)for(let Nt=(_t==null?void 0:_t.number)+1n;Nt_t.number)&&(It.onBlock(Ot,_t),_t=Ot)}catch(Ot){(Lt=It.onError)==null||Lt.call(It,Ot)}},{emitOnBegin:et,interval:wt}))})():(()=>{let kt=!0,It=()=>kt=!1;return(async()=>{try{const Lt=(()=>{if(c.transport.type==="fallback"){const Nt=c.transport.transports.find(Ft=>Ft.config.type==="webSocket");return Nt?Nt.value:c.transport}return c.transport})(),{unsubscribe:Ot}=await Lt.subscribe({params:["newHeads"],onData(Nt){var Vt,Jt,ir;if(!kt)return;const jt=(((ir=(Jt=(Vt=c.chain)==null?void 0:Vt.formatters)==null?void 0:Jt.block)==null?void 0:ir.format)||formatBlock)(Nt.result);nt(jt,_t),_t=jt},onError(Nt){tt==null||tt(Nt)}});It=Ot,kt||It()}catch(Lt){tt==null||tt(Lt)}})(),()=>It()})()}function watchEvent(c,{address:a,args:d,batch:et=!0,event:nt,events:tt,fromBlock:bt,onError:gt,onLogs:wt,poll:St,pollingInterval:Mt=c.pollingInterval,strict:_t}){const Tt=(()=>typeof St<"u"?St:typeof bt=="bigint"?!0:!(c.transport.type==="webSocket"||c.transport.type==="fallback"&&c.transport.transports[0].config.type==="webSocket"))(),Rt=_t??!1;return Tt?(()=>{const Lt=stringify(["watchEvent",a,d,et,c.uid,nt,Mt,bt]);return observe$1(Lt,{onLogs:wt,onError:gt},Ot=>{let Nt;bt!==void 0&&(Nt=bt-1n);let Ft,jt=!1;const Vt=poll(async()=>{var Jt;if(!jt){try{Ft=await getAction(c,createEventFilter,"createEventFilter")({address:a,args:d,event:nt,events:tt,strict:Rt,fromBlock:bt})}catch{}jt=!0;return}try{let ir;if(Ft)ir=await getAction(c,getFilterChanges,"getFilterChanges")({filter:Ft});else{const rr=await getAction(c,getBlockNumber,"getBlockNumber")({});Nt&&Nt!==rr?ir=await getAction(c,getLogs,"getLogs")({address:a,args:d,event:nt,events:tt,fromBlock:Nt+1n,toBlock:rr}):ir=[],Nt=rr}if(ir.length===0)return;if(et)Ot.onLogs(ir);else for(const rr of ir)Ot.onLogs([rr])}catch(ir){Ft&&ir instanceof InvalidInputRpcError&&(jt=!1),(Jt=Ot.onError)==null||Jt.call(Ot,ir)}},{emitOnBegin:!0,interval:Mt});return async()=>{Ft&&await getAction(c,uninstallFilter,"uninstallFilter")({filter:Ft}),Vt()}})})():(()=>{let Lt=!0,Ot=()=>Lt=!1;return(async()=>{try{const Nt=(()=>{if(c.transport.type==="fallback"){const Jt=c.transport.transports.find(ir=>ir.config.type==="webSocket");return Jt?Jt.value:c.transport}return c.transport})(),Ft=tt??(nt?[nt]:void 0);let jt=[];Ft&&(jt=[Ft.flatMap(Jt=>encodeEventTopics({abi:[Jt],eventName:Jt.name,args:d}))],nt&&(jt=jt[0]));const{unsubscribe:Vt}=await Nt.subscribe({params:["logs",{address:a,topics:jt}],onData(Jt){var rr;if(!Lt)return;const ir=Jt.result;try{const{eventName:er,args:lr}=decodeEventLog({abi:Ft??[],data:ir.data,topics:ir.topics,strict:Rt}),Ct=formatLog(ir,{args:lr,eventName:er});wt([Ct])}catch(er){let lr,Ct;if(er instanceof DecodeLogDataMismatch||er instanceof DecodeLogTopicsMismatch){if(_t)return;lr=er.abiItem.name,Ct=(rr=er.abiItem.inputs)==null?void 0:rr.some(mt=>!("name"in mt&&mt.name))}const dt=formatLog(ir,{args:Ct?[]:{},eventName:lr});wt([dt])}},onError(Jt){gt==null||gt(Jt)}});Ot=Vt,Lt||Ot()}catch(Nt){gt==null||gt(Nt)}})(),()=>Ot()})()}function watchPendingTransactions(c,{batch:a=!0,onError:d,onTransactions:et,poll:nt,pollingInterval:tt=c.pollingInterval}){return(typeof nt<"u"?nt:c.transport.type!=="webSocket")?(()=>{const St=stringify(["watchPendingTransactions",c.uid,a,tt]);return observe$1(St,{onTransactions:et,onError:d},Mt=>{let _t;const Tt=poll(async()=>{var Rt;try{if(!_t)try{_t=await getAction(c,createPendingTransactionFilter,"createPendingTransactionFilter")({});return}catch(It){throw Tt(),It}const kt=await getAction(c,getFilterChanges,"getFilterChanges")({filter:_t});if(kt.length===0)return;if(a)Mt.onTransactions(kt);else for(const It of kt)Mt.onTransactions([It])}catch(kt){(Rt=Mt.onError)==null||Rt.call(Mt,kt)}},{emitOnBegin:!0,interval:tt});return async()=>{_t&&await getAction(c,uninstallFilter,"uninstallFilter")({filter:_t}),Tt()}})})():(()=>{let St=!0,Mt=()=>St=!1;return(async()=>{try{const{unsubscribe:_t}=await c.transport.subscribe({params:["newPendingTransactions"],onData(Tt){if(!St)return;const Rt=Tt.result;et([Rt])},onError(Tt){d==null||d(Tt)}});Mt=_t,St||Mt()}catch(_t){d==null||d(_t)}})(),()=>Mt()})()}function parseSiweMessage(c){var _t,Tt,Rt;const{scheme:a,statement:d,...et}=((_t=c.match(prefixRegex))==null?void 0:_t.groups)??{},{chainId:nt,expirationTime:tt,issuedAt:bt,notBefore:gt,requestId:wt,...St}=((Tt=c.match(suffixRegex))==null?void 0:Tt.groups)??{},Mt=(Rt=c.split("Resources:")[1])==null?void 0:Rt.split(` - `).slice(1);return{...et,...St,...nt?{chainId:Number(nt)}:{},...tt?{expirationTime:new Date(tt)}:{},...bt?{issuedAt:new Date(bt)}:{},...gt?{notBefore:new Date(gt)}:{},...wt?{requestId:wt}:{},...Mt?{resources:Mt}:{},...a?{scheme:a}:{},...d?{statement:d}:{}}}const prefixRegex=/^(?:(?[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?
0x[a-fA-F0-9]{40})\n\n(?:(?.*)\n\n)?/,suffixRegex=/(?:URI: (?.+))\n(?:Version: (?.+))\n(?:Chain ID: (?\d+))\n(?:Nonce: (?[a-zA-Z0-9]+))\n(?:Issued At: (?.+))(?:\nExpiration Time: (?.+))?(?:\nNot Before: (?.+))?(?:\nRequest ID: (?.+))?/;function validateSiweMessage(c){const{address:a,domain:d,message:et,nonce:nt,scheme:tt,time:bt=new Date}=c;if(d&&et.domain!==d||nt&&et.nonce!==nt||tt&&et.scheme!==tt||et.expirationTime&&bt>=et.expirationTime||et.notBefore&&btcall(c,a),createBlockFilter:()=>createBlockFilter(c),createContractEventFilter:a=>createContractEventFilter(c,a),createEventFilter:a=>createEventFilter(c,a),createPendingTransactionFilter:()=>createPendingTransactionFilter(c),estimateContractGas:a=>estimateContractGas(c,a),estimateGas:a=>estimateGas(c,a),getBalance:a=>getBalance(c,a),getBlobBaseFee:()=>getBlobBaseFee(c),getBlock:a=>getBlock(c,a),getBlockNumber:a=>getBlockNumber(c,a),getBlockTransactionCount:a=>getBlockTransactionCount(c,a),getBytecode:a=>getBytecode(c,a),getChainId:()=>getChainId(c),getContractEvents:a=>getContractEvents(c,a),getEnsAddress:a=>getEnsAddress(c,a),getEnsAvatar:a=>getEnsAvatar(c,a),getEnsName:a=>getEnsName(c,a),getEnsResolver:a=>getEnsResolver(c,a),getEnsText:a=>getEnsText(c,a),getFeeHistory:a=>getFeeHistory(c,a),estimateFeesPerGas:a=>estimateFeesPerGas(c,a),getFilterChanges:a=>getFilterChanges(c,a),getFilterLogs:a=>getFilterLogs(c,a),getGasPrice:()=>getGasPrice(c),getLogs:a=>getLogs(c,a),getProof:a=>getProof(c,a),estimateMaxPriorityFeePerGas:a=>estimateMaxPriorityFeePerGas(c,a),getStorageAt:a=>getStorageAt(c,a),getTransaction:a=>getTransaction(c,a),getTransactionConfirmations:a=>getTransactionConfirmations(c,a),getTransactionCount:a=>getTransactionCount(c,a),getTransactionReceipt:a=>getTransactionReceipt(c,a),multicall:a=>multicall(c,a),prepareTransactionRequest:a=>prepareTransactionRequest(c,a),readContract:a=>readContract(c,a),sendRawTransaction:a=>sendRawTransaction(c,a),simulateContract:a=>simulateContract(c,a),verifyMessage:a=>verifyMessage(c,a),verifySiweMessage:a=>verifySiweMessage(c,a),verifyTypedData:a=>verifyTypedData(c,a),uninstallFilter:a=>uninstallFilter(c,a),waitForTransactionReceipt:a=>waitForTransactionReceipt(c,a),watchBlocks:a=>watchBlocks(c,a),watchBlockNumber:a=>watchBlockNumber(c,a),watchContractEvent:a=>watchContractEvent(c,a),watchEvent:a=>watchEvent(c,a),watchPendingTransactions:a=>watchPendingTransactions(c,a)}}function createPublicClient(c){const{key:a="public",name:d="Public Client"}=c;return createClient({...c,key:a,name:d,type:"publicClient"}).extend(publicActions)}const ERC20_ABI=["function name() view returns (string)","function symbol() view returns (string)","function decimals() view returns (uint8)","function totalSupply() view returns (uint256)","function balanceOf(address owner) view returns (uint256)","function transfer(address to, uint256 value) returns (bool)","function allowance(address owner, address spender) view returns (uint256)","function approve(address spender, uint256 value) returns (bool)","function transferFrom(address from, address to, uint256 value) returns (bool)"],publicClient=c=>{var a;return createPublicClient({transport:http((a=NetworkUtil.getNetworkById(c))==null?void 0:a.url)})};async function getTokenBalance(c,a,d){const et=new Contract(c,ERC20_ABI,d),nt=await et.balanceOf(a);console.log(nt);const tt=await et.decimals();return formatUnits$1(nt,tt)}async function getTokenDecimals(c,a){return await new Contract(c,ERC20_ABI,a).decimals()}async function buildTransferToken(c,a,d,et){return(await new Contract(c,ERC20_ABI,et).transfer.populateTransaction(a,d)).data}function formatTime(c){const a=Math.floor(c/86400),d=Math.floor(c%(3600*24)/3600),et=Math.floor(c%3600/60),nt=c%60;return`${a?a+" days, ":""} ${d?d+" hours, ":""} ${et?et+" minutes, ":""} ${nt+" seconds"}`}const abi=[{type:"fallback",stateMutability:"payable"},{type:"receive",stateMutability:"payable"},{type:"function",name:"accountId",inputs:[],outputs:[{name:"accountImplementationId",type:"string",internalType:"string"}],stateMutability:"view"},{type:"function",name:"domainSeparator",inputs:[],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"entryPoint",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"execute",inputs:[{name:"mode",type:"bytes32",internalType:"ModeCode"},{name:"executionCalldata",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"function",name:"executeFromExecutor",inputs:[{name:"mode",type:"bytes32",internalType:"ModeCode"},{name:"executionCalldata",type:"bytes",internalType:"bytes"}],outputs:[{name:"returnDatas",type:"bytes[]",internalType:"bytes[]"}],stateMutability:"payable"},{type:"function",name:"getActiveHook",inputs:[],outputs:[{name:"hook",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"getActiveHook",inputs:[{name:"selector",type:"bytes4",internalType:"bytes4"}],outputs:[{name:"hook",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"getExecutorsPaginated",inputs:[{name:"cursor",type:"address",internalType:"address"},{name:"size",type:"uint256",internalType:"uint256"}],outputs:[{name:"array",type:"address[]",internalType:"address[]"},{name:"next",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"getNonce",inputs:[{name:"safe",type:"address",internalType:"address"},{name:"validator",type:"address",internalType:"address"}],outputs:[{name:"nonce",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"getValidatorPaginated",inputs:[{name:"start",type:"address",internalType:"address"},{name:"pageSize",type:"uint256",internalType:"uint256"}],outputs:[{name:"array",type:"address[]",internalType:"address[]"},{name:"next",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"initializeAccount",inputs:[{name:"validators",type:"tuple[]",internalType:"struct ModuleInit[]",components:[{name:"module",type:"address",internalType:"address"},{name:"initData",type:"bytes",internalType:"bytes"}]},{name:"executors",type:"tuple[]",internalType:"struct ModuleInit[]",components:[{name:"module",type:"address",internalType:"address"},{name:"initData",type:"bytes",internalType:"bytes"}]},{name:"fallbacks",type:"tuple[]",internalType:"struct ModuleInit[]",components:[{name:"module",type:"address",internalType:"address"},{name:"initData",type:"bytes",internalType:"bytes"}]},{name:"hooks",type:"tuple[]",internalType:"struct ModuleInit[]",components:[{name:"module",type:"address",internalType:"address"},{name:"initData",type:"bytes",internalType:"bytes"}]},{name:"registryInit",type:"tuple",internalType:"struct RegistryInit",components:[{name:"registry",type:"address",internalType:"contract IERC7484"},{name:"attesters",type:"address[]",internalType:"address[]"},{name:"threshold",type:"uint8",internalType:"uint8"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"installModule",inputs:[{name:"moduleType",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"initData",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"function",name:"isModuleInstalled",inputs:[{name:"moduleType",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"additionalContext",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"isValidSignature",inputs:[{name:"hash",type:"bytes32",internalType:"bytes32"},{name:"data",type:"bytes",internalType:"bytes"}],outputs:[{name:"magicValue",type:"bytes4",internalType:"bytes4"}],stateMutability:"view"},{type:"function",name:"launchpadValidators",inputs:[{name:"validators",type:"tuple[]",internalType:"struct ModuleInit[]",components:[{name:"module",type:"address",internalType:"address"},{name:"initData",type:"bytes",internalType:"bytes"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"setRegistry",inputs:[{name:"registry",type:"address",internalType:"contract IERC7484"},{name:"attesters",type:"address[]",internalType:"address[]"},{name:"threshold",type:"uint8",internalType:"uint8"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"supportsExecutionMode",inputs:[{name:"encodedMode",type:"bytes32",internalType:"ModeCode"}],outputs:[{name:"supported",type:"bool",internalType:"bool"}],stateMutability:"pure"},{type:"function",name:"supportsModule",inputs:[{name:"moduleTypeId",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"pure"},{type:"function",name:"uninstallModule",inputs:[{name:"moduleType",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"deInitData",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"function",name:"validateUserOp",inputs:[{name:"userOp",type:"tuple",internalType:"struct PackedUserOperation",components:[{name:"sender",type:"address",internalType:"address"},{name:"nonce",type:"uint256",internalType:"uint256"},{name:"initCode",type:"bytes",internalType:"bytes"},{name:"callData",type:"bytes",internalType:"bytes"},{name:"accountGasLimits",type:"bytes32",internalType:"bytes32"},{name:"preVerificationGas",type:"uint256",internalType:"uint256"},{name:"gasFees",type:"bytes32",internalType:"bytes32"},{name:"paymasterAndData",type:"bytes",internalType:"bytes"},{name:"signature",type:"bytes",internalType:"bytes"}]},{name:"userOpHash",type:"bytes32",internalType:"bytes32"},{name:"missingAccountFunds",type:"uint256",internalType:"uint256"}],outputs:[{name:"validSignature",type:"uint256",internalType:"uint256"}],stateMutability:"payable"},{type:"event",name:"ERC7484RegistryConfigured",inputs:[{name:"smartAccount",type:"address",indexed:!0,internalType:"address"},{name:"registry",type:"address",indexed:!0,internalType:"contract IERC7484"}],anonymous:!1},{type:"event",name:"ModuleInstalled",inputs:[{name:"moduleTypeId",type:"uint256",indexed:!1,internalType:"uint256"},{name:"module",type:"address",indexed:!1,internalType:"address"}],anonymous:!1},{type:"event",name:"ModuleUninstalled",inputs:[{name:"moduleTypeId",type:"uint256",indexed:!1,internalType:"uint256"},{name:"module",type:"address",indexed:!1,internalType:"address"}],anonymous:!1},{type:"event",name:"Safe7579Initialized",inputs:[{name:"safe",type:"address",indexed:!0,internalType:"address"}],anonymous:!1},{type:"event",name:"TryExecutionFailed",inputs:[{name:"safe",type:"address",indexed:!1,internalType:"contract ISafe"},{name:"numberInBatch",type:"uint256",indexed:!1,internalType:"uint256"}],anonymous:!1},{type:"event",name:"TryExecutionsFailed",inputs:[{name:"safe",type:"address",indexed:!1,internalType:"contract ISafe"},{name:"success",type:"bool[]",indexed:!1,internalType:"bool[]"}],anonymous:!1},{type:"error",name:"AccountAccessUnauthorized",inputs:[]},{type:"error",name:"AccountInitializationFailed",inputs:[]},{type:"error",name:"ExecutionFailed",inputs:[]},{type:"error",name:"FallbackInstalled",inputs:[{name:"msgSig",type:"bytes4",internalType:"bytes4"}]},{type:"error",name:"HookAlreadyInstalled",inputs:[{name:"currentHook",type:"address",internalType:"address"}]},{type:"error",name:"HookPostCheckFailed",inputs:[]},{type:"error",name:"InitializerError",inputs:[]},{type:"error",name:"InvalidFallbackHandler",inputs:[{name:"msgSig",type:"bytes4",internalType:"bytes4"}]},{type:"error",name:"InvalidHookType",inputs:[]},{type:"error",name:"InvalidInitData",inputs:[{name:"safe",type:"address",internalType:"address"}]},{type:"error",name:"InvalidInput",inputs:[]},{type:"error",name:"InvalidModule",inputs:[{name:"module",type:"address",internalType:"address"}]},{type:"error",name:"LinkedListError",inputs:[]},{type:"error",name:"LinkedList_AlreadyInitialized",inputs:[]},{type:"error",name:"LinkedList_AlreadyInitialized",inputs:[]},{type:"error",name:"LinkedList_EntryAlreadyInList",inputs:[{name:"entry",type:"address",internalType:"address"}]},{type:"error",name:"LinkedList_EntryAlreadyInList",inputs:[{name:"entry",type:"address",internalType:"address"}]},{type:"error",name:"LinkedList_InvalidEntry",inputs:[{name:"entry",type:"address",internalType:"address"}]},{type:"error",name:"LinkedList_InvalidEntry",inputs:[{name:"entry",type:"address",internalType:"address"}]},{type:"error",name:"LinkedList_InvalidPage",inputs:[]},{type:"error",name:"LinkedList_InvalidPage",inputs:[]},{type:"error",name:"NoFallbackHandler",inputs:[{name:"msgSig",type:"bytes4",internalType:"bytes4"}]},{type:"error",name:"UnsupportedCallType",inputs:[{name:"callType",type:"bytes1",internalType:"CallType"}]},{type:"error",name:"UnsupportedExecType",inputs:[{name:"execType",type:"bytes1",internalType:"ExecType"}]},{type:"error",name:"UnsupportedModuleType",inputs:[{name:"moduleTypeId",type:"uint256",internalType:"uint256"}]},{type:"error",name:"ValidatorStorageHelperError",inputs:[]}],bytecode={object:"0x6080604052348015600f57600080fd5b50604051601a90605a565b604051809103906000f0801580156035573d6000803e3d6000fd5b50600080546001600160a01b0319166001600160a01b03929092169190911790556067565b6109d880614a9483390190565b614a1e806100766000396000f3fe6080604052600436106101235760003560e01c8063b0d691fe116100a0578063e9ae5c5311610064578063e9ae5c531461040f578063ea5f61d014610422578063eab77e1714610442578063f2dc691d14610462578063f698da25146104825761012a565b8063b0d691fe14610340578063b875d5d814610363578063d03c7914146103af578063d691c964146103cf578063d828435d146103ef5761012a565b80636a5e1515116100e75780636a5e1515146102b757806385571368146102ca5780639517e29f146102f85780639cfd7cff1461030b578063a71763a81461032d5761012a565b80630a664dba146101d4578063112d3a7d146102185780631626ba7e1461024857806319822f7c14610281578063540fb4f9146102a25761012a565b3661012a57005b600036606060003560e01c63bc197c81811463f23a6e6182141763150b7a028214171561015b57806020526020603cf35b5033600090815260056020908152604080832054600683528184206001600160e01b031985351680865293529083205491926001600160a01b039182169290911690806101a88484610497565b915091506101b68888610555565b95506101c484848484610669565b5050505050915050805190602001f35b3480156101e057600080fd5b50336000908152600560205260409020546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b34801561022457600080fd5b506102386102333660046139e3565b6106ec565b604051901515815260200161020f565b34801561025457600080fd5b50610268610263366004613a3e565b610749565b6040516001600160e01b0319909116815260200161020f565b61029461028f366004613a89565b6109de565b60405190815260200161020f565b6102b56102b0366004613b38565b610af2565b005b6102b56102c5366004613c1e565b610b3f565b3480156102d657600080fd5b506102ea6102e5366004613c5f565b610ba0565b60405161020f929190613c8b565b6102b56103063660046139e3565b610bbc565b34801561031757600080fd5b50610320610d61565b60405161020f9190613d3e565b6102b561033b3660046139e3565b610df3565b34801561034c57600080fd5b506f71727de22e5e9d8baf0edac6f37da0326101fb565b34801561036f57600080fd5b506101fb61037e366004613d67565b3360009081526006602090815260408083206001600160e01b0319909416835292905220546001600160a01b031690565b3480156103bb57600080fd5b506102386103ca366004613d84565b610f5f565b6103e26103dd366004613a3e565b611007565b60405161020f9190613d9d565b3480156103fb57600080fd5b5061029461040a366004613e01565b6110d3565b6102b561041d366004613a3e565b611173565b34801561042e57600080fd5b506102ea61043d366004613c5f565b611518565b34801561044e57600080fd5b506102b561045d366004613e4b565b611542565b34801561046e57600080fd5b5061023861047d366004613d84565b6115b1565b34801561048e57600080fd5b50610294611600565b6060806001600160a01b03841615610517576104fe338560006104b8611659565b346000366040516024016104cf9493929190613eda565b60408051601f198184030181529190526020810180516001600160e01b031663d68f602560e01b179052611665565b9150818060200190518101906105149190613fce565b91505b6001600160a01b0383161561054e57610535338460006104b8611659565b90508080602001905181019061054b9190613fce565b90505b9250929050565b3360009081526004602090815260408083206001600160e01b0319843516845290915290208054606091906001600160a01b03811690600160a01b900460f81b816105c657604051632464e76d60e11b81526001600160e01b03196000351660048201526024015b60405180910390fd5b6105d481607f60f91b61170e565b156106185761060e338388886105e8611659565b6040516020016105fa93929190614002565b604051602081830303815290604052611720565b9350505050610663565b61062381600061170e565b1561065f5761060e338360008989610639611659565b60405160200161064b93929190614002565b604051602081830303815290604052611665565b5050505b92915050565b6001600160a01b038416156106bf576106bf33856000856040516024016106909190613d3e565b60408051601f198184030181529190526020810180516001600160e01b0316630b9dfbed60e11b1790526117e0565b6001600160a01b038316156106e6576106e633846000846040516024016106909190613d3e565b50505050565b600060018503610706576106ff8461187f565b9050610741565b60028503610717576106ff8461188d565b6003850361072a576106ff8484846118a6565b6004850361073d576106ff8484846118f3565b5060005b949350505050565b600033821580156107c15750604051635ae6bd3760e01b8152600481018690526001600160a01b03821690635ae6bd3790602401602060405180830381865afa15801561079a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107be9190614028565b15155b156107d65750630b135d3f60e11b90506109d7565b60006107e56014828688614041565b6107ee9161406b565b60601c905080158061080657506108048161187f565b155b1561095c5760006108d1836001600160a01b031663f698da256040518163ffffffff1660e01b8152600401602060405180830381865afa15801561084e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108729190614028565b60408051602081018b90527f60b3cbf8b4a223d68d641b3b6ddf9a298e7f33710cf3d3a9d1146b5a6150fbca910160408051601f198184030181528282528051602091820120908301520160405160208183030381529060405261192e565b805160208201209091506001600160a01b03841663934f3a1182846108f98a6014818e614041565b6040518563ffffffff1660e01b815260040161091894939291906140a0565b60006040518083038186803b15801561093057600080fd5b505afa158015610944573d6000803e3d6000fd5b50630b135d3f60e11b97506109d79650505050505050565b60006109bb338361096b611659565b8a6109798a6014818e614041565b60405160240161098c9493929190613eda565b60408051601f198184030181529190526020810180516001600160e01b0316637aa8f17760e11b179052611720565b9050808060200190518101906109d191906140d7565b93505050505b9392505050565b60006f71727de22e5e9d8baf0edac6f37da0326109f9611659565b6001600160a01b031614610a2057604051635629665f60e11b815260040160405180910390fd5b6020840135606081901c90811580610a3e5750610a3c8261187f565b155b15610a5357610a4c866119a8565b9250610ab8565b6000610a9e338460008a8a604051602401610a6f929190614139565b60408051601f198184030181529190526020810180516001600160e01b0316639700320360e01b179052611665565b905080806020019051810190610ab49190614028565b9350505b8315610ae957610ae9336f71727de22e5e9d8baf0edac6f37da03286604051806020016040528060008152506117e0565b50509392505050565b610b24610b026020830183614238565b610b0f6020840184614255565b610b1f606086016040870161429e565b611a4e565b610b348989898989898989611afc565b505050505050505050565b610b4a600233611d3f565b8060005b818110156106e65736848483818110610b6957610b696142b9565b9050602002810190610b7b91906142cf565b9050610b9733610b8e6020840184614238565b60029190611dba565b50600101610b4e565b60606000610bb16002338686611eaf565b915091509250929050565b3360009081526005602090815260408083205460068352818420639517e29f60e01b80865293529083205491926001600160a01b03918216929091169080610c048484610497565b91509150610c1f6f71727de22e5e9d8baf0edac6f37da03290565b6001600160a01b0316610c30611659565b6001600160a01b03161480610c5d5750610c48611659565b6001600160a01b0316336001600160a01b0316145b610c7a57604051635629665f60e11b815260040160405180910390fd5b606060018a03610c9657610c8f898989612065565b9050610cfb565b60028a03610ca957610c8f8989896120c1565b60038a03610cbc57610c8f89898961212b565b60048a03610ccf57610c8f89898961226c565b89610cdf57610c8f8989896123eb565b60405163041c38b360e41b8152600481018b90526024016105bd565b600054604051610d549133916001600160a01b0390911690610d25908e908e9087906024016142ef565b60408051601f198184030181529190526020810180516001600160e01b0316639517e29f60e01b179052612573565b50610b3484848484610669565b60606000336001600160a01b031663ffa1ad746040518163ffffffff1660e01b8152600401600060405180830381865afa158015610da3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610dcb9190810190614319565b905080604051602001610dde9190614361565b60405160208183030381529060405291505090565b33600090815260056020908152604080832054600683528184206314e2ec7560e31b80865293529083205491926001600160a01b03918216929091169080610e3b8484610497565b91509150610e566f71727de22e5e9d8baf0edac6f37da03290565b6001600160a01b0316610e67611659565b6001600160a01b03161480610e945750610e7f611659565b6001600160a01b0316336001600160a01b0316145b610eb157604051635629665f60e11b815260040160405180910390fd5b606060018a03610ecd57610ec689898961260c565b9050610f06565b60028a03610ee057610ec6898989612635565b60038a03610ef357610ec6898989612662565b60048a03610cdf57610ec68989896126b0565b600054604051610d549133916001600160a01b0390911690610f30908e908e9087906024016142ef565b60408051601f198184030181529190526020810180516001600160e01b0316637827252560e01b179052612768565b600081600881901b610f7582600160f81b61170e565b15610f835760019250610fc6565b610f8e82600061170e565b15610f9c5760019250610fc6565b610fae826001600160f81b031961170e565b15610fbc5760019250610fc6565b5060009392505050565b828015610fd95750610fd981600061170e565b15610fe5575050919050565b828015610ffb5750610ffb81600160f81b61170e565b15610fbc575050919050565b6060611019611014611659565b61188d565b61104a57611025611659565b604051635c93ff2f60e11b81526001600160a01b0390911660048201526024016105bd565b33600090815260056020908152604080832054600683528184206335a4725960e21b80865293529083205491926001600160a01b039182169290911690806110928484610497565b915091503360026110a3828261281e565b8a600881901b6110b581838e8e6128a9565b9950505050506110c784848484610669565b50505050509392505050565b6000602082901b640100000000600160c01b03166f71727de22e5e9d8baf0edac6f37da032604051631aab3f0d60e11b81526001600160a01b0386811660048301526001600160c01b038416602483015291909116906335567e1a90604401602060405180830381865afa15801561114f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107419190614028565b336000908152600560209081526040808320546006835281842063e9ae5c5360e01b80865293529083205491926001600160a01b039182169290911690806111bb8484610497565b915091506111d66f71727de22e5e9d8baf0edac6f37da03290565b6001600160a01b03166111e7611659565b6001600160a01b0316148061121457506111ff611659565b6001600160a01b0316336001600160a01b0316145b61123157604051635629665f60e11b815260040160405180910390fd5b87600881901b3361124382600061170e565b156113a65761125683600160f81b61170e565b156112775789358a01602081019035611270838383612c65565b50506114ff565b61128283600061170e565b156112ea576000803660006112978e8e612cbc565b93509350935093506112e185858585858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506117e092505050565b505050506114ff565b6112fc836001600160f81b031961170e565b156113815760006113106014828c8e614041565b6113199161406b565b60601c90503660008c8c601490809261133493929190614041565b91509150611379848484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061257392505050565b5050506114ff565b604051632e5bf3f960e21b81526001600160f81b0319841660048201526024016105bd565b6113b482600160f81b61170e565b156114da576113c783600160f81b61170e565b156113e15789358a01602081019035611270838383612d0d565b6113ec83600061170e565b1561144b576000803660006114018e8e612cbc565b93509350935093506112e185858585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612d6492505050565b61145d836001600160f81b031961170e565b156113815760006114716014828c8e614041565b61147a9161406b565b60601c90503660008c8c601490809261149593929190614041565b91509150611379848484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061276892505050565b6040516308c3ee0360e11b81526001600160f81b0319831660048201526024016105bd565b50505061150e84848484610669565b5050505050505050565b33600090815260036020526040812060609190611536818686612e1a565b92509250509250929050565b6f71727de22e5e9d8baf0edac6f37da03261155b611659565b6001600160a01b031614806115885750611573611659565b6001600160a01b0316336001600160a01b0316145b6115a557604051635629665f60e11b815260040160405180910390fd5b6106e684848484611a4e565b6000600182036115c357506001919050565b600282036115d357506001919050565b600382036115e357506001919050565b600482036115f357506001919050565b506000919050565b919050565b604080517f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a794692186020820152469181019190915230606082015260009060800160405160208183030381529060405280519060200120905090565b60131936013560601c90565b60606000856001600160a01b0316635229073f86868660006040518563ffffffff1660e01b815260040161169c94939291906143a7565b6000604051808303816000875af11580156116bb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526116e391908101906143f2565b925090508061170557604051632b3f6d1160e21b815260040160405180910390fd5b50949350505050565b6001600160f81b031990811691161490565b60606000838360405160240161173792919061443f565b60408051601f198184030181529181526020820180516001600160e01b0316636a22165760e01b17905260008054915192935091611783916001600160a01b031690849060240161443f565b60408051601f19818403018152919052602080820180516001600160e01b031663b4faba0960e01b17815282519293509091600091895afa5060203d036040519350808401604052806020853e50600051610ae957825160208401fd5b60405163468721a760e01b81526000906001600160a01b0386169063468721a7906118159087908790879087906004016143a7565b6020604051808303816000875af1158015611834573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118589190614463565b90508061187857604051632b3f6d1160e21b815260040160405180910390fd5b5050505050565b600061066360023384612fb8565b3360009081526003602052604081206109d78184612ffc565b6000806118b583850185613d67565b3360009081526004602090815260408083206001600160e01b0319909416835292905220546001600160a01b03908116908616149150509392505050565b600080806119038486018661448d565b9150915060006119138383613036565b6001600160a01b039081169088161493505050509392505050565b6060601960f81b600160f81b85858560405160200161194e9291906144b9565b60408051808303601f190181529082905280516020918201206001600160f81b0319958616918301919091529290931660218401526022830152604282015260620160405160208183030381529060405290509392505050565b6000806000803660006119ba876130ce565b8451602086012060405163934f3a1160e01b8152959a5093985091965094509250339163934f3a11916119f5918990879087906004016140a0565b60006040518083038186803b158015611a0d57600080fd5b505afa925050508015611a1e575060015b611a3557611a2e600184866132e3565b9550611a44565b611a41600084866132e3565b95505b5050505050919050565b3360008181526001602052604080822080546001600160a01b0319166001600160a01b03891617905551611ac092918791611a91908690899089906024016144df565b60408051601f198184030181529190526020810180516001600160e01b031663f05c04e160e01b1790526117e0565b6040516001600160a01b0385169033907f9452c8fb077c3ea8f28a77c87488af657b1e44d010ad9a5992d73870da040e9490600090a350505050565b3360009081527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e0602052604090205487906001600160a01b0316611ba957611b45600233611d3f565b60005b81811015611ba357368a8a83818110611b6357611b636142b9565b9050602002810190611b7591906142cf565b9050611b99611b876020830183614238565b611b94602084018461453a565b612065565b5050600101611b48565b50611bca565b8015611bca5760405163d8e3ed1b60e01b81523360048201526024016105bd565b336000908152600360205260409020611be28161331b565b86915060005b82811015611c435736898983818110611c0357611c036142b9565b9050602002810190611c1591906142cf565b9050611c39611c276020830183614238565b611c34602084018461453a565b6120c1565b5050600101611be8565b5084915060005b82811015611ca55736878783818110611c6557611c656142b9565b9050602002810190611c7791906142cf565b9050611c9b611c896020830183614238565b611c96602084018461453a565b61212b565b5050600101611c4a565b5082915060005b82811015611d075736858583818110611cc757611cc76142b9565b9050602002810190611cd991906142cf565b9050611cfd611ceb6020830183614238565b611cf8602084018461453a565b61226c565b5050600101611cac565b5060405133907ff48581d8a62b775b74f2fb67f1d5806a9a356fbcc598040ab3071d3e37af40c290600090a250505050505050505050565b60016000908152602083815260408083206001600160a01b0380861685529252909120541615611d82576040516329e42f3360e11b815260040160405180910390fd5b60016000818152602093845260408082206001600160a01b0394909416825292909352912080546001600160a01b0319169091179055565b6001600160a01b0381161580611dd957506001600160a01b0381166001145b15611e0257604051637c84ecfb60e01b81526001600160a01b03821660048201526024016105bd565b6001600160a01b0381811660009081526020858152604080832086851684529091529020541615611e5157604051631034f46960e21b81526001600160a01b03821660048201526024016105bd565b60016000908152602084815260408083206001600160a01b039586168085528184528285208054968816808752988552838620918652908452919093208054949095166001600160a01b031994851617909455528154169091179055565b606060006001600160a01b038416600114801590611ed55750611ed3868686612fb8565b155b15611efe57604051637c84ecfb60e01b81526001600160a01b03851660048201526024016105bd565b82600003611f1f5760405163f725081760e01b815260040160405180910390fd5b826001600160401b03811115611f3757611f37613f0c565b604051908082528060200260200182016040528015611f60578160200160208202803683370190505b506001600160a01b038086166000908152602089815260408083208a85168452909152812054929450911691505b6001600160a01b03821615801590611fb057506001600160a01b038216600114155b8015611fbb57508381105b156120205781838281518110611fd357611fd36142b9565b6001600160a01b039283166020918202929092018101919091529281166000908152888452604080822089841683529094529290922054909116908061201881614596565b915050611f8e565b6001600160a01b038216600114612058578261203d6001836145af565b8151811061204d5761204d6142b9565b602002602001015191505b8083525094509492505050565b6060836001612074828261281e565b61208060023388611dba565b84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929998505050505050505050565b60608360026120d0828261281e565b3360009081526003602052604090206120e98188613378565b85858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929a9950505050505050505050565b606083600361213a828261281e565b6000808061214a87890189614613565b919450925090506001600160e01b031983166306d61fe760e41b148061218057506001600160e01b03198316638a91b0e360e01b145b156121aa576040516379bd117b60e01b81526001600160e01b0319841660048201526024016105bd565b3360009081526004602090815260408083206001600160e01b0319871684529091529020546001600160a01b031615612202576040516374420d1560e01b81526001600160e01b0319841660048201526024016105bd565b3360009081526004602090815260408083206001600160e01b031990961683529490529290922080546001600160a01b038a166001600160a01b031960f89490941c600160a01b02939093166001600160a81b031990911617919091179055925050509392505050565b606083600461227b828261281e565b6000808061228b87890189614681565b919450925090506000808460018111156122a7576122a76146af565b1480156122bc57506001600160e01b03198316155b156123325750336000908152600560205260409020546001600160a01b031680156123055760405163741cbe0360e01b81526001600160a01b03821660048201526024016105bd565b33600090815260056020526040902080546001600160a01b0319166001600160a01b038c161790556123de565b6001846001811115612346576123466146af565b036123c5576001600160a01b0381161561237e5760405163741cbe0360e01b81526001600160a01b03821660048201526024016105bd565b503360009081526006602090815260408083206001600160e01b031986168452909152902080546001600160a01b038b81166001600160a01b0319831617909255166123de565b604051635691922f60e01b815260040160405180910390fd5b5098975050505050505050565b606082358301602081810191359085810135860180820191903590604088013588019081019035848381146124335760405163b4fa3fb360e01b815260040160405180910390fd5b60005b8181101561252c576000888883818110612452576124526142b9565b905060200201359050600181036124915761248b8d888885818110612479576124796142b9565b9050602002810190611b94919061453a565b50612523565b600281036124c15761248b8d8888858181106124af576124af6142b9565b9050602002810190611c34919061453a565b600381036124f15761248b8d8888858181106124df576124df6142b9565b9050602002810190611c96919061453a565b60048103612523576125218d88888581811061250f5761250f6142b9565b9050602002810190611cf8919061453a565b505b50600101612436565b5082828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929e9d5050505050505050505050505050565b60405163468721a760e01b81526000906001600160a01b0385169063468721a7906125a9908690859087906001906004016143a7565b6020604051808303816000875af11580156125c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125ec9190614463565b9050806106e657604051632b3f6d1160e21b815260040160405180910390fd5b6060600061261c838501856146c5565b9250905061262d600233838861344e565b509392505050565b336000908152600360205260408120606091612653848601866146c5565b93509050610ae9828288613545565b606060006126728385018561470a565b3360009081526004602090815260408083206001600160e01b031990951683529390529190912080546001600160a01b031916905595945050505050565b60606000806126c184860186614681565b9450909250905060008260018111156126dc576126dc6146af565b1480156126f157506001600160e01b03198116155b156127185733600090815260056020526040902080546001600160a01b0319169055610ae9565b600182600181111561272c5761272c6146af565b036123c5573360009081526006602090815260408083206001600160e01b031985168452909152902080546001600160a01b0319169055610ae9565b60405163468721a760e01b81526000906001600160a01b0385169063468721a79061279e908690859087906001906004016143a7565b6020604051808303816000875af11580156127bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127e19190614463565b9050806106e657604080516001600160a01b0386168152600060208201526000805160206149c9833981519152910160405180910390a150505050565b336000908152600160205260409020546001600160a01b031680156128a45760405163529562a160e01b81523360048201526001600160a01b0384811660248301526044820184905282169063529562a19060640160006040518083038186803b15801561288b57600080fd5b505afa15801561289f573d6000803e3d6000fd5b505050505b505050565b60606128b685600061170e565b15612aac576128c984600160f81b61170e565b156128ec57823583016020810190356128e333838361361a565b92505050610741565b6128f784600061170e565b156129ab5760008036600061290c8787612cbc565b6040805160018082528183019092529498509296509094509250816020015b606081526020019060019003908161292b57905050945061298433858585858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061166592505050565b85600081518110612997576129976142b9565b602002602001018190525050505050610741565b6129bd846001600160f81b031961170e565b15612a875760006129d16014828587614041565b6129da9161406b565b60601c90503660006129ef8560148189614041565b604080516001808252818301909252929450909250816020015b6060815260200190600190039081612a09579050509350612a61338484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061369392505050565b84600081518110612a7457612a746142b9565b6020026020010181905250505050610741565b604051632e5bf3f960e21b81526001600160f81b0319851660048201526024016105bd565b612aba85600160f81b61170e565b15612c4057612acd84600160f81b61170e565b15612af25782358301602081019035612ae7338383613734565b935061074192505050565b612afd84600061170e565b15612b8a57600080366000612b128787612cbc565b6040805160018082528183019092529498509296509094509250816020015b6060815260200190600190039081612b3157905050945061298433858585858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506137b692505050565b612b9c846001600160f81b031961170e565b15612a87576000612bb06014828587614041565b612bb99161406b565b60601c9050366000612bce8560148189614041565b604080516001808252818301909252929450909250816020015b6060815260200190600190039081612be8579050509350612a61338484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061387692505050565b6040516308c3ee0360e11b81526001600160f81b0319861660048201526024016105bd565b6000546040516128a49185916001600160a01b0390911690612c8d9086908690602401614728565b60408051601f198184030181529190526020810180516001600160e01b0316633f707e6b60e01b179052612573565b6000803681612cce6014828789614041565b612cd79161406b565b60601c9350612cea603460148789614041565b612cf3916147d3565b9250612d028560348189614041565b949793965094505050565b6000546040516128a49185916001600160a01b0390911690612d359086908690602401614728565b60408051601f198184030181529190526020810180516001600160e01b0316632864481160e11b179052612768565b60405163468721a760e01b81526000906001600160a01b0386169063468721a790612d999087908790879087906004016143a7565b6020604051808303816000875af1158015612db8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ddc9190614463565b90508061187857604080516001600160a01b0387168152600060208201526000805160206149c9833981519152910160405180910390a15050505050565b606060006001600160a01b038416600114801590612e3f5750612e3d8585612ffc565b155b15612e6857604051637c84ecfb60e01b81526001600160a01b03851660048201526024016105bd565b82600003612e895760405163f725081760e01b815260040160405180910390fd5b826001600160401b03811115612ea157612ea1613f0c565b604051908082528060200260200182016040528015612eca578160200160208202803683370190505b506001600160a01b03808616600090815260208890526040812054929450911691505b6001600160a01b03821615801590612f0f57506001600160a01b038216600114155b8015612f1a57508381105b15612f745781838281518110612f3257612f326142b9565b6001600160a01b039283166020918202929092018101919091529281166000908152928790526040909220549091169080612f6c81614596565b915050612eed565b6001600160a01b038216600114612fac5782612f916001836145af565b81518110612fa157612fa16142b9565b602002602001015191505b80835250935093915050565b600060016001600160a01b038316148015906107415750506001600160a01b0390811660009081526020938452604080822093831682529290935291205416151590565b600060016001600160a01b038316148015906109d75750506001600160a01b03908116600090815260209290925260409091205416151590565b60008083600181111561304b5761304b6146af565b14801561306057506001600160e01b03198216155b156130805750336000908152600560205260409020546001600160a01b03165b6001836001811115613094576130946146af565b0361066357503360009081526006602090815260408083206001600160e01b0319851684529091529020546001600160a01b031692915050565b6060600080368181816130e561010089018961453a565b90925090506130f8600660008385614041565b613101916147f1565b60d01c9550613114600c60068385614041565b61311d916147f1565b60d01c945061312f81600c8185614041565b9350935050506000604051806101c001604052807f84aa190356f56b8c87825f54884392a9907c23ee0f8e1ea86336b763faf021bd60001b8152602001336001600160a01b0316815260200188602001358152602001888060400190613195919061453a565b6040516131a392919061481f565b60405190819003902081526020016131be60608a018a61453a565b6040516131cc92919061481f565b604051809103902081526020016131e289613936565b81526020016131f08961394b565b81526020018860a0013581526020016132088961395b565b815260200161321689613970565b815260200161322860e08a018a61453a565b60405161323692919061481f565b604051809103902081526020018665ffffffffffff1681526020018565ffffffffffff1681526020016132766f71727de22e5e9d8baf0edac6f37da03290565b6001600160a01b031690526101c08120909150601960f81b600160f81b61329b611600565b6040516001600160f81b031993841660208201529290911660218301526022820152604281018290526062016040516020818303038152906040529650505091939590929450565b600060d08265ffffffffffff16901b60a08465ffffffffffff16901b8561330b57600061330e565b60015b60ff161717949350505050565b60016000908152602082905260409020546001600160a01b031615613353576040516329e42f3360e11b815260040160405180910390fd5b60016000818152602092909252604090912080546001600160a01b0319169091179055565b6001600160a01b038116158061339757506001600160a01b0381166001145b156133c057604051637c84ecfb60e01b81526001600160a01b03821660048201526024016105bd565b6001600160a01b03818116600090815260208490526040902054161561340457604051631034f46960e21b81526001600160a01b03821660048201526024016105bd565b60016000818152602093909352604080842080546001600160a01b039485168087529286208054959091166001600160a01b03199586161790559190935280549091169091179055565b6001600160a01b038116158061346d57506001600160a01b0381166001145b1561349657604051637c84ecfb60e01b81526001600160a01b03831660048201526024016105bd565b6001600160a01b0382811660009081526020868152604080832087851684529091529020548116908216146134e957604051637c84ecfb60e01b81526001600160a01b03821660048201526024016105bd565b6001600160a01b039081166000908152602085815260408083209584168084528683528184208054968616855297835281842090845282529091208054939092166001600160a01b031993841617909155919091528154169055565b6001600160a01b038116158061356457506001600160a01b0381166001145b1561358d57604051637c84ecfb60e01b81526001600160a01b03831660048201526024016105bd565b6001600160a01b038281166000908152602085905260409020548116908216146135d557604051637c84ecfb60e01b81526001600160a01b03821660048201526024016105bd565b6001600160a01b0390811660008181526020949094526040808520805494841686529085208054949093166001600160a01b0319948516179092559092528154169055565b60008054604051606092916136749187916001600160a01b0316906136459088908890602401614728565b60408051601f198184030181529190526020810180516001600160e01b0316636108557360e01b179052613693565b90508080602001905181019061368a91906148dc565b95945050505050565b60606000846001600160a01b0316635229073f8560008660016040518563ffffffff1660e01b81526004016136cb94939291906143a7565b6000604051808303816000875af11580156136ea573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261371291908101906143f2565b925090508061262d57604051632b3f6d1160e21b815260040160405180910390fd5b60608060006137938660008054906101000a90046001600160a01b03168787604051602401613764929190614728565b60408051601f198184030181529190526020810180516001600160e01b0316639abb6e1760e01b179052613876565b9050808060200190518101906137a99190614910565b9097909650945050505050565b60606000856001600160a01b0316635229073f86868660006040518563ffffffff1660e01b81526004016137ed94939291906143a7565b6000604051808303816000875af115801561380c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261383491908101906143f2565b925090508061170557604080516001600160a01b0388168152600060208201526000805160206149c9833981519152910160405180910390a150949350505050565b60606000846001600160a01b0316635229073f8560008660016040518563ffffffff1660e01b81526004016138ae94939291906143a7565b6000604051808303816000875af11580156138cd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526138f591908101906143f2565b925090508061262d57604080516001600160a01b0387168152600060208201526000805160206149c9833981519152910160405180910390a1509392505050565b60006001600160801b03608083013516610663565b6000610663826080013560801c90565b60006001600160801b0360c083013516610663565b600060c082013560801c610663565b6001600160a01b038116811461399457600080fd5b50565b80356115fb8161397f565b60008083601f8401126139b457600080fd5b5081356001600160401b038111156139cb57600080fd5b60208301915083602082850101111561054e57600080fd5b600080600080606085870312156139f957600080fd5b843593506020850135613a0b8161397f565b925060408501356001600160401b03811115613a2657600080fd5b613a32878288016139a2565b95989497509550505050565b600080600060408486031215613a5357600080fd5b8335925060208401356001600160401b03811115613a7057600080fd5b613a7c868287016139a2565b9497909650939450505050565b600080600060608486031215613a9e57600080fd5b83356001600160401b03811115613ab457600080fd5b84016101208187031215613ac757600080fd5b95602085013595506040909401359392505050565b60008083601f840112613aee57600080fd5b5081356001600160401b03811115613b0557600080fd5b6020830191508360208260051b850101111561054e57600080fd5b600060608284031215613b3257600080fd5b50919050565b600080600080600080600080600060a08a8c031215613b5657600080fd5b89356001600160401b0380821115613b6d57600080fd5b613b798d838e01613adc565b909b50995060208c0135915080821115613b9257600080fd5b613b9e8d838e01613adc565b909950975060408c0135915080821115613bb757600080fd5b613bc38d838e01613adc565b909750955060608c0135915080821115613bdc57600080fd5b613be88d838e01613adc565b909550935060808c0135915080821115613c0157600080fd5b50613c0e8c828d01613b20565b9150509295985092959850929598565b60008060208385031215613c3157600080fd5b82356001600160401b03811115613c4757600080fd5b613c5385828601613adc565b90969095509350505050565b60008060408385031215613c7257600080fd5b8235613c7d8161397f565b946020939093013593505050565b604080825283519082018190526000906020906060840190828701845b82811015613ccd5781516001600160a01b031684529284019290840190600101613ca8565b5050506001600160a01b039490941660209390930192909252509092915050565b60005b83811015613d09578181015183820152602001613cf1565b50506000910152565b60008151808452613d2a816020860160208601613cee565b601f01601f19169290920160200192915050565b6020815260006109d76020830184613d12565b6001600160e01b03198116811461399457600080fd5b600060208284031215613d7957600080fd5b81356109d781613d51565b600060208284031215613d9657600080fd5b5035919050565b600060208083016020845280855180835260408601915060408160051b87010192506020870160005b82811015613df457603f19888603018452613de2858351613d12565b94509285019290850190600101613dc6565b5092979650505050505050565b60008060408385031215613e1457600080fd5b8235613e1f8161397f565b91506020830135613e2f8161397f565b809150509250929050565b803560ff811681146115fb57600080fd5b60008060008060608587031215613e6157600080fd5b8435613e6c8161397f565b935060208501356001600160401b03811115613e8757600080fd5b613e9387828801613adc565b9094509250613ea6905060408601613e3a565b905092959194509250565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60018060a01b0385168152836020820152606060408201526000613f02606083018486613eb1565b9695505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613f4a57613f4a613f0c565b604052919050565b60006001600160401b03821115613f6b57613f6b613f0c565b50601f01601f191660200190565b6000613f8c613f8784613f52565b613f22565b9050828152838383011115613fa057600080fd5b6109d7836020830184613cee565b600082601f830112613fbf57600080fd5b6109d783835160208501613f79565b600060208284031215613fe057600080fd5b81516001600160401b03811115613ff657600080fd5b61074184828501613fae565b8284823760609190911b6bffffffffffffffffffffffff19169101908152601401919050565b60006020828403121561403a57600080fd5b5051919050565b6000808585111561405157600080fd5b8386111561405e57600080fd5b5050820193919092039150565b6bffffffffffffffffffffffff1981358181169160148510156140985780818660140360031b1b83161692505b505092915050565b8481526060602082015260006140b96060830186613d12565b82810360408401526140cc818587613eb1565b979650505050505050565b6000602082840312156140e957600080fd5b81516109d781613d51565b6000808335601e1984360301811261410b57600080fd5b83016020810192503590506001600160401b0381111561412a57600080fd5b80360382131561054e57600080fd5b6040815261415a6040820161414d85613997565b6001600160a01b03169052565b60208301356060820152600061417360408501856140f4565b61012080608086015261418b61016086018385613eb1565b925061419a60608801886140f4565b9250603f19808786030160a08801526141b4858584613eb1565b9450608089013560c088015260a089013560e0880152610100935060c0890135848801526141e560e08a018a6140f4565b92508188870301848901526141fb868483613eb1565b95505061420a848a018a6140f4565b9450925080878603016101408801525050614226838383613eb1565b93505050508260208301529392505050565b60006020828403121561424a57600080fd5b81356109d78161397f565b6000808335601e1984360301811261426c57600080fd5b8301803591506001600160401b0382111561428657600080fd5b6020019150600581901b360382131561054e57600080fd5b6000602082840312156142b057600080fd5b6109d782613e3a565b634e487b7160e01b600052603260045260246000fd5b60008235603e198336030181126142e557600080fd5b9190910192915050565b8381526001600160a01b038316602082015260606040820181905260009061368a90830184613d12565b60006020828403121561432b57600080fd5b81516001600160401b0381111561434157600080fd5b8201601f8101841361435257600080fd5b61074184825160208401613f79565b64736166652d60d81b815260008251614381816005850160208701613cee565b6e2e657263373537392e76302e302e3160881b6005939091019283015250601401919050565b60018060a01b03851681528360208201526080604082015260006143ce6080830185613d12565b905060ff8316606083015295945050505050565b805180151581146115fb57600080fd5b6000806040838503121561440557600080fd5b61440e836143e2565b915060208301516001600160401b0381111561442957600080fd5b61443585828601613fae565b9150509250929050565b6001600160a01b038316815260406020820181905260009061074190830184613d12565b60006020828403121561447557600080fd5b6109d7826143e2565b8035600281106115fb57600080fd5b600080604083850312156144a057600080fd5b6144a98361447e565b91506020830135613e2f81613d51565b828152600082516144d1816020850160208701613cee565b919091016020019392505050565b60ff8416815260406020808301829052908201839052600090849060608401835b8681101561452e5783356145138161397f565b6001600160a01b031682529282019290820190600101614500565b50979650505050505050565b6000808335601e1984360301811261455157600080fd5b8301803591506001600160401b0382111561456b57600080fd5b60200191503681900382131561054e57600080fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016145a8576145a8614580565b5060010190565b8181038181111561066357610663614580565b600082601f8301126145d357600080fd5b81356145e1613f8782613f52565b8181528460208386010111156145f657600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561462857600080fd5b833561463381613d51565b925060208401356001600160f81b03198116811461465057600080fd5b915060408401356001600160401b0381111561466b57600080fd5b614677868287016145c2565b9150509250925092565b60008060006060848603121561469657600080fd5b61469f8461447e565b9250602084013561465081613d51565b634e487b7160e01b600052602160045260246000fd5b600080604083850312156146d857600080fd5b82356146e38161397f565b915060208301356001600160401b038111156146fe57600080fd5b614435858286016145c2565b6000806040838503121561471d57600080fd5b82356146e381613d51565b60208082528181018390526000906040808401600586901b850182018785805b898110156147c457888403603f190185528235368c9003605e1901811261476d578283fd5b8b016060813561477c8161397f565b6001600160a01b03168652818901358987015261479b888301836140f4565b925081898801526147af8288018483613eb1565b978a0197965050509287019250600101614748565b50919998505050505050505050565b8035602083101561066357600019602084900360031b1b1692915050565b6001600160d01b031981358181169160068510156140985760069490940360031b84901b1690921692915050565b8183823760009101908152919050565b60006001600160401b0382111561484857614848613f0c565b5060051b60200190565b600082601f83011261486357600080fd5b81516020614873613f878361482f565b82815260059290921b8401810191818101908684111561489257600080fd5b8286015b848110156148d15780516001600160401b038111156148b55760008081fd5b6148c38986838b0101613fae565b845250918301918301614896565b509695505050505050565b6000602082840312156148ee57600080fd5b81516001600160401b0381111561490457600080fd5b61074184828501614852565b6000806040838503121561492357600080fd5b82516001600160401b038082111561493a57600080fd5b818501915085601f83011261494e57600080fd5b8151602061495e613f878361482f565b82815260059290921b8401810191818101908984111561497d57600080fd5b948201945b838610156149a257614993866143e2565b82529482019490820190614982565b918801519196509093505050808211156149bb57600080fd5b506144358582860161485256feb8bc84bd77f5eb08210b8eb20fd63b3ec6a7992d277ab94663bae0e066f792aca26469706673582212203bf73a2c2062b81b2af0d1e3cda1afef579f700fd7d2e530b6b4eada00b17f5f64736f6c634300081900336080604052348015600f57600080fd5b506109b98061001f6000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80636a2216571161005b5780636a221657146100df57806378272525146100f25780639517e29f146101055780639abb6e171461011857600080fd5b80633f707e6b1461008257806350c890221461009757806361085573146100bf575b600080fd5b6100956100903660046105c9565b610139565b005b6100aa6100a53660046105c9565b6101a3565b60405190151581526020015b60405180910390f35b6100d26100cd3660046105c9565b610212565b6040516100b691906106c6565b6100956100ed366004610712565b6102cc565b6100956101003660046107d4565b6102ef565b6100956101133660046107d4565b610398565b61012b6101263660046105c9565b610437565b6040516100b692919061085b565b8060005b8181101561019d5736848483818110610158576101586108b5565b905060200281019061016a91906108cb565b905061019361017c60208301836108eb565b602083013561018e6040850185610906565b610561565b505060010161013d565b50505050565b600081815b8181101561020a57368585838181106101c3576101c36108b5565b90506020028101906101d591906108cb565b90506101fe6101e760208301836108eb565b60208301356101f96040850185610906565b610597565b509350506001016101a8565b505092915050565b6060818067ffffffffffffffff81111561022e5761022e6106fc565b60405190808252806020026020018201604052801561026157816020015b606081526020019060019003908161024c5790505b50915060005b8181101561020a5736858583818110610282576102826108b5565b905060200281019061029491906108cb565b90506102a661017c60208301836108eb565b8483815181106102b8576102b86108b5565b602090810291909101015250600101610267565b604051600080835160208501865afa3d6000833e80156102ea573d82f35b503d81fd5b604051638a91b0e360e01b81526001600160a01b03841690638a91b0e39061031d9085908590600401610954565b600060405180830381600087803b15801561033757600080fd5b505af115801561034b573d6000803e3d6000fd5b5050604080518781526001600160a01b03871660208201527f341347516a9de374859dfda710fa4828b2d48cb57d4fbe4c1149612b8e02276e93500190505b60405180910390a150505050565b6040516306d61fe760e41b81526001600160a01b03841690636d61fe70906103c69085908590600401610954565b600060405180830381600087803b1580156103e057600080fd5b505af11580156103f4573d6000803e3d6000fd5b5050604080518781526001600160a01b03871660208201527fd21d0b289f126c4b473ea641963e766833c2f13866e4ff480abd787c100ef123935001905061038a565b606080828067ffffffffffffffff811115610454576104546106fc565b60405190808252806020026020018201604052801561048757816020015b60608152602001906001900390816104725790505b5091508067ffffffffffffffff8111156104a3576104a36106fc565b6040519080825280602002602001820160405280156104cc578160200160208202803683370190505b50925060005b8181101561055857368686838181106104ed576104ed6108b5565b90506020028101906104ff91906108cb565b90506105116101e760208301836108eb565b868481518110610523576105236108b5565b6020026020010186858151811061053c5761053c6108b5565b60209081029190910101919091529015159052506001016104d2565b50509250929050565b60405181838237600038838387895af161057e573d6000823e3d81fd5b3d8152602081013d6000823e3d01604052949350505050565b604051600090828482376000388483888a5af11591503d8152602081013d6000823e3d81016040525094509492505050565b600080602083850312156105dc57600080fd5b823567ffffffffffffffff808211156105f457600080fd5b818501915085601f83011261060857600080fd5b81358181111561061757600080fd5b8660208260051b850101111561062c57600080fd5b60209290920196919550909350505050565b600082825180855260208086019550808260051b8401018186016000805b858110156106b857601f1980888603018b5283518051808752845b81811015610692578281018901518882018a01528801610677565b5086810188018590529b87019b601f01909116909401850193509184019160010161065c565b509198975050505050505050565b6020815260006106d9602083018461063e565b9392505050565b80356001600160a01b03811681146106f757600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561072557600080fd5b61072e836106e0565b9150602083013567ffffffffffffffff8082111561074b57600080fd5b818501915085601f83011261075f57600080fd5b813581811115610771576107716106fc565b604051601f8201601f19908116603f01168101908382118183101715610799576107996106fc565b816040528281528860208487010111156107b257600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b600080600080606085870312156107ea57600080fd5b843593506107fa602086016106e0565b9250604085013567ffffffffffffffff8082111561081757600080fd5b818701915087601f83011261082b57600080fd5b81358181111561083a57600080fd5b88602082850101111561084c57600080fd5b95989497505060200194505050565b604080825283519082018190526000906020906060840190828701845b82811015610896578151151584529284019290840190600101610878565b50505083810360208501526108ab818661063e565b9695505050505050565b634e487b7160e01b600052603260045260246000fd5b60008235605e198336030181126108e157600080fd5b9190910192915050565b6000602082840312156108fd57600080fd5b6106d9826106e0565b6000808335601e1984360301811261091d57600080fd5b83018035915067ffffffffffffffff82111561093857600080fd5b60200191503681900382131561094d57600080fd5b9250929050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f1916010191905056fea2646970667358221220ad7ce283b8d54ac3a1566e8281f813acf154a2a620bfebf9c47aa3d94c3648e764736f6c63430008190033",sourceMap:"2103:22088:37:-:0;;;;;;;;;;;;;259:20:44;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;244:4:44;:36;;-1:-1:-1;;;;;;244:36:44;-1:-1:-1;;;;;244:36:44;;;;;;;;;;2103:22088:37;;;;;;;;;;:::o;:::-;;;;;;;",linkReferences:{}},deployedBytecode={object:"0x6080604052600436106101235760003560e01c8063b0d691fe116100a0578063e9ae5c5311610064578063e9ae5c531461040f578063ea5f61d014610422578063eab77e1714610442578063f2dc691d14610462578063f698da25146104825761012a565b8063b0d691fe14610340578063b875d5d814610363578063d03c7914146103af578063d691c964146103cf578063d828435d146103ef5761012a565b80636a5e1515116100e75780636a5e1515146102b757806385571368146102ca5780639517e29f146102f85780639cfd7cff1461030b578063a71763a81461032d5761012a565b80630a664dba146101d4578063112d3a7d146102185780631626ba7e1461024857806319822f7c14610281578063540fb4f9146102a25761012a565b3661012a57005b600036606060003560e01c63bc197c81811463f23a6e6182141763150b7a028214171561015b57806020526020603cf35b5033600090815260056020908152604080832054600683528184206001600160e01b031985351680865293529083205491926001600160a01b039182169290911690806101a88484610497565b915091506101b68888610555565b95506101c484848484610669565b5050505050915050805190602001f35b3480156101e057600080fd5b50336000908152600560205260409020546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b34801561022457600080fd5b506102386102333660046139e3565b6106ec565b604051901515815260200161020f565b34801561025457600080fd5b50610268610263366004613a3e565b610749565b6040516001600160e01b0319909116815260200161020f565b61029461028f366004613a89565b6109de565b60405190815260200161020f565b6102b56102b0366004613b38565b610af2565b005b6102b56102c5366004613c1e565b610b3f565b3480156102d657600080fd5b506102ea6102e5366004613c5f565b610ba0565b60405161020f929190613c8b565b6102b56103063660046139e3565b610bbc565b34801561031757600080fd5b50610320610d61565b60405161020f9190613d3e565b6102b561033b3660046139e3565b610df3565b34801561034c57600080fd5b506f71727de22e5e9d8baf0edac6f37da0326101fb565b34801561036f57600080fd5b506101fb61037e366004613d67565b3360009081526006602090815260408083206001600160e01b0319909416835292905220546001600160a01b031690565b3480156103bb57600080fd5b506102386103ca366004613d84565b610f5f565b6103e26103dd366004613a3e565b611007565b60405161020f9190613d9d565b3480156103fb57600080fd5b5061029461040a366004613e01565b6110d3565b6102b561041d366004613a3e565b611173565b34801561042e57600080fd5b506102ea61043d366004613c5f565b611518565b34801561044e57600080fd5b506102b561045d366004613e4b565b611542565b34801561046e57600080fd5b5061023861047d366004613d84565b6115b1565b34801561048e57600080fd5b50610294611600565b6060806001600160a01b03841615610517576104fe338560006104b8611659565b346000366040516024016104cf9493929190613eda565b60408051601f198184030181529190526020810180516001600160e01b031663d68f602560e01b179052611665565b9150818060200190518101906105149190613fce565b91505b6001600160a01b0383161561054e57610535338460006104b8611659565b90508080602001905181019061054b9190613fce565b90505b9250929050565b3360009081526004602090815260408083206001600160e01b0319843516845290915290208054606091906001600160a01b03811690600160a01b900460f81b816105c657604051632464e76d60e11b81526001600160e01b03196000351660048201526024015b60405180910390fd5b6105d481607f60f91b61170e565b156106185761060e338388886105e8611659565b6040516020016105fa93929190614002565b604051602081830303815290604052611720565b9350505050610663565b61062381600061170e565b1561065f5761060e338360008989610639611659565b60405160200161064b93929190614002565b604051602081830303815290604052611665565b5050505b92915050565b6001600160a01b038416156106bf576106bf33856000856040516024016106909190613d3e565b60408051601f198184030181529190526020810180516001600160e01b0316630b9dfbed60e11b1790526117e0565b6001600160a01b038316156106e6576106e633846000846040516024016106909190613d3e565b50505050565b600060018503610706576106ff8461187f565b9050610741565b60028503610717576106ff8461188d565b6003850361072a576106ff8484846118a6565b6004850361073d576106ff8484846118f3565b5060005b949350505050565b600033821580156107c15750604051635ae6bd3760e01b8152600481018690526001600160a01b03821690635ae6bd3790602401602060405180830381865afa15801561079a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107be9190614028565b15155b156107d65750630b135d3f60e11b90506109d7565b60006107e56014828688614041565b6107ee9161406b565b60601c905080158061080657506108048161187f565b155b1561095c5760006108d1836001600160a01b031663f698da256040518163ffffffff1660e01b8152600401602060405180830381865afa15801561084e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108729190614028565b60408051602081018b90527f60b3cbf8b4a223d68d641b3b6ddf9a298e7f33710cf3d3a9d1146b5a6150fbca910160408051601f198184030181528282528051602091820120908301520160405160208183030381529060405261192e565b805160208201209091506001600160a01b03841663934f3a1182846108f98a6014818e614041565b6040518563ffffffff1660e01b815260040161091894939291906140a0565b60006040518083038186803b15801561093057600080fd5b505afa158015610944573d6000803e3d6000fd5b50630b135d3f60e11b97506109d79650505050505050565b60006109bb338361096b611659565b8a6109798a6014818e614041565b60405160240161098c9493929190613eda565b60408051601f198184030181529190526020810180516001600160e01b0316637aa8f17760e11b179052611720565b9050808060200190518101906109d191906140d7565b93505050505b9392505050565b60006f71727de22e5e9d8baf0edac6f37da0326109f9611659565b6001600160a01b031614610a2057604051635629665f60e11b815260040160405180910390fd5b6020840135606081901c90811580610a3e5750610a3c8261187f565b155b15610a5357610a4c866119a8565b9250610ab8565b6000610a9e338460008a8a604051602401610a6f929190614139565b60408051601f198184030181529190526020810180516001600160e01b0316639700320360e01b179052611665565b905080806020019051810190610ab49190614028565b9350505b8315610ae957610ae9336f71727de22e5e9d8baf0edac6f37da03286604051806020016040528060008152506117e0565b50509392505050565b610b24610b026020830183614238565b610b0f6020840184614255565b610b1f606086016040870161429e565b611a4e565b610b348989898989898989611afc565b505050505050505050565b610b4a600233611d3f565b8060005b818110156106e65736848483818110610b6957610b696142b9565b9050602002810190610b7b91906142cf565b9050610b9733610b8e6020840184614238565b60029190611dba565b50600101610b4e565b60606000610bb16002338686611eaf565b915091509250929050565b3360009081526005602090815260408083205460068352818420639517e29f60e01b80865293529083205491926001600160a01b03918216929091169080610c048484610497565b91509150610c1f6f71727de22e5e9d8baf0edac6f37da03290565b6001600160a01b0316610c30611659565b6001600160a01b03161480610c5d5750610c48611659565b6001600160a01b0316336001600160a01b0316145b610c7a57604051635629665f60e11b815260040160405180910390fd5b606060018a03610c9657610c8f898989612065565b9050610cfb565b60028a03610ca957610c8f8989896120c1565b60038a03610cbc57610c8f89898961212b565b60048a03610ccf57610c8f89898961226c565b89610cdf57610c8f8989896123eb565b60405163041c38b360e41b8152600481018b90526024016105bd565b600054604051610d549133916001600160a01b0390911690610d25908e908e9087906024016142ef565b60408051601f198184030181529190526020810180516001600160e01b0316639517e29f60e01b179052612573565b50610b3484848484610669565b60606000336001600160a01b031663ffa1ad746040518163ffffffff1660e01b8152600401600060405180830381865afa158015610da3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610dcb9190810190614319565b905080604051602001610dde9190614361565b60405160208183030381529060405291505090565b33600090815260056020908152604080832054600683528184206314e2ec7560e31b80865293529083205491926001600160a01b03918216929091169080610e3b8484610497565b91509150610e566f71727de22e5e9d8baf0edac6f37da03290565b6001600160a01b0316610e67611659565b6001600160a01b03161480610e945750610e7f611659565b6001600160a01b0316336001600160a01b0316145b610eb157604051635629665f60e11b815260040160405180910390fd5b606060018a03610ecd57610ec689898961260c565b9050610f06565b60028a03610ee057610ec6898989612635565b60038a03610ef357610ec6898989612662565b60048a03610cdf57610ec68989896126b0565b600054604051610d549133916001600160a01b0390911690610f30908e908e9087906024016142ef565b60408051601f198184030181529190526020810180516001600160e01b0316637827252560e01b179052612768565b600081600881901b610f7582600160f81b61170e565b15610f835760019250610fc6565b610f8e82600061170e565b15610f9c5760019250610fc6565b610fae826001600160f81b031961170e565b15610fbc5760019250610fc6565b5060009392505050565b828015610fd95750610fd981600061170e565b15610fe5575050919050565b828015610ffb5750610ffb81600160f81b61170e565b15610fbc575050919050565b6060611019611014611659565b61188d565b61104a57611025611659565b604051635c93ff2f60e11b81526001600160a01b0390911660048201526024016105bd565b33600090815260056020908152604080832054600683528184206335a4725960e21b80865293529083205491926001600160a01b039182169290911690806110928484610497565b915091503360026110a3828261281e565b8a600881901b6110b581838e8e6128a9565b9950505050506110c784848484610669565b50505050509392505050565b6000602082901b640100000000600160c01b03166f71727de22e5e9d8baf0edac6f37da032604051631aab3f0d60e11b81526001600160a01b0386811660048301526001600160c01b038416602483015291909116906335567e1a90604401602060405180830381865afa15801561114f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107419190614028565b336000908152600560209081526040808320546006835281842063e9ae5c5360e01b80865293529083205491926001600160a01b039182169290911690806111bb8484610497565b915091506111d66f71727de22e5e9d8baf0edac6f37da03290565b6001600160a01b03166111e7611659565b6001600160a01b0316148061121457506111ff611659565b6001600160a01b0316336001600160a01b0316145b61123157604051635629665f60e11b815260040160405180910390fd5b87600881901b3361124382600061170e565b156113a65761125683600160f81b61170e565b156112775789358a01602081019035611270838383612c65565b50506114ff565b61128283600061170e565b156112ea576000803660006112978e8e612cbc565b93509350935093506112e185858585858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506117e092505050565b505050506114ff565b6112fc836001600160f81b031961170e565b156113815760006113106014828c8e614041565b6113199161406b565b60601c90503660008c8c601490809261133493929190614041565b91509150611379848484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061257392505050565b5050506114ff565b604051632e5bf3f960e21b81526001600160f81b0319841660048201526024016105bd565b6113b482600160f81b61170e565b156114da576113c783600160f81b61170e565b156113e15789358a01602081019035611270838383612d0d565b6113ec83600061170e565b1561144b576000803660006114018e8e612cbc565b93509350935093506112e185858585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612d6492505050565b61145d836001600160f81b031961170e565b156113815760006114716014828c8e614041565b61147a9161406b565b60601c90503660008c8c601490809261149593929190614041565b91509150611379848484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061276892505050565b6040516308c3ee0360e11b81526001600160f81b0319831660048201526024016105bd565b50505061150e84848484610669565b5050505050505050565b33600090815260036020526040812060609190611536818686612e1a565b92509250509250929050565b6f71727de22e5e9d8baf0edac6f37da03261155b611659565b6001600160a01b031614806115885750611573611659565b6001600160a01b0316336001600160a01b0316145b6115a557604051635629665f60e11b815260040160405180910390fd5b6106e684848484611a4e565b6000600182036115c357506001919050565b600282036115d357506001919050565b600382036115e357506001919050565b600482036115f357506001919050565b506000919050565b919050565b604080517f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a794692186020820152469181019190915230606082015260009060800160405160208183030381529060405280519060200120905090565b60131936013560601c90565b60606000856001600160a01b0316635229073f86868660006040518563ffffffff1660e01b815260040161169c94939291906143a7565b6000604051808303816000875af11580156116bb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526116e391908101906143f2565b925090508061170557604051632b3f6d1160e21b815260040160405180910390fd5b50949350505050565b6001600160f81b031990811691161490565b60606000838360405160240161173792919061443f565b60408051601f198184030181529181526020820180516001600160e01b0316636a22165760e01b17905260008054915192935091611783916001600160a01b031690849060240161443f565b60408051601f19818403018152919052602080820180516001600160e01b031663b4faba0960e01b17815282519293509091600091895afa5060203d036040519350808401604052806020853e50600051610ae957825160208401fd5b60405163468721a760e01b81526000906001600160a01b0386169063468721a7906118159087908790879087906004016143a7565b6020604051808303816000875af1158015611834573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118589190614463565b90508061187857604051632b3f6d1160e21b815260040160405180910390fd5b5050505050565b600061066360023384612fb8565b3360009081526003602052604081206109d78184612ffc565b6000806118b583850185613d67565b3360009081526004602090815260408083206001600160e01b0319909416835292905220546001600160a01b03908116908616149150509392505050565b600080806119038486018661448d565b9150915060006119138383613036565b6001600160a01b039081169088161493505050509392505050565b6060601960f81b600160f81b85858560405160200161194e9291906144b9565b60408051808303601f190181529082905280516020918201206001600160f81b0319958616918301919091529290931660218401526022830152604282015260620160405160208183030381529060405290509392505050565b6000806000803660006119ba876130ce565b8451602086012060405163934f3a1160e01b8152959a5093985091965094509250339163934f3a11916119f5918990879087906004016140a0565b60006040518083038186803b158015611a0d57600080fd5b505afa925050508015611a1e575060015b611a3557611a2e600184866132e3565b9550611a44565b611a41600084866132e3565b95505b5050505050919050565b3360008181526001602052604080822080546001600160a01b0319166001600160a01b03891617905551611ac092918791611a91908690899089906024016144df565b60408051601f198184030181529190526020810180516001600160e01b031663f05c04e160e01b1790526117e0565b6040516001600160a01b0385169033907f9452c8fb077c3ea8f28a77c87488af657b1e44d010ad9a5992d73870da040e9490600090a350505050565b3360009081527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e0602052604090205487906001600160a01b0316611ba957611b45600233611d3f565b60005b81811015611ba357368a8a83818110611b6357611b636142b9565b9050602002810190611b7591906142cf565b9050611b99611b876020830183614238565b611b94602084018461453a565b612065565b5050600101611b48565b50611bca565b8015611bca5760405163d8e3ed1b60e01b81523360048201526024016105bd565b336000908152600360205260409020611be28161331b565b86915060005b82811015611c435736898983818110611c0357611c036142b9565b9050602002810190611c1591906142cf565b9050611c39611c276020830183614238565b611c34602084018461453a565b6120c1565b5050600101611be8565b5084915060005b82811015611ca55736878783818110611c6557611c656142b9565b9050602002810190611c7791906142cf565b9050611c9b611c896020830183614238565b611c96602084018461453a565b61212b565b5050600101611c4a565b5082915060005b82811015611d075736858583818110611cc757611cc76142b9565b9050602002810190611cd991906142cf565b9050611cfd611ceb6020830183614238565b611cf8602084018461453a565b61226c565b5050600101611cac565b5060405133907ff48581d8a62b775b74f2fb67f1d5806a9a356fbcc598040ab3071d3e37af40c290600090a250505050505050505050565b60016000908152602083815260408083206001600160a01b0380861685529252909120541615611d82576040516329e42f3360e11b815260040160405180910390fd5b60016000818152602093845260408082206001600160a01b0394909416825292909352912080546001600160a01b0319169091179055565b6001600160a01b0381161580611dd957506001600160a01b0381166001145b15611e0257604051637c84ecfb60e01b81526001600160a01b03821660048201526024016105bd565b6001600160a01b0381811660009081526020858152604080832086851684529091529020541615611e5157604051631034f46960e21b81526001600160a01b03821660048201526024016105bd565b60016000908152602084815260408083206001600160a01b039586168085528184528285208054968816808752988552838620918652908452919093208054949095166001600160a01b031994851617909455528154169091179055565b606060006001600160a01b038416600114801590611ed55750611ed3868686612fb8565b155b15611efe57604051637c84ecfb60e01b81526001600160a01b03851660048201526024016105bd565b82600003611f1f5760405163f725081760e01b815260040160405180910390fd5b826001600160401b03811115611f3757611f37613f0c565b604051908082528060200260200182016040528015611f60578160200160208202803683370190505b506001600160a01b038086166000908152602089815260408083208a85168452909152812054929450911691505b6001600160a01b03821615801590611fb057506001600160a01b038216600114155b8015611fbb57508381105b156120205781838281518110611fd357611fd36142b9565b6001600160a01b039283166020918202929092018101919091529281166000908152888452604080822089841683529094529290922054909116908061201881614596565b915050611f8e565b6001600160a01b038216600114612058578261203d6001836145af565b8151811061204d5761204d6142b9565b602002602001015191505b8083525094509492505050565b6060836001612074828261281e565b61208060023388611dba565b84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929998505050505050505050565b60608360026120d0828261281e565b3360009081526003602052604090206120e98188613378565b85858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929a9950505050505050505050565b606083600361213a828261281e565b6000808061214a87890189614613565b919450925090506001600160e01b031983166306d61fe760e41b148061218057506001600160e01b03198316638a91b0e360e01b145b156121aa576040516379bd117b60e01b81526001600160e01b0319841660048201526024016105bd565b3360009081526004602090815260408083206001600160e01b0319871684529091529020546001600160a01b031615612202576040516374420d1560e01b81526001600160e01b0319841660048201526024016105bd565b3360009081526004602090815260408083206001600160e01b031990961683529490529290922080546001600160a01b038a166001600160a01b031960f89490941c600160a01b02939093166001600160a81b031990911617919091179055925050509392505050565b606083600461227b828261281e565b6000808061228b87890189614681565b919450925090506000808460018111156122a7576122a76146af565b1480156122bc57506001600160e01b03198316155b156123325750336000908152600560205260409020546001600160a01b031680156123055760405163741cbe0360e01b81526001600160a01b03821660048201526024016105bd565b33600090815260056020526040902080546001600160a01b0319166001600160a01b038c161790556123de565b6001846001811115612346576123466146af565b036123c5576001600160a01b0381161561237e5760405163741cbe0360e01b81526001600160a01b03821660048201526024016105bd565b503360009081526006602090815260408083206001600160e01b031986168452909152902080546001600160a01b038b81166001600160a01b0319831617909255166123de565b604051635691922f60e01b815260040160405180910390fd5b5098975050505050505050565b606082358301602081810191359085810135860180820191903590604088013588019081019035848381146124335760405163b4fa3fb360e01b815260040160405180910390fd5b60005b8181101561252c576000888883818110612452576124526142b9565b905060200201359050600181036124915761248b8d888885818110612479576124796142b9565b9050602002810190611b94919061453a565b50612523565b600281036124c15761248b8d8888858181106124af576124af6142b9565b9050602002810190611c34919061453a565b600381036124f15761248b8d8888858181106124df576124df6142b9565b9050602002810190611c96919061453a565b60048103612523576125218d88888581811061250f5761250f6142b9565b9050602002810190611cf8919061453a565b505b50600101612436565b5082828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929e9d5050505050505050505050505050565b60405163468721a760e01b81526000906001600160a01b0385169063468721a7906125a9908690859087906001906004016143a7565b6020604051808303816000875af11580156125c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125ec9190614463565b9050806106e657604051632b3f6d1160e21b815260040160405180910390fd5b6060600061261c838501856146c5565b9250905061262d600233838861344e565b509392505050565b336000908152600360205260408120606091612653848601866146c5565b93509050610ae9828288613545565b606060006126728385018561470a565b3360009081526004602090815260408083206001600160e01b031990951683529390529190912080546001600160a01b031916905595945050505050565b60606000806126c184860186614681565b9450909250905060008260018111156126dc576126dc6146af565b1480156126f157506001600160e01b03198116155b156127185733600090815260056020526040902080546001600160a01b0319169055610ae9565b600182600181111561272c5761272c6146af565b036123c5573360009081526006602090815260408083206001600160e01b031985168452909152902080546001600160a01b0319169055610ae9565b60405163468721a760e01b81526000906001600160a01b0385169063468721a79061279e908690859087906001906004016143a7565b6020604051808303816000875af11580156127bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127e19190614463565b9050806106e657604080516001600160a01b0386168152600060208201526000805160206149c9833981519152910160405180910390a150505050565b336000908152600160205260409020546001600160a01b031680156128a45760405163529562a160e01b81523360048201526001600160a01b0384811660248301526044820184905282169063529562a19060640160006040518083038186803b15801561288b57600080fd5b505afa15801561289f573d6000803e3d6000fd5b505050505b505050565b60606128b685600061170e565b15612aac576128c984600160f81b61170e565b156128ec57823583016020810190356128e333838361361a565b92505050610741565b6128f784600061170e565b156129ab5760008036600061290c8787612cbc565b6040805160018082528183019092529498509296509094509250816020015b606081526020019060019003908161292b57905050945061298433858585858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061166592505050565b85600081518110612997576129976142b9565b602002602001018190525050505050610741565b6129bd846001600160f81b031961170e565b15612a875760006129d16014828587614041565b6129da9161406b565b60601c90503660006129ef8560148189614041565b604080516001808252818301909252929450909250816020015b6060815260200190600190039081612a09579050509350612a61338484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061369392505050565b84600081518110612a7457612a746142b9565b6020026020010181905250505050610741565b604051632e5bf3f960e21b81526001600160f81b0319851660048201526024016105bd565b612aba85600160f81b61170e565b15612c4057612acd84600160f81b61170e565b15612af25782358301602081019035612ae7338383613734565b935061074192505050565b612afd84600061170e565b15612b8a57600080366000612b128787612cbc565b6040805160018082528183019092529498509296509094509250816020015b6060815260200190600190039081612b3157905050945061298433858585858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506137b692505050565b612b9c846001600160f81b031961170e565b15612a87576000612bb06014828587614041565b612bb99161406b565b60601c9050366000612bce8560148189614041565b604080516001808252818301909252929450909250816020015b6060815260200190600190039081612be8579050509350612a61338484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061387692505050565b6040516308c3ee0360e11b81526001600160f81b0319861660048201526024016105bd565b6000546040516128a49185916001600160a01b0390911690612c8d9086908690602401614728565b60408051601f198184030181529190526020810180516001600160e01b0316633f707e6b60e01b179052612573565b6000803681612cce6014828789614041565b612cd79161406b565b60601c9350612cea603460148789614041565b612cf3916147d3565b9250612d028560348189614041565b949793965094505050565b6000546040516128a49185916001600160a01b0390911690612d359086908690602401614728565b60408051601f198184030181529190526020810180516001600160e01b0316632864481160e11b179052612768565b60405163468721a760e01b81526000906001600160a01b0386169063468721a790612d999087908790879087906004016143a7565b6020604051808303816000875af1158015612db8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ddc9190614463565b90508061187857604080516001600160a01b0387168152600060208201526000805160206149c9833981519152910160405180910390a15050505050565b606060006001600160a01b038416600114801590612e3f5750612e3d8585612ffc565b155b15612e6857604051637c84ecfb60e01b81526001600160a01b03851660048201526024016105bd565b82600003612e895760405163f725081760e01b815260040160405180910390fd5b826001600160401b03811115612ea157612ea1613f0c565b604051908082528060200260200182016040528015612eca578160200160208202803683370190505b506001600160a01b03808616600090815260208890526040812054929450911691505b6001600160a01b03821615801590612f0f57506001600160a01b038216600114155b8015612f1a57508381105b15612f745781838281518110612f3257612f326142b9565b6001600160a01b039283166020918202929092018101919091529281166000908152928790526040909220549091169080612f6c81614596565b915050612eed565b6001600160a01b038216600114612fac5782612f916001836145af565b81518110612fa157612fa16142b9565b602002602001015191505b80835250935093915050565b600060016001600160a01b038316148015906107415750506001600160a01b0390811660009081526020938452604080822093831682529290935291205416151590565b600060016001600160a01b038316148015906109d75750506001600160a01b03908116600090815260209290925260409091205416151590565b60008083600181111561304b5761304b6146af565b14801561306057506001600160e01b03198216155b156130805750336000908152600560205260409020546001600160a01b03165b6001836001811115613094576130946146af565b0361066357503360009081526006602090815260408083206001600160e01b0319851684529091529020546001600160a01b031692915050565b6060600080368181816130e561010089018961453a565b90925090506130f8600660008385614041565b613101916147f1565b60d01c9550613114600c60068385614041565b61311d916147f1565b60d01c945061312f81600c8185614041565b9350935050506000604051806101c001604052807f84aa190356f56b8c87825f54884392a9907c23ee0f8e1ea86336b763faf021bd60001b8152602001336001600160a01b0316815260200188602001358152602001888060400190613195919061453a565b6040516131a392919061481f565b60405190819003902081526020016131be60608a018a61453a565b6040516131cc92919061481f565b604051809103902081526020016131e289613936565b81526020016131f08961394b565b81526020018860a0013581526020016132088961395b565b815260200161321689613970565b815260200161322860e08a018a61453a565b60405161323692919061481f565b604051809103902081526020018665ffffffffffff1681526020018565ffffffffffff1681526020016132766f71727de22e5e9d8baf0edac6f37da03290565b6001600160a01b031690526101c08120909150601960f81b600160f81b61329b611600565b6040516001600160f81b031993841660208201529290911660218301526022820152604281018290526062016040516020818303038152906040529650505091939590929450565b600060d08265ffffffffffff16901b60a08465ffffffffffff16901b8561330b57600061330e565b60015b60ff161717949350505050565b60016000908152602082905260409020546001600160a01b031615613353576040516329e42f3360e11b815260040160405180910390fd5b60016000818152602092909252604090912080546001600160a01b0319169091179055565b6001600160a01b038116158061339757506001600160a01b0381166001145b156133c057604051637c84ecfb60e01b81526001600160a01b03821660048201526024016105bd565b6001600160a01b03818116600090815260208490526040902054161561340457604051631034f46960e21b81526001600160a01b03821660048201526024016105bd565b60016000818152602093909352604080842080546001600160a01b039485168087529286208054959091166001600160a01b03199586161790559190935280549091169091179055565b6001600160a01b038116158061346d57506001600160a01b0381166001145b1561349657604051637c84ecfb60e01b81526001600160a01b03831660048201526024016105bd565b6001600160a01b0382811660009081526020868152604080832087851684529091529020548116908216146134e957604051637c84ecfb60e01b81526001600160a01b03821660048201526024016105bd565b6001600160a01b039081166000908152602085815260408083209584168084528683528184208054968616855297835281842090845282529091208054939092166001600160a01b031993841617909155919091528154169055565b6001600160a01b038116158061356457506001600160a01b0381166001145b1561358d57604051637c84ecfb60e01b81526001600160a01b03831660048201526024016105bd565b6001600160a01b038281166000908152602085905260409020548116908216146135d557604051637c84ecfb60e01b81526001600160a01b03821660048201526024016105bd565b6001600160a01b0390811660008181526020949094526040808520805494841686529085208054949093166001600160a01b0319948516179092559092528154169055565b60008054604051606092916136749187916001600160a01b0316906136459088908890602401614728565b60408051601f198184030181529190526020810180516001600160e01b0316636108557360e01b179052613693565b90508080602001905181019061368a91906148dc565b95945050505050565b60606000846001600160a01b0316635229073f8560008660016040518563ffffffff1660e01b81526004016136cb94939291906143a7565b6000604051808303816000875af11580156136ea573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261371291908101906143f2565b925090508061262d57604051632b3f6d1160e21b815260040160405180910390fd5b60608060006137938660008054906101000a90046001600160a01b03168787604051602401613764929190614728565b60408051601f198184030181529190526020810180516001600160e01b0316639abb6e1760e01b179052613876565b9050808060200190518101906137a99190614910565b9097909650945050505050565b60606000856001600160a01b0316635229073f86868660006040518563ffffffff1660e01b81526004016137ed94939291906143a7565b6000604051808303816000875af115801561380c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261383491908101906143f2565b925090508061170557604080516001600160a01b0388168152600060208201526000805160206149c9833981519152910160405180910390a150949350505050565b60606000846001600160a01b0316635229073f8560008660016040518563ffffffff1660e01b81526004016138ae94939291906143a7565b6000604051808303816000875af11580156138cd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526138f591908101906143f2565b925090508061262d57604080516001600160a01b0387168152600060208201526000805160206149c9833981519152910160405180910390a1509392505050565b60006001600160801b03608083013516610663565b6000610663826080013560801c90565b60006001600160801b0360c083013516610663565b600060c082013560801c610663565b6001600160a01b038116811461399457600080fd5b50565b80356115fb8161397f565b60008083601f8401126139b457600080fd5b5081356001600160401b038111156139cb57600080fd5b60208301915083602082850101111561054e57600080fd5b600080600080606085870312156139f957600080fd5b843593506020850135613a0b8161397f565b925060408501356001600160401b03811115613a2657600080fd5b613a32878288016139a2565b95989497509550505050565b600080600060408486031215613a5357600080fd5b8335925060208401356001600160401b03811115613a7057600080fd5b613a7c868287016139a2565b9497909650939450505050565b600080600060608486031215613a9e57600080fd5b83356001600160401b03811115613ab457600080fd5b84016101208187031215613ac757600080fd5b95602085013595506040909401359392505050565b60008083601f840112613aee57600080fd5b5081356001600160401b03811115613b0557600080fd5b6020830191508360208260051b850101111561054e57600080fd5b600060608284031215613b3257600080fd5b50919050565b600080600080600080600080600060a08a8c031215613b5657600080fd5b89356001600160401b0380821115613b6d57600080fd5b613b798d838e01613adc565b909b50995060208c0135915080821115613b9257600080fd5b613b9e8d838e01613adc565b909950975060408c0135915080821115613bb757600080fd5b613bc38d838e01613adc565b909750955060608c0135915080821115613bdc57600080fd5b613be88d838e01613adc565b909550935060808c0135915080821115613c0157600080fd5b50613c0e8c828d01613b20565b9150509295985092959850929598565b60008060208385031215613c3157600080fd5b82356001600160401b03811115613c4757600080fd5b613c5385828601613adc565b90969095509350505050565b60008060408385031215613c7257600080fd5b8235613c7d8161397f565b946020939093013593505050565b604080825283519082018190526000906020906060840190828701845b82811015613ccd5781516001600160a01b031684529284019290840190600101613ca8565b5050506001600160a01b039490941660209390930192909252509092915050565b60005b83811015613d09578181015183820152602001613cf1565b50506000910152565b60008151808452613d2a816020860160208601613cee565b601f01601f19169290920160200192915050565b6020815260006109d76020830184613d12565b6001600160e01b03198116811461399457600080fd5b600060208284031215613d7957600080fd5b81356109d781613d51565b600060208284031215613d9657600080fd5b5035919050565b600060208083016020845280855180835260408601915060408160051b87010192506020870160005b82811015613df457603f19888603018452613de2858351613d12565b94509285019290850190600101613dc6565b5092979650505050505050565b60008060408385031215613e1457600080fd5b8235613e1f8161397f565b91506020830135613e2f8161397f565b809150509250929050565b803560ff811681146115fb57600080fd5b60008060008060608587031215613e6157600080fd5b8435613e6c8161397f565b935060208501356001600160401b03811115613e8757600080fd5b613e9387828801613adc565b9094509250613ea6905060408601613e3a565b905092959194509250565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60018060a01b0385168152836020820152606060408201526000613f02606083018486613eb1565b9695505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613f4a57613f4a613f0c565b604052919050565b60006001600160401b03821115613f6b57613f6b613f0c565b50601f01601f191660200190565b6000613f8c613f8784613f52565b613f22565b9050828152838383011115613fa057600080fd5b6109d7836020830184613cee565b600082601f830112613fbf57600080fd5b6109d783835160208501613f79565b600060208284031215613fe057600080fd5b81516001600160401b03811115613ff657600080fd5b61074184828501613fae565b8284823760609190911b6bffffffffffffffffffffffff19169101908152601401919050565b60006020828403121561403a57600080fd5b5051919050565b6000808585111561405157600080fd5b8386111561405e57600080fd5b5050820193919092039150565b6bffffffffffffffffffffffff1981358181169160148510156140985780818660140360031b1b83161692505b505092915050565b8481526060602082015260006140b96060830186613d12565b82810360408401526140cc818587613eb1565b979650505050505050565b6000602082840312156140e957600080fd5b81516109d781613d51565b6000808335601e1984360301811261410b57600080fd5b83016020810192503590506001600160401b0381111561412a57600080fd5b80360382131561054e57600080fd5b6040815261415a6040820161414d85613997565b6001600160a01b03169052565b60208301356060820152600061417360408501856140f4565b61012080608086015261418b61016086018385613eb1565b925061419a60608801886140f4565b9250603f19808786030160a08801526141b4858584613eb1565b9450608089013560c088015260a089013560e0880152610100935060c0890135848801526141e560e08a018a6140f4565b92508188870301848901526141fb868483613eb1565b95505061420a848a018a6140f4565b9450925080878603016101408801525050614226838383613eb1565b93505050508260208301529392505050565b60006020828403121561424a57600080fd5b81356109d78161397f565b6000808335601e1984360301811261426c57600080fd5b8301803591506001600160401b0382111561428657600080fd5b6020019150600581901b360382131561054e57600080fd5b6000602082840312156142b057600080fd5b6109d782613e3a565b634e487b7160e01b600052603260045260246000fd5b60008235603e198336030181126142e557600080fd5b9190910192915050565b8381526001600160a01b038316602082015260606040820181905260009061368a90830184613d12565b60006020828403121561432b57600080fd5b81516001600160401b0381111561434157600080fd5b8201601f8101841361435257600080fd5b61074184825160208401613f79565b64736166652d60d81b815260008251614381816005850160208701613cee565b6e2e657263373537392e76302e302e3160881b6005939091019283015250601401919050565b60018060a01b03851681528360208201526080604082015260006143ce6080830185613d12565b905060ff8316606083015295945050505050565b805180151581146115fb57600080fd5b6000806040838503121561440557600080fd5b61440e836143e2565b915060208301516001600160401b0381111561442957600080fd5b61443585828601613fae565b9150509250929050565b6001600160a01b038316815260406020820181905260009061074190830184613d12565b60006020828403121561447557600080fd5b6109d7826143e2565b8035600281106115fb57600080fd5b600080604083850312156144a057600080fd5b6144a98361447e565b91506020830135613e2f81613d51565b828152600082516144d1816020850160208701613cee565b919091016020019392505050565b60ff8416815260406020808301829052908201839052600090849060608401835b8681101561452e5783356145138161397f565b6001600160a01b031682529282019290820190600101614500565b50979650505050505050565b6000808335601e1984360301811261455157600080fd5b8301803591506001600160401b0382111561456b57600080fd5b60200191503681900382131561054e57600080fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016145a8576145a8614580565b5060010190565b8181038181111561066357610663614580565b600082601f8301126145d357600080fd5b81356145e1613f8782613f52565b8181528460208386010111156145f657600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561462857600080fd5b833561463381613d51565b925060208401356001600160f81b03198116811461465057600080fd5b915060408401356001600160401b0381111561466b57600080fd5b614677868287016145c2565b9150509250925092565b60008060006060848603121561469657600080fd5b61469f8461447e565b9250602084013561465081613d51565b634e487b7160e01b600052602160045260246000fd5b600080604083850312156146d857600080fd5b82356146e38161397f565b915060208301356001600160401b038111156146fe57600080fd5b614435858286016145c2565b6000806040838503121561471d57600080fd5b82356146e381613d51565b60208082528181018390526000906040808401600586901b850182018785805b898110156147c457888403603f190185528235368c9003605e1901811261476d578283fd5b8b016060813561477c8161397f565b6001600160a01b03168652818901358987015261479b888301836140f4565b925081898801526147af8288018483613eb1565b978a0197965050509287019250600101614748565b50919998505050505050505050565b8035602083101561066357600019602084900360031b1b1692915050565b6001600160d01b031981358181169160068510156140985760069490940360031b84901b1690921692915050565b8183823760009101908152919050565b60006001600160401b0382111561484857614848613f0c565b5060051b60200190565b600082601f83011261486357600080fd5b81516020614873613f878361482f565b82815260059290921b8401810191818101908684111561489257600080fd5b8286015b848110156148d15780516001600160401b038111156148b55760008081fd5b6148c38986838b0101613fae565b845250918301918301614896565b509695505050505050565b6000602082840312156148ee57600080fd5b81516001600160401b0381111561490457600080fd5b61074184828501614852565b6000806040838503121561492357600080fd5b82516001600160401b038082111561493a57600080fd5b818501915085601f83011261494e57600080fd5b8151602061495e613f878361482f565b82815260059290921b8401810191818101908984111561497d57600080fd5b948201945b838610156149a257614993866143e2565b82529482019490820190614982565b918801519196509093505050808211156149bb57600080fd5b506144358582860161485256feb8bc84bd77f5eb08210b8eb20fd63b3ec6a7992d277ab94663bae0e066f792aca26469706673582212203bf73a2c2062b81b2af0d1e3cda1afef579f700fd7d2e530b6b4eada00b17f5f64736f6c63430008190033",sourceMap:"2103:22088:37:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8864:24:42;728:1:11;715:15;710:3;706:25;1058:10;1055:1;1052:17;1039:10;1036:1;1033:17;1030:40;1017:10;1014:1;1011:17;1008:63;1005:190;;;1103:1;1097:4;1090:15;1097:4;1149;1142:18;1005:190;-1:-1:-1;12548:10:42::1;8838:7;12536:23:::0;;;:11:::1;:23;::::0;;;;;;;;12587:12:::1;:24:::0;;;;;-1:-1:-1;;;;;;8838:7:42;::::1;;12587:34:::0;;;;;;;;;8838:7;;-1:-1:-1;;;;;12536:23:42;;::::1;::::0;12587:34;;::::1;::::0;8838:7;12673:30:::1;12536:23:::0;12587:34;12673:9:::1;:30::i;:::-;12631:72;;;;8958:30:::2;8979:8;;8958:20;:30::i;:::-;8951:37;;12724:44:::1;12735:10;12747:7;12756:6;12764:3;12724:10;:44::i;:::-;12505:270;;;;1214:1:11;8686:309:42::0;;;2103:22088:37;;;;;;15604:107:42;;;;;;;;;;-1:-1:-1;15693:10:42;15650:12;15681:23;;;:11;:23;;;;;;-1:-1:-1;;;;;15681:23:42;15604:107;;;-1:-1:-1;;;;;287:32:54;;;269:51;;257:2;242:18;15604:107:42;;;;;;;;19031:700:37;;;;;;;;;;-1:-1:-1;19031:700:37;;;;;:::i;:::-;;:::i;:::-;;;1740:14:54;;1733:22;1715:41;;1703:2;1688:18;19031:700:37;1575:187:54;13159:1524:37;;;;;;;;;;-1:-1:-1;13159:1524:37;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;;2411:33:54;;;2393:52;;2381:2;2366:18;13159:1524:37;2249:202:54;10812:1326:37;;;;;;:::i;:::-;;:::i;:::-;;;3141:25:54;;;3129:2;3114:18;10812:1326:37;2995:177:54;1564:493:41;;;;;;:::i;:::-;;:::i;:::-;;833:680;;;;;;:::i;:::-;;:::i;3661:349:42:-;;;;;;;;;;-1:-1:-1;3661:349:42;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;14734:1437:37:-;;;;;;:::i;:::-;;:::i;19782:237::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;16222:1517::-;;;;;;:::i;:::-;;:::i;895:135:39:-;;;;;;;;;;-1:-1:-1;981:42:39;895:135;;15465:133:42;;;;;;;;;;-1:-1:-1;15465:133:42;;;;;:::i;:::-;15570:10;15526:12;15557:24;;;:12;:24;;;;;;;;-1:-1:-1;;;;;;15557:34:42;;;;;;;;;;-1:-1:-1;;;;;15557:34:42;;15465:133;17790:757:37;;;;;;;;;;-1:-1:-1;17790:757:37;;;;;:::i;:::-;;:::i;6268:674::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;23961:228::-;;;;;;;;;;-1:-1:-1;23961:228:37;;;;;:::i;:::-;;:::i;2782:3435::-;;;;;;:::i;:::-;;:::i;5538:344:42:-;;;;;;;;;;-1:-1:-1;5538:344:42;;;;;:::i;:::-;;:::i;4307:234:41:-;;;;;;;;;;-1:-1:-1;4307:234:41;;;;;:::i;:::-;;:::i;18598:382:37:-;;;;;;;;;;-1:-1:-1;18598:382:37;;;;;:::i;:::-;;:::i;23760:150::-;;;;;;;;;;;;;:::i;10793:843:42:-;10905:19;;-1:-1:-1;;;;;10962:24:42;;;10958:339;;11011:225;11053:10;11090;11125:1;11186:12;:10;:12::i;:::-;11200:9;11211:8;;11154:67;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;11154:67:42;;;;;;;;;;;;;;-1:-1:-1;;;;;11154:67:42;-1:-1:-1;;;11154:67:42;;;11011:11;:225::i;:::-;11002:234;;11270:6;11259:27;;;;;;;;;;;;:::i;:::-;11250:36;;10958:339;-1:-1:-1;;;;;11310:21:42;;;11306:324;;11353:222;11395:10;11432:7;11464:1;11525:12;:10;:12::i;11353:222::-;11347:228;;11606:3;11595:24;;;;;;;;;;;;:::i;:::-;11589:30;;11306:324;10793:843;;;;;:::o;9001:1249::-;9237:10;9183:34;9220:28;;;:16;:28;;;;;;;;-1:-1:-1;;;;;;9249:7:42;;;9220:37;;;;;;;9285:18;;9089:24;;9220:37;-1:-1:-1;;;;;9285:18:42;;;-1:-1:-1;;;9333:19:42;;;;9285:18;9418:60;;9452:26;;-1:-1:-1;;;9452:26:42;;-1:-1:-1;;;;;;9470:7:42;;;9452:26;;;2393:52:54;2366:18;;9452:26:42;;;;;;;;9418:60;9701:27;:8;-1:-1:-1;;;9701:27:42;:::i;:::-;9697:259;;;9751:194;9799:10;9836:7;9888:8;;9898:12;:10;:12::i;:::-;9871:40;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;9751:17;:194::i;:::-;9744:201;;;;;;;9697:259;9969:27;:8;2726:4:52;9969:27:42;:::i;:::-;9965:279;;;10019:214;10061:10;10098:7;10130:1;10176:8;;10186:12;:10;:12::i;:::-;10159:40;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;10019:11;:214::i;9965:279::-;9119:1131;;;9001:1249;;;;;:::o;11690:667::-;-1:-1:-1;;;;;11859:24:42;;;11855:248;;11899:193;11935:10;11972;12007:1;12069:6;12036:41;;;;;;;;:::i;:::-;;;;-1:-1:-1;;12036:41:42;;;;;;;;;;;;;;-1:-1:-1;;;;;12036:41:42;-1:-1:-1;;;12036:41:42;;;11899:5;:193::i;:::-;-1:-1:-1;;;;;12116:21:42;;;12112:239;;12153:187;12189:10;12226:7;12258:1;12320:3;12287:38;;;;;;;;:::i;12153:187::-;11690:667;;;;:::o;19031:700:37:-;19205:4;276:1:12;19229:10:37;:35;19225:500;;19287:29;19309:6;19287:21;:29::i;:::-;19280:36;;;;19225:500;319:1:12;19337:10:37;:34;19333:392;;19394:28;19415:6;19394:20;:28::i;19333:392::-;362:1:12;19443:10:37;:34;19439:286;;19500:54;19528:6;19536:17;;19500:27;:54::i;19439:286::-;401:1:12;19575:10:37;:30;19571:154;;19628:43;19645:6;19653:17;;19628:16;:43::i;19571:154::-;-1:-1:-1;19709:5:37;19571:154;19031:700;;;;;;:::o;13159:1524::-;13289:17;13341:10;13411:16;;:50;;;;-1:-1:-1;13431:25:37;;-1:-1:-1;;;13431:25:37;;;;;3141::54;;;-1:-1:-1;;;;;13431:19:37;;;;;3114:18:54;;13431:25:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:30;;13411:50;13407:156;;;-1:-1:-1;;;;13518:34:37;-1:-1:-1;13511:41:37;;13407:156;13572:24;13615:9;13621:2;13572:24;13615:4;;:9;:::i;:::-;13607:18;;;:::i;:::-;13599:27;;;-1:-1:-1;13819:30:37;;;:74;;;13854:39;13876:16;13854:21;:39::i;:::-;13853:40;13819:74;13815:456;;;13909:24;13936:138;13978:4;-1:-1:-1;;;;;13978:20:37;;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;14042:16;;;;;;3141:25:54;;;2531:66:37;;3114:18:54;14042:16:37;;;-1:-1:-1;;14042:16:37;;;;;;;;;14032:27;;14042:16;14032:27;;;;14021:39;;;3141:25:54;3114:18;14021:39:37;;;;;;;;;;;;13936:24;:138::i;:::-;14111:22;;;;;;13909:165;;-1:-1:-1;;;;;;14148:20:37;;;14111:22;13909:165;14195:9;:4;14200:2;14195:4;;:9;:::i;:::-;14148:57;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;14226:34:37;-1:-1:-1;14219:41:37;;-1:-1:-1;;;;;;;14219:41:37;13815:456;14365:16;14384:244;14428:10;14461:16;14573:12;:10;:12::i;:::-;14587:4;14593:9;:4;14598:2;14593:4;;:9;:::i;:::-;14501:116;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;14501:116:37;;;;;;;;;;;;;;-1:-1:-1;;;;;14501:116:37;-1:-1:-1;;;14501:116:37;;;14384:17;:244::i;:::-;14365:263;;14662:3;14651:25;;;;;;;;;;;;:::i;:::-;14638:38;;13312:1371;;;13159:1524;;;;;;:::o;10812:1326::-;11025:22;981:42:39;783:12;:10;:12::i;:::-;-1:-1:-1;;;;;783:28:39;;779:93;;834:27;;-1:-1:-1;;;834:27:39;;;;;;;;;;;779:93;11106:12:37::1;::::0;::::1;;11225:2;11221:14:::0;;::::1;::::0;11338:23;;;:60:::1;;;11366:32;11388:9;11366:21;:32::i;:::-;11365:33;11338:60;11334:536;;;11431:27;11451:6;11431:19;:27::i;:::-;11414:44;;11334:536;;;11555:20;11578:220;11620:10;11657:9;11691:1;11763:6;11771:10;11720:63;;;;;;;;;:::i;:::-;;::::0;;-1:-1:-1;;11720:63:37;;::::1;::::0;;;;;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;11720:63:37::1;-1:-1:-1::0;;;11720:63:37::1;::::0;;11578:11:::1;:220::i;:::-;11555:243;;11840:7;11829:30;;;;;;;;;;;;:::i;:::-;11812:47;;11475:395;11334:536;11907:24:::0;;11903:229:::1;;11947:174;11983:10;981:42:39::0;12057:19:37::1;11947:174;;;;;;;;;;;::::0;:5:::1;:174::i;:::-;11053:1085;;10812:1326:::0;;;;;:::o;1564:493:41:-;1847:89;1866:21;;;;:12;:21;:::i;:::-;1889:22;;;;:12;:22;:::i;:::-;1913;;;;;;;;:::i;:::-;1847:18;:89::i;:::-;1997:53;2010:10;;2022:9;;2033;;2044:5;;1997:12;:53::i;:::-;1564:493;;;;;;;;;:::o;833:680::-;983:41;:11;1011:10;983:16;:41::i;:::-;1051:10;1034:14;1078:429;1098:6;1094:1;:10;1078:429;;;1125:29;1157:10;;1168:1;1157:13;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;1125:45;-1:-1:-1;1184:69:41;1212:10;1234:16;;;;1125:45;1234:16;:::i;:::-;1184:11;;:69;:16;:69::i;:::-;-1:-1:-1;1106:3:41;;1078:429;;3661:349:42;3810:22;3834:12;3869:134;:11;3924:10;3955:5;3984:8;3869:31;:134::i;:::-;3862:141;;;;3661:349;;;;;:::o;14734:1437:37:-;12548:10:42;12515:18;12536:23;;;:11;:23;;;;;;;;;12587:12;:24;;;;;-1:-1:-1;;;12587:34:42;;;;;;;;;14915:38:37;;-1:-1:-1;;;;;12536:23:42;;;;12587:34;;;;12515:18;12673:30;12536:23;12587:34;12673:9;:30::i;:::-;12631:72;;;;599:12:39::1;981:42:::0;;895:135;599:12:::1;-1:-1:-1::0;;;;;583:28:39::1;:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;583:28:39::1;;:58;;;;629:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;615:26:39::1;:10;-1:-1:-1::0;;;;;615:26:39::1;;583:58;577:126;;665:27;;-1:-1:-1::0;;;665:27:39::1;;;;;;;;;;;577:126;15179:27:37::2;276:1:12;15220:10:37;:35:::0;15216:673:::2;;15288:35;15306:6;15314:8;;15288:17;:35::i;:::-;15271:52;;15216:673;;;319:1:12;15344:10:37;:34:::0;15340:549:::2;;15411:34;15428:6;15436:8;;15411:16;:34::i;15340:549::-;362:1:12;15466:10:37;:34:::0;15462:427:::2;;15533:41;15557:6;15565:8;;15533:23;:41::i;15462:427::-;401:1:12;15595:10:37;:30:::0;15591:298:::2;;15658:30;15671:6;15679:8;;15658:12;:30::i;15591:298::-;15709:10:::0;15705:184:::2;;15772:35;15790:6;15798:8;;15772:17;:35::i;15705:184::-;15845:33;::::0;-1:-1:-1;;;15845:33:37;;::::2;::::0;::::2;3141:25:54::0;;;3114:18;;15845:33:37::2;2995:177:54::0;15705:184:37::2;16010:4;::::0;16038:115:::2;::::0;15937:227:::2;::::0;15977:10:::2;::::0;-1:-1:-1;;;;;16010:4:37;;::::2;::::0;16038:115:::2;::::0;16104:10;;16116:6;;16124:14;;16038:115:::2;;;:::i;:::-;;::::0;;-1:-1:-1;;16038:115:37;;::::2;::::0;;;;;;::::2;::::0;::::2;::::0;;-1:-1:-1;;;;;16038:115:37::2;-1:-1:-1::0;;;16038:115:37::2;::::0;;15937:13:::2;:227::i;:::-;14988:1183;12724:44:42::0;12735:10;12747:7;12756:6;12764:3;12724:10;:44::i;19782:237:37:-;19826:37;19875:25;19909:10;-1:-1:-1;;;;;19903:25:37;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;19903:27:37;;;;;;;;;;;;:::i;:::-;19875:55;;19980:11;19954:57;;;;;;;;:::i;:::-;;;;;;;;;;;;;19940:72;;;19782:237;:::o;16222:1517::-;12548:10:42;12515:18;12536:23;;;:11;:23;;;;;;;;;12587:12;:24;;;;;-1:-1:-1;;;12587:34:42;;;;;;;;;16407:40:37;;-1:-1:-1;;;;;12536:23:42;;;;12587:34;;;;12515:18;12673:30;12536:23;12587:34;12673:9;:30::i;:::-;12631:72;;;;599:12:39::1;981:42:::0;;895:135;599:12:::1;-1:-1:-1::0;;;;;583:28:39::1;:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;583:28:39::1;;:58;;;;629:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;615:26:39::1;:10;-1:-1:-1::0;;;;;615:26:39::1;;583:58;577:126;;665:27;;-1:-1:-1::0;;;665:27:39::1;;;;;;;;;;;577:126;16681:29:37::2;276:1:12;16724:10:37;:35:::0;16720:578:::2;;16794:39;16814:6;16822:10;;16794:19;:39::i;:::-;16775:58;;16720:578;;;319:1:12;16854:10:37;:34:::0;16850:448:::2;;16923:38;16942:6;16950:10;;16923:18;:38::i;16850:448::-;362:1:12;16982:10:37;:34:::0;16978:320:::2;;17051:45;17077:6;17085:10;;17051:25;:45::i;16978:320::-;401:1:12;17117:10:37;:30:::0;17113:185:::2;;17182:34;17197:6;17205:10;;17182:14;:34::i;17113:185::-;17574:4;::::0;17602:119:::2;::::0;17498:234:::2;::::0;17541:10:::2;::::0;-1:-1:-1;;;;;17574:4:37;;::::2;::::0;17602:119:::2;::::0;17670:10;;17682:6;;17690:16;;17602:119:::2;;;:::i;:::-;;::::0;;-1:-1:-1;;17602:119:37;;::::2;::::0;;;;;;::::2;::::0;::::2;::::0;;-1:-1:-1;;;;;17602:119:37::2;-1:-1:-1::0;;;17602:119:37::2;::::0;;17498:16:::2;:234::i;17790:757::-:0;17907:14;18082:11;18122:1;18118:19;;;18160:26;18082:11;-1:-1:-1;;;18160:26:37;:::i;:::-;18156:209;;;18200:4;18188:16;;18156:209;;;18223:27;:8;2726:4:52;18223:27:37;:::i;:::-;18219:146;;;18264:4;18252:16;;18219:146;;;18287:33;:8;-1:-1:-1;;;;;;18287:33:37;:::i;:::-;18283:82;;;18334:4;18322:16;;18283:82;;;-1:-1:-1;18360:5:37;;17790:757;-1:-1:-1;;;17790:757:37:o;18283:82::-;18380:9;:41;;;;-1:-1:-1;18393:28:37;:8;3306:4:52;18393:28:37;:::i;:::-;18376:164;;;18423:16;;17790:757;;;:::o;18376:164::-;18458:9;:37;;;;-1:-1:-1;18471:24:37;:8;-1:-1:-1;;;18471:24:37;:::i;:::-;18454:86;;;18497:16;;17790:757;;;:::o;6268:674::-;6580:26;4456:34:42;4477:12;:10;:12::i;:::-;4456:20;:34::i;:::-;4451:75;;4513:12;:10;:12::i;:::-;4499:27;;-1:-1:-1;;;4499:27:42;;-1:-1:-1;;;;;287:32:54;;;4499:27:42;;;269:51:54;242:18;;4499:27:42;123:203:54;4451:75:42;12548:10:::1;12515:18;12536:23:::0;;;:11:::1;:23;::::0;;;;;;;;12587:12:::1;:24:::0;;;;;-1:-1:-1;;;12587:34:42;;;;;;;;;6462:44:37;;-1:-1:-1;;;;;12536:23:42;;::::1;::::0;12587:34;;::::1;::::0;12515:18;12673:30:::1;12536:23:::0;12587:34;12673:9:::1;:30::i;:::-;12631:72;;;;6529:10:37::2;319:1:12;675:34:43;690:6;698:10;675:14;:34::i;:::-;6768:4:37::0;6801:1:::3;6797:12:::0;;::::3;6882:53;6797:12:::0;6768:4;6917:17;;6882:14:::3;:53::i;:::-;6875:60;;;;12713:1:42::2;;12724:44:::1;12735:10;12747:7;12756:6;12764:3;12724:10;:44::i;:::-;12505:270;;;;4536:1;6268:674:37::0;;;;;:::o;23961:228::-;24035:13;24074:45;;;;-1:-1:-1;;;;;24074:45:37;981:42:39;24137:45:37;;-1:-1:-1;;;24137:45:37;;-1:-1:-1;;;;;22049:32:54;;;24137:45:37;;;22031:51:54;-1:-1:-1;;;;;22118:32:54;;22098:18;;;22091:60;24137:34:37;;;;;;;22004:18:54;;24137:45:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;2782:3435::-;12548:10:42;12515:18;12536:23;;;:11;:23;;;;;;;;;12587:12;:24;;;;;-1:-1:-1;;;12587:34:42;;;;;;;;;2920:32:37;;-1:-1:-1;;;;;12536:23:42;;;;12587:34;;;;12515:18;12673:30;12536:23;12587:34;12673:9;:30::i;:::-;12631:72;;;;599:12:39::1;981:42:::0;;895:135;599:12:::1;-1:-1:-1::0;;;;;583:28:39::1;:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;583:28:39::1;;:58;;;;629:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;615:26:39::1;:10;-1:-1:-1::0;;;;;615:26:39::1;;583:58;577:126;;665:27;;-1:-1:-1::0;;;665:27:39::1;;;;;;;;;;;577:126;3143:4:37::0;3176:1:::2;3172:12:::0;;::::2;3516:10;3541:28;3172:12:::0;2997:17:::2;3541:28;:::i;:::-;3537:2674;;;3631:26;:8:::0;-1:-1:-1;;;3631:26:37::2;:::i;:::-;3627:902;;;867:29:51::0;;846:51;;999:2;982:20;;;1040:25;3760:23:37::2;3766:4:::0;982:20:51;1040:25;3760:5:37::2;:23::i;:::-;3659:139;;3537:2674;;3627:902;3861:27;:8:::0;2726:4:52::2;3861:27:37;:::i;:::-;3857:672;;;3909:14;3925:13:::0;3940:23:::2;;3987:32;:17;;:30;:32::i;:::-;3908:111;;;;;;;;4037:36;4043:4;4049:6;4057:5;4064:8;;4037:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;::::0;;;;-1:-1:-1;4037:5:37::2;::::0;-1:-1:-1;;;4037:36:37:i:2;:::-;3890:198;;;;3537:2674;;3857:672;4153:33;:8:::0;-1:-1:-1;;;;;;4153:33:37::2;:::i;:::-;4149:380;;;4206:14;4239:22;4258:2;4206:14:::0;4239:17;;:22:::2;:::i;:::-;4231:31;::::0;::::2;:::i;:::-;4223:40;;4206:57;;4281:23;;4307:17;;4325:2;4307:22;;;;;;;;;:::i;:::-;4281:48;;;;4347:37;4361:4;4367:6;4375:8;;4347:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;::::0;;;;-1:-1:-1;4347:13:37::2;::::0;-1:-1:-1;;;4347:37:37:i:2;:::-;4188:211;;;3537:2674;;4149:380;4485:29;::::0;-1:-1:-1;;;4485:29:37;;-1:-1:-1;;;;;;22355:26:54;;4485:29:37::2;::::0;::::2;22337:45:54::0;22310:18;;4485:29:37::2;22162:226:54::0;3537:2674:37::2;4851:24;:8:::0;-1:-1:-1;;;4851:24:37::2;:::i;:::-;4847:1364;;;4932:26;:8:::0;-1:-1:-1;;;4932:26:37::2;:::i;:::-;4928:904;;;867:29:51::0;;846:51;;999:2;982:20;;;1040:25;5061:26:37::2;5070:4:::0;982:20:51;1040:25;5061:8:37::2;:26::i;4928:904::-;5162:27;:8:::0;2726:4:52::2;5162:27:37;:::i;:::-;5158:674;;;5210:14;5226:13:::0;5241:23:::2;;5288:32;:17;;:30;:32::i;:::-;5209:111;;;;;;;;5338:39;5347:4;5353:6;5361:5;5368:8;;5338:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;::::0;;;;-1:-1:-1;5338:8:37::2;::::0;-1:-1:-1;;;5338:39:37:i:2;5158:674::-;5453:33;:8:::0;-1:-1:-1;;;;;;5453:33:37::2;:::i;:::-;5449:383;;;5506:14;5539:22;5558:2;5506:14:::0;5539:17;;:22:::2;:::i;:::-;5531:31;::::0;::::2;:::i;:::-;5523:40;;5506:57;;5581:23;;5607:17;;5625:2;5607:22;;;;;;;;;:::i;:::-;5581:48;;;;5647:40;5664:4;5670:6;5678:8;;5647:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;::::0;;;;-1:-1:-1;5647:16:37::2;::::0;-1:-1:-1;;;5647:40:37:i:2;4847:1364::-;6171:29;::::0;-1:-1:-1;;;6171:29:37;;-1:-1:-1;;;;;;22355:26:54;;6171:29:37::2;::::0;::::2;22337:45:54::0;22310:18;;6171:29:37::2;22162:226:54::0;4847:1364:37::2;2987:3230;;;12724:44:42::0;12735:10;12747:7;12756:6;12764:3;12724:10;:44::i;:::-;12505:270;;;;2782:3435:37;;;;:::o;5538:344:42:-;5803:10;5708:12;5786:28;;;:16;:28;;;;;5684:22;;5708:12;5831:44;5786:28;5862:6;5870:4;5831:30;:44::i;:::-;5824:51;;;;;5538:344;;;;;:::o;4307:234:41:-;981:42:39;583:12;:10;:12::i;:::-;-1:-1:-1;;;;;583:28:39;;:58;;;;629:12;:10;:12::i;:::-;-1:-1:-1;;;;;615:26:39;:10;-1:-1:-1;;;;;615:26:39;;583:58;577:126;;665:27;;-1:-1:-1;;;665:27:39;;;;;;;;;;;577:126;4484:50:41::1;4503:8;4513:9;;4524;4484:18;:50::i;18598:382:37:-:0;18676:4;276:1:12;18696:12:37;:37;18692:281;;-1:-1:-1;18742:4:37;;18598:382;-1:-1:-1;18598:382:37:o;18692:281::-;319:1:12;18765:12:37;:36;18761:212;;-1:-1:-1;18810:4:37;;18598:382;-1:-1:-1;18598:382:37:o;18761:212::-;362:1:12;18833:12:37;:36;18829:144;;-1:-1:-1;18878:4:37;;18598:382;-1:-1:-1;18598:382:37:o;18829:144::-;401:1:12;18901:12:37;:32;18897:76;;-1:-1:-1;18942:4:37;;18598:382;-1:-1:-1;18598:382:37:o;18897:76::-;-1:-1:-1;18968:5:37;;18598:382;-1:-1:-1;18598:382:37:o;18897:76::-;18598:382;;;:::o;23760:150::-;23844:58;;;2357:66;23844:58;;;22852:25:54;23882:13:37;22893:18:54;;;22886:34;;;;23897:4:37;22936:18:54;;;22929:60;23808:7:37;;22825:18:54;;23844:58:37;;;;;;;;;;;;23834:69;;;;;;23827:76;;23760:150;:::o;1053:312:8:-;-1:-1:-1;;1328:14:8;1324:23;1311:37;1307:2;1303:46;;1053:312::o;3039:361:40:-;3198:20;3234:12;3277:4;-1:-1:-1;;;;;3277:40:40;;3318:6;3326:5;3333:8;3343:1;3277:68;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3277:68:40;;;;;;;;;;;;:::i;:::-;3256:89;-1:-1:-1;3256:89:40;-1:-1:-1;3256:89:40;3355:38;;3376:17;;-1:-1:-1;;;3376:17:40;;;;;;;;;;;3355:38;3224:176;3039:361;;;;;;:::o;5353:120:52:-;-1:-1:-1;;;;;;5430:40:52;;;;;;;5353:120::o;7377:1080:40:-;7532:19;7567:27;7640:6;7648:8;7597:61;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;7597:61:40;;;;;;;;;;;;;;-1:-1:-1;;;;;7597:61:40;-1:-1:-1;;;7597:61:40;;;-1:-1:-1;7763:4:40;;7714:72;;7597:61;;-1:-1:-1;;7714:72:40;;-1:-1:-1;;;;;7763:4:40;;7597:61;;7714:72;;;:::i;:::-;;;;-1:-1:-1;;7714:72:40;;;;;;;;;;;;;;;-1:-1:-1;;;;;7714:72:40;-1:-1:-1;;;7714:72:40;;;8049:25;;7714:72;;-1:-1:-1;7714:72:40;;-1:-1:-1;;7972:4:40;7945:5;7913:231;7892:266;8214:4;8196:16;8192:27;8248:4;8242:11;8232:21;;8291:12;8283:6;8279:25;8273:4;8266:39;8347:12;8341:4;8333:6;8318:42;;8390:4;8384:11;8374:67;;8431:6;8425:13;8418:4;8410:6;8406:17;8399:40;1637:228;1752:58;;-1:-1:-1;;;1752:58:40;;1737:12;;-1:-1:-1;;;;;1752:30:40;;;;;:58;;1783:6;;1791:5;;1798:8;;1737:12;;1752:58;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1737:73;;1825:7;1820:38;;1841:17;;-1:-1:-1;;;1841:17:40;;;;;;;;;;;1820:38;1727:138;1637:228;;;;:::o;3360:229:42:-;3473:16;3519:63;:11;3551:10;3570:9;3519:20;:63::i;5306:226::-;5468:10;5385:4;5451:28;;;:16;:28;;;;;5496:29;5451:28;5516:8;5496:19;:29::i;7905:397::-;8079:4;;8120:39;;;;8131:17;8120:39;:::i;:::-;8224:10;8170:34;8207:28;;;:16;:28;;;;;;;;-1:-1:-1;;;;;;8207:41:42;;;;;;;;;8265:18;-1:-1:-1;;;;;8265:18:42;;;:30;;;;;-1:-1:-1;;7905:397:42;;;;;:::o;15104:355::-;15239:4;;;15298:39;;;;15309:7;15298:39;:::i;:::-;15259:78;;;;15347:12;15362:59;15390:8;15410;15362:15;:59::i;:::-;-1:-1:-1;;;;;15438:14:42;;;;;;;;-1:-1:-1;;;;15104:355:42;;;;;:::o;24214:378:37:-;24383:12;24455:4;24448:12;;24481:4;24474:12;;24500:15;24556:8;24566:7;24539:35;;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;24539:35:37;;;;;;;24529:46;;24539:35;24529:46;;;;-1:-1:-1;;;;;;25711:15:54;;;24418:167:37;;;25699:28:54;;;;25756:15;;;;25743:11;;;25736:36;25788:11;;;25781:27;25824:12;;;25817:28;25861:12;;24418:167:37;;;;;;;;;;;;24411:174;;24214:378;;;;;:::o;12339:769::-;12452:22;12504:26;12544:17;12575;12606:25;;12644:18;12655:6;12644:10;:18::i;:::-;12732:24;;;;;;12676:117;;-1:-1:-1;;;12676:117:37;;12490:172;;-1:-1:-1;12490:172:37;;-1:-1:-1;12490:172:37;;-1:-1:-1;12490:172:37;-1:-1:-1;12490:172:37;-1:-1:-1;12690:10:37;;12676:42;;:117;;12490:172;;;;;;12676:117;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12672:430;;13042:49;13062:4;13068:10;13080;13042:19;:49::i;:::-;13025:66;;12672:430;;;12943:50;12963:5;12970:10;12982;12943:19;:50::i;:::-;12926:67;;12672:430;12480:628;;;;;12339:769;;;:::o;1297:468:43:-;1462:10;1452:21;;;;:9;:21;;;;;;:32;;-1:-1:-1;;;;;;1452:32:43;-1:-1:-1;;;;;1452:32:43;;;;;1622:63;1494:202;;1462:10;1452:32;;1622:63;;1663:9;;1674;;;;1622:63;;;:::i;:::-;;;;-1:-1:-1;;1622:63:43;;;;;;;;;;;;;;-1:-1:-1;;;;;1622:63:43;-1:-1:-1;;;1622:63:43;;;1494:5;:202::i;:::-;1711:47;;-1:-1:-1;;;;;1711:47:43;;;1737:10;;1711:47;;;;;1297:468;;;;:::o;2188:2068:41:-;2717:10;1033:4:33;1060:31;;;:22;;:31;:22;:31;;;2425:10:41;;-1:-1:-1;;;;;1060:31:33;2670:494:41;;2746:41;:11;2774:10;2746:16;:41::i;:::-;2806:9;2801:271;2821:6;2817:1;:10;2801:271;;;2852:29;2884:10;;2895:1;2884:13;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;2852:45;-1:-1:-1;3002:55:41;3020:16;;;;2852:45;3020:16;:::i;:::-;3038:18;;;;:9;:18;:::i;:::-;3002:17;:55::i;:::-;-1:-1:-1;;2829:3:41;;2801:271;;;;2670:494;;;3092:11;;3088:76;;3126:27;;-1:-1:-1;;;3126:27:41;;3142:10;3126:27;;;269:51:54;242:18;;3126:27:41;123:203:54;3088:76:41;3241:10;3174:47;3224:28;;;:16;:28;;;;;3314:17;3224:28;3314:15;:17::i;:::-;3351:9;;-1:-1:-1;3382:9:41;3377:250;3397:6;3393:1;:10;3377:250;;;3424:28;3455:9;;3465:1;3455:12;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;3424:43;-1:-1:-1;3564:52:41;3581:15;;;;3424:43;3581:15;:::i;:::-;3598:17;;;;:8;:17;:::i;:::-;3564:16;:52::i;:::-;-1:-1:-1;;3405:3:41;;3377:250;;;-1:-1:-1;3646:9:41;;-1:-1:-1;3677:9:41;3672:260;3692:6;3688:1;:10;3672:260;;;3719:29;3751:9;;3761:1;3751:12;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;3719:44;-1:-1:-1;3860:61:41;3884:16;;;;3719:44;3884:16;:::i;:::-;3902:18;;;;:9;:18;:::i;:::-;3860:23;:61::i;:::-;-1:-1:-1;;3700:3:41;;3672:260;;;-1:-1:-1;3951:5:41;;-1:-1:-1;3978:9:41;3973:230;3993:6;3989:1;:10;3973:230;;;4020:24;4047:5;;4053:1;4047:8;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;4020:35;-1:-1:-1;4152:40:41;4165:11;;;;4020:35;4165:11;:::i;:::-;4178:13;;;;:4;:13;:::i;:::-;4152:12;:40::i;:::-;-1:-1:-1;;4001:3:41;;3973:230;;;-1:-1:-1;4218:31:41;;4238:10;;4218:31;;;;;2398:1858;;2188:2068;;;;;;;;:::o;673:213:33:-;93:3;1033:4;1060:22;;;;;;;;;;;-1:-1:-1;;;;;1060:31:33;;;;;;;;;;;;:47;750:77;;796:31;;-1:-1:-1;;;796:31:33;;;;;;;;;;;750:77;93:3;837:12;:22;;;;;;;;;;;-1:-1:-1;;;;;837:31:33;;;;;;;;;;;;:42;;-1:-1:-1;;;;;;837:42:33;;;;;;673:213::o;1442:480::-;-1:-1:-1;;;;;1541:24:33;;;;:48;;-1:-1:-1;;;;;;1569:20:33;;93:3;1569:20;1541:48;1537:119;;;1612:33;;-1:-1:-1;;;1612:33:33;;-1:-1:-1;;;;;287:32:54;;1612:33:33;;;269:51:54;242:18;;1612:33:33;123:203:54;1537:119:33;-1:-1:-1;;;;;1669:22:33;;;139:3;1669:22;;;;;;;;;;;:31;;;;;;;;;;;;:47;1665:124;;1739:39;;-1:-1:-1;;;1739:39:33;;-1:-1:-1;;;;;287:32:54;;1739:39:33;;;269:51:54;242:18;;1739:39:33;123:203:54;1665:124:33;93:3;1832:12;:22;;;;;;;;;;;-1:-1:-1;;;;;1832:31:33;;;;;;;;;;;;;;1798:22;;;;;;;;;;;;:31;;;;;;;;;;:65;;1832:31;;;;-1:-1:-1;;;;;;1798:65:33;;;;;;;1873:31;:42;;;;;;;;1442:480::o;2738:1781::-;2929:22;2953:12;-1:-1:-1;;;;;2985:17:33;;93:3;2985:17;;;;:52;;;3007:30;3016:4;3022:7;3031:5;3007:8;:30::i;:::-;3006:31;2985:52;2981:120;;;3060:30;;-1:-1:-1;;;3060:30:33;;-1:-1:-1;;;;;287:32:54;;3060:30:33;;;269:51:54;242:18;;3060:30:33;123:203:54;2981:120:33;3114:8;3126:1;3114:13;3110:50;;3136:24;;-1:-1:-1;;;3136:24:33;;;;;;;;;;;3110:50;3233:8;-1:-1:-1;;;;;3219:23:33;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3219:23:33;-1:-1:-1;;;;;;3325:19:33;;;3286:18;3325:19;;;;;;;;;;;:28;;;;;;;;;;;3211:31;;-1:-1:-1;3325:28:33;;;-1:-1:-1;3363:197:33;-1:-1:-1;;;;;3370:20:33;;;;;;:40;;-1:-1:-1;;;;;;3394:16:33;;93:3;3394:16;;3370:40;:65;;;;;3427:8;3414:10;:21;3370:65;3363:197;;;3471:4;3451:5;3457:10;3451:17;;;;;;;;:::i;:::-;-1:-1:-1;;;;;3451:24:33;;;:17;;;;;;;;;;:24;;;;3496:18;;;:12;:18;;;;;;;;;;:27;;;;;;;;;;;;;;;;;3537:12;;;;:::i;:::-;;;;3363:197;;;-1:-1:-1;;;;;4230:16:33;;93:3;4230:16;4226:75;;4269:5;4275:14;4288:1;4275:10;:14;:::i;:::-;4269:21;;;;;;;;:::i;:::-;;;;;;;4262:28;;4226:75;4492:10;4485:5;4478:25;4464:49;2738:1781;;;;;;;:::o;2134:311:42:-;2312:27;2261:9;276:1:12;675:34:43;690:6;698:10;675:14;:34::i;:::-;2355:62:42::1;:11;2383:10;2405:9:::0;2355:16:::1;:62::i;:::-;2434:4;;2427:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;2427:11:42;;2134:311;-1:-1:-1;;;;;;;;;2134:311:42:o;4550:358::-;4724:27;4675:8;319:1:12;675:34:43;690:6;698:10;675:14;:34::i;:::-;4834:10:42::1;4767:47;4817:28:::0;;;:16:::1;:28;::::0;;;;4855:25:::1;4817:28:::0;4871:8;4855:15:::1;:25::i;:::-;4897:4;;4890:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;4890:11:42;;4550:358;-1:-1:-1;;;;;;;;;;4550:358:42:o;6302:925::-;6499:27;6451:7;362:1:12;675:34:43;690:6;698:10;675:14;:34::i;:::-;6543:18:42::1;::::0;;6619:45:::1;::::0;;::::1;6630:6:::0;6619:45:::1;:::i;:::-;6542:122:::0;;-1:-1:-1;6542:122:42;-1:-1:-1;6542:122:42;-1:-1:-1;;;;;;;6793:41:42;::::1;-1:-1:-1::0;;;6793:41:42::1;::::0;:88:::1;;-1:-1:-1::0;;;;;;;6838:43:42;::::1;-1:-1:-1::0;;;6838:43:42::1;6793:88;6776:158;;;6899:35;::::0;-1:-1:-1;;;6899:35:42;;-1:-1:-1;;;;;;2411:33:54;;6899:35:42::1;::::0;::::1;2393:52:54::0;2366:18;;6899:35:42::1;2249:202:54::0;6776:158:42::1;7391:10:::0;7321:4;7374:28;;;:16;:28;;;;;;;;-1:-1:-1;;;;;;7374:41:42;;;;;;;;;7432:18;-1:-1:-1;;;;;7432:18:42;:32;6944:83:::1;;6997:30;::::0;-1:-1:-1;;;6997:30:42;;-1:-1:-1;;;;;;2411:33:54;;6997:30:42::1;::::0;::::1;2393:52:54::0;2366:18;;6997:30:42::1;2249:202:54::0;6944:83:42::1;7092:10;7038:34;7075:28:::0;;;:16:::1;:28;::::0;;;;;;;-1:-1:-1;;;;;;7075:41:42;;::::1;::::0;;;;;;;;;7126:30;;-1:-1:-1;;;;;7166:28:42;::::1;-1:-1:-1::0;;;;;;7126:30:42::1;::::0;;;::::1;-1:-1:-1::0;;;7126:30:42::1;7166:28:::0;;;;-1:-1:-1;;;;;;7166:28:42;;;;;;;::::1;::::0;;7212:8;-1:-1:-1;6302:925:42;;;;;;;:::o;12781:1306::-;12955:27;12914:4;401:1:12;675:34:43;690:6;698:10;675:14;:34::i;:::-;12999:17:42::1;::::0;;13072:43:::1;::::0;;::::1;13083:4:::0;13072:43:::1;:::i;:::-;12998:117:::0;;-1:-1:-1;12998:117:42;-1:-1:-1;12998:117:42;-1:-1:-1;13125:19:42::1;::::0;13190:8:::1;:27;;;;;;;;:::i;:::-;;:46;;;;-1:-1:-1::0;;;;;;;13221:15:42;::::1;::::0;13190:46:::1;13186:869;;;-1:-1:-1::0;13278:10:42::1;13266:23;::::0;;;:11:::1;:23;::::0;;;;;-1:-1:-1;;;;;13266:23:42::1;13436:25:::0;;13432:104:::1;;13488:33;::::0;-1:-1:-1;;;13488:33:42;;-1:-1:-1;;;;;287:32:54;;13488:33:42::1;::::0;::::1;269:51:54::0;242:18;;13488:33:42::1;123:203:54::0;13432:104:42::1;13561:10;13549:23;::::0;;;:11:::1;:23;::::0;;;;:30;;-1:-1:-1;;;;;;13549:30:42::1;-1:-1:-1::0;;;;;13549:30:42;::::1;;::::0;;13186:869:::1;;;13612:12;13600:8;:24;;;;;;;;:::i;:::-;::::0;13596:459:::1;;-1:-1:-1::0;;;;;13773:25:42;::::1;::::0;13769:104:::1;;13825:33;::::0;-1:-1:-1;;;13825:33:42;;-1:-1:-1;;;;;287:32:54;;13825:33:42::1;::::0;::::1;269:51:54::0;242:18;;13825:33:42::1;123:203:54::0;13769:104:42::1;-1:-1:-1::0;13913:10:42::1;13900:24;::::0;;;:12:::1;:24;::::0;;;;;;;-1:-1:-1;;;;;;13900:34:42;::::1;::::0;;;;;;;;;-1:-1:-1;;;;;13948:41:42;;::::1;-1:-1:-1::0;;;;;;13948:41:42;::::1;;::::0;;;13900:34:::1;13596:459;;;14027:17;;-1:-1:-1::0;;;14027:17:42::1;;;;;;;;;;;13596:459;-1:-1:-1::0;14072:8:42;12781:1306;-1:-1:-1;;;;;;;;12781:1306:42:o;15766:3129::-;15890:28;16367:20;;16351:37;;16435:2;16418:20;;;;16467:25;;16515:15;;;16575:20;16559:37;;16628:20;;;;16680:25;;;16728:15;;;16788:20;16772:37;;16847:20;;;;16905:25;16467;16993;;;16989:52;;17027:14;;-1:-1:-1;;;17027:14:42;;;;;;;;;;;16989:52;17057:9;17052:1795;17072:6;17068:1;:10;17052:1795;;;17099:13;17115:5;;17121:1;17115:8;;;;;;;:::i;:::-;;;;;;;17099:24;;276:1:12;17448:5:42;:30;17444:1393;;17498:38;17516:6;17524:8;;17533:1;17524:11;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;17498:38::-;;17444:1393;;;319:1:12;17879:5:42;:29;17875:962;;17928:37;17945:6;17953:8;;17962:1;17953:11;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;17875:962::-;362:1:12;18308:5:42;:29;18304:533;;18357:44;18381:6;18389:8;;18398:1;18389:11;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;18304:533::-;401:1:12;18744:5:42;:25;18740:97;;18789:33;18802:6;18810:8;;18819:1;18810:11;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;18789:33::-;;18740:97;-1:-1:-1;17080:3:42;;17052:1795;;;;18874:14;;18856:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;18856:32:42;;15766:3129;-1:-1:-1;;;;;;;;;;;;;;15766:3129:42:o;1871:217:40:-;1979:54;;-1:-1:-1;;;1979:54:40;;1964:12;;-1:-1:-1;;;;;1979:30:40;;;;;:54;;2010:6;;1964:12;;2021:8;;2031:1;;1979:54;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1964:69;;2048:7;2043:38;;2064:17;;-1:-1:-1;;;2064:17:40;;;;;;;;;;;2787:344:42;2912:27;2955:12;3002:34;;;;3013:4;3002:34;:::i;:::-;2977:59;-1:-1:-1;2977:59:42;-1:-1:-1;3046:78:42;:11;3073:10;2977:59;3112:9;3046:15;:78::i;:::-;2945:186;2787:344;;;;;:::o;4914:386::-;5149:10;5082:47;5132:28;;;:16;:28;;;;;5037:29;;5219:34;;;;5230:4;5219:34;:::i;:::-;5192:61;-1:-1:-1;5192:61:42;-1:-1:-1;5263:30:42;:10;5192:61;5284:8;5263:14;:30::i;7477:422::-;7625:29;7670:18;7732:36;;;;7743:7;7732:36;:::i;:::-;7833:10;7779:34;7816:28;;;:16;:28;;;;;;;;-1:-1:-1;;;;;;7816:41:42;;;;;;;;;;;;7867:25;;-1:-1:-1;;;;;;7867:25:42;;;7698:70;7477:422;-1:-1:-1;;;;;7477:422:42:o;14093:592::-;14224:29;14269:17;;14362:43;;;;14373:4;14362:43;:::i;:::-;14321:84;-1:-1:-1;14321:84:42;;-1:-1:-1;14321:84:42;-1:-1:-1;14431:15:42;14419:8;:27;;;;;;;;:::i;:::-;;:46;;;;-1:-1:-1;;;;;;;14450:15:42;;;14419:46;14415:264;;;14500:10;14488:23;;;;:11;:23;;;;;14481:30;;-1:-1:-1;;;;;;14481:30:42;;;14415:264;;;14544:12;14532:8;:24;;;;;;;;:::i;:::-;;14528:151;;14592:10;14579:24;;;;:12;:24;;;;;;;;-1:-1:-1;;;;;;14579:34:42;;;;;;;;;14572:41;;-1:-1:-1;;;;;;14572:41:42;;;14528:151;;4793:228:40;4904:54;;-1:-1:-1;;;4904:54:40;;4889:12;;-1:-1:-1;;;;;4904:30:40;;;;;:54;;4935:6;;4889:12;;4946:8;;4956:1;;4904:54;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4889:69;;4973:7;4968:46;;4987:27;;;-1:-1:-1;;;;;31529:32:54;;31511:51;;5012:1:40;31593:2:54;31578:18;;31571:34;-1:-1:-1;;;;;;;;;;;4987:27:40;31484:18:54;4987:27:40;;;;;;;4879:142;4793:228;;;:::o;901:331:43:-;1015:10;985:17;1005:21;;;:9;:21;;;;;;-1:-1:-1;;;;;1005:21:43;1040:31;;1036:190;;1159:56;;-1:-1:-1;;;1159:56:43;;1184:10;1159:56;;;31856:34:54;-1:-1:-1;;;;;31926:15:54;;;31906:18;;;31899:43;31958:18;;;31951:34;;;1159:24:43;;;;;31791:18:54;;1159:56:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1036:190;975:257;901:331;;:::o;7187:3574:37:-;7346:26;7687:28;:8;3306:4:52;7687:28:37;:::i;:::-;7683:3072;;;7777:26;:8;-1:-1:-1;;;7777:26:37;:::i;:::-;7773:1099;;;867:29:51;;846:51;;999:2;982:20;;;1040:25;7920:42:37;7938:10;982:20:51;1040:25;7920:11:37;:42::i;:::-;7906:56;;7805:172;;7683:3072;;7773:1099;8040:27;:8;2726:4:52;8040:27:37;:::i;:::-;8036:836;;;8088:14;8104:13;8119:23;;8166:32;:17;;:30;:32::i;:::-;8230:14;;;8242:1;8230:14;;;;;;;;;8087:111;;-1:-1:-1;8087:111:37;;-1:-1:-1;8087:111:37;;-1:-1:-1;8087:111:37;-1:-1:-1;8230:14:37;;;;;;;;;;;;;;;;;;;;8216:28;;8279:55;8297:10;8310:6;8318:5;8325:8;;8279:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;8279:11:37;;-1:-1:-1;;;8279:55:37:i;:::-;8262:11;8274:1;8262:14;;;;;;;;:::i;:::-;;;;;;:72;;;;8069:280;;;;7683:3072;;8036:836;8414:33;:8;-1:-1:-1;;;;;;8414:33:37;:::i;:::-;8410:462;;;8467:14;8500:22;8519:2;8467:14;8500:17;;:22;:::i;:::-;8492:31;;;:::i;:::-;8484:40;;;-1:-1:-1;8542:23:37;;8568:22;:17;8586:2;8568:17;;:22;:::i;:::-;8622:14;;;8634:1;8622:14;;;;;;;;;8542:48;;-1:-1:-1;8542:48:37;;-1:-1:-1;8622:14:37;;;;;;;;;;;;;;;;;;;;8608:28;;8671:56;8697:10;8710:6;8718:8;;8671:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;8671:19:37;;-1:-1:-1;;;8671:56:37:i;:::-;8654:11;8666:1;8654:14;;;;;;;;:::i;:::-;;;;;;:73;;;;8449:293;;;7683:3072;;8410:462;8828:29;;-1:-1:-1;;;8828:29:37;;-1:-1:-1;;;;;;22355:26:54;;8828:29:37;;;22337:45:54;22310:18;;8828:29:37;22162:226:54;7683:3072:37;9194:24;:8;-1:-1:-1;;;9194:24:37;:::i;:::-;9190:1565;;;9276:26;:8;-1:-1:-1;;;9276:26:37;:::i;:::-;9272:1104;;;867:29:51;;846:51;;999:2;982:20;;;1040:25;9423:45:37;9444:10;982:20:51;1040:25;9423:14:37;:45::i;:::-;9405:63;-1:-1:-1;9190:1565:37;;-1:-1:-1;;;9190:1565:37;9272:1104;9542:27;:8;2726:4:52;9542:27:37;:::i;:::-;9538:838;;;9590:14;9606:13;9621:23;;9668:32;:17;;:30;:32::i;:::-;9732:14;;;9744:1;9732:14;;;;;;;;;9589:111;;-1:-1:-1;9589:111:37;;-1:-1:-1;9589:111:37;;-1:-1:-1;9589:111:37;-1:-1:-1;9732:14:37;;;;;;;;;;;;;;;;;;;;9718:28;;9781:58;9802:10;9815:6;9823:5;9830:8;;9781:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;9781:14:37;;-1:-1:-1;;;9781:58:37:i;9538:838::-;9915:33;:8;-1:-1:-1;;;;;;9915:33:37;:::i;:::-;9911:465;;;9968:14;10001:22;10020:2;9968:14;10001:17;;:22;:::i;:::-;9993:31;;;:::i;:::-;9985:40;;;-1:-1:-1;10043:23:37;;10069:22;:17;10087:2;10069:17;;:22;:::i;:::-;10123:14;;;10135:1;10123:14;;;;;;;;;10043:48;;-1:-1:-1;10043:48:37;;-1:-1:-1;10123:14:37;;;;;;;;;;;;;;;;;;;;10109:28;;10172:59;10201:10;10214:6;10222:8;;10172:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;10172:22:37;;-1:-1:-1;;;10172:59:37:i;9190:1565::-;10715:29;;-1:-1:-1;;;10715:29:37;;-1:-1:-1;;;;;;22355:26:54;;10715:29:37;;;22337:45:54;22310:18;;10715:29:37;22162:226:54;1395:236:40;1534:4;;1562:51;;1474:150;;1508:4;;-1:-1:-1;;;;;1534:4:40;;;;1562:51;;1602:10;;;;1562:51;;;:::i;:::-;;;;-1:-1:-1;;1562:51:40;;;;;;;;;;;;;;-1:-1:-1;;;;;1562:51:40;-1:-1:-1;;;1562:51:40;;;1474:13;:150::i;1269:333:51:-;1372:14;;1403:23;1372:14;1467:23;1487:2;1372:14;1467:17;;:23;:::i;:::-;1459:32;;;:::i;:::-;1451:41;;;-1:-1:-1;1526:24:51;1547:2;1544;1526:17;;:24;:::i;:::-;1518:33;;;:::i;:::-;1510:42;-1:-1:-1;1573:22:51;:17;1591:2;1573:17;;:22;:::i;:::-;1269:333;;;;-1:-1:-1;1562:33:51;-1:-1:-1;;;1269:333:51:o;4297:245:40:-;4442:4;;4470:54;;4379:156;;4416:4;;-1:-1:-1;;;;;4442:4:40;;;;4470:54;;4513:10;;;;4470:54;;;:::i;:::-;;;;-1:-1:-1;;4470:54:40;;;;;;;;;;;;;;-1:-1:-1;;;;;4470:54:40;-1:-1:-1;;;4470:54:40;;;4379:16;:156::i;4548:239::-;4666:58;;-1:-1:-1;;;4666:58:40;;4651:12;;-1:-1:-1;;;;;4666:30:40;;;;;:58;;4697:6;;4705:5;;4712:8;;4651:12;;4666:58;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4651:73;;4739:7;4734:46;;4753:27;;;-1:-1:-1;;;;;31529:32:54;;31511:51;;4778:1:40;31593:2:54;31578:18;;31571:34;-1:-1:-1;;;;;;;;;;;4753:27:40;31484:18:54;4753:27:40;;;;;;;4641:146;4548:239;;;;:::o;2022:1705:32:-;2188:22;2212:12;-1:-1:-1;;;;;2244:17:32;;93:3;2244:17;;;;:43;;;2266:21;2275:4;2281:5;2266:8;:21::i;:::-;2265:22;2244:43;2240:86;;;2296:30;;-1:-1:-1;;;2296:30:32;;-1:-1:-1;;;;;287:32:54;;2296:30:32;;;269:51:54;242:18;;2296:30:32;123:203:54;2240:86:32;2340:8;2352:1;2340:13;2336:50;;2362:24;;-1:-1:-1;;;2362:24:32;;;;;;;;;;;2336:50;2459:8;-1:-1:-1;;;;;2445:23:32;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2445:23:32;-1:-1:-1;;;;;;2551:19:32;;;2512:18;2551:19;;;;;;;;;;;2437:31;;-1:-1:-1;2551:19:32;;;-1:-1:-1;2580:188:32;-1:-1:-1;;;;;2587:20:32;;;;;;:40;;-1:-1:-1;;;;;;2611:16:32;;93:3;2611:16;;2587:40;:65;;;;;2644:8;2631:10;:21;2587:65;2580:188;;;2688:4;2668:5;2674:10;2668:17;;;;;;;;:::i;:::-;-1:-1:-1;;;;;2668:24:32;;;:17;;;;;;;;;;:24;;;;2713:18;;;:12;:18;;;;;;;;;;;;;;;;2745:12;;;;:::i;:::-;;;;2580:188;;;-1:-1:-1;;;;;3438:16:32;;93:3;3438:16;3434:75;;3477:5;3483:14;3496:1;3483:10;:14;:::i;:::-;3477:21;;;;;;;;:::i;:::-;;;;;;;3470:28;;3434:75;3700:10;3693:5;3686:25;3672:49;2022:1705;;;;;;:::o;2479:253:33:-;2633:4;93:3;-1:-1:-1;;;;;2660:17:33;;;;;;:65;;-1:-1:-1;;;;;;;2681:19:33;;;139:3;2681:19;;;;;;;;;;;:28;;;;;;;;;;;;;:44;;;2479:253::o;1847:169:32:-;1930:4;93:3;-1:-1:-1;;;;;1953:17:32;;;;;;:56;;-1:-1:-1;;;;;;;1974:19:32;;;139:3;1974:19;;;;;;;;;;;;;;:35;;;1847:169::o;14691:407:42:-;14821:12;;14884:8;:27;;;;;;;;:::i;:::-;;:46;;;;-1:-1:-1;;;;;;;14915:15:42;;;14884:46;14880:107;;;-1:-1:-1;14965:10:42;14953:23;;;;:11;:23;;;;;;-1:-1:-1;;;;;14953:23:42;14880:107;15012:12;15000:8;:24;;;;;;;;:::i;:::-;;14996:96;;-1:-1:-1;15060:10:42;15047:24;;;;:12;:24;;;;;;;;-1:-1:-1;;;;;;15047:34:42;;;;;;;;;;-1:-1:-1;;;;;15047:34:42;14691:407;;;;:::o;20508:3201:37:-;20625:26;20665:17;;20727:25;20665:17;20727:25;20665:17;20996:16;;;;:6;:16;:::i;:::-;20975:37;;-1:-1:-1;20975:37:37;-1:-1:-1;21053:8:37;21059:1;21057;20975:37;;21053:8;:::i;:::-;21046:16;;;:::i;:::-;21039:24;;;-1:-1:-1;21104:9:37;21110:2;21108:1;21104:3;;:9;:::i;:::-;21097:17;;;:::i;:::-;21090:25;;;-1:-1:-1;21142:8:37;:3;21146:2;21142:3;;:8;:::i;:::-;21129:21;;;;20961:200;;22158:40;22201:793;;;;;;;;98:66:50;22249:16:37;;22201:793;;;;22289:10;-1:-1:-1;;;;;22201:793:37;;;;;22324:6;:12;;;22201:793;;;;22378:6;:15;;;;;;;;:::i;:::-;22368:26;;;;;;;:::i;:::-;;;;;;;;;22201:793;;;;22436:15;;;;:6;:15;:::i;:::-;22426:26;;;;;;;:::i;:::-;;;;;;;;22201:793;;;;22484:27;:6;:25;:27::i;:::-;22201:793;;;;22551:35;:6;:33;:35::i;:::-;22201:793;;;;22624:6;:25;;;22201:793;;;;22681:27;:6;:25;:27::i;:::-;22201:793;;;;22748:35;:6;:33;:35::i;:::-;22201:793;;;;22833:23;;;;:6;:23;:::i;:::-;22823:34;;;;;;;:::i;:::-;;;;;;;;22201:793;;;;22887:10;22201:793;;;;;;22927:10;22201:793;;;;;;22967:12;981:42:39;;895:135;22967:12:37;-1:-1:-1;;;;;22201:793:37;;;23547:3;23522:29;;22158:836;;-1:-1:-1;;;;;;;23656:17:37;:15;:17::i;:::-;23611:81;;-1:-1:-1;;;;;;25711:15:54;;;23611:81:37;;;25699:28:54;25756:15;;;;25743:11;;;25736:36;25788:11;;;25781:27;25824:12;;;25817:28;;;25861:12;;23611:81:37;;;;;;;;;;;;23579:113;;21680:2023;;20508:3201;;;;;;;:::o;2448:248:0:-;2559:7;2683:8;2667:10;2659:19;;:33;;2643:3;2628:10;2620:19;;:26;;2590:9;:17;;2606:1;2590:17;;;2602:1;2590:17;2589:58;;;:104;;2448:248;-1:-1:-1;;;;2448:248:0:o;440:178:32:-;93:3;702:4;725:22;;;;;;;;;;;-1:-1:-1;;;;;725:22:32;:38;500:68;;537:31;;-1:-1:-1;;;537:31:32;;;;;;;;;;;500:68;93:3;578:12;:22;;;;;;;;;;;;:33;;-1:-1:-1;;;;;;578:33:32;;;;;;440:178::o;1014:403::-;-1:-1:-1;;;;;1096:24:32;;;;:48;;-1:-1:-1;;;;;;1124:20:32;;93:3;1124:20;1096:48;1092:119;;;1167:33;;-1:-1:-1;;;1167:33:32;;-1:-1:-1;;;;;287:32:54;;1167:33:32;;;269:51:54;242:18;;1167:33:32;123:203:54;1092:119:32;-1:-1:-1;;;;;1224:22:32;;;139:3;1224:22;;;;;;;;;;;;:38;1220:90;;1271:39;;-1:-1:-1;;;1271:39:32;;-1:-1:-1;;;;;287:32:54;;1271:39:32;;;269:51:54;242:18;;1271:39:32;123:203:54;1220:90:32;93:3;1345:12;:22;;;;;;;;;;;;;;-1:-1:-1;;;;;1320:22:32;;;;;;;;;:47;;1345:22;;;;-1:-1:-1;;;;;;1320:47:32;;;;;;1377:22;;;;:33;;;;;;;;;;1014:403::o;1928:545:33:-;-1:-1:-1;;;;;2095:24:33;;;;:48;;-1:-1:-1;;;;;;2123:20:33;;93:3;2123:20;2095:48;2091:120;;;2166:34;;-1:-1:-1;;;2166:34:33;;-1:-1:-1;;;;;287:32:54;;2166:34:33;;;269:51:54;242:18;;2166:34:33;123:203:54;2091:120:33;-1:-1:-1;;;;;2224:23:33;;;:12;:23;;;;;;;;;;;:32;;;;;;;;;;;;;:44;;;;2220:115;;2291:33;;-1:-1:-1;;;2291:33:33;;-1:-1:-1;;;;;287:32:54;;2291:33:33;;;269:51:54;242:18;;2291:33:33;123:203:54;2220:115:33;-1:-1:-1;;;;;2379:22:33;;;:12;:22;;;;;;;;;;;:31;;;;;;;;;;;;;;2344:23;;;;;;;;;;;:32;;;;;;;;:66;;2379:31;;;;-1:-1:-1;;;;;;2344:66:33;;;;;;;2420:31;;;;:46;;;;;1928:545::o;1423:418:32:-;-1:-1:-1;;;;;1523:24:32;;;;:48;;-1:-1:-1;;;;;;1551:20:32;;93:3;1551:20;1523:48;1519:120;;;1594:34;;-1:-1:-1;;;1594:34:32;;-1:-1:-1;;;;;287:32:54;;1594:34:32;;;269:51:54;242:18;;1594:34:32;123:203:54;1519:120:32;-1:-1:-1;;;;;1652:23:32;;;:12;:23;;;;;;;;;;;;;:35;;;;1648:81;;1696:33;;-1:-1:-1;;;1696:33:32;;-1:-1:-1;;;;;287:32:54;;1696:33:32;;;269:51:54;242:18;;1696:33:32;123:203:54;1648:81:32;-1:-1:-1;;;;;1765:22:32;;;:12;:22;;;;;;;;;;;;;;1739:23;;;;;;;;:48;;1765:22;;;;-1:-1:-1;;;;;;1739:48:32;;;;;;;1797:22;;;:37;;;;;1423:418::o;2637:396:40:-;2798:16;2883:4;;2911:57;;2759:23;;2798:16;2817:162;;2857:4;;-1:-1:-1;;;;;2883:4:40;;2911:57;;2957:10;;;;2911:57;;;:::i;:::-;;;;-1:-1:-1;;2911:57:40;;;;;;;;;;;;;;-1:-1:-1;;;;;2911:57:40;-1:-1:-1;;;2911:57:40;;;2817:19;:162::i;:::-;2798:181;;3011:3;3000:26;;;;;;;;;;;;:::i;:::-;2989:37;2637:396;-1:-1:-1;;;;;2637:396:40:o;3406:342::-;3550:20;3586:12;3629:4;-1:-1:-1;;;;;3629:40:40;;3670:6;3678:1;3681:8;3691:1;3629:64;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3629:64:40;;;;;;;;;;;;:::i;:::-;3608:85;-1:-1:-1;3608:85:40;-1:-1:-1;3608:85:40;3703:38;;3724:17;;-1:-1:-1;;;3724:17:40;;;;;;;;;;;5571:447;5696:21;5719:23;5758:16;5777:168;5820:4;5846;;;;;;;;-1:-1:-1;;;;;5846:4:40;5923:10;;5874:60;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;5874:60:40;;;;;;;;;;;;;;-1:-1:-1;;;;;5874:60:40;-1:-1:-1;;;5874:60:40;;;5777:22;:168::i;:::-;5758:187;;5988:3;5977:34;;;;;;;;;;;;:::i;:::-;5955:56;;;;-1:-1:-1;5571:447:40;-1:-1:-1;;;;;5571:447:40:o;6024:372::-;6186:20;6222:12;6265:4;-1:-1:-1;;;;;6265:40:40;;6306:6;6314:5;6321:8;6331:1;6265:68;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;6265:68:40;;;;;;;;;;;;:::i;:::-;6244:89;-1:-1:-1;6244:89:40;-1:-1:-1;6244:89:40;6343:46;;6362:27;;;-1:-1:-1;;;;;31529:32:54;;31511:51;;6387:1:40;31593:2:54;31578:18;;31571:34;-1:-1:-1;;;;;;;;;;;6362:27:40;31484:18:54;6362:27:40;;;;;;;6212:184;6024:372;;;;;;:::o;6402:353::-;6549:20;6585:12;6628:4;-1:-1:-1;;;;;6628:40:40;;6669:6;6677:1;6680:8;6690:1;6628:64;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;6628:64:40;;;;;;;;;;;;:::i;:::-;6607:85;-1:-1:-1;6607:85:40;-1:-1:-1;6607:85:40;6702:46;;6721:27;;;-1:-1:-1;;;;;31529:32:54;;31511:51;;6746:1:40;31593:2:54;31578:18;;31571:34;-1:-1:-1;;;;;;;;;;;6721:27:40;31484:18:54;6721:27:40;;;;;;;6575:180;6402:353;;;;;:::o;3587:162:1:-;3679:7;-1:-1:-1;;;;;3718:23:1;;;;3039:31;3705:37;2959:118;3410:171;3510:7;3536:38;3550:6;:23;;;2887:3;2868:22;;2780:117;3251:153;3343:7;-1:-1:-1;;;;;3382:14:1;;;;3039:31;3369:28;2959:118;3083:162;3183:7;3223:14;;;;2887:3;2868:22;3209:29;2780:117;331:131:54;-1:-1:-1;;;;;406:31:54;;396:42;;386:70;;452:1;449;442:12;386:70;331:131;:::o;467:134::-;535:20;;564:31;535:20;564:31;:::i;606:347::-;657:8;667:6;721:3;714:4;706:6;702:17;698:27;688:55;;739:1;736;729:12;688:55;-1:-1:-1;762:20:54;;-1:-1:-1;;;;;794:30:54;;791:50;;;837:1;834;827:12;791:50;874:4;866:6;862:17;850:29;;926:3;919:4;910:6;902;898:19;894:30;891:39;888:59;;;943:1;940;933:12;958:612;1046:6;1054;1062;1070;1123:2;1111:9;1102:7;1098:23;1094:32;1091:52;;;1139:1;1136;1129:12;1091:52;1175:9;1162:23;1152:33;;1235:2;1224:9;1220:18;1207:32;1248:31;1273:5;1248:31;:::i;:::-;1298:5;-1:-1:-1;1354:2:54;1339:18;;1326:32;-1:-1:-1;;;;;1370:30:54;;1367:50;;;1413:1;1410;1403:12;1367:50;1452:58;1502:7;1493:6;1482:9;1478:22;1452:58;:::i;:::-;958:612;;;;-1:-1:-1;1529:8:54;-1:-1:-1;;;;958:612:54:o;1767:477::-;1846:6;1854;1862;1915:2;1903:9;1894:7;1890:23;1886:32;1883:52;;;1931:1;1928;1921:12;1883:52;1967:9;1954:23;1944:33;;2028:2;2017:9;2013:18;2000:32;-1:-1:-1;;;;;2047:6:54;2044:30;2041:50;;;2087:1;2084;2077:12;2041:50;2126:58;2176:7;2167:6;2156:9;2152:22;2126:58;:::i;:::-;1767:477;;2203:8;;-1:-1:-1;2100:84:54;;-1:-1:-1;;;;1767:477:54:o;2456:534::-;2571:6;2579;2587;2640:2;2628:9;2619:7;2615:23;2611:32;2608:52;;;2656:1;2653;2646:12;2608:52;2696:9;2683:23;-1:-1:-1;;;;;2721:6:54;2718:30;2715:50;;;2761:1;2758;2751:12;2715:50;2784:22;;2840:3;2822:16;;;2818:26;2815:46;;;2857:1;2854;2847:12;2815:46;2880:2;2929;2914:18;;2901:32;;-1:-1:-1;2980:2:54;2965:18;;;2952:32;;2456:534;-1:-1:-1;;;2456:534:54:o;3177:386::-;3259:8;3269:6;3323:3;3316:4;3308:6;3304:17;3300:27;3290:55;;3341:1;3338;3331:12;3290:55;-1:-1:-1;3364:20:54;;-1:-1:-1;;;;;3396:30:54;;3393:50;;;3439:1;3436;3429:12;3393:50;3476:4;3468:6;3464:17;3452:29;;3536:3;3529:4;3519:6;3516:1;3512:14;3504:6;3500:27;3496:38;3493:47;3490:67;;;3553:1;3550;3543:12;3568:160;3633:5;3678:2;3669:6;3664:3;3660:16;3656:25;3653:45;;;3694:1;3691;3684:12;3653:45;-1:-1:-1;3716:6:54;3568:160;-1:-1:-1;3568:160:54:o;3733:1850::-;4093:6;4101;4109;4117;4125;4133;4141;4149;4157;4210:3;4198:9;4189:7;4185:23;4181:33;4178:53;;;4227:1;4224;4217:12;4178:53;4267:9;4254:23;-1:-1:-1;;;;;4337:2:54;4329:6;4326:14;4323:34;;;4353:1;4350;4343:12;4323:34;4392:89;4473:7;4464:6;4453:9;4449:22;4392:89;:::i;:::-;4500:8;;-1:-1:-1;4366:115:54;-1:-1:-1;4588:2:54;4573:18;;4560:32;;-1:-1:-1;4604:16:54;;;4601:36;;;4633:1;4630;4623:12;4601:36;4672:91;4755:7;4744:8;4733:9;4729:24;4672:91;:::i;:::-;4782:8;;-1:-1:-1;4646:117:54;-1:-1:-1;4870:2:54;4855:18;;4842:32;;-1:-1:-1;4886:16:54;;;4883:36;;;4915:1;4912;4905:12;4883:36;4954:91;5037:7;5026:8;5015:9;5011:24;4954:91;:::i;:::-;5064:8;;-1:-1:-1;4928:117:54;-1:-1:-1;5152:2:54;5137:18;;5124:32;;-1:-1:-1;5168:16:54;;;5165:36;;;5197:1;5194;5187:12;5165:36;5236:91;5319:7;5308:8;5297:9;5293:24;5236:91;:::i;:::-;5346:8;;-1:-1:-1;5210:117:54;-1:-1:-1;5434:3:54;5419:19;;5406:33;;-1:-1:-1;5451:16:54;;;5448:36;;;5480:1;5477;5470:12;5448:36;;5503:74;5569:7;5558:8;5547:9;5543:24;5503:74;:::i;:::-;5493:84;;;3733:1850;;;;;;;;;;;:::o;5588:487::-;5705:6;5713;5766:2;5754:9;5745:7;5741:23;5737:32;5734:52;;;5782:1;5779;5772:12;5734:52;5822:9;5809:23;-1:-1:-1;;;;;5847:6:54;5844:30;5841:50;;;5887:1;5884;5877:12;5841:50;5926:89;6007:7;5998:6;5987:9;5983:22;5926:89;:::i;:::-;6034:8;;5900:115;;-1:-1:-1;5588:487:54;-1:-1:-1;;;;5588:487:54:o;6080:315::-;6148:6;6156;6209:2;6197:9;6188:7;6184:23;6180:32;6177:52;;;6225:1;6222;6215:12;6177:52;6264:9;6251:23;6283:31;6308:5;6283:31;:::i;:::-;6333:5;6385:2;6370:18;;;;6357:32;;-1:-1:-1;;;6080:315:54:o;6400:761::-;6618:2;6630:21;;;6700:13;;6603:18;;;6722:22;;;6570:4;;6797;;6775:2;6760:18;;;6824:17;;;6570:4;6869:195;6883:6;6880:1;6877:13;6869:195;;;6948:13;;-1:-1:-1;;;;;6944:39:54;6932:52;;7004:12;;;;7039:15;;;;6980:1;6898:9;6869:195;;;-1:-1:-1;;;;;;;;7122:32:54;;;;7115:4;7100:20;;;;7093:62;;;;-1:-1:-1;7081:3:54;;6400:761;-1:-1:-1;;6400:761:54:o;7166:250::-;7251:1;7261:113;7275:6;7272:1;7269:13;7261:113;;;7351:11;;;7345:18;7332:11;;;7325:39;7297:2;7290:10;7261:113;;;-1:-1:-1;;7408:1:54;7390:16;;7383:27;7166:250::o;7421:271::-;7463:3;7501:5;7495:12;7528:6;7523:3;7516:19;7544:76;7613:6;7606:4;7601:3;7597:14;7590:4;7583:5;7579:16;7544:76;:::i;:::-;7674:2;7653:15;-1:-1:-1;;7649:29:54;7640:39;;;;7681:4;7636:50;;7421:271;-1:-1:-1;;7421:271:54:o;7697:220::-;7846:2;7835:9;7828:21;7809:4;7866:45;7907:2;7896:9;7892:18;7884:6;7866:45;:::i;7922:131::-;-1:-1:-1;;;;;;7996:32:54;;7986:43;;7976:71;;8043:1;8040;8033:12;8058:245;8116:6;8169:2;8157:9;8148:7;8144:23;8140:32;8137:52;;;8185:1;8182;8175:12;8137:52;8224:9;8211:23;8243:30;8267:5;8243:30;:::i;8308:210::-;8397:6;8450:2;8438:9;8429:7;8425:23;8421:32;8418:52;;;8466:1;8463;8456:12;8418:52;-1:-1:-1;8489:23:54;;8308:210;-1:-1:-1;8308:210:54:o;9035:801::-;9195:4;9224:2;9264;9253:9;9249:18;9294:2;9283:9;9276:21;9317:6;9352;9346:13;9383:6;9375;9368:22;9421:2;9410:9;9406:18;9399:25;;9483:2;9473:6;9470:1;9466:14;9455:9;9451:30;9447:39;9433:53;;9521:2;9513:6;9509:15;9542:1;9552:255;9566:6;9563:1;9560:13;9552:255;;;9659:2;9655:7;9643:9;9635:6;9631:22;9627:36;9622:3;9615:49;9687:40;9720:6;9711;9705:13;9687:40;:::i;:::-;9677:50;-1:-1:-1;9785:12:54;;;;9750:15;;;;9588:1;9581:9;9552:255;;;-1:-1:-1;9824:6:54;;9035:801;-1:-1:-1;;;;;;;9035:801:54:o;9841:388::-;9909:6;9917;9970:2;9958:9;9949:7;9945:23;9941:32;9938:52;;;9986:1;9983;9976:12;9938:52;10025:9;10012:23;10044:31;10069:5;10044:31;:::i;:::-;10094:5;-1:-1:-1;10151:2:54;10136:18;;10123:32;10164:33;10123:32;10164:33;:::i;:::-;10216:7;10206:17;;;9841:388;;;;;:::o;10234:156::-;10300:20;;10360:4;10349:16;;10339:27;;10329:55;;10380:1;10377;10370:12;10395:679;10515:6;10523;10531;10539;10592:2;10580:9;10571:7;10567:23;10563:32;10560:52;;;10608:1;10605;10598:12;10560:52;10647:9;10634:23;10666:31;10691:5;10666:31;:::i;:::-;10716:5;-1:-1:-1;10772:2:54;10757:18;;10744:32;-1:-1:-1;;;;;10788:30:54;;10785:50;;;10831:1;10828;10821:12;10785:50;10870:89;10951:7;10942:6;10931:9;10927:22;10870:89;:::i;:::-;10978:8;;-1:-1:-1;10844:115:54;-1:-1:-1;11032:36:54;;-1:-1:-1;11064:2:54;11049:18;;11032:36;:::i;:::-;11022:46;;10395:679;;;;;;;:::o;11446:266::-;11534:6;11529:3;11522:19;11586:6;11579:5;11572:4;11567:3;11563:14;11550:43;-1:-1:-1;11638:1:54;11613:16;;;11631:4;11609:27;;;11602:38;;;;11694:2;11673:15;;;-1:-1:-1;;11669:29:54;11660:39;;;11656:50;;11446:266::o;11717:412::-;11959:1;11955;11950:3;11946:11;11942:19;11934:6;11930:32;11919:9;11912:51;11999:6;11994:2;11983:9;11979:18;11972:34;12042:2;12037;12026:9;12022:18;12015:30;11893:4;12062:61;12119:2;12108:9;12104:18;12096:6;12088;12062:61;:::i;:::-;12054:69;11717:412;-1:-1:-1;;;;;;11717:412:54:o;12134:127::-;12195:10;12190:3;12186:20;12183:1;12176:31;12226:4;12223:1;12216:15;12250:4;12247:1;12240:15;12266:275;12337:2;12331:9;12402:2;12383:13;;-1:-1:-1;;12379:27:54;12367:40;;-1:-1:-1;;;;;12422:34:54;;12458:22;;;12419:62;12416:88;;;12484:18;;:::i;:::-;12520:2;12513:22;12266:275;;-1:-1:-1;12266:275:54:o;12546:186::-;12594:4;-1:-1:-1;;;;;12619:6:54;12616:30;12613:56;;;12649:18;;:::i;:::-;-1:-1:-1;12715:2:54;12694:15;-1:-1:-1;;12690:29:54;12721:4;12686:40;;12546:186::o;12737:320::-;12812:5;12841:52;12857:35;12885:6;12857:35;:::i;:::-;12841:52;:::i;:::-;12832:61;;12916:6;12909:5;12902:21;12956:3;12947:6;12942:3;12938:16;12935:25;12932:45;;;12973:1;12970;12963:12;12932:45;12986:65;13044:6;13037:4;13030:5;13026:16;13021:3;12986:65;:::i;13062:235::-;13115:5;13168:3;13161:4;13153:6;13149:17;13145:27;13135:55;;13186:1;13183;13176:12;13135:55;13208:83;13287:3;13278:6;13272:13;13265:4;13257:6;13253:17;13208:83;:::i;13302:335::-;13381:6;13434:2;13422:9;13413:7;13409:23;13405:32;13402:52;;;13450:1;13447;13440:12;13402:52;13483:9;13477:16;-1:-1:-1;;;;;13508:6:54;13505:30;13502:50;;;13548:1;13545;13538:12;13502:50;13571:60;13623:7;13614:6;13603:9;13599:22;13571:60;:::i;13642:360::-;13853:6;13845;13840:3;13827:33;13923:2;13919:15;;;;-1:-1:-1;;13915:53:54;13879:16;;13904:65;;;13993:2;13985:11;;13642:360;-1:-1:-1;13642:360:54:o;14230:184::-;14300:6;14353:2;14341:9;14332:7;14328:23;14324:32;14321:52;;;14369:1;14366;14359:12;14321:52;-1:-1:-1;14392:16:54;;14230:184;-1:-1:-1;14230:184:54:o;14419:331::-;14524:9;14535;14577:8;14565:10;14562:24;14559:44;;;14599:1;14596;14589:12;14559:44;14628:6;14618:8;14615:20;14612:40;;;14648:1;14645;14638:12;14612:40;-1:-1:-1;;14674:23:54;;;14719:25;;;;;-1:-1:-1;14419:331:54:o;14755:337::-;-1:-1:-1;;14876:19:54;;14963:11;;;;14994:2;14986:11;;14983:103;;;15073:2;15067;15060:3;15056:2;15052:12;15049:1;15045:20;15041:29;15037:2;15033:38;15029:47;15020:56;;14983:103;;;14755:337;;;;:::o;15286:482::-;15523:6;15512:9;15505:25;15566:2;15561;15550:9;15546:18;15539:30;15486:4;15592:45;15633:2;15622:9;15618:18;15610:6;15592:45;:::i;:::-;15685:9;15677:6;15673:22;15668:2;15657:9;15653:18;15646:50;15713:49;15755:6;15747;15739;15713:49;:::i;:::-;15705:57;15286:482;-1:-1:-1;;;;;;;15286:482:54:o;16196:249::-;16265:6;16318:2;16306:9;16297:7;16293:23;16289:32;16286:52;;;16334:1;16331;16324:12;16286:52;16366:9;16360:16;16385:30;16409:5;16385:30;:::i;16450:500::-;16508:5;16515:6;16575:3;16562:17;16661:2;16657:7;16646:8;16630:14;16626:29;16622:43;16602:18;16598:68;16588:96;;16680:1;16677;16670:12;16588:96;16708:33;;16812:4;16799:18;;;-1:-1:-1;16760:21:54;;-1:-1:-1;;;;;;16829:30:54;;16826:50;;;16872:1;16869;16862:12;16826:50;16919:6;16903:14;16899:27;16892:5;16888:39;16885:59;;;16940:1;16937;16930:12;16955:1710;17186:2;17175:9;17168:21;17198:66;17260:2;17249:9;17245:18;17217:26;17236:6;17217:26;:::i;:::-;-1:-1:-1;;;;;80:31:54;68:44;;14:104;17198:66;17325:4;17317:6;17313:17;17300:31;17295:2;17284:9;17280:18;17273:59;17149:4;17375:55;17426:2;17418:6;17414:15;17406:6;17375:55;:::i;:::-;17449:6;17492:2;17486:3;17475:9;17471:19;17464:31;17518:74;17587:3;17576:9;17572:19;17558:12;17544;17518:74;:::i;:::-;17504:88;;17639:55;17690:2;17682:6;17678:15;17670:6;17639:55;:::i;:::-;17601:93;;17717:2;17713:7;17785:2;17773:9;17765:6;17761:22;17757:31;17751:3;17740:9;17736:19;17729:60;17812:65;17870:6;17854:14;17838;17812:65;:::i;:::-;17798:79;;17939:3;17931:6;17927:16;17914:30;17908:3;17897:9;17893:19;17886:59;18007:3;17999:6;17995:16;17982:30;17976:3;17965:9;17961:19;17954:59;18032:3;18022:13;;18096:3;18088:6;18084:16;18071:30;18066:2;18055:9;18051:18;18044:58;18149:56;18200:3;18192:6;18188:16;18180:6;18149:56;:::i;:::-;18111:94;;18269:2;18257:9;18249:6;18245:22;18241:31;18236:2;18225:9;18221:18;18214:59;18296:65;18354:6;18338:14;18322;18296:65;:::i;:::-;18282:79;;;18408:55;18459:2;18451:6;18447:15;18439:6;18408:55;:::i;:::-;18370:93;;;;18528:2;18516:9;18508:6;18504:22;18500:31;18494:3;18483:9;18479:19;18472:60;;;18549:65;18607:6;18591:14;18575;18549:65;:::i;:::-;18541:73;;;;;18652:6;18645:4;18634:9;18630:20;18623:36;16955:1710;;;;;:::o;18670:265::-;18747:6;18800:2;18788:9;18779:7;18775:23;18771:32;18768:52;;;18816:1;18813;18806:12;18768:52;18855:9;18842:23;18874:31;18899:5;18874:31;:::i;18940:545::-;19033:4;19039:6;19099:11;19086:25;19193:2;19189:7;19178:8;19162:14;19158:29;19154:43;19134:18;19130:68;19120:96;;19212:1;19209;19202:12;19120:96;19239:33;;19291:20;;;-1:-1:-1;;;;;;19323:30:54;;19320:50;;;19366:1;19363;19356:12;19320:50;19399:4;19387:17;;-1:-1:-1;19450:1:54;19446:14;;;19430;19426:35;19416:46;;19413:66;;;19475:1;19472;19465:12;19490:182;19547:6;19600:2;19588:9;19579:7;19575:23;19571:32;19568:52;;;19616:1;19613;19606:12;19568:52;19639:27;19656:9;19639:27;:::i;19677:127::-;19738:10;19733:3;19729:20;19726:1;19719:31;19769:4;19766:1;19759:15;19793:4;19790:1;19783:15;19809:328;19906:4;19964:11;19951:25;20058:2;20054:7;20043:8;20027:14;20023:29;20019:43;19999:18;19995:68;19985:96;;20077:1;20074;20067:12;19985:96;20098:33;;;;;19809:328;-1:-1:-1;;19809:328:54:o;20394:386::-;20579:25;;;-1:-1:-1;;;;;20640:32:54;;20635:2;20620:18;;20613:60;20709:2;20704;20689:18;;20682:30;;;-1:-1:-1;;20729:45:54;;20755:18;;20747:6;20729:45;:::i;20785:458::-;20865:6;20918:2;20906:9;20897:7;20893:23;20889:32;20886:52;;;20934:1;20931;20924:12;20886:52;20967:9;20961:16;-1:-1:-1;;;;;20992:6:54;20989:30;20986:50;;;21032:1;21029;21022:12;20986:50;21055:22;;21108:4;21100:13;;21096:27;-1:-1:-1;21086:55:54;;21137:1;21134;21127:12;21086:55;21160:77;21229:7;21224:2;21218:9;21213:2;21209;21205:11;21160:77;:::i;21248:604::-;-1:-1:-1;;;21606:3:54;21599:20;21581:3;21648:6;21642:13;21664:74;21731:6;21727:1;21722:3;21718:11;21711:4;21703:6;21699:17;21664:74;:::i;:::-;-1:-1:-1;;;21797:1:54;21757:16;;;;21789:10;;;21782:37;-1:-1:-1;21843:2:54;21835:11;;21248:604;-1:-1:-1;21248:604:54:o;23000:476::-;23266:1;23262;23257:3;23253:11;23249:19;23241:6;23237:32;23226:9;23219:51;23306:6;23301:2;23290:9;23286:18;23279:34;23349:3;23344:2;23333:9;23329:18;23322:31;23200:4;23370:46;23411:3;23400:9;23396:19;23388:6;23370:46;:::i;:::-;23362:54;;23464:4;23456:6;23452:17;23447:2;23436:9;23432:18;23425:45;23000:476;;;;;;;:::o;23481:164::-;23557:13;;23606;;23599:21;23589:32;;23579:60;;23635:1;23632;23625:12;23650:414;23735:6;23743;23796:2;23784:9;23775:7;23771:23;23767:32;23764:52;;;23812:1;23809;23802:12;23764:52;23835:37;23862:9;23835:37;:::i;:::-;23825:47;;23916:2;23905:9;23901:18;23895:25;-1:-1:-1;;;;;23935:6:54;23932:30;23929:50;;;23975:1;23972;23965:12;23929:50;23998:60;24050:7;24041:6;24030:9;24026:22;23998:60;:::i;:::-;23988:70;;;23650:414;;;;;:::o;24069:315::-;-1:-1:-1;;;;;24244:32:54;;24226:51;;24313:2;24308;24293:18;;24286:30;;;-1:-1:-1;;24333:45:54;;24359:18;;24351:6;24333:45;:::i;24389:202::-;24456:6;24509:2;24497:9;24488:7;24484:23;24480:32;24477:52;;;24525:1;24522;24515:12;24477:52;24548:37;24575:9;24548:37;:::i;24596:149::-;24670:20;;24719:1;24709:12;;24699:40;;24735:1;24732;24725:12;24750:339;24831:6;24839;24892:2;24880:9;24871:7;24867:23;24863:32;24860:52;;;24908:1;24905;24898:12;24860:52;24931:35;24956:9;24931:35;:::i;:::-;24921:45;;25016:2;25005:9;25001:18;24988:32;25029:30;25053:5;25029:30;:::i;25094:359::-;25281:6;25276:3;25269:19;25251:3;25317:6;25311:13;25333:73;25399:6;25394:2;25389:3;25385:12;25380:2;25372:6;25368:15;25333:73;:::i;:::-;25426:16;;;;25444:2;25422:25;;25094:359;-1:-1:-1;;;25094:359:54:o;26365:783::-;26631:4;26619:17;;26601:36;;26589:2;26656;26674:18;;;26667:30;;;26574:18;;;26732:22;;;26541:4;;26811:6;;26785:2;26770:18;;26541:4;26845:277;26859:6;26856:1;26853:13;26845:277;;;26934:6;26921:20;26954:31;26979:5;26954:31;:::i;:::-;-1:-1:-1;;;;;27010:31:54;26998:44;;27097:15;;;;27062:12;;;;27038:1;26874:9;26845:277;;;-1:-1:-1;27139:3:54;26365:783;-1:-1:-1;;;;;;;26365:783:54:o;27153:521::-;27230:4;27236:6;27296:11;27283:25;27390:2;27386:7;27375:8;27359:14;27355:29;27351:43;27331:18;27327:68;27317:96;;27409:1;27406;27399:12;27317:96;27436:33;;27488:20;;;-1:-1:-1;;;;;;27520:30:54;;27517:50;;;27563:1;27560;27553:12;27517:50;27596:4;27584:17;;-1:-1:-1;27627:14:54;27623:27;;;27613:38;;27610:58;;;27664:1;27661;27654:12;27679:127;27740:10;27735:3;27731:20;27728:1;27721:31;27771:4;27768:1;27761:15;27795:4;27792:1;27785:15;27811:135;27850:3;27871:17;;;27868:43;;27891:18;;:::i;:::-;-1:-1:-1;27938:1:54;27927:13;;27811:135::o;27951:128::-;28018:9;;;28039:11;;;28036:37;;;28053:18;;:::i;28084:462::-;28126:5;28179:3;28172:4;28164:6;28160:17;28156:27;28146:55;;28197:1;28194;28187:12;28146:55;28233:6;28220:20;28264:48;28280:31;28308:2;28280:31;:::i;28264:48::-;28337:2;28328:7;28321:19;28383:3;28376:4;28371:2;28363:6;28359:15;28355:26;28352:35;28349:55;;;28400:1;28397;28390:12;28349:55;28465:2;28458:4;28450:6;28446:17;28439:4;28430:7;28426:18;28413:55;28513:1;28488:16;;;28506:4;28484:27;28477:38;;;;28492:7;28084:462;-1:-1:-1;;;28084:462:54:o;28551:659::-;28666:6;28674;28682;28735:2;28723:9;28714:7;28710:23;28706:32;28703:52;;;28751:1;28748;28741:12;28703:52;28790:9;28777:23;28809:30;28833:5;28809:30;:::i;:::-;28858:5;-1:-1:-1;28915:2:54;28900:18;;28887:32;-1:-1:-1;;;;;;28950:27:54;;28938:40;;28928:68;;28992:1;28989;28982:12;28928:68;29015:7;-1:-1:-1;29073:2:54;29058:18;;29045:32;-1:-1:-1;;;;;29089:30:54;;29086:50;;;29132:1;29129;29122:12;29086:50;29155:49;29196:7;29187:6;29176:9;29172:22;29155:49;:::i;:::-;29145:59;;;28551:659;;;;;:::o;29215:547::-;29314:6;29322;29330;29383:2;29371:9;29362:7;29358:23;29354:32;29351:52;;;29399:1;29396;29389:12;29351:52;29422:35;29447:9;29422:35;:::i;:::-;29412:45;;29507:2;29496:9;29492:18;29479:32;29520:30;29544:5;29520:30;:::i;29767:127::-;29828:10;29823:3;29819:20;29816:1;29809:31;29859:4;29856:1;29849:15;29883:4;29880:1;29873:15;30388:463;30473:6;30481;30534:2;30522:9;30513:7;30509:23;30505:32;30502:52;;;30550:1;30547;30540:12;30502:52;30589:9;30576:23;30608:31;30633:5;30608:31;:::i;:::-;30658:5;-1:-1:-1;30714:2:54;30699:18;;30686:32;-1:-1:-1;;;;;30730:30:54;;30727:50;;;30773:1;30770;30763:12;30727:50;30796:49;30837:7;30828:6;30817:9;30813:22;30796:49;:::i;30856:453::-;30932:6;30940;30993:2;30981:9;30972:7;30968:23;30964:32;30961:52;;;31009:1;31006;30999:12;30961:52;31048:9;31035:23;31067:30;31091:5;31067:30;:::i;31996:1495::-;32235:2;32287:21;;;32260:18;;;32343:22;;;32206:4;;32384:2;32402:18;;;32466:1;32462:14;;;32447:30;;32443:39;;32505:6;32206:4;;32560:902;32576:6;32571:3;32568:15;32560:902;;;32645:22;;;-1:-1:-1;;32641:36:54;32629:49;;32717:20;;32792:14;32788:27;;;-1:-1:-1;;32784:41:54;32760:66;;32750:94;;32840:1;32837;32830:12;32750:94;32870:31;;32924:4;32956:19;;32988:33;32956:19;32988:33;:::i;:::-;-1:-1:-1;;;;;33049:33:54;33034:49;;33133:14;;;33120:28;33103:15;;;33096:53;33196;33234:14;;;33137:5;33196:53;:::i;:::-;33162:87;;33286:2;33281;33273:6;33269:15;33262:27;33312:70;33378:2;33370:6;33366:15;33352:12;33338;33312:70;:::i;:::-;33440:12;;;;33302:80;-1:-1:-1;;;33405:15:54;;;;-1:-1:-1;32602:1:54;32593:11;32560:902;;;-1:-1:-1;33479:6:54;;31996:1495;-1:-1:-1;;;;;;;;;31996:1495:54:o;33496:255::-;33616:19;;33655:2;33647:11;;33644:101;;;-1:-1:-1;;33716:2:54;33712:12;;;33709:1;33705:20;33701:33;33690:45;33496:255;;;;:::o;33756:327::-;-1:-1:-1;;;;;;33876:19:54;;33956:11;;;;33987:1;33979:10;;33976:101;;;34048:1;34044:11;;;;34041:1;34037:19;34033:28;;;34025:37;34021:46;;;;33756:327;-1:-1:-1;;33756:327:54:o;34088:271::-;34271:6;34263;34258:3;34245:33;34227:3;34297:16;;34322:13;;;34297:16;34088:271;-1:-1:-1;34088:271:54:o;34364:181::-;34422:4;-1:-1:-1;;;;;34447:6:54;34444:30;34441:56;;;34477:18;;:::i;:::-;-1:-1:-1;34522:1:54;34518:14;34534:4;34514:25;;34364:181::o;34550:892::-;34613:5;34666:3;34659:4;34651:6;34647:17;34643:27;34633:55;;34684:1;34681;34674:12;34633:55;34713:6;34707:13;34739:4;34763:58;34779:41;34817:2;34779:41;:::i;34763:58::-;34855:15;;;34941:1;34937:10;;;;34925:23;;34921:32;;;34886:12;;;;34965:15;;;34962:35;;;34993:1;34990;34983:12;34962:35;35029:2;35021:6;35017:15;35041:372;35057:6;35052:3;35049:15;35041:372;;;35136:3;35130:10;-1:-1:-1;;;;;35159:11:54;35156:35;35153:125;;;35232:1;35261:2;35257;35250:14;35153:125;35303:67;35366:3;35361:2;35347:11;35339:6;35335:24;35331:33;35303:67;:::i;:::-;35291:80;;-1:-1:-1;35391:12:54;;;;35074;;35041:372;;;-1:-1:-1;35431:5:54;34550:892;-1:-1:-1;;;;;;34550:892:54:o;35447:370::-;35551:6;35604:2;35592:9;35583:7;35579:23;35575:32;35572:52;;;35620:1;35617;35610:12;35572:52;35653:9;35647:16;-1:-1:-1;;;;;35678:6:54;35675:30;35672:50;;;35718:1;35715;35708:12;35672:50;35741:70;35803:7;35794:6;35783:9;35779:22;35741:70;:::i;35822:1157::-;35957:6;35965;36018:2;36006:9;35997:7;35993:23;35989:32;35986:52;;;36034:1;36031;36024:12;35986:52;36067:9;36061:16;-1:-1:-1;;;;;36137:2:54;36129:6;36126:14;36123:34;;;36153:1;36150;36143:12;36123:34;36191:6;36180:9;36176:22;36166:32;;36236:7;36229:4;36225:2;36221:13;36217:27;36207:55;;36258:1;36255;36248:12;36207:55;36287:2;36281:9;36309:4;36333:58;36349:41;36387:2;36349:41;:::i;36333:58::-;36425:15;;;36507:1;36503:10;;;;36495:19;;36491:28;;;36456:12;;;;36531:19;;;36528:39;;;36563:1;36560;36553:12;36528:39;36587:11;;;;36607:156;36623:6;36618:3;36615:15;36607:156;;;36689:31;36716:3;36689:31;:::i;:::-;36677:44;;36640:12;;;;36741;;;;36607:156;;;36818:18;;;36812:25;36782:5;;-1:-1:-1;36812:25:54;;-1:-1:-1;;;36849:16:54;;;36846:36;;;36878:1;36875;36868:12;36846:36;;36901:72;36965:7;36954:8;36943:9;36939:24;36901:72;:::i",linkReferences:{}},methodIdentifiers={"accountId()":"9cfd7cff","domainSeparator()":"f698da25","entryPoint()":"b0d691fe","execute(bytes32,bytes)":"e9ae5c53","executeFromExecutor(bytes32,bytes)":"d691c964","getActiveHook()":"0a664dba","getActiveHook(bytes4)":"b875d5d8","getExecutorsPaginated(address,uint256)":"ea5f61d0","getNonce(address,address)":"d828435d","getValidatorPaginated(address,uint256)":"85571368","initializeAccount((address,bytes)[],(address,bytes)[],(address,bytes)[],(address,bytes)[],(address,address[],uint8))":"540fb4f9","installModule(uint256,address,bytes)":"9517e29f","isModuleInstalled(uint256,address,bytes)":"112d3a7d","isValidSignature(bytes32,bytes)":"1626ba7e","launchpadValidators((address,bytes)[])":"6a5e1515","setRegistry(address,address[],uint8)":"eab77e17","supportsExecutionMode(bytes32)":"d03c7914","supportsModule(uint256)":"f2dc691d","uninstallModule(uint256,address,bytes)":"a71763a8","validateUserOp((address,uint256,bytes,bytes,bytes32,uint256,bytes32,bytes,bytes),bytes32,uint256)":"19822f7c"},rawMetadata=`{"compiler":{"version":"0.8.25+commit.b61c2a91"},"language":"Solidity","output":{"abi":[{"inputs":[],"name":"AccountAccessUnauthorized","type":"error"},{"inputs":[],"name":"AccountInitializationFailed","type":"error"},{"inputs":[],"name":"ExecutionFailed","type":"error"},{"inputs":[{"internalType":"bytes4","name":"msgSig","type":"bytes4"}],"name":"FallbackInstalled","type":"error"},{"inputs":[{"internalType":"address","name":"currentHook","type":"address"}],"name":"HookAlreadyInstalled","type":"error"},{"inputs":[],"name":"HookPostCheckFailed","type":"error"},{"inputs":[],"name":"InitializerError","type":"error"},{"inputs":[{"internalType":"bytes4","name":"msgSig","type":"bytes4"}],"name":"InvalidFallbackHandler","type":"error"},{"inputs":[],"name":"InvalidHookType","type":"error"},{"inputs":[{"internalType":"address","name":"safe","type":"address"}],"name":"InvalidInitData","type":"error"},{"inputs":[],"name":"InvalidInput","type":"error"},{"inputs":[{"internalType":"address","name":"module","type":"address"}],"name":"InvalidModule","type":"error"},{"inputs":[],"name":"LinkedListError","type":"error"},{"inputs":[],"name":"LinkedList_AlreadyInitialized","type":"error"},{"inputs":[],"name":"LinkedList_AlreadyInitialized","type":"error"},{"inputs":[{"internalType":"address","name":"entry","type":"address"}],"name":"LinkedList_EntryAlreadyInList","type":"error"},{"inputs":[{"internalType":"address","name":"entry","type":"address"}],"name":"LinkedList_EntryAlreadyInList","type":"error"},{"inputs":[{"internalType":"address","name":"entry","type":"address"}],"name":"LinkedList_InvalidEntry","type":"error"},{"inputs":[{"internalType":"address","name":"entry","type":"address"}],"name":"LinkedList_InvalidEntry","type":"error"},{"inputs":[],"name":"LinkedList_InvalidPage","type":"error"},{"inputs":[],"name":"LinkedList_InvalidPage","type":"error"},{"inputs":[{"internalType":"bytes4","name":"msgSig","type":"bytes4"}],"name":"NoFallbackHandler","type":"error"},{"inputs":[{"internalType":"CallType","name":"callType","type":"bytes1"}],"name":"UnsupportedCallType","type":"error"},{"inputs":[{"internalType":"ExecType","name":"execType","type":"bytes1"}],"name":"UnsupportedExecType","type":"error"},{"inputs":[{"internalType":"uint256","name":"moduleTypeId","type":"uint256"}],"name":"UnsupportedModuleType","type":"error"},{"inputs":[],"name":"ValidatorStorageHelperError","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"smartAccount","type":"address"},{"indexed":true,"internalType":"contract IERC7484","name":"registry","type":"address"}],"name":"ERC7484RegistryConfigured","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"moduleTypeId","type":"uint256"},{"indexed":false,"internalType":"address","name":"module","type":"address"}],"name":"ModuleInstalled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"moduleTypeId","type":"uint256"},{"indexed":false,"internalType":"address","name":"module","type":"address"}],"name":"ModuleUninstalled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"safe","type":"address"}],"name":"Safe7579Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract ISafe","name":"safe","type":"address"},{"indexed":false,"internalType":"uint256","name":"numberInBatch","type":"uint256"}],"name":"TryExecutionFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract ISafe","name":"safe","type":"address"},{"indexed":false,"internalType":"bool[]","name":"success","type":"bool[]"}],"name":"TryExecutionsFailed","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"accountId","outputs":[{"internalType":"string","name":"accountImplementationId","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"domainSeparator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"entryPoint","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"ModeCode","name":"mode","type":"bytes32"},{"internalType":"bytes","name":"executionCalldata","type":"bytes"}],"name":"execute","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"ModeCode","name":"mode","type":"bytes32"},{"internalType":"bytes","name":"executionCalldata","type":"bytes"}],"name":"executeFromExecutor","outputs":[{"internalType":"bytes[]","name":"returnDatas","type":"bytes[]"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getActiveHook","outputs":[{"internalType":"address","name":"hook","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"selector","type":"bytes4"}],"name":"getActiveHook","outputs":[{"internalType":"address","name":"hook","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"cursor","type":"address"},{"internalType":"uint256","name":"size","type":"uint256"}],"name":"getExecutorsPaginated","outputs":[{"internalType":"address[]","name":"array","type":"address[]"},{"internalType":"address","name":"next","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"safe","type":"address"},{"internalType":"address","name":"validator","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"start","type":"address"},{"internalType":"uint256","name":"pageSize","type":"uint256"}],"name":"getValidatorPaginated","outputs":[{"internalType":"address[]","name":"array","type":"address[]"},{"internalType":"address","name":"next","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"module","type":"address"},{"internalType":"bytes","name":"initData","type":"bytes"}],"internalType":"struct ModuleInit[]","name":"validators","type":"tuple[]"},{"components":[{"internalType":"address","name":"module","type":"address"},{"internalType":"bytes","name":"initData","type":"bytes"}],"internalType":"struct ModuleInit[]","name":"executors","type":"tuple[]"},{"components":[{"internalType":"address","name":"module","type":"address"},{"internalType":"bytes","name":"initData","type":"bytes"}],"internalType":"struct ModuleInit[]","name":"fallbacks","type":"tuple[]"},{"components":[{"internalType":"address","name":"module","type":"address"},{"internalType":"bytes","name":"initData","type":"bytes"}],"internalType":"struct ModuleInit[]","name":"hooks","type":"tuple[]"},{"components":[{"internalType":"contract IERC7484","name":"registry","type":"address"},{"internalType":"address[]","name":"attesters","type":"address[]"},{"internalType":"uint8","name":"threshold","type":"uint8"}],"internalType":"struct RegistryInit","name":"registryInit","type":"tuple"}],"name":"initializeAccount","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"moduleType","type":"uint256"},{"internalType":"address","name":"module","type":"address"},{"internalType":"bytes","name":"initData","type":"bytes"}],"name":"installModule","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"moduleType","type":"uint256"},{"internalType":"address","name":"module","type":"address"},{"internalType":"bytes","name":"additionalContext","type":"bytes"}],"name":"isModuleInstalled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"isValidSignature","outputs":[{"internalType":"bytes4","name":"magicValue","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"module","type":"address"},{"internalType":"bytes","name":"initData","type":"bytes"}],"internalType":"struct ModuleInit[]","name":"validators","type":"tuple[]"}],"name":"launchpadValidators","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract IERC7484","name":"registry","type":"address"},{"internalType":"address[]","name":"attesters","type":"address[]"},{"internalType":"uint8","name":"threshold","type":"uint8"}],"name":"setRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"ModeCode","name":"encodedMode","type":"bytes32"}],"name":"supportsExecutionMode","outputs":[{"internalType":"bool","name":"supported","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"moduleTypeId","type":"uint256"}],"name":"supportsModule","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"moduleType","type":"uint256"},{"internalType":"address","name":"module","type":"address"},{"internalType":"bytes","name":"deInitData","type":"bytes"}],"name":"uninstallModule","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"initCode","type":"bytes"},{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"bytes32","name":"accountGasLimits","type":"bytes32"},{"internalType":"uint256","name":"preVerificationGas","type":"uint256"},{"internalType":"bytes32","name":"gasFees","type":"bytes32"},{"internalType":"bytes","name":"paymasterAndData","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct PackedUserOperation","name":"userOp","type":"tuple"},{"internalType":"bytes32","name":"userOpHash","type":"bytes32"},{"internalType":"uint256","name":"missingAccountFunds","type":"uint256"}],"name":"validateUserOp","outputs":[{"internalType":"uint256","name":"validSignature","type":"uint256"}],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}],"devdoc":{"author":"rhinestone | zeroknots.eth, Konrad Kopp (@kopy-kat)","details":"This contract is a Safe account implementation that supports ERC7579 operations. In order to facilitate full ERC7579 compliance, the contract implements the IERC7579Account interface. This contract is an implementation of a Safe account supporting ERC7579 operations and complying with the IERC7579Account interface. It serves as a Safe FallbackHandler and module for Safe accounts, incorporating complex hacks to ensure ERC7579 compliance and requiring interactions and event emissions to be done via the SafeProxy as msg.sender using Safe's \\"executeTransactionFromModule\\" features.","kind":"dev","methods":{"accountId()":{"details":"Returns the account id of the smart account","returns":{"accountImplementationId":"the account id of the smart account the accountId should be structured like so: \\"vendorname.accountname.semver\\""}},"execute(bytes32,bytes)":{"details":"Executes a transaction on behalf of the Safe account. This function is intended to be called by ERC-4337 EntryPoint.solIf a global hook and/or selector hook is set, it will be calledAccessControl: only Self of Entrypoint can install modules Safe7579 supports the following feature set: CallTypes: - CALLTYPE_SINGLE - CALLTYPE_BATCH - CALLTYPE_DELEGATECALL ExecTypes: - EXECTYPE_DEFAULT (revert if not successful) - EXECTYPE_TRY If a different mode is selected, this function will revert","params":{"executionCalldata":"The encoded execution call data","mode":"The encoded execution mode of the transaction. See ModeLib.sol for details"}},"executeFromExecutor(bytes32,bytes)":{"details":"Executes a transaction on behalf of the Safe account. This function is intended to be called by executor modulesIf a global hook and/or selector hook is set, it will be calledAccessControl: only enabled executor modules Safe7579 supports the following feature set: CallTypes: - CALLTYPE_SINGLE - CALLTYPE_BATCH - CALLTYPE_DELEGATECALL ExecTypes: - EXECTYPE_DEFAULT (revert if not successful) - EXECTYPE_TRY If a different mode is selected, this function will revert","params":{"executionCalldata":"The encoded execution call data","mode":"The encoded execution mode of the transaction. See ModeLib.sol for details"}},"getNonce(address,address)":{"params":{"safe":"address of safe account","validator":"ERC7579 validator to encode"}},"initializeAccount((address,bytes)[],(address,bytes)[],(address,bytes)[],(address,bytes)[],(address,address[],uint8))":{"params":{"executors":"executor modules and initData","fallbacks":"fallback modules and initData","hooks":"hook module and initData","registryInit":"(OPTIONAL) registry, attesters and threshold for IERC7484 Registry If not provided, the registry will be set to the zero address, and no registry checks will be performed","validators":"validator modules and initData"}},"installModule(uint256,address,bytes)":{"details":"The module has to be initialized from msg.sender == SafeProxy, we thus use a delegatecall to DCUtil, which calls the onInstall/onUninstall function on the ERC7579 module and emits the ModuleInstall/ModuleUnintall eventsAccessControl: only Self of Entrypoint can install modulesIf the safe set a registry, ERC7484 registry will be queried before installingIf a global hook and/or selector hook is set, it will be called","params":{"initData":"arbitrary data that may be required on the module during \`onInstall\` initialization.","module":"the module address","moduleType":"the module type ID according the ERC-7579 spec Note: MULTITYPE_MODULE (uint(0)) is a special type to install a module with multiple types"}},"isModuleInstalled(uint256,address,bytes)":{"params":{"additionalContext":"additional context data that the smart account may interpret to identifiy conditions under which the module is installed. usually this is not necessary, but for some special hooks that are stored in mappings, this param might be needed","module":"the module address","moduleType":"the module type ID according the ERC-7579 spec Note: keep in mind that some contracts can be multiple module types at the same time. It thus may be necessary to query multiple module types"}},"isValidSignature(bytes32,bytes)":{"params":{"data":"abi.encodePacked(address validationModule, bytes signatures)","hash":"message hash of ERC1271 request"}},"launchpadValidators((address,bytes)[])":{"details":"it will initialize the SentinelList4337 list for validators, and sstore all validatorsSince this function has to be 4337 compliant (storage access), only validator storage is acccessNote: this function DOES NOT call onInstall() on the validator modules or emit ModuleInstalled events. this has to be done by the launchpad"},"supportsExecutionMode(bytes32)":{"params":{"encodedMode":"the encoded mode"}},"supportsModule(uint256)":{"params":{"moduleTypeId":"the module type ID according the ERC-7579 spec"}},"uninstallModule(uint256,address,bytes)":{"details":"The module has to be initialized from msg.sender == SafeProxy, we thus use a delegatecall to DCUtil, which calls the onInstall/onUninstall function on the ERC7579 module and emits the ModuleInstall/ModuleUnintall eventsAccessControl: only Self of Entrypoint can install modulesIf a global hook and/or selector hook is set, it will be called","params":{"deInitData":"arbitrary data that may be required on the module during \`onUninstall\` de-initialization.","module":"the module address","moduleType":"the module type ID according the ERC-7579 spec"}},"validateUserOp((address,uint256,bytes,bytes,bytes32,uint256,bytes32,bytes,bytes),bytes32,uint256)":{"details":"expects that a ERC7579 validator module is encoded within the UserOp nonce. if no validator module is provided, it will fallback to validate the transaction with Safe's signers"}},"title":"ERC7579 Adapter for Safe accounts. creates full ERC7579 compliance to Safe accounts","version":1},"userdoc":{"kind":"user","methods":{"domainSeparator()":{"notice":"Domain Separator for EIP-712."},"getNonce(address,address)":{"notice":"Safe7579 is using validator selection encoding in the userop nonce. to make it easier for SDKs / devs to integrate, this function can be called to get the next nonce for a specific validator"},"getValidatorPaginated(address,uint256)":{"notice":"Get paginated list of installed validators"},"initializeAccount((address,bytes)[],(address,bytes)[],(address,bytes)[],(address,bytes)[],(address,address[],uint8))":{"notice":"This function can be called by the Launchpad.initSafe7579() or by already existing Safes that want to use Safe7579 if this is called by the Launchpad, it is expected that launchpadValidators() was called previously, and the param validators is empty"},"installModule(uint256,address,bytes)":{"notice":"Installs a 7579 Module of a certain type on the smart account"},"isModuleInstalled(uint256,address,bytes)":{"notice":"Function to check if the account has a certain module installed"},"isValidSignature(bytes32,bytes)":{"notice":"Will use Safe's signed messages or checkSignatures features or ERC7579 validation modules if no signature is provided, it makes use of Safe's signedMessages if address(0) or a non-installed validator module is provided, it will use Safe's checkSignatures if a valid validator module is provided, it will use the module's validateUserOp function"},"launchpadValidators((address,bytes)[])":{"notice":"This function is intended to be called by Launchpad.validateUserOp()"},"setRegistry(address,address[],uint8)":{"notice":"TODO:"},"supportsExecutionMode(bytes32)":{"notice":"Function to check if the account supports a certain CallType or ExecType (see ModeLib.sol)"},"supportsModule(uint256)":{"notice":"Function to check if the account supports installation of a certain module type Id"},"uninstallModule(uint256,address,bytes)":{"notice":"Uninstalls a Module of a certain type on the smart account."},"validateUserOp((address,uint256,bytes,bytes,bytes32,uint256,bytes32,bytes,bytes),bytes32,uint256)":{"notice":"ERC4337 v0.7 validation function"}},"version":1}},"settings":{"compilationTarget":{"src/Safe7579.sol":"Safe7579"},"evmVersion":"paris","libraries":{},"metadata":{"bytecodeHash":"ipfs"},"optimizer":{"enabled":true,"runs":200},"remappings":[":@ERC4337/=node_modules/@ERC4337/",":@openzeppelin/=node_modules/@openzeppelin/",":@prb/math/=node_modules/@prb/math/",":@rhinestone/modulekit/=node_modules/@rhinestone/modulekit/packages/modulekit/",":@rhinestone/sessionkeymanager/=node_modules/@rhinestone/modulekit/packages/sessionkeymanager/",":@safe-global/=node_modules/@safe-global/",":account-abstraction-v0.6/=node_modules/@ERC4337/account-abstraction-v0.6/contracts/",":account-abstraction/=node_modules/@ERC4337/account-abstraction/contracts/",":ds-test/=node_modules/ds-test/src/",":erc4337-validation/=node_modules/erc4337-validation/src/",":erc7579/=node_modules/erc7579/src/",":forge-std/=node_modules/forge-std/src/",":sentinellist/=node_modules/sentinellist/src/",":solady/=node_modules/solady/src/",":solarray/=node_modules/solarray/src/",":solmate/=node_modules/solmate/src/"]},"sources":{"node_modules/@ERC4337/account-abstraction/contracts/core/Helpers.sol":{"keccak256":"0x6247e011a6cb0b263b3aa098822977181674d91b62e5bdfe04c6e66f72da25d6","license":"GPL-3.0","urls":["bzz-raw://ca829a69b3fbc74fec8e140d42a2bf93bc3512609272f031c846470f61f0ab7e","dweb:/ipfs/QmP3r3MBgAN39KeVB1rCGJWwcBcotNt26ALtAR54poQ1Jc"]},"node_modules/@ERC4337/account-abstraction/contracts/core/UserOperationLib.sol":{"keccak256":"0x9d50ece985d35f82e33e5da417595c86fac10449e3d10895d08363d33aad454b","license":"GPL-3.0","urls":["bzz-raw://b1d11cc364c8bf7ed5388268c895b5ffed16e87dfbcb320ddeeba5e7974315dc","dweb:/ipfs/QmYSpvjxEjweietQrYZagwQ52ipy7eXx4rwvnTzXKeGeMS"]},"node_modules/@ERC4337/account-abstraction/contracts/interfaces/IAggregator.sol":{"keccak256":"0xf100d6fcc0c3b450b13e979b6a42c628c292a1bc340eccc2e7796b80e3975588","license":"GPL-3.0","urls":["bzz-raw://192938b5b27234d35c8098a319e879363c79f750eea4d0e409dc889a8ce5b155","dweb:/ipfs/QmURpaJFPqEtkKP2ngBsgZhAGN8wAWh5XQpYmCkiz4Urz5"]},"node_modules/@ERC4337/account-abstraction/contracts/interfaces/IEntryPoint.sol":{"keccak256":"0x1972a5fcb3a808b58c85af5741949ef6af11ab0debd3ae8c708171ae1ae0d0c4","license":"GPL-3.0","urls":["bzz-raw://baa9837ae73b9e2362a47d42d081d7c0f3d8e878e5edb381117d94a6968949c9","dweb:/ipfs/QmUmo6FUE7fv5z1WzW1YFjxp8PqaeN2JrEee9au59w3Xhe"]},"node_modules/@ERC4337/account-abstraction/contracts/interfaces/INonceManager.sol":{"keccak256":"0xd575af0f6ebbd5f0b2933307d44cd7b4e03a69f4b817a67db5409bd3c89aeecb","license":"GPL-3.0","urls":["bzz-raw://3b1e2dea9b05cfba9d13339ed16d96457dc861013cc4f3f35b71a80f82448db3","dweb:/ipfs/QmVaGy5uGDMSiU2SzyokTjoHFyb39VVG5wtaM9KTnHyZSk"]},"node_modules/@ERC4337/account-abstraction/contracts/interfaces/IStakeManager.sol":{"keccak256":"0xbe5ca9e7f254d031687419e7b96ef48c9c63e9398bbe992dc72ffc6dc14e0a04","license":"GPL-3.0-only","urls":["bzz-raw://1fffec71c38627a26fabb423350148009579f092623fb02b471a12d973763a00","dweb:/ipfs/QmRBi31QEYXHj3x1AnQ2jKa2eziZH1b9av396P3b4dw6bj"]},"node_modules/@ERC4337/account-abstraction/contracts/interfaces/PackedUserOperation.sol":{"keccak256":"0x1129b46381db68eddbc5cb49e50664667b66b03c480453858e7b25eabe444359","license":"GPL-3.0","urls":["bzz-raw://499a948aba60480dba6e25c763b8d918f1c246eb7a3302e04f493e080f3295be","dweb:/ipfs/QmeRhhswf4NACcBKam2PyjpTP2ddSm648kah5kkQJsvwz3"]},"node_modules/@safe-global/safe-contracts/contracts/handler/HandlerContext.sol":{"keccak256":"0xce6da4c47f8691a4fcf07d20266b1a23ea757e49eedbfcf929f535f3f6e8072d","license":"LGPL-3.0-only","urls":["bzz-raw://b57666c08d90b0b56344813511789a6d21b66044f049146d802f8db0e28899fc","dweb:/ipfs/QmYWHsFYNbibbAGfNNQrWon9KzNHfgu5E6B3bDteLKDEmL"]},"node_modules/erc7579/src/core/AccountBase.sol":{"keccak256":"0x9608c3d2067fb8738c2da734f76317e593b1e3489a20414daabe43ac11addf87","license":"MIT","urls":["bzz-raw://2f036a5262a41a6a49fe529b9321a32c17b64f4cdb1bd4da4b61a1d6463b0588","dweb:/ipfs/QmZ5tunFkQCS68ghd5y4viT4C1smEHgQrT17V1MoViwo6c"]},"node_modules/erc7579/src/core/Receiver.sol":{"keccak256":"0x42d41b30a6582d95d737fd75122b621a8af1ec3123782d91a29385b67612b9e4","license":"MIT","urls":["bzz-raw://bfb32e6d912477279bf3105eeb7afaf4bfb6526541ef9944428a3d5b9133c23f","dweb:/ipfs/QmUc5nZW5NkC2prAUuRbFBdA2vSRwUBHKXD4evb5yiHSKf"]},"node_modules/erc7579/src/interfaces/IERC7579Module.sol":{"keccak256":"0x407d47a2e5951ae6ed9e93ecb5fd6d41f5cac651dad1dee334b607b00c5b343e","license":"MIT","urls":["bzz-raw://b99486d0337fa1a479dd5f83386bb8a22eb2ded026e7ae4a964bb6a5acd2dd9f","dweb:/ipfs/QmcE2sZGX2SZD91gUwxCvaCXZJtaACvaPxmLsQsPAkY8KB"]},"node_modules/sentinellist/src/SentinelList.sol":{"keccak256":"0xf17c11a9d52ed3291ebd6105240ed04c9563552dc0ce2366cc47d6db6f6cb775","license":"MIT","urls":["bzz-raw://eaaf2874245bc7080e2a63a7b866723b17fc97c82c05a1f4cf20376a437f2855","dweb:/ipfs/QmRBwF3WfYRHSqRNfJigmqaZtMSn3bqqHbzzsiZrFUBqTq"]},"node_modules/sentinellist/src/SentinelList4337.sol":{"keccak256":"0xd0e174b3c493faa11d325be52f99a0012d067c9e2a6101b3846edf8e7fe9c9cb","license":"MIT","urls":["bzz-raw://f07c3378d69fa9ea4a286ccfe567106cdfaaca6b74ea9b2fdad8827b1d981867","dweb:/ipfs/QmWm2kkG1ckPY6FYNCtvGgUta22UXHSTw38XLa7hYUedLe"]},"src/DataTypes.sol":{"keccak256":"0x7b2ece19f0e82036352db8e52c8ca68ee225cf927872848cfdaefac774e0174d","license":"GPL-3.0","urls":["bzz-raw://1901f64511210507cc87df2d240063890f11ff1025ae61c1cc7594b2e648786b","dweb:/ipfs/QmPqTthdY7rCb1utBCVcX9F5oj3suEUFEb8xJEYvSrQzH3"]},"src/ISafe7579.sol":{"keccak256":"0x7b0c5a68320c17f8727106d2bed0f2d2555958312bf7b590d758755617bdbed8","license":"UNLICENSED","urls":["bzz-raw://51557acd888e22c67ff934b3dcfb67440a1524134ece2155b4eda9beef513390","dweb:/ipfs/QmZK1Z7XagfQ77EVCymf5U3GXbQtWWRCNPRZ37DHJyNomB"]},"src/Safe7579.sol":{"keccak256":"0xf0fc1445e6ccc4c46f4e6ccafd0f2104a3f2523b47c9d154a5a5d8c4b01a34c4","license":"GPL-3.0","urls":["bzz-raw://e029ce676dd355aa86323b16db624bb6e273323afdcd721eb14eb34e5996364e","dweb:/ipfs/QmXLBmMQ5WP3Rw4weGX3uyYWRN5yimLB8g48ikx9xj2GxN"]},"src/core/AccessControl.sol":{"keccak256":"0x89a575a024cc9919a5ec15a7e506a92f38312722cda47ec3e14475c37f33ad8d","license":"MIT","urls":["bzz-raw://45d3333e9c5b199ec02caad27c1f2568dc04bf910a3a0f3c304eb121ff8bfe79","dweb:/ipfs/QmNwNKJeYjikvYZzQeNgycEnr92Tfoc86bG2ieFytotVqR"]},"src/core/ExecutionHelper.sol":{"keccak256":"0x428e4a69ea31501852614ab1067e575af1ad3c7dc09445dfed95e637d8c45a6c","license":"MIT","urls":["bzz-raw://abd6471b79910b9676036865cc9d7da8c1232ab36b8921b4ee7d53609e3f6a34","dweb:/ipfs/QmNZB5o87tkf8nYixRuLoDauyq38YVD3KCZXRdLsumiigD"]},"src/core/Initializer.sol":{"keccak256":"0xbafbeb9f56aa5e3bacfc2416abfd8f04621ecd4d9a8212b218226ba0ead10a49","license":"MIT","urls":["bzz-raw://0c2c8a19207e7ddcbb1976c241ded1ea165b7a7c108512e2544b2343c353f8e0","dweb:/ipfs/QmQxphwhJ47coJzHt6e388wpRgNUayfvxjjWezqnxT8Z2x"]},"src/core/ModuleManager.sol":{"keccak256":"0x2085aedd2a354fbc1f6eb805dc041451418e2f570a9c5f72cab603984c933c17","license":"MIT","urls":["bzz-raw://ae512f128286c9ca9f4efdbb469a5e7b32fe97bcfe8eebb8d8f1c19bffa1ce4f","dweb:/ipfs/QmaS6u9eq9DdoeBVsAXpga1RTUEjKi5dAvMvWB7QPyQqeU"]},"src/core/RegistryAdapter.sol":{"keccak256":"0x166317a9e2d2b6fdb5358236caf5f081fbe1cbf6e9960c0da77b3bed5d7666e8","license":"MIT","urls":["bzz-raw://168d53af4682f6c31928cf9148ea37abc68b42d3f3f458ffff1d76507caf8a8e","dweb:/ipfs/QmdRDNotVGUNdGBHhq2SU4jQmnYtXW9tboYzxqtgYYFPu5"]},"src/core/SetupDCUtil.sol":{"keccak256":"0x1676b67cf4e6cb99b5c95bc91b53e2fd18d7728812c3f4be4225c860a4c19c23","license":"MIT","urls":["bzz-raw://0db9280866d213480237531776592c3bd3787c087092e005531f6c2ee0cf5607","dweb:/ipfs/QmRTREr7iu2SpXgD4BUAmjKFD6d8n69DUCX7ZiejTNfD5u"]},"src/interfaces/IERC1271.sol":{"keccak256":"0x2faed8b59cb5a7451f842713e295a504230c40ba9ceba6863ed24ac82ad5e941","license":"LGPL-3.0-only","urls":["bzz-raw://cfc5accb2b0c55ebbbd58393fdfc78aeb11dc4146a33467a59ee67dd62f00278","dweb:/ipfs/QmcvsRGJFETpLFBCdZZHbvw5yaJKFLx3BSwQXQgbKgHLnZ"]},"src/interfaces/IERC7484.sol":{"keccak256":"0xf1f6b1b94f6c3ce7413558cc28be572cd16afec8ecc9fbde4cb5cc5b482f5a95","license":"MIT","urls":["bzz-raw://7e2f7627b692047f914e259809c2afc7e3c3dc10727f572db10505101ef33a7e","dweb:/ipfs/QmYYTeVNqX9LmWrwV7wXtREfATEWhacVVhD2jzRnfHiCPc"]},"src/interfaces/IERC7579Account.sol":{"keccak256":"0xa288a5136ef9b8ef413c4f5ee64b2702d3f1330a7a1d4cca543076e89bf4b273","license":"MIT","urls":["bzz-raw://e89e3d86fb3e4baa5a538b10b66a2cef881cb0671e19231a44b4c47ff8dd011b","dweb:/ipfs/QmQiwxpmWAkXpMnXjvYSdM92DE2n6rwSfTC9xPwmzGm18A"]},"src/interfaces/IERC7579Module.sol":{"keccak256":"0xebc1e4d11765e8da6b3e42f74199786178855a575bccc9578897945d11663cfc","urls":["bzz-raw://7d3a110c67aa21055b69a13cb02b78d5e75ea0fe5719a9cde58bae4fc9c4429d","dweb:/ipfs/QmV6F3mbC95e9wioyQum1ct9dNfaeU6tRJ4akwpPS8fW62"]},"src/interfaces/ISafe.sol":{"keccak256":"0xfd9de7afe85ae40bacc324c2d9a70e77318681ed80245076600db1359e592888","license":"LGPL-3.0-only","urls":["bzz-raw://603d08a2f39cb86cde7f101eb6790d001de21e2e2d59edffb24f8b7094d9d5c1","dweb:/ipfs/QmfANMrg8wZF1WrVmwHSLrnFBGywrhZW7LtHHS4VMRRQX2"]},"src/interfaces/ISafeOp.sol":{"keccak256":"0xb7bff9fad01b661a835eece9964f338fbdb4c80d14d438de5c25ea888eb29808","license":"MIT","urls":["bzz-raw://db9654d2d24944f3701494b558af18eea28ce7d3737d5014d339184c699fb729","dweb:/ipfs/QmPas92DYiyHgqZX2RH9AGiNvPA2CDvwdDqwL865RsTo4x"]},"src/lib/ExecutionLib.sol":{"keccak256":"0xa6d41aa7532a4bff83a8c335a8050ebe0c7a73c456d70594d2123dc293892c5c","license":"MIT","urls":["bzz-raw://283fbb850f68f12965f44d6781668be9f77a71d05a13e3e647951e793967e3f1","dweb:/ipfs/QmVv8GfNJ5Bf9nFxV6fvqy2puDjwM4sBuz9nm5mauKTNCC"]},"src/lib/ModeLib.sol":{"keccak256":"0x3a8629e9a8bd3fbc4cc0cc7d030f3eb45d9e50f4c415a68a1e8f083f5abf1605","license":"MIT","urls":["bzz-raw://21291b369f7b422c4427ad21b7c74471ad6d44743fb8807a7237ad300f60ca3d","dweb:/ipfs/QmbztEBpbKzhnEB8mPaHoD2ZQVdfxjkk2budgSfN9znSH9"]},"src/utils/DCUtil.sol":{"keccak256":"0x117e6a8e95dbdb8ceab3a0224306377dd4b196854e37228bd2560aa7904fbeb9","license":"MIT","urls":["bzz-raw://5d7ea50190601ebc96fb0cc719f33a75ecd6416a82159e136a7113c8d8acb2ea","dweb:/ipfs/QmcqdmwczwTBoV5cNZMM2uSAsz3jR3EZuRU9Emmmn4sQR1"]}},"version":1}`,metadata={compiler:{version:"0.8.25+commit.b61c2a91"},language:"Solidity",output:{abi:[{inputs:[],type:"error",name:"AccountAccessUnauthorized"},{inputs:[],type:"error",name:"AccountInitializationFailed"},{inputs:[],type:"error",name:"ExecutionFailed"},{inputs:[{internalType:"bytes4",name:"msgSig",type:"bytes4"}],type:"error",name:"FallbackInstalled"},{inputs:[{internalType:"address",name:"currentHook",type:"address"}],type:"error",name:"HookAlreadyInstalled"},{inputs:[],type:"error",name:"HookPostCheckFailed"},{inputs:[],type:"error",name:"InitializerError"},{inputs:[{internalType:"bytes4",name:"msgSig",type:"bytes4"}],type:"error",name:"InvalidFallbackHandler"},{inputs:[],type:"error",name:"InvalidHookType"},{inputs:[{internalType:"address",name:"safe",type:"address"}],type:"error",name:"InvalidInitData"},{inputs:[],type:"error",name:"InvalidInput"},{inputs:[{internalType:"address",name:"module",type:"address"}],type:"error",name:"InvalidModule"},{inputs:[],type:"error",name:"LinkedListError"},{inputs:[],type:"error",name:"LinkedList_AlreadyInitialized"},{inputs:[],type:"error",name:"LinkedList_AlreadyInitialized"},{inputs:[{internalType:"address",name:"entry",type:"address"}],type:"error",name:"LinkedList_EntryAlreadyInList"},{inputs:[{internalType:"address",name:"entry",type:"address"}],type:"error",name:"LinkedList_EntryAlreadyInList"},{inputs:[{internalType:"address",name:"entry",type:"address"}],type:"error",name:"LinkedList_InvalidEntry"},{inputs:[{internalType:"address",name:"entry",type:"address"}],type:"error",name:"LinkedList_InvalidEntry"},{inputs:[],type:"error",name:"LinkedList_InvalidPage"},{inputs:[],type:"error",name:"LinkedList_InvalidPage"},{inputs:[{internalType:"bytes4",name:"msgSig",type:"bytes4"}],type:"error",name:"NoFallbackHandler"},{inputs:[{internalType:"CallType",name:"callType",type:"bytes1"}],type:"error",name:"UnsupportedCallType"},{inputs:[{internalType:"ExecType",name:"execType",type:"bytes1"}],type:"error",name:"UnsupportedExecType"},{inputs:[{internalType:"uint256",name:"moduleTypeId",type:"uint256"}],type:"error",name:"UnsupportedModuleType"},{inputs:[],type:"error",name:"ValidatorStorageHelperError"},{inputs:[{internalType:"address",name:"smartAccount",type:"address",indexed:!0},{internalType:"contract IERC7484",name:"registry",type:"address",indexed:!0}],type:"event",name:"ERC7484RegistryConfigured",anonymous:!1},{inputs:[{internalType:"uint256",name:"moduleTypeId",type:"uint256",indexed:!1},{internalType:"address",name:"module",type:"address",indexed:!1}],type:"event",name:"ModuleInstalled",anonymous:!1},{inputs:[{internalType:"uint256",name:"moduleTypeId",type:"uint256",indexed:!1},{internalType:"address",name:"module",type:"address",indexed:!1}],type:"event",name:"ModuleUninstalled",anonymous:!1},{inputs:[{internalType:"address",name:"safe",type:"address",indexed:!0}],type:"event",name:"Safe7579Initialized",anonymous:!1},{inputs:[{internalType:"contract ISafe",name:"safe",type:"address",indexed:!1},{internalType:"uint256",name:"numberInBatch",type:"uint256",indexed:!1}],type:"event",name:"TryExecutionFailed",anonymous:!1},{inputs:[{internalType:"contract ISafe",name:"safe",type:"address",indexed:!1},{internalType:"bool[]",name:"success",type:"bool[]",indexed:!1}],type:"event",name:"TryExecutionsFailed",anonymous:!1},{inputs:[],stateMutability:"payable",type:"fallback"},{inputs:[],stateMutability:"view",type:"function",name:"accountId",outputs:[{internalType:"string",name:"accountImplementationId",type:"string"}]},{inputs:[],stateMutability:"view",type:"function",name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}]},{inputs:[],stateMutability:"view",type:"function",name:"entryPoint",outputs:[{internalType:"address",name:"",type:"address"}]},{inputs:[{internalType:"ModeCode",name:"mode",type:"bytes32"},{internalType:"bytes",name:"executionCalldata",type:"bytes"}],stateMutability:"payable",type:"function",name:"execute"},{inputs:[{internalType:"ModeCode",name:"mode",type:"bytes32"},{internalType:"bytes",name:"executionCalldata",type:"bytes"}],stateMutability:"payable",type:"function",name:"executeFromExecutor",outputs:[{internalType:"bytes[]",name:"returnDatas",type:"bytes[]"}]},{inputs:[],stateMutability:"view",type:"function",name:"getActiveHook",outputs:[{internalType:"address",name:"hook",type:"address"}]},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],stateMutability:"view",type:"function",name:"getActiveHook",outputs:[{internalType:"address",name:"hook",type:"address"}]},{inputs:[{internalType:"address",name:"cursor",type:"address"},{internalType:"uint256",name:"size",type:"uint256"}],stateMutability:"view",type:"function",name:"getExecutorsPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}]},{inputs:[{internalType:"address",name:"safe",type:"address"},{internalType:"address",name:"validator",type:"address"}],stateMutability:"view",type:"function",name:"getNonce",outputs:[{internalType:"uint256",name:"nonce",type:"uint256"}]},{inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],stateMutability:"view",type:"function",name:"getValidatorPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}]},{inputs:[{internalType:"struct ModuleInit[]",name:"validators",type:"tuple[]",components:[{internalType:"address",name:"module",type:"address"},{internalType:"bytes",name:"initData",type:"bytes"}]},{internalType:"struct ModuleInit[]",name:"executors",type:"tuple[]",components:[{internalType:"address",name:"module",type:"address"},{internalType:"bytes",name:"initData",type:"bytes"}]},{internalType:"struct ModuleInit[]",name:"fallbacks",type:"tuple[]",components:[{internalType:"address",name:"module",type:"address"},{internalType:"bytes",name:"initData",type:"bytes"}]},{internalType:"struct ModuleInit[]",name:"hooks",type:"tuple[]",components:[{internalType:"address",name:"module",type:"address"},{internalType:"bytes",name:"initData",type:"bytes"}]},{internalType:"struct RegistryInit",name:"registryInit",type:"tuple",components:[{internalType:"contract IERC7484",name:"registry",type:"address"},{internalType:"address[]",name:"attesters",type:"address[]"},{internalType:"uint8",name:"threshold",type:"uint8"}]}],stateMutability:"payable",type:"function",name:"initializeAccount"},{inputs:[{internalType:"uint256",name:"moduleType",type:"uint256"},{internalType:"address",name:"module",type:"address"},{internalType:"bytes",name:"initData",type:"bytes"}],stateMutability:"payable",type:"function",name:"installModule"},{inputs:[{internalType:"uint256",name:"moduleType",type:"uint256"},{internalType:"address",name:"module",type:"address"},{internalType:"bytes",name:"additionalContext",type:"bytes"}],stateMutability:"view",type:"function",name:"isModuleInstalled",outputs:[{internalType:"bool",name:"",type:"bool"}]},{inputs:[{internalType:"bytes32",name:"hash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"}],stateMutability:"view",type:"function",name:"isValidSignature",outputs:[{internalType:"bytes4",name:"magicValue",type:"bytes4"}]},{inputs:[{internalType:"struct ModuleInit[]",name:"validators",type:"tuple[]",components:[{internalType:"address",name:"module",type:"address"},{internalType:"bytes",name:"initData",type:"bytes"}]}],stateMutability:"payable",type:"function",name:"launchpadValidators"},{inputs:[{internalType:"contract IERC7484",name:"registry",type:"address"},{internalType:"address[]",name:"attesters",type:"address[]"},{internalType:"uint8",name:"threshold",type:"uint8"}],stateMutability:"nonpayable",type:"function",name:"setRegistry"},{inputs:[{internalType:"ModeCode",name:"encodedMode",type:"bytes32"}],stateMutability:"pure",type:"function",name:"supportsExecutionMode",outputs:[{internalType:"bool",name:"supported",type:"bool"}]},{inputs:[{internalType:"uint256",name:"moduleTypeId",type:"uint256"}],stateMutability:"pure",type:"function",name:"supportsModule",outputs:[{internalType:"bool",name:"",type:"bool"}]},{inputs:[{internalType:"uint256",name:"moduleType",type:"uint256"},{internalType:"address",name:"module",type:"address"},{internalType:"bytes",name:"deInitData",type:"bytes"}],stateMutability:"payable",type:"function",name:"uninstallModule"},{inputs:[{internalType:"struct PackedUserOperation",name:"userOp",type:"tuple",components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"bytes32",name:"accountGasLimits",type:"bytes32"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"bytes32",name:"gasFees",type:"bytes32"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}]},{internalType:"bytes32",name:"userOpHash",type:"bytes32"},{internalType:"uint256",name:"missingAccountFunds",type:"uint256"}],stateMutability:"payable",type:"function",name:"validateUserOp",outputs:[{internalType:"uint256",name:"validSignature",type:"uint256"}]},{inputs:[],stateMutability:"payable",type:"receive"}],devdoc:{kind:"dev",methods:{"accountId()":{details:"Returns the account id of the smart account",returns:{accountImplementationId:'the account id of the smart account the accountId should be structured like so: "vendorname.accountname.semver"'}},"execute(bytes32,bytes)":{details:"Executes a transaction on behalf of the Safe account. This function is intended to be called by ERC-4337 EntryPoint.solIf a global hook and/or selector hook is set, it will be calledAccessControl: only Self of Entrypoint can install modules Safe7579 supports the following feature set: CallTypes: - CALLTYPE_SINGLE - CALLTYPE_BATCH - CALLTYPE_DELEGATECALL ExecTypes: - EXECTYPE_DEFAULT (revert if not successful) - EXECTYPE_TRY If a different mode is selected, this function will revert",params:{executionCalldata:"The encoded execution call data",mode:"The encoded execution mode of the transaction. See ModeLib.sol for details"}},"executeFromExecutor(bytes32,bytes)":{details:"Executes a transaction on behalf of the Safe account. This function is intended to be called by executor modulesIf a global hook and/or selector hook is set, it will be calledAccessControl: only enabled executor modules Safe7579 supports the following feature set: CallTypes: - CALLTYPE_SINGLE - CALLTYPE_BATCH - CALLTYPE_DELEGATECALL ExecTypes: - EXECTYPE_DEFAULT (revert if not successful) - EXECTYPE_TRY If a different mode is selected, this function will revert",params:{executionCalldata:"The encoded execution call data",mode:"The encoded execution mode of the transaction. See ModeLib.sol for details"}},"getNonce(address,address)":{params:{safe:"address of safe account",validator:"ERC7579 validator to encode"}},"initializeAccount((address,bytes)[],(address,bytes)[],(address,bytes)[],(address,bytes)[],(address,address[],uint8))":{params:{executors:"executor modules and initData",fallbacks:"fallback modules and initData",hooks:"hook module and initData",registryInit:"(OPTIONAL) registry, attesters and threshold for IERC7484 Registry If not provided, the registry will be set to the zero address, and no registry checks will be performed",validators:"validator modules and initData"}},"installModule(uint256,address,bytes)":{details:"The module has to be initialized from msg.sender == SafeProxy, we thus use a delegatecall to DCUtil, which calls the onInstall/onUninstall function on the ERC7579 module and emits the ModuleInstall/ModuleUnintall eventsAccessControl: only Self of Entrypoint can install modulesIf the safe set a registry, ERC7484 registry will be queried before installingIf a global hook and/or selector hook is set, it will be called",params:{initData:"arbitrary data that may be required on the module during `onInstall` initialization.",module:"the module address",moduleType:"the module type ID according the ERC-7579 spec Note: MULTITYPE_MODULE (uint(0)) is a special type to install a module with multiple types"}},"isModuleInstalled(uint256,address,bytes)":{params:{additionalContext:"additional context data that the smart account may interpret to identifiy conditions under which the module is installed. usually this is not necessary, but for some special hooks that are stored in mappings, this param might be needed",module:"the module address",moduleType:"the module type ID according the ERC-7579 spec Note: keep in mind that some contracts can be multiple module types at the same time. It thus may be necessary to query multiple module types"}},"isValidSignature(bytes32,bytes)":{params:{data:"abi.encodePacked(address validationModule, bytes signatures)",hash:"message hash of ERC1271 request"}},"launchpadValidators((address,bytes)[])":{details:"it will initialize the SentinelList4337 list for validators, and sstore all validatorsSince this function has to be 4337 compliant (storage access), only validator storage is acccessNote: this function DOES NOT call onInstall() on the validator modules or emit ModuleInstalled events. this has to be done by the launchpad"},"supportsExecutionMode(bytes32)":{params:{encodedMode:"the encoded mode"}},"supportsModule(uint256)":{params:{moduleTypeId:"the module type ID according the ERC-7579 spec"}},"uninstallModule(uint256,address,bytes)":{details:"The module has to be initialized from msg.sender == SafeProxy, we thus use a delegatecall to DCUtil, which calls the onInstall/onUninstall function on the ERC7579 module and emits the ModuleInstall/ModuleUnintall eventsAccessControl: only Self of Entrypoint can install modulesIf a global hook and/or selector hook is set, it will be called",params:{deInitData:"arbitrary data that may be required on the module during `onUninstall` de-initialization.",module:"the module address",moduleType:"the module type ID according the ERC-7579 spec"}},"validateUserOp((address,uint256,bytes,bytes,bytes32,uint256,bytes32,bytes,bytes),bytes32,uint256)":{details:"expects that a ERC7579 validator module is encoded within the UserOp nonce. if no validator module is provided, it will fallback to validate the transaction with Safe's signers"}},version:1},userdoc:{kind:"user",methods:{"domainSeparator()":{notice:"Domain Separator for EIP-712."},"getNonce(address,address)":{notice:"Safe7579 is using validator selection encoding in the userop nonce. to make it easier for SDKs / devs to integrate, this function can be called to get the next nonce for a specific validator"},"getValidatorPaginated(address,uint256)":{notice:"Get paginated list of installed validators"},"initializeAccount((address,bytes)[],(address,bytes)[],(address,bytes)[],(address,bytes)[],(address,address[],uint8))":{notice:"This function can be called by the Launchpad.initSafe7579() or by already existing Safes that want to use Safe7579 if this is called by the Launchpad, it is expected that launchpadValidators() was called previously, and the param validators is empty"},"installModule(uint256,address,bytes)":{notice:"Installs a 7579 Module of a certain type on the smart account"},"isModuleInstalled(uint256,address,bytes)":{notice:"Function to check if the account has a certain module installed"},"isValidSignature(bytes32,bytes)":{notice:"Will use Safe's signed messages or checkSignatures features or ERC7579 validation modules if no signature is provided, it makes use of Safe's signedMessages if address(0) or a non-installed validator module is provided, it will use Safe's checkSignatures if a valid validator module is provided, it will use the module's validateUserOp function"},"launchpadValidators((address,bytes)[])":{notice:"This function is intended to be called by Launchpad.validateUserOp()"},"setRegistry(address,address[],uint8)":{notice:"TODO:"},"supportsExecutionMode(bytes32)":{notice:"Function to check if the account supports a certain CallType or ExecType (see ModeLib.sol)"},"supportsModule(uint256)":{notice:"Function to check if the account supports installation of a certain module type Id"},"uninstallModule(uint256,address,bytes)":{notice:"Uninstalls a Module of a certain type on the smart account."},"validateUserOp((address,uint256,bytes,bytes,bytes32,uint256,bytes32,bytes,bytes),bytes32,uint256)":{notice:"ERC4337 v0.7 validation function"}},version:1}},settings:{remappings:["@ERC4337/=node_modules/@ERC4337/","@openzeppelin/=node_modules/@openzeppelin/","@prb/math/=node_modules/@prb/math/","@rhinestone/modulekit/=node_modules/@rhinestone/modulekit/packages/modulekit/","@rhinestone/sessionkeymanager/=node_modules/@rhinestone/modulekit/packages/sessionkeymanager/","@safe-global/=node_modules/@safe-global/","account-abstraction-v0.6/=node_modules/@ERC4337/account-abstraction-v0.6/contracts/","account-abstraction/=node_modules/@ERC4337/account-abstraction/contracts/","ds-test/=node_modules/ds-test/src/","erc4337-validation/=node_modules/erc4337-validation/src/","erc7579/=node_modules/erc7579/src/","forge-std/=node_modules/forge-std/src/","sentinellist/=node_modules/sentinellist/src/","solady/=node_modules/solady/src/","solarray/=node_modules/solarray/src/","solmate/=node_modules/solmate/src/"],optimizer:{enabled:!0,runs:200},metadata:{bytecodeHash:"ipfs"},compilationTarget:{"src/Safe7579.sol":"Safe7579"},evmVersion:"paris",libraries:{}},sources:{"node_modules/@ERC4337/account-abstraction/contracts/core/Helpers.sol":{keccak256:"0x6247e011a6cb0b263b3aa098822977181674d91b62e5bdfe04c6e66f72da25d6",urls:["bzz-raw://ca829a69b3fbc74fec8e140d42a2bf93bc3512609272f031c846470f61f0ab7e","dweb:/ipfs/QmP3r3MBgAN39KeVB1rCGJWwcBcotNt26ALtAR54poQ1Jc"],license:"GPL-3.0"},"node_modules/@ERC4337/account-abstraction/contracts/core/UserOperationLib.sol":{keccak256:"0x9d50ece985d35f82e33e5da417595c86fac10449e3d10895d08363d33aad454b",urls:["bzz-raw://b1d11cc364c8bf7ed5388268c895b5ffed16e87dfbcb320ddeeba5e7974315dc","dweb:/ipfs/QmYSpvjxEjweietQrYZagwQ52ipy7eXx4rwvnTzXKeGeMS"],license:"GPL-3.0"},"node_modules/@ERC4337/account-abstraction/contracts/interfaces/IAggregator.sol":{keccak256:"0xf100d6fcc0c3b450b13e979b6a42c628c292a1bc340eccc2e7796b80e3975588",urls:["bzz-raw://192938b5b27234d35c8098a319e879363c79f750eea4d0e409dc889a8ce5b155","dweb:/ipfs/QmURpaJFPqEtkKP2ngBsgZhAGN8wAWh5XQpYmCkiz4Urz5"],license:"GPL-3.0"},"node_modules/@ERC4337/account-abstraction/contracts/interfaces/IEntryPoint.sol":{keccak256:"0x1972a5fcb3a808b58c85af5741949ef6af11ab0debd3ae8c708171ae1ae0d0c4",urls:["bzz-raw://baa9837ae73b9e2362a47d42d081d7c0f3d8e878e5edb381117d94a6968949c9","dweb:/ipfs/QmUmo6FUE7fv5z1WzW1YFjxp8PqaeN2JrEee9au59w3Xhe"],license:"GPL-3.0"},"node_modules/@ERC4337/account-abstraction/contracts/interfaces/INonceManager.sol":{keccak256:"0xd575af0f6ebbd5f0b2933307d44cd7b4e03a69f4b817a67db5409bd3c89aeecb",urls:["bzz-raw://3b1e2dea9b05cfba9d13339ed16d96457dc861013cc4f3f35b71a80f82448db3","dweb:/ipfs/QmVaGy5uGDMSiU2SzyokTjoHFyb39VVG5wtaM9KTnHyZSk"],license:"GPL-3.0"},"node_modules/@ERC4337/account-abstraction/contracts/interfaces/IStakeManager.sol":{keccak256:"0xbe5ca9e7f254d031687419e7b96ef48c9c63e9398bbe992dc72ffc6dc14e0a04",urls:["bzz-raw://1fffec71c38627a26fabb423350148009579f092623fb02b471a12d973763a00","dweb:/ipfs/QmRBi31QEYXHj3x1AnQ2jKa2eziZH1b9av396P3b4dw6bj"],license:"GPL-3.0-only"},"node_modules/@ERC4337/account-abstraction/contracts/interfaces/PackedUserOperation.sol":{keccak256:"0x1129b46381db68eddbc5cb49e50664667b66b03c480453858e7b25eabe444359",urls:["bzz-raw://499a948aba60480dba6e25c763b8d918f1c246eb7a3302e04f493e080f3295be","dweb:/ipfs/QmeRhhswf4NACcBKam2PyjpTP2ddSm648kah5kkQJsvwz3"],license:"GPL-3.0"},"node_modules/@safe-global/safe-contracts/contracts/handler/HandlerContext.sol":{keccak256:"0xce6da4c47f8691a4fcf07d20266b1a23ea757e49eedbfcf929f535f3f6e8072d",urls:["bzz-raw://b57666c08d90b0b56344813511789a6d21b66044f049146d802f8db0e28899fc","dweb:/ipfs/QmYWHsFYNbibbAGfNNQrWon9KzNHfgu5E6B3bDteLKDEmL"],license:"LGPL-3.0-only"},"node_modules/erc7579/src/core/AccountBase.sol":{keccak256:"0x9608c3d2067fb8738c2da734f76317e593b1e3489a20414daabe43ac11addf87",urls:["bzz-raw://2f036a5262a41a6a49fe529b9321a32c17b64f4cdb1bd4da4b61a1d6463b0588","dweb:/ipfs/QmZ5tunFkQCS68ghd5y4viT4C1smEHgQrT17V1MoViwo6c"],license:"MIT"},"node_modules/erc7579/src/core/Receiver.sol":{keccak256:"0x42d41b30a6582d95d737fd75122b621a8af1ec3123782d91a29385b67612b9e4",urls:["bzz-raw://bfb32e6d912477279bf3105eeb7afaf4bfb6526541ef9944428a3d5b9133c23f","dweb:/ipfs/QmUc5nZW5NkC2prAUuRbFBdA2vSRwUBHKXD4evb5yiHSKf"],license:"MIT"},"node_modules/erc7579/src/interfaces/IERC7579Module.sol":{keccak256:"0x407d47a2e5951ae6ed9e93ecb5fd6d41f5cac651dad1dee334b607b00c5b343e",urls:["bzz-raw://b99486d0337fa1a479dd5f83386bb8a22eb2ded026e7ae4a964bb6a5acd2dd9f","dweb:/ipfs/QmcE2sZGX2SZD91gUwxCvaCXZJtaACvaPxmLsQsPAkY8KB"],license:"MIT"},"node_modules/sentinellist/src/SentinelList.sol":{keccak256:"0xf17c11a9d52ed3291ebd6105240ed04c9563552dc0ce2366cc47d6db6f6cb775",urls:["bzz-raw://eaaf2874245bc7080e2a63a7b866723b17fc97c82c05a1f4cf20376a437f2855","dweb:/ipfs/QmRBwF3WfYRHSqRNfJigmqaZtMSn3bqqHbzzsiZrFUBqTq"],license:"MIT"},"node_modules/sentinellist/src/SentinelList4337.sol":{keccak256:"0xd0e174b3c493faa11d325be52f99a0012d067c9e2a6101b3846edf8e7fe9c9cb",urls:["bzz-raw://f07c3378d69fa9ea4a286ccfe567106cdfaaca6b74ea9b2fdad8827b1d981867","dweb:/ipfs/QmWm2kkG1ckPY6FYNCtvGgUta22UXHSTw38XLa7hYUedLe"],license:"MIT"},"src/DataTypes.sol":{keccak256:"0x7b2ece19f0e82036352db8e52c8ca68ee225cf927872848cfdaefac774e0174d",urls:["bzz-raw://1901f64511210507cc87df2d240063890f11ff1025ae61c1cc7594b2e648786b","dweb:/ipfs/QmPqTthdY7rCb1utBCVcX9F5oj3suEUFEb8xJEYvSrQzH3"],license:"GPL-3.0"},"src/ISafe7579.sol":{keccak256:"0x7b0c5a68320c17f8727106d2bed0f2d2555958312bf7b590d758755617bdbed8",urls:["bzz-raw://51557acd888e22c67ff934b3dcfb67440a1524134ece2155b4eda9beef513390","dweb:/ipfs/QmZK1Z7XagfQ77EVCymf5U3GXbQtWWRCNPRZ37DHJyNomB"],license:"UNLICENSED"},"src/Safe7579.sol":{keccak256:"0xf0fc1445e6ccc4c46f4e6ccafd0f2104a3f2523b47c9d154a5a5d8c4b01a34c4",urls:["bzz-raw://e029ce676dd355aa86323b16db624bb6e273323afdcd721eb14eb34e5996364e","dweb:/ipfs/QmXLBmMQ5WP3Rw4weGX3uyYWRN5yimLB8g48ikx9xj2GxN"],license:"GPL-3.0"},"src/core/AccessControl.sol":{keccak256:"0x89a575a024cc9919a5ec15a7e506a92f38312722cda47ec3e14475c37f33ad8d",urls:["bzz-raw://45d3333e9c5b199ec02caad27c1f2568dc04bf910a3a0f3c304eb121ff8bfe79","dweb:/ipfs/QmNwNKJeYjikvYZzQeNgycEnr92Tfoc86bG2ieFytotVqR"],license:"MIT"},"src/core/ExecutionHelper.sol":{keccak256:"0x428e4a69ea31501852614ab1067e575af1ad3c7dc09445dfed95e637d8c45a6c",urls:["bzz-raw://abd6471b79910b9676036865cc9d7da8c1232ab36b8921b4ee7d53609e3f6a34","dweb:/ipfs/QmNZB5o87tkf8nYixRuLoDauyq38YVD3KCZXRdLsumiigD"],license:"MIT"},"src/core/Initializer.sol":{keccak256:"0xbafbeb9f56aa5e3bacfc2416abfd8f04621ecd4d9a8212b218226ba0ead10a49",urls:["bzz-raw://0c2c8a19207e7ddcbb1976c241ded1ea165b7a7c108512e2544b2343c353f8e0","dweb:/ipfs/QmQxphwhJ47coJzHt6e388wpRgNUayfvxjjWezqnxT8Z2x"],license:"MIT"},"src/core/ModuleManager.sol":{keccak256:"0x2085aedd2a354fbc1f6eb805dc041451418e2f570a9c5f72cab603984c933c17",urls:["bzz-raw://ae512f128286c9ca9f4efdbb469a5e7b32fe97bcfe8eebb8d8f1c19bffa1ce4f","dweb:/ipfs/QmaS6u9eq9DdoeBVsAXpga1RTUEjKi5dAvMvWB7QPyQqeU"],license:"MIT"},"src/core/RegistryAdapter.sol":{keccak256:"0x166317a9e2d2b6fdb5358236caf5f081fbe1cbf6e9960c0da77b3bed5d7666e8",urls:["bzz-raw://168d53af4682f6c31928cf9148ea37abc68b42d3f3f458ffff1d76507caf8a8e","dweb:/ipfs/QmdRDNotVGUNdGBHhq2SU4jQmnYtXW9tboYzxqtgYYFPu5"],license:"MIT"},"src/core/SetupDCUtil.sol":{keccak256:"0x1676b67cf4e6cb99b5c95bc91b53e2fd18d7728812c3f4be4225c860a4c19c23",urls:["bzz-raw://0db9280866d213480237531776592c3bd3787c087092e005531f6c2ee0cf5607","dweb:/ipfs/QmRTREr7iu2SpXgD4BUAmjKFD6d8n69DUCX7ZiejTNfD5u"],license:"MIT"},"src/interfaces/IERC1271.sol":{keccak256:"0x2faed8b59cb5a7451f842713e295a504230c40ba9ceba6863ed24ac82ad5e941",urls:["bzz-raw://cfc5accb2b0c55ebbbd58393fdfc78aeb11dc4146a33467a59ee67dd62f00278","dweb:/ipfs/QmcvsRGJFETpLFBCdZZHbvw5yaJKFLx3BSwQXQgbKgHLnZ"],license:"LGPL-3.0-only"},"src/interfaces/IERC7484.sol":{keccak256:"0xf1f6b1b94f6c3ce7413558cc28be572cd16afec8ecc9fbde4cb5cc5b482f5a95",urls:["bzz-raw://7e2f7627b692047f914e259809c2afc7e3c3dc10727f572db10505101ef33a7e","dweb:/ipfs/QmYYTeVNqX9LmWrwV7wXtREfATEWhacVVhD2jzRnfHiCPc"],license:"MIT"},"src/interfaces/IERC7579Account.sol":{keccak256:"0xa288a5136ef9b8ef413c4f5ee64b2702d3f1330a7a1d4cca543076e89bf4b273",urls:["bzz-raw://e89e3d86fb3e4baa5a538b10b66a2cef881cb0671e19231a44b4c47ff8dd011b","dweb:/ipfs/QmQiwxpmWAkXpMnXjvYSdM92DE2n6rwSfTC9xPwmzGm18A"],license:"MIT"},"src/interfaces/IERC7579Module.sol":{keccak256:"0xebc1e4d11765e8da6b3e42f74199786178855a575bccc9578897945d11663cfc",urls:["bzz-raw://7d3a110c67aa21055b69a13cb02b78d5e75ea0fe5719a9cde58bae4fc9c4429d","dweb:/ipfs/QmV6F3mbC95e9wioyQum1ct9dNfaeU6tRJ4akwpPS8fW62"],license:null},"src/interfaces/ISafe.sol":{keccak256:"0xfd9de7afe85ae40bacc324c2d9a70e77318681ed80245076600db1359e592888",urls:["bzz-raw://603d08a2f39cb86cde7f101eb6790d001de21e2e2d59edffb24f8b7094d9d5c1","dweb:/ipfs/QmfANMrg8wZF1WrVmwHSLrnFBGywrhZW7LtHHS4VMRRQX2"],license:"LGPL-3.0-only"},"src/interfaces/ISafeOp.sol":{keccak256:"0xb7bff9fad01b661a835eece9964f338fbdb4c80d14d438de5c25ea888eb29808",urls:["bzz-raw://db9654d2d24944f3701494b558af18eea28ce7d3737d5014d339184c699fb729","dweb:/ipfs/QmPas92DYiyHgqZX2RH9AGiNvPA2CDvwdDqwL865RsTo4x"],license:"MIT"},"src/lib/ExecutionLib.sol":{keccak256:"0xa6d41aa7532a4bff83a8c335a8050ebe0c7a73c456d70594d2123dc293892c5c",urls:["bzz-raw://283fbb850f68f12965f44d6781668be9f77a71d05a13e3e647951e793967e3f1","dweb:/ipfs/QmVv8GfNJ5Bf9nFxV6fvqy2puDjwM4sBuz9nm5mauKTNCC"],license:"MIT"},"src/lib/ModeLib.sol":{keccak256:"0x3a8629e9a8bd3fbc4cc0cc7d030f3eb45d9e50f4c415a68a1e8f083f5abf1605",urls:["bzz-raw://21291b369f7b422c4427ad21b7c74471ad6d44743fb8807a7237ad300f60ca3d","dweb:/ipfs/QmbztEBpbKzhnEB8mPaHoD2ZQVdfxjkk2budgSfN9znSH9"],license:"MIT"},"src/utils/DCUtil.sol":{keccak256:"0x117e6a8e95dbdb8ceab3a0224306377dd4b196854e37228bd2560aa7904fbeb9",urls:["bzz-raw://5d7ea50190601ebc96fb0cc719f33a75ecd6416a82159e136a7113c8d8acb2ea","dweb:/ipfs/QmcqdmwczwTBoV5cNZMM2uSAsz3jR3EZuRU9Emmmn4sQR1"],license:"MIT"}},version:1},id=37,AccountInterface={abi,bytecode,deployedBytecode,methodIdentifiers,rawMetadata,metadata,id},CALL_TYPE={SINGLE:"0x0000000000000000000000000000000000000000000000000000000000000000",BATCH:"0x0100000000000000000000000000000000000000000000000000000000000000"};function encodeUserOpCallData({actions:c}){if(c.length===0)throw new Error("No actions");if(c.length===1){const{target:a,value:d,callData:et}=c[0];return encodeFunctionData({functionName:"execute",abi:AccountInterface.abi,args:[CALL_TYPE.SINGLE,encodePacked(["address","uint256","bytes"],[a,BigInt(Number(d)),et])]})}else return encodeFunctionData({functionName:"execute",abi:AccountInterface.abi,args:[CALL_TYPE.BATCH,encodeAbiParameters([{components:[{name:"target",type:"address"},{name:"value",type:"uint256"},{name:"callData",type:"bytes"}],name:"Execution",type:"tuple[]"}],[c])]})}const buildUnsignedUserOpTransaction=(c,a,d)=>{const et=encodeUserOpCallData({actions:a});return{sender:c,nonce:d,callData:et,preVerificationGas:BigInt(0),verificationGasLimit:BigInt(0),callGasLimit:BigInt(0),maxPriorityFeePerGas:BigInt(0),maxFeePerGas:BigInt(0),signature:"0x000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}},chainId=async c=>Number(await c.request({method:"eth_chainId",params:[]})),transactionReceiptStatus={"0x0":"reverted","0x1":"success"};function deepHexlify(c){if(typeof c!="function")return c==null||typeof c=="string"||typeof c=="boolean"?c:typeof c=="bigint"?toHex(c):c._isBigNumber!=null||typeof c!="object"?toHex(c).replace(/^0x0/,"0x"):Array.isArray(c)?c.map(a=>deepHexlify(a)):Object.keys(c).reduce((a,d)=>(a[d]=deepHexlify(c[d]),a),{})}function getAddressFromInitCodeOrPaymasterAndData(c){if(c&&c.length>=42)return getAddress(c.slice(0,42))}const ENTRYPOINT_ADDRESS_V06="0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",ENTRYPOINT_ADDRESS_V07="0x0000000071727De22E5E9d8BAf0edAc6f37da032",getEntryPointVersion=c=>c===ENTRYPOINT_ADDRESS_V06?"v0.6":"v0.7";function prettyPrint(c){const a=Object.entries(c).map(([et,nt])=>nt===void 0||nt===!1?null:[et,nt]).filter(Boolean),d=a.reduce((et,[nt])=>Math.max(et,nt.length),0);return a.map(([et,nt])=>` ${`${et}:`.padEnd(d+1)} ${nt}`).join(` `)}class EstimateUserOperationGasError extends BaseError{constructor(a,{userOperation:d,entryPoint:et,docsPath:nt}){const tt=prettyPrint({sender:d.sender,nonce:d.nonce,initCode:d.initCode,callData:d.callData,callGasLimit:d.callGasLimit,verificationGasLimit:d.verificationGasLimit,preVerificationGas:d.preVerificationGas,maxFeePerGas:d.maxFeePerGas,maxPriorityFeePerGas:d.maxPriorityFeePerGas,paymasterAndData:d.paymasterAndData,signature:d.signature,entryPoint:et});super(a.shortMessage,{cause:a,docsPath:nt,metaMessages:[...a.metaMessages?[...a.metaMessages," "]:[],"Estimate Gas Arguments:",tt].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:"EstimateUserOperationGasError"}),this.cause=a}}class SenderAlreadyDeployedError extends BaseError{constructor({cause:a,sender:d,docsPath:et}={}){super([`Smart account ${d} is already deployed.`,"","Possible solutions:",'• Remove the initCode from the user operation and set it to "0x"',"",et?`Docs: ${et}`:""].join(` `),{cause:a}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SenderAlreadyDeployedError"})}}Object.defineProperty(SenderAlreadyDeployedError,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa10/});class InitCodeRevertedError extends BaseError{constructor({cause:a,docsPath:d}={}){super(["EntryPoint failed to create the smart account with the initCode provided.","","Possible reasons:","• The initCode ran out of gas","• The initCode reverted during the account deployment process","","Possible solutions:","• Verify that the factory address in the initCode is correct (the factory address is the first 20 bytes of the initCode).","• Verify that the initCode is correct.","• Check whether the verificationGasLimit is sufficient for the initCode to complete without running out of gas.","",d?`Docs: ${d}`:""].join(` @@ -209,7 +209,7 @@ ${prettyStateOverride(Bt)}`),super(a.shortMessage,{cause:a,docsPath:et,metaMessa `),{cause:a}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PaymasterDepositTooLowError"})}}Object.defineProperty(PaymasterDepositTooLowError,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa31/});class PaymasterValidityPeriodError extends BaseError{constructor({cause:a,paymasterAndData:d,docsPath:et}){const nt=d?getAddressFromInitCodeOrPaymasterAndData(d):"0x";super([`Paymaster ${nt}'s data used in the paymasterAndData field of the user operation is not valid, because it is outside of the time range it specified.`,"","Possible reasons:","• This error occurs when the block.timestamp falls after the validUntil timestamp, or before the validAfter timestamp.","","Possible solutions:","• If you are using your own paymaster contract and using time-based signatures, verify that the validAfter and validUntil fields are set correctly and that the user operation is sent within the specified range.","• If you are using your own paymaster contract and not looking to use time-based signatures, verify that the validAfter and validUntil fields are set to 0.","• If you are using a service, contact your service provider for their paymaster's validity.","",et?`Docs: ${et}`:""].join(` `),{cause:a}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PaymasterValidityPeriodError"})}}Object.defineProperty(PaymasterValidityPeriodError,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa32/});class PaymasterValidationRevertedError extends BaseError{constructor({cause:a,paymasterAndData:d,docsPath:et}){const nt=d?getAddressFromInitCodeOrPaymasterAndData(d):"0x";super([`The validatePaymasterUserOp function of the paymaster ${nt} either reverted or ran out of gas.`,"","Possible solutions:","• Verify that the verificationGasLimit is high enough to cover the validatePaymasterUserOp function's gas costs.","• If you are using your own paymaster contract, verify that the validatePaymasterUserOp function is implemented with the correct logic, and that the user operation is supposed to be valid.","• If you are using a paymaster service, and the user operation is well formed with a high enough verificationGasLimit, reach out to them.","• If you are not looking to use a paymaster to cover the gas fees, verify that the paymasterAndData field is not set.","",et?`Docs: ${et}`:""].join(` `),{cause:a}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PaymasterValidationRevertedError"})}}Object.defineProperty(PaymasterValidationRevertedError,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa33/});class PaymasterDataRejectedError extends BaseError{constructor({cause:a,paymasterAndData:d,docsPath:et}){const nt=d?getAddressFromInitCodeOrPaymasterAndData(d):"0x";super([`The validatePaymasterUserOp function of the paymaster ${nt} rejected paymasterAndData.`,"","Possible solutions:","• If you are using your own paymaster contract, verify that the user operation was correctly signed according to your implementation, and that the paymaster signature was correctly encoded in the paymasterAndData field of the user operation.","• If you are using a paymaster service, make sure you do not modify any of the fields of the user operation after the paymaster signs over it (except the signature field).","• If you are using a paymaster service and you have not modified any of the fields except the signature but you are still getting this error, reach out to them.","",et?`Docs: ${et}`:""].join(` -`),{cause:a}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PaymasterDataRejectedError"})}}Object.defineProperty(PaymasterDataRejectedError,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa34/});function getBundlerError(c,a){const d=(c.details||"").toLowerCase(),et=c instanceof BaseError?c.walk(nt=>nt.code===ExecutionRevertedError.code):c;return et instanceof BaseError?new ExecutionRevertedError({cause:c,message:et.details}):a.userOperation.sender===void 0?new UnknownNodeError({cause:c}):a.userOperation.nonce===void 0?new UnknownNodeError({cause:c}):SenderAlreadyDeployedError.message.test(d)?new SenderAlreadyDeployedError({cause:c,sender:a.userOperation.sender,docsPath:"https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa10"}):InitCodeRevertedError.message.test(d)?new InitCodeRevertedError({cause:c,docsPath:"https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa13"}):SenderAddressMismatchError.message.test(d)?new SenderAddressMismatchError({cause:c,sender:a.userOperation.sender,docsPath:"https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa14"}):InitCodeDidNotDeploySenderError.message.test(d)?new InitCodeDidNotDeploySenderError({cause:c,sender:a.userOperation.sender,docsPath:"https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa15"}):SenderNotDeployedError.message.test(d)?new SenderNotDeployedError({cause:c,sender:a.userOperation.sender,docsPath:"https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa20"}):SmartAccountInsufficientFundsError.message.test(d)?new SmartAccountInsufficientFundsError({cause:c,sender:a.userOperation.sender,docsPath:"https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa21"}):SmartAccountSignatureValidityPeriodError.message.test(d)?new SmartAccountSignatureValidityPeriodError({cause:c,docsPath:"https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa22"}):SmartAccountValidationRevertedError.message.test(d)?new SmartAccountValidationRevertedError({cause:c,sender:a.userOperation.sender,docsPath:"https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa23"}):InvalidSmartAccountNonceError.message.test(d)?new InvalidSmartAccountNonceError({cause:c,sender:a.userOperation.sender,nonce:a.userOperation.nonce,docsPath:"https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa25"}):PaymasterNotDeployedError.message.test(d)?new PaymasterNotDeployedError({cause:c,paymasterAndData:a.userOperation.paymasterAndData,docsPath:"https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa30"}):PaymasterDepositTooLowError.message.test(d)?new PaymasterDepositTooLowError({cause:c,paymasterAndData:a.userOperation.paymasterAndData,docsPath:"https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa31"}):PaymasterValidityPeriodError.message.test(d)?new PaymasterValidityPeriodError({cause:c,paymasterAndData:a.userOperation.paymasterAndData,docsPath:"https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa32"}):PaymasterValidationRevertedError.message.test(d)?new PaymasterValidationRevertedError({cause:c,paymasterAndData:a.userOperation.paymasterAndData,docsPath:"https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa33"}):PaymasterDataRejectedError.message.test(d)?new PaymasterDataRejectedError({cause:c,paymasterAndData:a.userOperation.paymasterAndData,docsPath:"https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa34"}):new UnknownNodeError({cause:c})}function getEstimateUserOperationGasError(c,a){const d=(()=>{const et=getBundlerError(c,a);return et instanceof UnknownNodeError?c:et})();throw new EstimateUserOperationGasError(d,{...a})}const estimateUserOperationGas=async(c,a,d)=>{const{userOperation:et,entryPoint:nt}=a,tt=deepHexlify(et),bt=deepHexlify(d);try{const gt=await c.request({method:"eth_estimateUserOperationGas",params:d?[tt,nt,bt]:[tt,nt]});if(getEntryPointVersion(nt)==="v0.6"){const Mt=gt;return{preVerificationGas:BigInt(Mt.preVerificationGas||0),verificationGasLimit:BigInt(Mt.verificationGasLimit||0),callGasLimit:BigInt(Mt.callGasLimit||0)}}const St=gt;return{preVerificationGas:BigInt(St.preVerificationGas||0),verificationGasLimit:BigInt(St.verificationGasLimit||0),callGasLimit:BigInt(St.callGasLimit||0),paymasterVerificationGasLimit:St.paymasterVerificationGasLimit?BigInt(St.paymasterVerificationGasLimit):void 0,paymasterPostOpGasLimit:St.paymasterPostOpGasLimit?BigInt(St.paymasterPostOpGasLimit):void 0}}catch(gt){throw getEstimateUserOperationGasError(gt,a)}},getUserOperationByHash=async(c,{hash:a})=>{const d=[a],et=await c.request({method:"eth_getUserOperationByHash",params:d});if(!et)return null;const{userOperation:nt,entryPoint:tt,transactionHash:bt,blockHash:gt,blockNumber:wt}=et;return{userOperation:tt===ENTRYPOINT_ADDRESS_V06?{...nt,nonce:BigInt(nt.nonce),callGasLimit:BigInt(nt.callGasLimit),verificationGasLimit:BigInt(nt.verificationGasLimit),preVerificationGas:BigInt(nt.preVerificationGas),maxFeePerGas:BigInt(nt.maxFeePerGas),maxPriorityFeePerGas:BigInt(nt.maxPriorityFeePerGas)}:{...nt,nonce:BigInt(nt.nonce),callGasLimit:BigInt(nt.callGasLimit),verificationGasLimit:BigInt(nt.verificationGasLimit),preVerificationGas:BigInt(nt.preVerificationGas),maxFeePerGas:BigInt(nt.maxFeePerGas),maxPriorityFeePerGas:BigInt(nt.maxPriorityFeePerGas),paymasterVerificationGasLimit:nt.paymasterVerificationGasLimit?BigInt(nt.paymasterVerificationGasLimit):void 0,paymasterPostOpGasLimit:nt.paymasterVerificationGasLimit?BigInt(nt.paymasterPostOpGasLimit):void 0},entryPoint:tt,transactionHash:bt,blockHash:gt,blockNumber:BigInt(wt)}},getUserOperationReceipt=async(c,{hash:a})=>{const d=[a],et=await c.request({method:"eth_getUserOperationReceipt",params:d});return et?{userOpHash:et.userOpHash,entryPoint:et.entryPoint,sender:et.sender,nonce:BigInt(et.nonce),paymaster:et.paymaster,actualGasUsed:BigInt(et.actualGasUsed),actualGasCost:BigInt(et.actualGasCost),success:et.success,reason:et.reason,receipt:{transactionHash:et.receipt.transactionHash,transactionIndex:BigInt(et.receipt.transactionIndex),blockHash:et.receipt.blockHash,blockNumber:BigInt(et.receipt.blockNumber),from:et.receipt.from,to:et.receipt.to,cumulativeGasUsed:BigInt(et.receipt.cumulativeGasUsed),status:transactionReceiptStatus[et.receipt.status],gasUsed:BigInt(et.receipt.gasUsed),contractAddress:et.receipt.contractAddress,logsBloom:et.receipt.logsBloom,effectiveGasPrice:BigInt(et.receipt.effectiveGasPrice)},logs:et.logs.map(tt=>({data:tt.data,blockNumber:BigInt(tt.blockNumber),blockHash:tt.blockHash,transactionHash:tt.transactionHash,logIndex:Number(tt.logIndex),transactionIndex:Number(tt.transactionIndex),address:tt.address,topics:tt.topics,removed:tt.removed}))}:null};function getSendUserOperationError(c,a){const d=(()=>{const et=getBundlerError(c,a);return et instanceof UnknownNodeError?c:et})();throw new SendUserOperationError(d,{...a})}const sendUserOperation$1=async(c,a)=>{const{userOperation:d,entryPoint:et}=a;try{return await c.request({method:"eth_sendUserOperation",params:[deepHexlify(d),et]})}catch(nt){throw getSendUserOperationError(nt,a)}},supportedEntryPoints=async c=>c.request({method:"eth_supportedEntryPoints",params:[]}),listenersCache=new Map,cleanupCache=new Map;let callbackCount=0;function observe(c,a,d){const et=++callbackCount,nt=()=>listenersCache.get(c)||[],tt=()=>{const Mt=nt();listenersCache.set(c,Mt.filter(_t=>_t.id!==et))},bt=()=>{const Mt=cleanupCache.get(c);nt().length===1&&Mt&&Mt(),tt()},gt=nt();if(listenersCache.set(c,[...gt,{id:et,fns:a}]),gt&>.length>0)return bt;const wt={};for(const Mt in a)wt[Mt]=(..._t)=>{var Bt,kt;const Tt=nt();if(Tt.length!==0)for(const It of Tt)(kt=(Bt=It.fns)[Mt])==null||kt.call(Bt,..._t)};const St=d(wt);return typeof St=="function"&&cleanupCache.set(c,St),bt}class WaitForUserOperationReceiptTimeoutError extends BaseError{constructor({hash:a}){super(`Timed out while waiting for transaction with hash "${a}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForUserOperationReceiptTimeoutError"})}}const waitForUserOperationReceipt=(c,{hash:a,pollingInterval:d=c.pollingInterval,timeout:et=c.transport.timeout})=>{const nt=stringify(["waitForUserOperationReceipt",c.uid,a]);let tt;return new Promise((bt,gt)=>{const wt=observe(nt,{resolve:bt,reject:gt},async St=>{let Mt;const _t=setInterval(async()=>{const Tt=Bt=>{clearInterval(_t),Bt(),wt(),et&&clearTimeout(Mt)};try{const Bt=await getAction(c,getUserOperationReceipt,"getUserOperationReceipt")({hash:a});if(Bt!==null&&(tt=Bt),tt){Tt(()=>St.resolve(tt));return}}catch(Bt){Tt(()=>St.reject(Bt));return}},d);et&&(Mt=setTimeout(()=>{clearInterval(_t),wt(),gt(new WaitForUserOperationReceiptTimeoutError({hash:a})),clearTimeout(Mt)},et))})})},getAccountNonce=async(c,a)=>{const{sender:d,entryPoint:et,key:nt=BigInt(0)}=a;return await getAction(c,readContract,"readContract")({address:et,abi:[{inputs:[{name:"sender",type:"address"},{name:"key",type:"uint192"}],name:"getNonce",outputs:[{name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"}],functionName:"getNonce",args:[d,nt]})},bundlerActions=c=>a=>({sendUserOperation:async d=>sendUserOperation$1(a,{...d,entryPoint:c}),estimateUserOperationGas:(d,et)=>estimateUserOperationGas(a,{...d,entryPoint:c},et),supportedEntryPoints:()=>supportedEntryPoints(a),chainId:()=>chainId(a),getUserOperationByHash:d=>getUserOperationByHash(a,d),getUserOperationReceipt:d=>getUserOperationReceipt(a,d),waitForUserOperationReceipt:d=>waitForUserOperationReceipt(a,d)}),contracts={gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},formatters$1={block:defineBlock({format(c){var d;return{transactions:(d=c.transactions)==null?void 0:d.map(et=>{if(typeof et=="string")return et;const nt=formatTransaction(et);return nt.typeHex==="0x7e"&&(nt.isSystemTx=et.isSystemTx,nt.mint=et.mint?hexToBigInt(et.mint):void 0,nt.sourceHash=et.sourceHash,nt.type="deposit"),nt}),stateRoot:c.stateRoot}}}),transaction:defineTransaction({format(c){const a={};return c.type==="0x7e"&&(a.isSystemTx=c.isSystemTx,a.mint=c.mint?hexToBigInt(c.mint):void 0,a.sourceHash=c.sourceHash,a.type="deposit"),a}}),transactionReceipt:defineTransactionReceipt({format(c){return{l1GasPrice:c.l1GasPrice?hexToBigInt(c.l1GasPrice):null,l1GasUsed:c.l1GasUsed?hexToBigInt(c.l1GasUsed):null,l1Fee:c.l1Fee?hexToBigInt(c.l1Fee):null,l1FeeScalar:c.l1FeeScalar?Number(c.l1FeeScalar):null}}})};function serializeTransaction$1(c,a){return isDeposit(c)?serializeTransactionDeposit(c):serializeTransaction$2(c,a)}const serializers$1={transaction:serializeTransaction$1};function serializeTransactionDeposit(c){assertTransactionDeposit(c);const{sourceHash:a,data:d,from:et,gas:nt,isSystemTx:tt,mint:bt,to:gt,value:wt}=c,St=[a,et,gt??"0x",bt?toHex(bt):"0x",wt?toHex(wt):"0x",nt?toHex(nt):"0x",tt?"0x1":"0x",d??"0x"];return concatHex(["0x7e",toRlp(St)])}function isDeposit(c){return c.type==="deposit"||typeof c.sourceHash<"u"}function assertTransactionDeposit(c){const{from:a,to:d}=c;if(a&&!isAddress(a))throw new InvalidAddressError({address:a});if(d&&!isAddress(d))throw new InvalidAddressError({address:d})}const chainConfig$1={contracts,formatters:formatters$1,serializers:serializers$1},sourceId$2=1,base=defineChain({...chainConfig$1,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...chainConfig$1.contracts,l2OutputOracle:{[sourceId$2]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[sourceId$2]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[sourceId$2]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:sourceId$2}),sourceId$1=5,baseGoerli=defineChain({...chainConfig$1,id:84531,name:"Base Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://goerli.basescan.org",apiUrl:"https://goerli.basescan.org/api"}},contracts:{...chainConfig$1.contracts,l2OutputOracle:{[sourceId$1]:{address:"0x2A35891ff30313CcFa6CE88dcf3858bb075A2298"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1376988},portal:{[sourceId$1]:{address:"0xe93c8cD0D409341205A592f8c4Ac1A5fe5585cfA"}},l1StandardBridge:{[sourceId$1]:{address:"0xfA6D8Ee5BE770F84FC001D098C4bD604Fe01284a"}}},testnet:!0,sourceId:sourceId$1}),sourceId=11155111,baseSepolia=defineChain({...chainConfig$1,id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://sepolia.basescan.org",apiUrl:"https://api-sepolia.basescan.org/api"}},contracts:{...chainConfig$1.contracts,l2OutputOracle:{[sourceId]:{address:"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"}},portal:{[sourceId]:{address:"0x49f53e41452c74589e85ca1677426ba426459e85",blockCreated:4446677}},l1StandardBridge:{[sourceId]:{address:"0xfd0Bf71F60660E2f608ed56e1659C450eB113120",blockCreated:4446677}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1059647}},testnet:!0,sourceId}),fees={estimateFeesPerGas:async c=>{var et;if(!((et=c.request)!=null&&et.feeCurrency))return null;const[a,d]=await Promise.all([estimateFeePerGasInFeeCurrency(c.client,c.request.feeCurrency),estimateMaxPriorityFeePerGasInFeeCurrency(c.client,c.request.feeCurrency)]);return{maxFeePerGas:a,maxPriorityFeePerGas:d}}};async function estimateFeePerGasInFeeCurrency(c,a){const d=await c.request({method:"eth_gasPrice",params:[a]});return BigInt(d)}async function estimateMaxPriorityFeePerGasInFeeCurrency(c,a){const d=await c.request({method:"eth_maxPriorityFeePerGas",params:[a]});return BigInt(d)}function isEmpty(c){return c===0||c===0n||c===void 0||c===null||c==="0"||c===""||typeof c=="string"&&(trim(c).toLowerCase()==="0x"||trim(c).toLowerCase()==="0x00")}function isPresent(c){return!isEmpty(c)}function isEIP1559(c){return typeof c.maxFeePerGas<"u"&&typeof c.maxPriorityFeePerGas<"u"}function isCIP64(c){return c.type==="cip64"?!0:isEIP1559(c)&&isPresent(c.feeCurrency)}const formatters={block:defineBlock({exclude:["difficulty","gasLimit","mixHash","nonce","uncles"],format(c){var d;const a=(d=c.transactions)==null?void 0:d.map(et=>typeof et=="string"?et:{...formatTransaction(et),feeCurrency:et.feeCurrency,...et.type!=="0x7b"?{gatewayFee:et.gatewayFee?hexToBigInt(et.gatewayFee):null,gatewayFeeRecipient:et.gatewayFeeRecipient||null}:{}});return{randomness:c.randomness,transactions:a}}}),transaction:defineTransaction({format(c){const a={feeCurrency:c.feeCurrency};return c.type==="0x7b"?a.type="cip64":(c.type==="0x7c"&&(a.type="cip42"),a.gatewayFee=c.gatewayFee?hexToBigInt(c.gatewayFee):null,a.gatewayFeeRecipient=c.gatewayFeeRecipient),a}}),transactionRequest:defineTransactionRequest({format(c){const a={feeCurrency:c.feeCurrency};return isCIP64(c)&&(a.type="0x7b"),a}})};function serializeTransaction(c,a){return isCIP64(c)?serializeTransactionCIP64(c,a):serializeTransaction$2(c,a)}const serializers={transaction:serializeTransaction};function serializeTransactionCIP64(c,a){assertTransactionCIP64(c);const{chainId:d,gas:et,nonce:nt,to:tt,value:bt,maxFeePerGas:gt,maxPriorityFeePerGas:wt,accessList:St,feeCurrency:Mt,data:_t}=c,Tt=[toHex(d),nt?toHex(nt):"0x",wt?toHex(wt):"0x",gt?toHex(gt):"0x",et?toHex(et):"0x",tt??"0x",bt?toHex(bt):"0x",_t??"0x",serializeAccessList(St),Mt,...toYParitySignatureArray(c,a)];return concatHex(["0x7b",toRlp(Tt)])}const MAX_MAX_FEE_PER_GAS=2n**256n-1n;function assertTransactionCIP64(c){const{chainId:a,maxPriorityFeePerGas:d,gasPrice:et,maxFeePerGas:nt,to:tt,feeCurrency:bt}=c;if(a<=0)throw new InvalidChainIdError({chainId:a});if(tt&&!isAddress(tt))throw new InvalidAddressError({address:tt});if(et)throw new BaseError("`gasPrice` is not a valid CIP-64 Transaction attribute.");if(isPresent(nt)&&nt>MAX_MAX_FEE_PER_GAS)throw new FeeCapTooHighError({maxFeePerGas:nt});if(isPresent(d)&&isPresent(nt)&&d>nt)throw new TipAboveFeeCapError({maxFeePerGas:nt,maxPriorityFeePerGas:d});if(isPresent(bt)&&!isAddress(bt))throw new BaseError("`feeCurrency` MUST be a token address for CIP-64 transactions.");if(isEmpty(bt))throw new BaseError("`feeCurrency` must be provided for CIP-64 transactions.")}const chainConfig={formatters,serializers,fees},celo=defineChain({...chainConfig,id:42220,name:"Celo",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://forno.celo.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://celoscan.io",apiUrl:"https://api.celoscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:13112599}},testnet:!1}),goerli=defineChain({id:5,name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.etherscan.io",apiUrl:"https://api-goerli.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xfc4AC75C46C914aF5892d6d3eFFcebD7917293F1",blockCreated:10339206},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0}),gnosis=defineChain({id:100,name:"Gnosis",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},rpcUrls:{default:{http:["https://rpc.gnosischain.com"],webSocket:["wss://rpc.gnosischain.com/wss"]}},blockExplorers:{default:{name:"Gnosisscan",url:"https://gnosisscan.io",apiUrl:"https://api.gnosisscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:21022491}}}),polygon=defineChain({id:137,name:"Polygon",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{default:{http:["https://polygon-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://polygonscan.com",apiUrl:"https://api.polygonscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}}),sepolia=defineChain({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.sepolia.org"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc8Af999e38273D658BE1b921b88A9Ddf005769cC",blockCreated:5317080}},testnet:!0}),getUserOperationGasPrice=async c=>{const a=await c.request({method:"pimlico_getUserOperationGasPrice",params:[]});return{slow:{maxFeePerGas:BigInt(a.slow.maxFeePerGas),maxPriorityFeePerGas:BigInt(a.slow.maxPriorityFeePerGas)},standard:{maxFeePerGas:BigInt(a.standard.maxFeePerGas),maxPriorityFeePerGas:BigInt(a.standard.maxPriorityFeePerGas)},fast:{maxFeePerGas:BigInt(a.fast.maxFeePerGas),maxPriorityFeePerGas:BigInt(a.fast.maxPriorityFeePerGas)}}},getUserOperationStatus=async(c,{hash:a})=>c.request({method:"pimlico_getUserOperationStatus",params:[a]}),sendCompressedUserOperation=async(c,a)=>{const{compressedUserOperation:d,inflatorAddress:et,entryPoint:nt}=a;return c.request({method:"pimlico_sendCompressedUserOperation",params:[d,et,nt]})},sponsorUserOperation=async(c,a)=>{const d=await c.request({method:"pm_sponsorUserOperation",params:a.sponsorshipPolicyId?[deepHexlify(a.userOperation),a.entryPoint,{sponsorshipPolicyId:a.sponsorshipPolicyId}]:[deepHexlify(a.userOperation),a.entryPoint]});if(a.entryPoint===ENTRYPOINT_ADDRESS_V06){const nt=d;return{paymasterAndData:nt.paymasterAndData,preVerificationGas:BigInt(nt.preVerificationGas),verificationGasLimit:BigInt(nt.verificationGasLimit),callGasLimit:BigInt(nt.callGasLimit)}}const et=d;return{callGasLimit:BigInt(et.callGasLimit),verificationGasLimit:BigInt(et.verificationGasLimit),preVerificationGas:BigInt(et.preVerificationGas),paymaster:et.paymaster,paymasterVerificationGasLimit:BigInt(et.paymasterVerificationGasLimit),paymasterPostOpGasLimit:BigInt(et.paymasterPostOpGasLimit),paymasterData:et.paymasterData}},validateSponsorshipPolicies=async(c,a)=>await c.request({method:"pm_validateSponsorshipPolicies",params:[deepHexlify(a.userOperation),a.entryPoint,a.sponsorshipPolicyIds]}),pimlicoBundlerActions=c=>a=>({getUserOperationGasPrice:async()=>getUserOperationGasPrice(a),getUserOperationStatus:async d=>getUserOperationStatus(a,d),sendCompressedUserOperation:async d=>sendCompressedUserOperation(a,{...d,entryPoint:c})}),pimlicoPaymasterActions=c=>a=>({sponsorUserOperation:async d=>sponsorUserOperation(a,{...d,entryPoint:c}),validateSponsorshipPolicies:async d=>validateSponsorshipPolicies(a,{...d,entryPoint:c})}),createPimlicoBundlerClient=c=>{const{key:a="public",name:d="Pimlico Bundler Client"}=c;return createClient({...c,key:a,name:d,type:"pimlicoBundlerClient"}).extend(bundlerActions(c.entryPoint)).extend(pimlicoBundlerActions(c.entryPoint))},createPimlicoPaymasterClient=c=>{const{key:a="public",name:d="Pimlico Paymaster Client"}=c;return createClient({...c,key:a,name:d,type:"pimlicoPaymasterClient"}).extend(pimlicoPaymasterActions(c.entryPoint))},getChain=c=>[base,celo,gnosis,sepolia,baseGoerli,goerli,polygon,baseSepolia].find(a=>a.id==c),sendUserOperation=async(c,a,d)=>{const nt=`https://api.pimlico.io/v2/${getChain(c).name.toLowerCase().replace(/\s+/g,"-")}/rpc?apikey=6da54156-e08c-4136-afe5-eea678bd5e97`,tt=createPimlicoBundlerClient({transport:http(nt),entryPoint:ENTRYPOINT_ADDRESS_V07}),bt=createPimlicoPaymasterClient({transport:http(nt),entryPoint:ENTRYPOINT_ADDRESS_V07}),gt=await tt.getUserOperationGasPrice();a.maxFeePerGas=gt.fast.maxFeePerGas,a.maxPriorityFeePerGas=gt.fast.maxPriorityFeePerGas;const wt=await bt.sponsorUserOperation({userOperation:a}),St={...a,...wt};return St.signature=await d(St),await tt.sendUserOperation({userOperation:St})},waitForExecution=async(c,a)=>{const et=`https://api.pimlico.io/v2/${getChain(c).name.toLowerCase().replace(/\s+/g,"-")}/rpc?apikey=6da54156-e08c-4136-afe5-eea678bd5e97`;return await createPimlicoBundlerClient({transport:http(et),entryPoint:ENTRYPOINT_ADDRESS_V07}).waitForUserOperationReceipt({hash:a,timeout:6e4})},safe7579Module="0x6572f74fb630cfe9132143dd4007ddd013e40f83",safeFaucetModule="0xac84538d5167B93151678EA39a07a7cDa88A48C6",smartWalletImp="0x000100abaad02f1cfC8Bbe32bD5a564817339E72",fetchFaucets=async c=>{const a=await getJsonRpcProvider(c);return await new Contract(safeFaucetModule,SafeFaucetModule.abi,a).listFaucets()},sendTransaction=async(c,a,d,et,nt,tt)=>{console.log(nt,tt);const bt=["function execute(uint256 faucetId, address to, uint256 value, bytes calldata data) external"],gt=new Interface(bt).encodeFunctionData("execute",[tt,a,d,et]),wt={target:safeFaucetModule,value:0,callData:gt},St=BigInt(pad(safeFaucetModule,{dir:"right",size:24})||0),Mt=await getAccountNonce(publicClient(parseInt(c)),{sender:nt,entryPoint:ENTRYPOINT_ADDRESS_V07,key:St});let _t=buildUnsignedUserOpTransaction(nt,[wt],Mt);return await sendUserOperation(c,_t,async function(It){return"0x"})},buildInitSafe7579=async()=>{const c=await getSafeInfo(),d=(await(await getProvider()).getNetwork()).chainId.toString(),et=await getJsonRpcProvider(d),nt=new Contract(safe7579Module,Safe7579.abi,et);return{to:c.safeAddress,value:"0",data:(await nt.initializeAccount.populateTransaction([],[],[],[],{registry:ZeroAddress,attesters:[],threshold:0})).data}},buildInstallValidator=async()=>{const c=await getSafeInfo(),d=(await(await getProvider()).getNetwork()).chainId.toString(),et=await getJsonRpcProvider(d),nt=new Contract(safe7579Module,Safe7579.abi,et);return{to:c.safeAddress,value:"0",data:(await nt.installModule.populateTransaction(1,safeFaucetModule,"0x")).data}},buildInstallExecutor=async()=>{const c=await getSafeInfo(),d=(await(await getProvider()).getNetwork()).chainId.toString(),et=await getJsonRpcProvider(d),nt=new Contract(safe7579Module,Safe7579.abi,et);return{to:c.safeAddress,value:"0",data:(await nt.installModule.populateTransaction(2,safeFaucetModule,"0x")).data}},buildAddFaucet=async(c,a,d,et,nt)=>{const tt=await getSafeInfo(),bt=await getProvider(),gt={account:tt.safeAddress,token:c,validAfter:0,validUntil:et,limitAmount:parseUnits$1(a,c!=ZeroAddress?await getTokenDecimals(c,bt):"ether"),refreshInterval:d,eoa:{singletons:[],versions:[],supported:nt.includes("eoa")},safe:{singletons:[],versions:["1.3.1","1.4.1"],supported:nt.includes("safe")},cbSW:{singletons:[smartWalletImp],versions:[],supported:nt.includes("cbsw")}},wt=(await bt.getNetwork()).chainId.toString(),St=await getJsonRpcProvider(wt),Mt=new Contract(safeFaucetModule,SafeFaucetModule.abi,St);return{to:safeFaucetModule,value:"0",data:(await Mt.addFaucet.populateTransaction(gt)).data}},addFaucetModule=async(c,a,d,et,nt)=>{if(!await isConnectedToSafe())throw Error("Not connected to a Safe");const tt=await getSafeInfo(),bt=[];await isModuleEnabled(tt.safeAddress,safe7579Module)?await isModuleInstalled(tt.safeAddress,safeFaucetModule,1)||(bt.push(await buildInstallValidator()),bt.push(await buildInstallExecutor())):(bt.push(await buildEnableModule(tt.safeAddress,safe7579Module)),bt.push(await buildUpdateFallbackHandler(tt.safeAddress,safe7579Module)),bt.push(await buildInitSafe7579()),bt.push(await buildInstallValidator()),bt.push(await buildInstallExecutor())),bt.push(await buildAddFaucet(c,a,d,et,nt)),(await(await getProvider()).getNetwork()).chainId.toString(),bt.length>0&&await submitTxs(bt)},Celo="/assets/celo-662fcaf6.jpg",Matic="/assets/matic-479d03ee.svg",USDe="/assets/usde-f0eba4d9.svg",Boge="/assets/boge-65682b1c.jpg",ZMUG="/assets/ZMUG-34b1d3c6.svg",ZSHIRT="/assets/ZSHIRT-b0387b19.svg",badgeIcons=[{ids:["84532","8453"],img:Base$9},{ids:["11155111","5","1"],img:ETH},{ids:["100"],img:"https://app.safe.global/images/networks/gno.png"},{ids:["42220"],img:Celo},{ids:["1101","137","80001"],img:Matic}];function getIconForId(c){for(const a of badgeIcons)if(a.ids.includes(c.toString()))return a.img;return"defaultIcon"}const tokenList={84532:[{value:"0x0000000000000000000000000000000000000000",label:"ETH",image:ETH,description:"Ether currency"},{value:"0xC432004323f06ca58362A5EFd993A368c93d032b",label:"OST",image:Base$9,description:"Onchain Summer Token"},{value:"0x3603033F35F295eDAd34d13A13628bdE247653D6",label:"ZMUG",image:ZMUG,description:"ZenGuard Mug Token"},{value:"0x31F7F5E3f937AC60ABeA894F39e93d350FEb5937",label:"ZSHIRT",image:ZSHIRT,description:"ZenGuard Shirt Token"}],8453:[{value:"0x0000000000000000000000000000000000000000",label:"ETH",image:ETH,description:"Ether currency"},{value:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",label:"USDC",image:USDe,description:"Circle USDS token"},{value:"0x4e496c0256FB9D4CC7Ba2fdF931bC9CbB7731660",label:"BOGE",image:Boge,description:"BOGE token"},{value:"0x3603033F35F295eDAd34d13A13628bdE247653D6",label:"ZMUG",image:ZMUG,description:"ZenGuard Mug Token"},{value:"0x31F7F5E3f937AC60ABeA894F39e93d350FEb5937",label:"ZSHIRT",image:ZSHIRT,description:"ZenGuard Shirt Token"}]},getTokenInfo=(c,a)=>{try{if(Object.keys(tokenList).includes(c.toString()))return tokenList[c].find(d=>d.value.toLowerCase()==(a==null?void 0:a.toLowerCase()))}catch{console.log("Error getting token info")}return{}},getTokenList=c=>Object.keys(tokenList).includes(c.toString())?tokenList[c]:[];var Component={},toggleSelection=function(){var c=document.getSelection();if(!c.rangeCount)return function(){};for(var a=document.activeElement,d=[],et=0;et"u"){d&&console.warn("unable to use e.clipboardData"),d&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var _t=clipboardToIE11Formatting[a.format]||clipboardToIE11Formatting.default;window.clipboardData.setData(_t,c)}else Mt.clipboardData.clearData(),Mt.clipboardData.setData(a.format,c);a.onCopy&&(Mt.preventDefault(),a.onCopy(Mt.clipboardData))}),document.body.appendChild(gt),tt.selectNodeContents(gt),bt.addRange(tt);var St=document.execCommand("copy");if(!St)throw new Error("copy command was unsuccessful");wt=!0}catch(Mt){d&&console.error("unable to copy using execCommand: ",Mt),d&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",c),a.onCopy&&a.onCopy(window.clipboardData),wt=!0}catch(_t){d&&console.error("unable to copy using clipboardData: ",_t),d&&console.error("falling back to prompt"),et=format("message"in a?a.message:defaultMessage),window.prompt(et,c)}}finally{bt&&(typeof bt.removeRange=="function"?bt.removeRange(tt):bt.removeAllRanges()),gt&&document.body.removeChild(gt),nt()}return wt}var copyToClipboard=copy;function _typeof(c){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(c)}Object.defineProperty(Component,"__esModule",{value:!0});Component.CopyToClipboard=void 0;var _react=_interopRequireDefault(reactExports),_copyToClipboard=_interopRequireDefault(copyToClipboard),_excluded=["text","onCopy","options","children"];function _interopRequireDefault(c){return c&&c.__esModule?c:{default:c}}function ownKeys(c,a){var d=Object.keys(c);if(Object.getOwnPropertySymbols){var et=Object.getOwnPropertySymbols(c);a&&(et=et.filter(function(nt){return Object.getOwnPropertyDescriptor(c,nt).enumerable})),d.push.apply(d,et)}return d}function _objectSpread(c){for(var a=1;a=0)&&Object.prototype.propertyIsEnumerable.call(c,et)&&(d[et]=c[et])}return d}function _objectWithoutPropertiesLoose(c,a){if(c==null)return{};var d={},et=Object.keys(c),nt,tt;for(tt=0;tt=0)&&(d[nt]=c[nt]);return d}function _classCallCheck(c,a){if(!(c instanceof a))throw new TypeError("Cannot call a class as a function")}function _defineProperties(c,a){for(var d=0;d"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 _getPrototypeOf(c){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)},_getPrototypeOf(c)}function _defineProperty(c,a,d){return a in c?Object.defineProperty(c,a,{value:d,enumerable:!0,configurable:!0,writable:!0}):c[a]=d,c}var CopyToClipboard$1=function(c){_inherits(d,c);var a=_createSuper(d);function d(){var et;_classCallCheck(this,d);for(var nt=arguments.length,tt=new Array(nt),bt=0;bta in c?__defProp(c,a,{enumerable:!0,configurable:!0,writable:!0,value:d}):c[a]=d,__spreadValues=(c,a)=>{for(var d in a||(a={}))__hasOwnProp.call(a,d)&&__defNormalProp(c,d,a[d]);if(__getOwnPropSymbols)for(var d of __getOwnPropSymbols(a))__propIsEnum.call(a,d)&&__defNormalProp(c,d,a[d]);return c},__spreadProps=(c,a)=>__defProps(c,__getOwnPropDescs(a)),__objRest=(c,a)=>{var d={};for(var et in c)__hasOwnProp.call(c,et)&&a.indexOf(et)<0&&(d[et]=c[et]);if(c!=null&&__getOwnPropSymbols)for(var et of __getOwnPropSymbols(c))a.indexOf(et)<0&&__propIsEnum.call(c,et)&&(d[et]=c[et]);return d},createReactComponent=(c,a,d)=>{const et=reactExports.forwardRef((nt,tt)=>{var bt=nt,{color:gt="currentColor",size:wt=24,stroke:St=2,children:Mt}=bt,_t=__objRest(bt,["color","size","stroke","children"]);return reactExports.createElement("svg",__spreadValues(__spreadProps(__spreadValues({ref:tt},defaultAttributes),{width:wt,height:wt,stroke:gt,strokeWidth:St,className:`tabler-icon tabler-icon-${c}`}),_t),[...d.map(([Tt,Bt])=>reactExports.createElement(Tt,Bt)),...Mt||[]])});return et.propTypes={color:PropTypes.string,size:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),stroke:PropTypes.oneOfType([PropTypes.string,PropTypes.number])},et.displayName=`${a}`,et},IconBrandX=createReactComponent("brand-x","IconBrandX",[["path",{d:"M4 4l11.733 16h4.267l-11.733 -16z",key:"svg-0"}],["path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772",key:"svg-1"}]]);const parachute1="/assets/drop-base-e16c810e.svg",parachute2="/assets/drop-eth-47ae757b.svg",parachute3="/assets/drop-usdc-7e1cc6c2.svg",BackgroundWrapper=pt.div` +`),{cause:a}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PaymasterDataRejectedError"})}}Object.defineProperty(PaymasterDataRejectedError,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa34/});function getBundlerError(c,a){const d=(c.details||"").toLowerCase(),et=c instanceof BaseError?c.walk(nt=>nt.code===ExecutionRevertedError.code):c;return et instanceof BaseError?new ExecutionRevertedError({cause:c,message:et.details}):a.userOperation.sender===void 0?new UnknownNodeError({cause:c}):a.userOperation.nonce===void 0?new UnknownNodeError({cause:c}):SenderAlreadyDeployedError.message.test(d)?new SenderAlreadyDeployedError({cause:c,sender:a.userOperation.sender,docsPath:"https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa10"}):InitCodeRevertedError.message.test(d)?new InitCodeRevertedError({cause:c,docsPath:"https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa13"}):SenderAddressMismatchError.message.test(d)?new SenderAddressMismatchError({cause:c,sender:a.userOperation.sender,docsPath:"https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa14"}):InitCodeDidNotDeploySenderError.message.test(d)?new InitCodeDidNotDeploySenderError({cause:c,sender:a.userOperation.sender,docsPath:"https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa15"}):SenderNotDeployedError.message.test(d)?new SenderNotDeployedError({cause:c,sender:a.userOperation.sender,docsPath:"https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa20"}):SmartAccountInsufficientFundsError.message.test(d)?new SmartAccountInsufficientFundsError({cause:c,sender:a.userOperation.sender,docsPath:"https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa21"}):SmartAccountSignatureValidityPeriodError.message.test(d)?new SmartAccountSignatureValidityPeriodError({cause:c,docsPath:"https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa22"}):SmartAccountValidationRevertedError.message.test(d)?new SmartAccountValidationRevertedError({cause:c,sender:a.userOperation.sender,docsPath:"https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa23"}):InvalidSmartAccountNonceError.message.test(d)?new InvalidSmartAccountNonceError({cause:c,sender:a.userOperation.sender,nonce:a.userOperation.nonce,docsPath:"https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa25"}):PaymasterNotDeployedError.message.test(d)?new PaymasterNotDeployedError({cause:c,paymasterAndData:a.userOperation.paymasterAndData,docsPath:"https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa30"}):PaymasterDepositTooLowError.message.test(d)?new PaymasterDepositTooLowError({cause:c,paymasterAndData:a.userOperation.paymasterAndData,docsPath:"https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa31"}):PaymasterValidityPeriodError.message.test(d)?new PaymasterValidityPeriodError({cause:c,paymasterAndData:a.userOperation.paymasterAndData,docsPath:"https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa32"}):PaymasterValidationRevertedError.message.test(d)?new PaymasterValidationRevertedError({cause:c,paymasterAndData:a.userOperation.paymasterAndData,docsPath:"https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa33"}):PaymasterDataRejectedError.message.test(d)?new PaymasterDataRejectedError({cause:c,paymasterAndData:a.userOperation.paymasterAndData,docsPath:"https://docs.pimlico.io/bundler/reference/entrypoint-errors/aa34"}):new UnknownNodeError({cause:c})}function getEstimateUserOperationGasError(c,a){const d=(()=>{const et=getBundlerError(c,a);return et instanceof UnknownNodeError?c:et})();throw new EstimateUserOperationGasError(d,{...a})}const estimateUserOperationGas=async(c,a,d)=>{const{userOperation:et,entryPoint:nt}=a,tt=deepHexlify(et),bt=deepHexlify(d);try{const gt=await c.request({method:"eth_estimateUserOperationGas",params:d?[tt,nt,bt]:[tt,nt]});if(getEntryPointVersion(nt)==="v0.6"){const Mt=gt;return{preVerificationGas:BigInt(Mt.preVerificationGas||0),verificationGasLimit:BigInt(Mt.verificationGasLimit||0),callGasLimit:BigInt(Mt.callGasLimit||0)}}const St=gt;return{preVerificationGas:BigInt(St.preVerificationGas||0),verificationGasLimit:BigInt(St.verificationGasLimit||0),callGasLimit:BigInt(St.callGasLimit||0),paymasterVerificationGasLimit:St.paymasterVerificationGasLimit?BigInt(St.paymasterVerificationGasLimit):void 0,paymasterPostOpGasLimit:St.paymasterPostOpGasLimit?BigInt(St.paymasterPostOpGasLimit):void 0}}catch(gt){throw getEstimateUserOperationGasError(gt,a)}},getUserOperationByHash=async(c,{hash:a})=>{const d=[a],et=await c.request({method:"eth_getUserOperationByHash",params:d});if(!et)return null;const{userOperation:nt,entryPoint:tt,transactionHash:bt,blockHash:gt,blockNumber:wt}=et;return{userOperation:tt===ENTRYPOINT_ADDRESS_V06?{...nt,nonce:BigInt(nt.nonce),callGasLimit:BigInt(nt.callGasLimit),verificationGasLimit:BigInt(nt.verificationGasLimit),preVerificationGas:BigInt(nt.preVerificationGas),maxFeePerGas:BigInt(nt.maxFeePerGas),maxPriorityFeePerGas:BigInt(nt.maxPriorityFeePerGas)}:{...nt,nonce:BigInt(nt.nonce),callGasLimit:BigInt(nt.callGasLimit),verificationGasLimit:BigInt(nt.verificationGasLimit),preVerificationGas:BigInt(nt.preVerificationGas),maxFeePerGas:BigInt(nt.maxFeePerGas),maxPriorityFeePerGas:BigInt(nt.maxPriorityFeePerGas),paymasterVerificationGasLimit:nt.paymasterVerificationGasLimit?BigInt(nt.paymasterVerificationGasLimit):void 0,paymasterPostOpGasLimit:nt.paymasterVerificationGasLimit?BigInt(nt.paymasterPostOpGasLimit):void 0},entryPoint:tt,transactionHash:bt,blockHash:gt,blockNumber:BigInt(wt)}},getUserOperationReceipt=async(c,{hash:a})=>{const d=[a],et=await c.request({method:"eth_getUserOperationReceipt",params:d});return et?{userOpHash:et.userOpHash,entryPoint:et.entryPoint,sender:et.sender,nonce:BigInt(et.nonce),paymaster:et.paymaster,actualGasUsed:BigInt(et.actualGasUsed),actualGasCost:BigInt(et.actualGasCost),success:et.success,reason:et.reason,receipt:{transactionHash:et.receipt.transactionHash,transactionIndex:BigInt(et.receipt.transactionIndex),blockHash:et.receipt.blockHash,blockNumber:BigInt(et.receipt.blockNumber),from:et.receipt.from,to:et.receipt.to,cumulativeGasUsed:BigInt(et.receipt.cumulativeGasUsed),status:transactionReceiptStatus[et.receipt.status],gasUsed:BigInt(et.receipt.gasUsed),contractAddress:et.receipt.contractAddress,logsBloom:et.receipt.logsBloom,effectiveGasPrice:BigInt(et.receipt.effectiveGasPrice)},logs:et.logs.map(tt=>({data:tt.data,blockNumber:BigInt(tt.blockNumber),blockHash:tt.blockHash,transactionHash:tt.transactionHash,logIndex:Number(tt.logIndex),transactionIndex:Number(tt.transactionIndex),address:tt.address,topics:tt.topics,removed:tt.removed}))}:null};function getSendUserOperationError(c,a){const d=(()=>{const et=getBundlerError(c,a);return et instanceof UnknownNodeError?c:et})();throw new SendUserOperationError(d,{...a})}const sendUserOperation$1=async(c,a)=>{const{userOperation:d,entryPoint:et}=a;try{return await c.request({method:"eth_sendUserOperation",params:[deepHexlify(d),et]})}catch(nt){throw getSendUserOperationError(nt,a)}},supportedEntryPoints=async c=>c.request({method:"eth_supportedEntryPoints",params:[]}),listenersCache=new Map,cleanupCache=new Map;let callbackCount=0;function observe(c,a,d){const et=++callbackCount,nt=()=>listenersCache.get(c)||[],tt=()=>{const Mt=nt();listenersCache.set(c,Mt.filter(_t=>_t.id!==et))},bt=()=>{const Mt=cleanupCache.get(c);nt().length===1&&Mt&&Mt(),tt()},gt=nt();if(listenersCache.set(c,[...gt,{id:et,fns:a}]),gt&>.length>0)return bt;const wt={};for(const Mt in a)wt[Mt]=(..._t)=>{var Rt,kt;const Tt=nt();if(Tt.length!==0)for(const It of Tt)(kt=(Rt=It.fns)[Mt])==null||kt.call(Rt,..._t)};const St=d(wt);return typeof St=="function"&&cleanupCache.set(c,St),bt}class WaitForUserOperationReceiptTimeoutError extends BaseError{constructor({hash:a}){super(`Timed out while waiting for transaction with hash "${a}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForUserOperationReceiptTimeoutError"})}}const waitForUserOperationReceipt=(c,{hash:a,pollingInterval:d=c.pollingInterval,timeout:et=c.transport.timeout})=>{const nt=stringify(["waitForUserOperationReceipt",c.uid,a]);let tt;return new Promise((bt,gt)=>{const wt=observe(nt,{resolve:bt,reject:gt},async St=>{let Mt;const _t=setInterval(async()=>{const Tt=Rt=>{clearInterval(_t),Rt(),wt(),et&&clearTimeout(Mt)};try{const Rt=await getAction(c,getUserOperationReceipt,"getUserOperationReceipt")({hash:a});if(Rt!==null&&(tt=Rt),tt){Tt(()=>St.resolve(tt));return}}catch(Rt){Tt(()=>St.reject(Rt));return}},d);et&&(Mt=setTimeout(()=>{clearInterval(_t),wt(),gt(new WaitForUserOperationReceiptTimeoutError({hash:a})),clearTimeout(Mt)},et))})})},getAccountNonce=async(c,a)=>{const{sender:d,entryPoint:et,key:nt=BigInt(0)}=a;return await getAction(c,readContract,"readContract")({address:et,abi:[{inputs:[{name:"sender",type:"address"},{name:"key",type:"uint192"}],name:"getNonce",outputs:[{name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"}],functionName:"getNonce",args:[d,nt]})},bundlerActions=c=>a=>({sendUserOperation:async d=>sendUserOperation$1(a,{...d,entryPoint:c}),estimateUserOperationGas:(d,et)=>estimateUserOperationGas(a,{...d,entryPoint:c},et),supportedEntryPoints:()=>supportedEntryPoints(a),chainId:()=>chainId(a),getUserOperationByHash:d=>getUserOperationByHash(a,d),getUserOperationReceipt:d=>getUserOperationReceipt(a,d),waitForUserOperationReceipt:d=>waitForUserOperationReceipt(a,d)}),contracts={gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},formatters$1={block:defineBlock({format(c){var d;return{transactions:(d=c.transactions)==null?void 0:d.map(et=>{if(typeof et=="string")return et;const nt=formatTransaction(et);return nt.typeHex==="0x7e"&&(nt.isSystemTx=et.isSystemTx,nt.mint=et.mint?hexToBigInt(et.mint):void 0,nt.sourceHash=et.sourceHash,nt.type="deposit"),nt}),stateRoot:c.stateRoot}}}),transaction:defineTransaction({format(c){const a={};return c.type==="0x7e"&&(a.isSystemTx=c.isSystemTx,a.mint=c.mint?hexToBigInt(c.mint):void 0,a.sourceHash=c.sourceHash,a.type="deposit"),a}}),transactionReceipt:defineTransactionReceipt({format(c){return{l1GasPrice:c.l1GasPrice?hexToBigInt(c.l1GasPrice):null,l1GasUsed:c.l1GasUsed?hexToBigInt(c.l1GasUsed):null,l1Fee:c.l1Fee?hexToBigInt(c.l1Fee):null,l1FeeScalar:c.l1FeeScalar?Number(c.l1FeeScalar):null}}})};function serializeTransaction$1(c,a){return isDeposit(c)?serializeTransactionDeposit(c):serializeTransaction$2(c,a)}const serializers$1={transaction:serializeTransaction$1};function serializeTransactionDeposit(c){assertTransactionDeposit(c);const{sourceHash:a,data:d,from:et,gas:nt,isSystemTx:tt,mint:bt,to:gt,value:wt}=c,St=[a,et,gt??"0x",bt?toHex(bt):"0x",wt?toHex(wt):"0x",nt?toHex(nt):"0x",tt?"0x1":"0x",d??"0x"];return concatHex(["0x7e",toRlp(St)])}function isDeposit(c){return c.type==="deposit"||typeof c.sourceHash<"u"}function assertTransactionDeposit(c){const{from:a,to:d}=c;if(a&&!isAddress(a))throw new InvalidAddressError({address:a});if(d&&!isAddress(d))throw new InvalidAddressError({address:d})}const chainConfig$1={contracts,formatters:formatters$1,serializers:serializers$1},sourceId$2=1,base=defineChain({...chainConfig$1,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...chainConfig$1.contracts,l2OutputOracle:{[sourceId$2]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[sourceId$2]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[sourceId$2]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:sourceId$2}),sourceId$1=5,baseGoerli=defineChain({...chainConfig$1,id:84531,name:"Base Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://goerli.basescan.org",apiUrl:"https://goerli.basescan.org/api"}},contracts:{...chainConfig$1.contracts,l2OutputOracle:{[sourceId$1]:{address:"0x2A35891ff30313CcFa6CE88dcf3858bb075A2298"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1376988},portal:{[sourceId$1]:{address:"0xe93c8cD0D409341205A592f8c4Ac1A5fe5585cfA"}},l1StandardBridge:{[sourceId$1]:{address:"0xfA6D8Ee5BE770F84FC001D098C4bD604Fe01284a"}}},testnet:!0,sourceId:sourceId$1}),sourceId=11155111,baseSepolia=defineChain({...chainConfig$1,id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://sepolia.basescan.org",apiUrl:"https://api-sepolia.basescan.org/api"}},contracts:{...chainConfig$1.contracts,l2OutputOracle:{[sourceId]:{address:"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"}},portal:{[sourceId]:{address:"0x49f53e41452c74589e85ca1677426ba426459e85",blockCreated:4446677}},l1StandardBridge:{[sourceId]:{address:"0xfd0Bf71F60660E2f608ed56e1659C450eB113120",blockCreated:4446677}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1059647}},testnet:!0,sourceId}),fees={estimateFeesPerGas:async c=>{var et;if(!((et=c.request)!=null&&et.feeCurrency))return null;const[a,d]=await Promise.all([estimateFeePerGasInFeeCurrency(c.client,c.request.feeCurrency),estimateMaxPriorityFeePerGasInFeeCurrency(c.client,c.request.feeCurrency)]);return{maxFeePerGas:a,maxPriorityFeePerGas:d}}};async function estimateFeePerGasInFeeCurrency(c,a){const d=await c.request({method:"eth_gasPrice",params:[a]});return BigInt(d)}async function estimateMaxPriorityFeePerGasInFeeCurrency(c,a){const d=await c.request({method:"eth_maxPriorityFeePerGas",params:[a]});return BigInt(d)}function isEmpty(c){return c===0||c===0n||c===void 0||c===null||c==="0"||c===""||typeof c=="string"&&(trim(c).toLowerCase()==="0x"||trim(c).toLowerCase()==="0x00")}function isPresent(c){return!isEmpty(c)}function isEIP1559(c){return typeof c.maxFeePerGas<"u"&&typeof c.maxPriorityFeePerGas<"u"}function isCIP64(c){return c.type==="cip64"?!0:isEIP1559(c)&&isPresent(c.feeCurrency)}const formatters={block:defineBlock({exclude:["difficulty","gasLimit","mixHash","nonce","uncles"],format(c){var d;const a=(d=c.transactions)==null?void 0:d.map(et=>typeof et=="string"?et:{...formatTransaction(et),feeCurrency:et.feeCurrency,...et.type!=="0x7b"?{gatewayFee:et.gatewayFee?hexToBigInt(et.gatewayFee):null,gatewayFeeRecipient:et.gatewayFeeRecipient||null}:{}});return{randomness:c.randomness,transactions:a}}}),transaction:defineTransaction({format(c){const a={feeCurrency:c.feeCurrency};return c.type==="0x7b"?a.type="cip64":(c.type==="0x7c"&&(a.type="cip42"),a.gatewayFee=c.gatewayFee?hexToBigInt(c.gatewayFee):null,a.gatewayFeeRecipient=c.gatewayFeeRecipient),a}}),transactionRequest:defineTransactionRequest({format(c){const a={feeCurrency:c.feeCurrency};return isCIP64(c)&&(a.type="0x7b"),a}})};function serializeTransaction(c,a){return isCIP64(c)?serializeTransactionCIP64(c,a):serializeTransaction$2(c,a)}const serializers={transaction:serializeTransaction};function serializeTransactionCIP64(c,a){assertTransactionCIP64(c);const{chainId:d,gas:et,nonce:nt,to:tt,value:bt,maxFeePerGas:gt,maxPriorityFeePerGas:wt,accessList:St,feeCurrency:Mt,data:_t}=c,Tt=[toHex(d),nt?toHex(nt):"0x",wt?toHex(wt):"0x",gt?toHex(gt):"0x",et?toHex(et):"0x",tt??"0x",bt?toHex(bt):"0x",_t??"0x",serializeAccessList(St),Mt,...toYParitySignatureArray(c,a)];return concatHex(["0x7b",toRlp(Tt)])}const MAX_MAX_FEE_PER_GAS=2n**256n-1n;function assertTransactionCIP64(c){const{chainId:a,maxPriorityFeePerGas:d,gasPrice:et,maxFeePerGas:nt,to:tt,feeCurrency:bt}=c;if(a<=0)throw new InvalidChainIdError({chainId:a});if(tt&&!isAddress(tt))throw new InvalidAddressError({address:tt});if(et)throw new BaseError("`gasPrice` is not a valid CIP-64 Transaction attribute.");if(isPresent(nt)&&nt>MAX_MAX_FEE_PER_GAS)throw new FeeCapTooHighError({maxFeePerGas:nt});if(isPresent(d)&&isPresent(nt)&&d>nt)throw new TipAboveFeeCapError({maxFeePerGas:nt,maxPriorityFeePerGas:d});if(isPresent(bt)&&!isAddress(bt))throw new BaseError("`feeCurrency` MUST be a token address for CIP-64 transactions.");if(isEmpty(bt))throw new BaseError("`feeCurrency` must be provided for CIP-64 transactions.")}const chainConfig={formatters,serializers,fees},celo=defineChain({...chainConfig,id:42220,name:"Celo",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://forno.celo.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://celoscan.io",apiUrl:"https://api.celoscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:13112599}},testnet:!1}),goerli=defineChain({id:5,name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.etherscan.io",apiUrl:"https://api-goerli.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xfc4AC75C46C914aF5892d6d3eFFcebD7917293F1",blockCreated:10339206},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0}),gnosis=defineChain({id:100,name:"Gnosis",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},rpcUrls:{default:{http:["https://rpc.gnosischain.com"],webSocket:["wss://rpc.gnosischain.com/wss"]}},blockExplorers:{default:{name:"Gnosisscan",url:"https://gnosisscan.io",apiUrl:"https://api.gnosisscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:21022491}}}),polygon=defineChain({id:137,name:"Polygon",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{default:{http:["https://polygon-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://polygonscan.com",apiUrl:"https://api.polygonscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}}),sepolia=defineChain({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.sepolia.org"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc8Af999e38273D658BE1b921b88A9Ddf005769cC",blockCreated:5317080}},testnet:!0}),getUserOperationGasPrice=async c=>{const a=await c.request({method:"pimlico_getUserOperationGasPrice",params:[]});return{slow:{maxFeePerGas:BigInt(a.slow.maxFeePerGas),maxPriorityFeePerGas:BigInt(a.slow.maxPriorityFeePerGas)},standard:{maxFeePerGas:BigInt(a.standard.maxFeePerGas),maxPriorityFeePerGas:BigInt(a.standard.maxPriorityFeePerGas)},fast:{maxFeePerGas:BigInt(a.fast.maxFeePerGas),maxPriorityFeePerGas:BigInt(a.fast.maxPriorityFeePerGas)}}},getUserOperationStatus=async(c,{hash:a})=>c.request({method:"pimlico_getUserOperationStatus",params:[a]}),sendCompressedUserOperation=async(c,a)=>{const{compressedUserOperation:d,inflatorAddress:et,entryPoint:nt}=a;return c.request({method:"pimlico_sendCompressedUserOperation",params:[d,et,nt]})},sponsorUserOperation=async(c,a)=>{const d=await c.request({method:"pm_sponsorUserOperation",params:a.sponsorshipPolicyId?[deepHexlify(a.userOperation),a.entryPoint,{sponsorshipPolicyId:a.sponsorshipPolicyId}]:[deepHexlify(a.userOperation),a.entryPoint]});if(a.entryPoint===ENTRYPOINT_ADDRESS_V06){const nt=d;return{paymasterAndData:nt.paymasterAndData,preVerificationGas:BigInt(nt.preVerificationGas),verificationGasLimit:BigInt(nt.verificationGasLimit),callGasLimit:BigInt(nt.callGasLimit)}}const et=d;return{callGasLimit:BigInt(et.callGasLimit),verificationGasLimit:BigInt(et.verificationGasLimit),preVerificationGas:BigInt(et.preVerificationGas),paymaster:et.paymaster,paymasterVerificationGasLimit:BigInt(et.paymasterVerificationGasLimit),paymasterPostOpGasLimit:BigInt(et.paymasterPostOpGasLimit),paymasterData:et.paymasterData}},validateSponsorshipPolicies=async(c,a)=>await c.request({method:"pm_validateSponsorshipPolicies",params:[deepHexlify(a.userOperation),a.entryPoint,a.sponsorshipPolicyIds]}),pimlicoBundlerActions=c=>a=>({getUserOperationGasPrice:async()=>getUserOperationGasPrice(a),getUserOperationStatus:async d=>getUserOperationStatus(a,d),sendCompressedUserOperation:async d=>sendCompressedUserOperation(a,{...d,entryPoint:c})}),pimlicoPaymasterActions=c=>a=>({sponsorUserOperation:async d=>sponsorUserOperation(a,{...d,entryPoint:c}),validateSponsorshipPolicies:async d=>validateSponsorshipPolicies(a,{...d,entryPoint:c})}),createPimlicoBundlerClient=c=>{const{key:a="public",name:d="Pimlico Bundler Client"}=c;return createClient({...c,key:a,name:d,type:"pimlicoBundlerClient"}).extend(bundlerActions(c.entryPoint)).extend(pimlicoBundlerActions(c.entryPoint))},createPimlicoPaymasterClient=c=>{const{key:a="public",name:d="Pimlico Paymaster Client"}=c;return createClient({...c,key:a,name:d,type:"pimlicoPaymasterClient"}).extend(pimlicoPaymasterActions(c.entryPoint))},getChain=c=>[base,celo,gnosis,sepolia,baseGoerli,goerli,polygon,baseSepolia].find(a=>a.id==c),sendUserOperation=async(c,a,d)=>{const nt=`https://api.pimlico.io/v2/${getChain(c).name.toLowerCase().replace(/\s+/g,"-")}/rpc?apikey=6da54156-e08c-4136-afe5-eea678bd5e97`,tt=createPimlicoBundlerClient({transport:http(nt),entryPoint:ENTRYPOINT_ADDRESS_V07}),bt=createPimlicoPaymasterClient({transport:http(nt),entryPoint:ENTRYPOINT_ADDRESS_V07}),gt=await tt.getUserOperationGasPrice();a.maxFeePerGas=gt.fast.maxFeePerGas,a.maxPriorityFeePerGas=gt.fast.maxPriorityFeePerGas;const wt=await bt.sponsorUserOperation({userOperation:a}),St={...a,...wt};return St.signature=await d(St),await tt.sendUserOperation({userOperation:St})},waitForExecution=async(c,a)=>{const et=`https://api.pimlico.io/v2/${getChain(c).name.toLowerCase().replace(/\s+/g,"-")}/rpc?apikey=6da54156-e08c-4136-afe5-eea678bd5e97`;return await createPimlicoBundlerClient({transport:http(et),entryPoint:ENTRYPOINT_ADDRESS_V07}).waitForUserOperationReceipt({hash:a,timeout:6e4})},safe7579Module="0x6572f74fb630cfe9132143dd4007ddd013e40f83",safeFaucetModule="0xac84538d5167B93151678EA39a07a7cDa88A48C6",smartWalletImp="0x000100abaad02f1cfC8Bbe32bD5a564817339E72",fetchFaucets=async c=>{const a=await getJsonRpcProvider(c);return await new Contract(safeFaucetModule,SafeFaucetModule.abi,a).listFaucets()},sendTransaction=async(c,a,d,et,nt,tt)=>{console.log(nt,tt);const bt=["function execute(uint256 faucetId, address to, uint256 value, bytes calldata data) external"],gt=new Interface(bt).encodeFunctionData("execute",[tt,a,d,et]),wt={target:safeFaucetModule,value:0,callData:gt},St=BigInt(pad(safeFaucetModule,{dir:"right",size:24})||0),Mt=await getAccountNonce(publicClient(parseInt(c)),{sender:nt,entryPoint:ENTRYPOINT_ADDRESS_V07,key:St});let _t=buildUnsignedUserOpTransaction(nt,[wt],Mt);return await sendUserOperation(c,_t,async function(It){return"0x"})},buildInitSafe7579=async()=>{const c=await getSafeInfo(),d=(await(await getProvider()).getNetwork()).chainId.toString(),et=await getJsonRpcProvider(d),nt=new Contract(safe7579Module,Safe7579.abi,et);return{to:c.safeAddress,value:"0",data:(await nt.initializeAccount.populateTransaction([],[],[],[],{registry:ZeroAddress,attesters:[],threshold:0})).data}},buildInstallValidator=async()=>{const c=await getSafeInfo(),d=(await(await getProvider()).getNetwork()).chainId.toString(),et=await getJsonRpcProvider(d),nt=new Contract(safe7579Module,Safe7579.abi,et);return{to:c.safeAddress,value:"0",data:(await nt.installModule.populateTransaction(1,safeFaucetModule,"0x")).data}},buildInstallExecutor=async()=>{const c=await getSafeInfo(),d=(await(await getProvider()).getNetwork()).chainId.toString(),et=await getJsonRpcProvider(d),nt=new Contract(safe7579Module,Safe7579.abi,et);return{to:c.safeAddress,value:"0",data:(await nt.installModule.populateTransaction(2,safeFaucetModule,"0x")).data}},buildAddFaucet=async(c,a,d,et,nt)=>{const tt=await getSafeInfo(),bt=await getProvider(),gt={account:tt.safeAddress,token:c,validAfter:0,validUntil:et,limitAmount:parseUnits$1(a,c!=ZeroAddress?await getTokenDecimals(c,bt):"ether"),refreshInterval:d,eoa:{singletons:[],versions:[],supported:nt.includes("eoa")},safe:{singletons:[],versions:["1.3.1","1.4.1"],supported:nt.includes("safe")},cbSW:{singletons:[smartWalletImp],versions:[],supported:nt.includes("cbsw")}},wt=(await bt.getNetwork()).chainId.toString(),St=await getJsonRpcProvider(wt),Mt=new Contract(safeFaucetModule,SafeFaucetModule.abi,St);return{to:safeFaucetModule,value:"0",data:(await Mt.addFaucet.populateTransaction(gt)).data}},addFaucetModule=async(c,a,d,et,nt)=>{if(!await isConnectedToSafe())throw Error("Not connected to a Safe");const tt=await getSafeInfo(),bt=[];await isModuleEnabled(tt.safeAddress,safe7579Module)?await isModuleInstalled(tt.safeAddress,safeFaucetModule,1)||(bt.push(await buildInstallValidator()),bt.push(await buildInstallExecutor())):(bt.push(await buildEnableModule(tt.safeAddress,safe7579Module)),bt.push(await buildUpdateFallbackHandler(tt.safeAddress,safe7579Module)),bt.push(await buildInitSafe7579()),bt.push(await buildInstallValidator()),bt.push(await buildInstallExecutor())),bt.push(await buildAddFaucet(c,a,d,et,nt)),(await(await getProvider()).getNetwork()).chainId.toString(),bt.length>0&&await submitTxs(bt)},Celo="/assets/celo-662fcaf6.jpg",Matic="/assets/matic-479d03ee.svg",USDe="/assets/usde-f0eba4d9.svg",Boge="/assets/boge-65682b1c.jpg",ZMUG="/assets/ZMUG-34b1d3c6.svg",ZSHIRT="/assets/ZSHIRT-b0387b19.svg",badgeIcons=[{ids:["84532","8453"],img:Base$9},{ids:["11155111","5","1"],img:ETH},{ids:["100"],img:"https://app.safe.global/images/networks/gno.png"},{ids:["42220"],img:Celo},{ids:["1101","137","80001"],img:Matic}];function getIconForId(c){for(const a of badgeIcons)if(a.ids.includes(c.toString()))return a.img;return"defaultIcon"}const tokenList={84532:[{value:"0x0000000000000000000000000000000000000000",label:"ETH",image:ETH,description:"Ether currency"},{value:"0xC432004323f06ca58362A5EFd993A368c93d032b",label:"OST",image:Base$9,description:"Onchain Summer Token"},{value:"0x3603033F35F295eDAd34d13A13628bdE247653D6",label:"ZMUG",image:ZMUG,description:"ZenGuard Mug Token"},{value:"0x31F7F5E3f937AC60ABeA894F39e93d350FEb5937",label:"ZSHIRT",image:ZSHIRT,description:"ZenGuard Shirt Token"}],8453:[{value:"0x0000000000000000000000000000000000000000",label:"ETH",image:ETH,description:"Ether currency"},{value:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",label:"USDC",image:USDe,description:"Circle USDS token"},{value:"0x4e496c0256FB9D4CC7Ba2fdF931bC9CbB7731660",label:"BOGE",image:Boge,description:"BOGE token"},{value:"0x3603033F35F295eDAd34d13A13628bdE247653D6",label:"ZMUG",image:ZMUG,description:"ZenGuard Mug Token"},{value:"0x31F7F5E3f937AC60ABeA894F39e93d350FEb5937",label:"ZSHIRT",image:ZSHIRT,description:"ZenGuard Shirt Token"}]},getTokenInfo=(c,a)=>{try{if(Object.keys(tokenList).includes(c.toString()))return tokenList[c].find(d=>d.value.toLowerCase()==(a==null?void 0:a.toLowerCase()))}catch{console.log("Error getting token info")}return{}},getTokenList=c=>Object.keys(tokenList).includes(c.toString())?tokenList[c]:[];var Component={},toggleSelection=function(){var c=document.getSelection();if(!c.rangeCount)return function(){};for(var a=document.activeElement,d=[],et=0;et"u"){d&&console.warn("unable to use e.clipboardData"),d&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var _t=clipboardToIE11Formatting[a.format]||clipboardToIE11Formatting.default;window.clipboardData.setData(_t,c)}else Mt.clipboardData.clearData(),Mt.clipboardData.setData(a.format,c);a.onCopy&&(Mt.preventDefault(),a.onCopy(Mt.clipboardData))}),document.body.appendChild(gt),tt.selectNodeContents(gt),bt.addRange(tt);var St=document.execCommand("copy");if(!St)throw new Error("copy command was unsuccessful");wt=!0}catch(Mt){d&&console.error("unable to copy using execCommand: ",Mt),d&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",c),a.onCopy&&a.onCopy(window.clipboardData),wt=!0}catch(_t){d&&console.error("unable to copy using clipboardData: ",_t),d&&console.error("falling back to prompt"),et=format("message"in a?a.message:defaultMessage),window.prompt(et,c)}}finally{bt&&(typeof bt.removeRange=="function"?bt.removeRange(tt):bt.removeAllRanges()),gt&&document.body.removeChild(gt),nt()}return wt}var copyToClipboard=copy;function _typeof(c){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(c)}Object.defineProperty(Component,"__esModule",{value:!0});Component.CopyToClipboard=void 0;var _react=_interopRequireDefault(reactExports),_copyToClipboard=_interopRequireDefault(copyToClipboard),_excluded=["text","onCopy","options","children"];function _interopRequireDefault(c){return c&&c.__esModule?c:{default:c}}function ownKeys(c,a){var d=Object.keys(c);if(Object.getOwnPropertySymbols){var et=Object.getOwnPropertySymbols(c);a&&(et=et.filter(function(nt){return Object.getOwnPropertyDescriptor(c,nt).enumerable})),d.push.apply(d,et)}return d}function _objectSpread(c){for(var a=1;a=0)&&Object.prototype.propertyIsEnumerable.call(c,et)&&(d[et]=c[et])}return d}function _objectWithoutPropertiesLoose(c,a){if(c==null)return{};var d={},et=Object.keys(c),nt,tt;for(tt=0;tt=0)&&(d[nt]=c[nt]);return d}function _classCallCheck(c,a){if(!(c instanceof a))throw new TypeError("Cannot call a class as a function")}function _defineProperties(c,a){for(var d=0;d"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 _getPrototypeOf(c){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)},_getPrototypeOf(c)}function _defineProperty(c,a,d){return a in c?Object.defineProperty(c,a,{value:d,enumerable:!0,configurable:!0,writable:!0}):c[a]=d,c}var CopyToClipboard$1=function(c){_inherits(d,c);var a=_createSuper(d);function d(){var et;_classCallCheck(this,d);for(var nt=arguments.length,tt=new Array(nt),bt=0;bta in c?__defProp(c,a,{enumerable:!0,configurable:!0,writable:!0,value:d}):c[a]=d,__spreadValues=(c,a)=>{for(var d in a||(a={}))__hasOwnProp.call(a,d)&&__defNormalProp(c,d,a[d]);if(__getOwnPropSymbols)for(var d of __getOwnPropSymbols(a))__propIsEnum.call(a,d)&&__defNormalProp(c,d,a[d]);return c},__spreadProps=(c,a)=>__defProps(c,__getOwnPropDescs(a)),__objRest=(c,a)=>{var d={};for(var et in c)__hasOwnProp.call(c,et)&&a.indexOf(et)<0&&(d[et]=c[et]);if(c!=null&&__getOwnPropSymbols)for(var et of __getOwnPropSymbols(c))a.indexOf(et)<0&&__propIsEnum.call(c,et)&&(d[et]=c[et]);return d},createReactComponent=(c,a,d)=>{const et=reactExports.forwardRef((nt,tt)=>{var bt=nt,{color:gt="currentColor",size:wt=24,stroke:St=2,children:Mt}=bt,_t=__objRest(bt,["color","size","stroke","children"]);return reactExports.createElement("svg",__spreadValues(__spreadProps(__spreadValues({ref:tt},defaultAttributes),{width:wt,height:wt,stroke:gt,strokeWidth:St,className:`tabler-icon tabler-icon-${c}`}),_t),[...d.map(([Tt,Rt])=>reactExports.createElement(Tt,Rt)),...Mt||[]])});return et.propTypes={color:PropTypes.string,size:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),stroke:PropTypes.oneOfType([PropTypes.string,PropTypes.number])},et.displayName=`${a}`,et},IconBrandX=createReactComponent("brand-x","IconBrandX",[["path",{d:"M4 4l11.733 16h4.267l-11.733 -16z",key:"svg-0"}],["path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772",key:"svg-1"}]]);const parachute1="/assets/drop-base-e16c810e.svg",parachute2="/assets/drop-eth-47ae757b.svg",parachute3="/assets/drop-usdc-7e1cc6c2.svg",BackgroundWrapper=pt.div` .parachute { position: absolute; @@ -239,6 +239,6 @@ ${prettyStateOverride(Bt)}`),super(a.shortMessage,{cause:a,docsPath:et,metaMessa transform: translateY(-50%) rotate(-15deg); /* Rotate the image by 15 degrees */ background-image: url(${parachute3}); } -`,FixedBackground=({children:c})=>{const[a,d]=reactExports.useState(window.innerWidth<=768);return console.log(a),jsxRuntimeExports.jsxs(BackgroundWrapper,{children:[!a&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"parachute left"}),jsxRuntimeExports.jsx("div",{className:"parachute top-right"}),jsxRuntimeExports.jsx("div",{className:"parachute bottom-right"})]}),c]})};function HomePage(){useDisclosure(!1),useNavigate();const{colorScheme:c}=useMantineColorScheme(),a=c==="dark",{chainId:d,setChainId:et}=useLinkStore(Gt=>Gt),[nt,tt]=reactExports.useState("0"),[bt,gt]=reactExports.useState(""),[wt,St]=reactExports.useState(100);reactExports.useState(Math.floor(Date.now()/1e3));const[Mt,_t]=reactExports.useState(Math.floor(Date.now()/1e3)+86400);reactExports.useState("");const[Tt,Bt]=reactExports.useState(""),[kt,It]=reactExports.useState(!1),[Lt,Ot]=reactExports.useState(""),[Nt,Ft]=reactExports.useState(!1),[zt,Vt]=reactExports.useState(!1),[Jt,ir]=reactExports.useState(!1),rr=useCombobox({onDropdownClose:()=>rr.resetSelectedOption()}),[er,lr]=reactExports.useState("0x0000000000000000000000000000000000000000"),[Ct,dt]=reactExports.useState(0),[mt,yt]=reactExports.useState(0),vt=getTokenInfo(d,er),Et=getTokenList(d).map(Gt=>jsxRuntimeExports.jsx(Combobox.Option,{value:Gt.value,children:jsxRuntimeExports.jsx(At,{...Gt})},Gt.value));function At({image:Gt,label:Zt}){return jsxRuntimeExports.jsxs(Group,{style:{width:"100%"},children:[jsxRuntimeExports.jsx(Avatar,{src:Gt,radius:"sm",children:jsxRuntimeExports.jsx(KD,{size:"1.5rem"})}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Text,{fz:"sm",fw:500,children:Zt})})]})}const Pt=[{label:"Safe Accounts",image:Safe,key:"safe"},{label:"Coinbase Smart Wallets",image:Coinbase,key:"cbsw"},{label:"EOA Wallets",image:Metamask,key:"eoa"}],xt=useCombobox({onDropdownClose:()=>rr.resetSelectedOption(),onDropdownOpen:()=>rr.updateSelectedOptionIndex("active")}),[ht,$t]=reactExports.useState(""),[Rt,Dt]=reactExports.useState([]),Ht=Gt=>Dt(Zt=>Zt.includes(Gt)?Zt.filter(Yt=>Yt!==Gt):[...Zt,Gt]),tr=Gt=>Dt(Zt=>Zt.filter(Yt=>Yt!==Gt)),Xt=Rt.map(Gt=>{var Zt;return jsxRuntimeExports.jsx(Pill,{withRemoveButton:!0,onRemove:()=>tr(Gt),children:jsxRuntimeExports.jsx(Group,{style:{width:"100%"},children:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Text,{fz:"sm",fw:500,children:(Zt=Pt.find(Yt=>Yt.key==Gt))==null?void 0:Zt.label})})})},Gt)}),Ut=Pt.map(Gt=>jsxRuntimeExports.jsx(Combobox.Option,{value:Gt.key,active:Rt.includes(Gt.key),children:jsxRuntimeExports.jsx(Group,{gap:"sm",children:jsxRuntimeExports.jsxs(Group,{style:{width:"100%"},children:[Rt.includes(Gt.key)?jsxRuntimeExports.jsx(CheckIcon,{size:12}):null,jsxRuntimeExports.jsx(Avatar,{src:Gt.image,radius:"sm",children:jsxRuntimeExports.jsx(KD,{size:"1.5rem"})}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Text,{fz:"sm",fw:500,children:Gt.label})})]})})},Gt.key)),qt=async()=>{Ft(!0);try{const Gt=await addFaucetModule(er,nt,wt,Mt,Rt);Ft(!1),yt(1)}catch{Ft(!1),Vt(!0)}It(!0)};return reactExports.useEffect(()=>{(async()=>{var Gt;try{const Zt=await getProvider(),Yt=(await Zt.getNetwork()).chainId;et(Number(Yt)),Bt(`${(Gt=NetworkUtil.getNetworkById(Number(Yt)))==null?void 0:Gt.name}`);const Kt=await getSafeInfo();gt(Kt==null?void 0:Kt.safeAddress),er==ZeroAddress?dt(parseFloat(formatEther(await Zt.getBalance(Kt==null?void 0:Kt.safeAddress))).toFixed(4)):dt(await getTokenBalance(er,Kt==null?void 0:Kt.safeAddress,Zt))}catch{console.log("No safe found"),Vt(!0)}})()},[er]),jsxRuntimeExports.jsx(FixedBackground,{children:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h1",{className:classes$c.heading,children:"Smart Drop"}),jsxRuntimeExports.jsx("h1",{className:classes$c.links,children:"via Smart Accounts"})]}),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx("div",{className:classes$c.homeContainer,children:jsxRuntimeExports.jsxs(Paper,{className:classes$c.formContainer,shadow:"md",withBorder:!0,radius:"md",p:"xl",children:[!Object.keys(tokenList).includes(d.toString())&&jsxRuntimeExports.jsxs(Alert,{variant:"light",color:"yellow",radius:"lg",title:"Unsupported Network",children:["Safe link App supports only these networks as of now ",jsxRuntimeExports.jsxs("b",{children:[" : ",jsxRuntimeExports.jsx("br",{})," ",Object.keys(tokenList).map(Gt=>{var Zt,Yt;return`${(Zt=NetworkUtil.getNetworkById(Number(Gt)))==null?void 0:Zt.name} ${(Yt=NetworkUtil.getNetworkById(Number(Gt)))==null?void 0:Yt.type}, `})," "]})]}),zt&&jsxRuntimeExports.jsxs(Alert,{variant:"light",color:"yellow",radius:"lg",title:"Open as Safe App",children:["Try this application as a ",jsxRuntimeExports.jsx("span",{}),jsxRuntimeExports.jsx(Anchor,{href:"https://app.safe.global/share/safe-app?appUrl=https://smart-drop.zenguard.xyz&chain=sep",children:"Safe App"})," ",jsxRuntimeExports.jsx("span",{}),"on Safe Wallet."]}),jsxRuntimeExports.jsx("div",{className:classes$c.inputContainer,children:jsxRuntimeExports.jsxs(Stepper,{size:"sm",active:mt,color:"green",children:[jsxRuntimeExports.jsxs(Stepper.Step,{label:"Create Drop",description:"Add claim conditions",children:[jsxRuntimeExports.jsxs("div",{className:classes$c.inputContainer,children:[jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginTop:"20px",marginBottom:"20px"},children:[jsxRuntimeExports.jsxs(Stack,{style:{width:"40%"},children:[jsxRuntimeExports.jsx(Input.Wrapper,{label:"Select Asset ",children:jsxRuntimeExports.jsxs(Combobox,{store:rr,withinPortal:!1,onOptionSubmit:Gt=>{lr(Gt),rr.closeDropdown()},children:[jsxRuntimeExports.jsx(Combobox.Target,{children:jsxRuntimeExports.jsx(InputBase,{component:"button",type:"button",pointer:!0,rightSection:jsxRuntimeExports.jsx(Combobox.Chevron,{}),onClick:()=>rr.toggleDropdown(),rightSectionPointerEvents:"none",multiline:!0,children:vt?jsxRuntimeExports.jsx(At,{...vt}):jsxRuntimeExports.jsx(Input.Placeholder,{children:"Pick value"})})}),jsxRuntimeExports.jsx(Combobox.Dropdown,{children:jsxRuntimeExports.jsx(Combobox.Options,{children:Et})})]})}),jsxRuntimeExports.jsx(Badge,{pl:0,color:"gray",variant:"light",leftSection:jsxRuntimeExports.jsx(Avatar,{alt:"Avatar for badge",size:20,mr:5,src:getIconForId(d)}),size:"sm",className:classes$c.network,children:Tt})]}),jsxRuntimeExports.jsx(DateTimePicker,{size:"lg",description:"Drop valid till",valueFormat:"DD MMM YYYY, hh:mm A",value:new Date(Mt*1e3),placeholder:"Pick date and time",onChange:Gt=>_t(Math.floor(Gt.getTime()/1e3))})]}),jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginTop:"20px",marginBottom:"20px"},children:[jsxRuntimeExports.jsx(Input.Wrapper,{label:"Drop Amount ",style:{width:"40%"},children:jsxRuntimeExports.jsx(TextInput,{type:"number",size:"lg",value:nt,onChange:Gt=>{var Zt;return tt((Zt=Gt==null?void 0:Gt.target)==null?void 0:Zt.value)},placeholder:"Enter the amount",className:classes$c.input,description:`Balance: ${Ct}`,inputWrapperOrder:["label","input","description"]})}),jsxRuntimeExports.jsx(Input.Wrapper,{label:"Drop Interval ",style:{width:"40%"},children:jsxRuntimeExports.jsx(TextInput,{type:"number",size:"lg",value:wt,onChange:Gt=>{var Zt;return St(parseInt((Zt=Gt==null?void 0:Gt.target)==null?void 0:Zt.value))},placeholder:"Enter the amount",className:classes$c.input,description:`${formatTime(wt)}`,inputWrapperOrder:["label","input","description"]})})]}),jsxRuntimeExports.jsxs(Combobox,{store:xt,onOptionSubmit:Ht,children:[jsxRuntimeExports.jsx(Combobox.DropdownTarget,{children:jsxRuntimeExports.jsx(PillsInput,{size:"lg",onClick:()=>xt.openDropdown(),description:"Drop account type",children:jsxRuntimeExports.jsxs(Pill.Group,{children:[Xt,jsxRuntimeExports.jsx(Combobox.EventsTarget,{children:jsxRuntimeExports.jsx(PillsInput.Field,{onFocus:()=>xt.openDropdown(),onBlur:()=>xt.closeDropdown(),value:ht,placeholder:"Select account type for the drop",onChange:Gt=>{xt.updateSelectedOptionIndex(),$t(Gt.currentTarget.value)},onKeyDown:Gt=>{Gt.key==="Backspace"&&ht.length===0&&(Gt.preventDefault(),tr(er[er.length-1]))}})})]})})}),jsxRuntimeExports.jsx(Combobox.Dropdown,{children:jsxRuntimeExports.jsx(Combobox.Options,{children:Ut.length>0?Ut:jsxRuntimeExports.jsx(Combobox.Empty,{children:"Nothing found..."})})})]}),jsxRuntimeExports.jsx(Button,{size:"lg",radius:"md",fullWidth:!0,color:"green",className:classes$c.btn,onClick:qt,loaderProps:{color:"white",type:"dots",size:"md"},loading:Nt,children:Nt?"Creating Drop ...":"Create Drop"})]}),jsxRuntimeExports.jsx("br",{})]}),jsxRuntimeExports.jsx(Stepper.Step,{label:"Share drop",description:"Confirm drop creation",children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h1",{className:classes$c.heading,style:{fontSize:30},children:"Smart Drop is Ready!"}),jsxRuntimeExports.jsxs("p",{className:classes$c.subheading,style:{textAlign:"center"},children:["This drop is like a magic wand. Check out the magic of this drop ",jsxRuntimeExports.jsx(Anchor,{target:"_blank",href:Lt,children:"here "})," ❤️ ❤️"]}),jsxRuntimeExports.jsxs("div",{className:classes$c.actions,children:[jsxRuntimeExports.jsx(Button,{size:"lg",radius:"md",onClick:()=>yt(0),style:{width:"180px"},color:a?"#49494f":"#c3c3c3",variant:"filled",children:"Create New"}),jsxRuntimeExports.jsx(lib.CopyToClipboard,{text:Lt,onCopy:()=>ir(!0),children:jsxRuntimeExports.jsx(Button,{size:"lg",radius:"md",style:{width:"180px"},color:"teal",children:Jt?"Link Copied":"Copy Link"})})]})]})}),jsxRuntimeExports.jsx(Stepper.Completed,{children:"Completed, click back button to get to previous step"})]})})]})})}),jsxRuntimeExports.jsx("div",{className:classes$c.avatarContainer,children:jsxRuntimeExports.jsxs(Group,{className:classes$c.mode,children:[jsxRuntimeExports.jsx(IconBrandX,{size:30,stroke:1.5,onClick:()=>window.open("https://x.com/zenguardxyz"),style:{cursor:"pointer"}}),jsxRuntimeExports.jsx(Ag,{size:30,stroke:1.5,onClick:()=>window.open("https://github.com/koshikraj/smart-drop"),style:{cursor:"pointer"}})]})})]})})}const accountContainer="_accountContainer_114lp_3",formContainer="_formContainer_114lp_15",avatarContainer="_avatarContainer_114lp_24",balance="_balance_114lp_32",avatar="_avatar_114lp_24",heading="_heading_114lp_50",btn="_btn_114lp_64",actionsContainer="_actionsContainer_114lp_78",subHeading="_subHeading_114lp_86",normaltext="_normaltext_114lp_93",card="_card_114lp_99",footerHeading="_footerHeading_114lp_108",balanceContainer="_balanceContainer_114lp_113",actions="_actions_114lp_78",inputContainer="_inputContainer_114lp_131",accountInputContainer="_accountInputContainer_114lp_141",classes={accountContainer,formContainer,avatarContainer,balance,avatar,heading,btn,actionsContainer,subHeading,normaltext,card,footerHeading,balanceContainer,actions,inputContainer,accountInputContainer},DropDark="/assets/drop-dark-4d4ab425.svg",DropLight="/assets/drop-light-6fd2db70.svg";var reactConfetti_min={exports:{}};(function(c,a){(function(d,et){c.exports=et(reactExports)})(typeof self<"u"?self:commonjsGlobal,function(d){return function(et){var nt={};function tt(bt){if(nt[bt])return nt[bt].exports;var gt=nt[bt]={i:bt,l:!1,exports:{}};return et[bt].call(gt.exports,gt,gt.exports,tt),gt.l=!0,gt.exports}return tt.m=et,tt.c=nt,tt.d=function(bt,gt,wt){tt.o(bt,gt)||Object.defineProperty(bt,gt,{enumerable:!0,get:wt})},tt.r=function(bt){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(bt,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(bt,"__esModule",{value:!0})},tt.t=function(bt,gt){if(1>&&(bt=tt(bt)),8>||4>&&typeof bt=="object"&&bt&&bt.__esModule)return bt;var wt=Object.create(null);if(tt.r(wt),Object.defineProperty(wt,"default",{enumerable:!0,value:bt}),2>&&typeof bt!="string")for(var St in bt)tt.d(wt,St,(function(Mt){return bt[Mt]}).bind(null,St));return wt},tt.n=function(bt){var gt=bt&&bt.__esModule?function(){return bt.default}:function(){return bt};return tt.d(gt,"a",gt),gt},tt.o=function(bt,gt){return Object.prototype.hasOwnProperty.call(bt,gt)},tt.p="",tt(tt.s=2)}([function(et,nt){et.exports=d},function(et,nt,tt){var bt={linear:function(gt,wt,St,Mt){return(St-wt)*gt/Mt+wt},easeInQuad:function(gt,wt,St,Mt){return(St-wt)*(gt/=Mt)*gt+wt},easeOutQuad:function(gt,wt,St,Mt){return-(St-wt)*(gt/=Mt)*(gt-2)+wt},easeInOutQuad:function(gt,wt,St,Mt){var _t=St-wt;return(gt/=Mt/2)<1?_t/2*gt*gt+wt:-_t/2*(--gt*(gt-2)-1)+wt},easeInCubic:function(gt,wt,St,Mt){return(St-wt)*(gt/=Mt)*gt*gt+wt},easeOutCubic:function(gt,wt,St,Mt){return(St-wt)*((gt=gt/Mt-1)*gt*gt+1)+wt},easeInOutCubic:function(gt,wt,St,Mt){var _t=St-wt;return(gt/=Mt/2)<1?_t/2*gt*gt*gt+wt:_t/2*((gt-=2)*gt*gt+2)+wt},easeInQuart:function(gt,wt,St,Mt){return(St-wt)*(gt/=Mt)*gt*gt*gt+wt},easeOutQuart:function(gt,wt,St,Mt){return-(St-wt)*((gt=gt/Mt-1)*gt*gt*gt-1)+wt},easeInOutQuart:function(gt,wt,St,Mt){var _t=St-wt;return(gt/=Mt/2)<1?_t/2*gt*gt*gt*gt+wt:-_t/2*((gt-=2)*gt*gt*gt-2)+wt},easeInQuint:function(gt,wt,St,Mt){return(St-wt)*(gt/=Mt)*gt*gt*gt*gt+wt},easeOutQuint:function(gt,wt,St,Mt){return(St-wt)*((gt=gt/Mt-1)*gt*gt*gt*gt+1)+wt},easeInOutQuint:function(gt,wt,St,Mt){var _t=St-wt;return(gt/=Mt/2)<1?_t/2*gt*gt*gt*gt*gt+wt:_t/2*((gt-=2)*gt*gt*gt*gt+2)+wt},easeInSine:function(gt,wt,St,Mt){var _t=St-wt;return-_t*Math.cos(gt/Mt*(Math.PI/2))+_t+wt},easeOutSine:function(gt,wt,St,Mt){return(St-wt)*Math.sin(gt/Mt*(Math.PI/2))+wt},easeInOutSine:function(gt,wt,St,Mt){return-(St-wt)/2*(Math.cos(Math.PI*gt/Mt)-1)+wt},easeInExpo:function(gt,wt,St,Mt){return gt==0?wt:(St-wt)*Math.pow(2,10*(gt/Mt-1))+wt},easeOutExpo:function(gt,wt,St,Mt){var _t=St-wt;return gt==Mt?wt+_t:_t*(1-Math.pow(2,-10*gt/Mt))+wt},easeInOutExpo:function(gt,wt,St,Mt){var _t=St-wt;return gt===0?wt:gt===Mt?wt+_t:(gt/=Mt/2)<1?_t/2*Math.pow(2,10*(gt-1))+wt:_t/2*(2-Math.pow(2,-10*--gt))+wt},easeInCirc:function(gt,wt,St,Mt){return-(St-wt)*(Math.sqrt(1-(gt/=Mt)*gt)-1)+wt},easeOutCirc:function(gt,wt,St,Mt){return(St-wt)*Math.sqrt(1-(gt=gt/Mt-1)*gt)+wt},easeInOutCirc:function(gt,wt,St,Mt){var _t=St-wt;return(gt/=Mt/2)<1?-_t/2*(Math.sqrt(1-gt*gt)-1)+wt:_t/2*(Math.sqrt(1-(gt-=2)*gt)+1)+wt},easeInElastic:function(gt,wt,St,Mt){var _t,Tt,Bt,kt=St-wt;return Bt=1.70158,gt===0?wt:(gt/=Mt)==1?wt+kt:((Tt=0)||(Tt=.3*Mt),(_t=kt)=1&&this.rotationDirection===gt.Positive?this.rotationDirection=gt.Negative:this.rotateY<=-1&&this.rotationDirection===gt.Negative&&(this.rotationDirection=gt.Positive);var Pr=.1*this.rotationDirection;if(this.rotateY+=Pr,this.angle+=this.angularSpin,this.context.save(),this.context.translate(this.x,this.y),this.context.rotate(this.angle),this.context.scale(1,this.rotateY),this.context.rotate(this.angle),this.context.beginPath(),this.context.fillStyle=this.color,this.context.strokeStyle=this.color,this.context.globalAlpha=cr,this.context.lineCap="round",this.context.lineWidth=2,ur&&typeof ur=="function")ur.call(this,this.context);else switch(this.shape){case bt.Circle:this.context.beginPath(),this.context.arc(0,0,this.radius,0,2*Math.PI),this.context.fill();break;case bt.Square:this.context.fillRect(-this.w/2,-this.h/2,this.w,this.h);break;case bt.Strip:this.context.fillRect(-this.w/6,-this.h/2,this.w/3,this.h)}this.context.closePath(),this.context.restore()}}])&&Bt(Gt.prototype,Zt),qt}();function Lt(qt,Gt,Zt){return Gt in qt?Object.defineProperty(qt,Gt,{value:Zt,enumerable:!0,configurable:!0,writable:!0}):qt[Gt]=Zt,qt}var Ot=function qt(Gt,Zt){var Yt=this;(function(ar,gr){if(!(ar instanceof gr))throw new TypeError("Cannot call a class as a function")})(this,qt),Lt(this,"canvas",void 0),Lt(this,"context",void 0),Lt(this,"getOptions",void 0),Lt(this,"x",0),Lt(this,"y",0),Lt(this,"w",0),Lt(this,"h",0),Lt(this,"lastNumberOfPieces",0),Lt(this,"tweenInitTime",Date.now()),Lt(this,"particles",[]),Lt(this,"particlesGenerated",0),Lt(this,"removeParticleAt",function(ar){Yt.particles.splice(ar,1)}),Lt(this,"getParticle",function(){var ar=Tt(Yt.x,Yt.w+Yt.x),gr=Tt(Yt.y,Yt.h+Yt.y);return new It(Yt.context,Yt.getOptions,ar,gr)}),Lt(this,"animate",function(){var ar=Yt.canvas,gr=Yt.context,cr=Yt.particlesGenerated,ur=Yt.lastNumberOfPieces,Pr=Yt.getOptions(),br=Pr.run,dr=Pr.recycle,Kr=Pr.numberOfPieces,xr=Pr.debug,Sr=Pr.tweenFunction,Zr=Pr.tweenDuration;if(!br)return!1;var $r=Yt.particles.length,Mr=dr?$r:cr,Xr=Date.now();if(MrZr?Zr:Math.max(0,Xr-Qt),Mr,Kr,Zr),Wt=Math.round(jt-Mr),nr=0;nrar.height||fr.y<-100||fr.x>ar.width+100||fr.x<-100)&&(dr&&Mr<=Kr?Yt.particles[Er]=Yt.getParticle():Yt.removeParticleAt(Er))}),$r>0||Mr0&&Pr.call(ar,ar),ar._options.run=!1)}),Vt(this,"reset",function(){ar.generator&&ar.generator.particlesGenerated>0&&(ar.generator.particlesGenerated=0,ar.generator.particles=[],ar.generator.lastNumberOfPieces=0)}),Vt(this,"stop",function(){ar.options={run:!1},ar.rafId&&(cancelAnimationFrame(ar.rafId),ar.rafId=void 0)}),this.canvas=Yt;var gr=this.canvas.getContext("2d");if(!gr)throw new Error("Could not get canvas context");this.context=gr,this.generator=new Ot(this.canvas,function(){return ar.options}),this.options=Kt,this.update()}var Gt,Zt;return Gt=qt,(Zt=[{key:"options",get:function(){return this._options},set:function(Yt){var Kt=this._options&&this._options.run,ar=this._options&&this._options.recycle;this.setOptionsWithDefaults(Yt),this.generator&&(Object.assign(this.generator,this.options.confettiSource),typeof Yt.recycle=="boolean"&&Yt.recycle&&ar===!1&&(this.generator.lastNumberOfPieces=this.generator.particles.length)),typeof Yt.run=="boolean"&&Yt.run&&Kt===!1&&this.update()}}])&&zt(Gt.prototype,Zt),qt}();function rr(qt){return function(Gt){if(Array.isArray(Gt))return vt(Gt)}(qt)||function(Gt){if(typeof Symbol<"u"&&Symbol.iterator in Object(Gt))return Array.from(Gt)}(qt)||yt(qt)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +`,FixedBackground=({children:c})=>{const[a,d]=reactExports.useState(window.innerWidth<=768);return console.log(a),jsxRuntimeExports.jsxs(BackgroundWrapper,{children:[!a&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"parachute left"}),jsxRuntimeExports.jsx("div",{className:"parachute top-right"}),jsxRuntimeExports.jsx("div",{className:"parachute bottom-right"})]}),c]})};function HomePage(){useDisclosure(!1),useNavigate();const{colorScheme:c}=useMantineColorScheme(),a=c==="dark",{chainId:d,setChainId:et}=useLinkStore(Gt=>Gt),[nt,tt]=reactExports.useState("0"),[bt,gt]=reactExports.useState(""),[wt,St]=reactExports.useState(100);reactExports.useState(Math.floor(Date.now()/1e3));const[Mt,_t]=reactExports.useState(Math.floor(Date.now()/1e3)+86400);reactExports.useState("");const[Tt,Rt]=reactExports.useState(""),[kt,It]=reactExports.useState(!1),[Lt,Ot]=reactExports.useState(""),[Nt,Ft]=reactExports.useState(!1),[jt,Vt]=reactExports.useState(!1),[Jt,ir]=reactExports.useState(!1),rr=useCombobox({onDropdownClose:()=>rr.resetSelectedOption()}),[er,lr]=reactExports.useState("0x0000000000000000000000000000000000000000"),[Ct,dt]=reactExports.useState(0),[mt,yt]=reactExports.useState(0),vt=getTokenInfo(d,er),Et=getTokenList(d).map(Gt=>jsxRuntimeExports.jsx(Combobox.Option,{value:Gt.value,children:jsxRuntimeExports.jsx(At,{...Gt})},Gt.value));function At({image:Gt,label:Zt}){return jsxRuntimeExports.jsxs(Group,{style:{width:"100%"},children:[jsxRuntimeExports.jsx(Avatar,{src:Gt,radius:"sm",children:jsxRuntimeExports.jsx(KD,{size:"1.5rem"})}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Text,{fz:"sm",fw:500,children:Zt})})]})}const Pt=[{label:"Safe Accounts",image:Safe,key:"safe"},{label:"Coinbase Smart Wallets",image:Coinbase,key:"cbsw"},{label:"EOA Wallets",image:Metamask,key:"eoa"}],xt=useCombobox({onDropdownClose:()=>rr.resetSelectedOption(),onDropdownOpen:()=>rr.updateSelectedOptionIndex("active")}),[ht,$t]=reactExports.useState(""),[Bt,Dt]=reactExports.useState([]),Ht=Gt=>Dt(Zt=>Zt.includes(Gt)?Zt.filter(Yt=>Yt!==Gt):[...Zt,Gt]),tr=Gt=>Dt(Zt=>Zt.filter(Yt=>Yt!==Gt)),Xt=Bt.map(Gt=>{var Zt;return jsxRuntimeExports.jsx(Pill,{withRemoveButton:!0,onRemove:()=>tr(Gt),children:jsxRuntimeExports.jsx(Group,{style:{width:"100%"},children:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Text,{fz:"sm",fw:500,children:(Zt=Pt.find(Yt=>Yt.key==Gt))==null?void 0:Zt.label})})})},Gt)}),Ut=Pt.map(Gt=>jsxRuntimeExports.jsx(Combobox.Option,{value:Gt.key,active:Bt.includes(Gt.key),children:jsxRuntimeExports.jsx(Group,{gap:"sm",children:jsxRuntimeExports.jsxs(Group,{style:{width:"100%"},children:[Bt.includes(Gt.key)?jsxRuntimeExports.jsx(CheckIcon,{size:12}):null,jsxRuntimeExports.jsx(Avatar,{src:Gt.image,radius:"sm",children:jsxRuntimeExports.jsx(KD,{size:"1.5rem"})}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Text,{fz:"sm",fw:500,children:Gt.label})})]})})},Gt.key)),qt=async()=>{Ft(!0);try{const Gt=await addFaucetModule(er,nt,wt,Mt,Bt);Ft(!1),yt(1)}catch{Ft(!1),Vt(!0)}It(!0)};return reactExports.useEffect(()=>{(async()=>{var Gt;try{const Zt=await getProvider(),Yt=(await Zt.getNetwork()).chainId;et(Number(Yt)),Rt(`${(Gt=NetworkUtil.getNetworkById(Number(Yt)))==null?void 0:Gt.name}`);const Kt=await getSafeInfo();gt(Kt==null?void 0:Kt.safeAddress),er==ZeroAddress?dt(parseFloat(formatEther(await Zt.getBalance(Kt==null?void 0:Kt.safeAddress))).toFixed(4)):dt(await getTokenBalance(er,Kt==null?void 0:Kt.safeAddress,Zt))}catch{console.log("No safe found"),Vt(!0)}})()},[er]),jsxRuntimeExports.jsx(FixedBackground,{children:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h1",{className:classes$c.heading,children:"Smart Drop"}),jsxRuntimeExports.jsx("h1",{className:classes$c.links,children:"via Smart Accounts"})]}),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx("div",{className:classes$c.homeContainer,children:jsxRuntimeExports.jsxs(Paper,{className:classes$c.formContainer,shadow:"md",withBorder:!0,radius:"md",p:"xl",children:[!Object.keys(tokenList).includes(d.toString())&&jsxRuntimeExports.jsxs(Alert,{variant:"light",color:"yellow",radius:"lg",title:"Unsupported Network",children:["Safe link App supports only these networks as of now ",jsxRuntimeExports.jsxs("b",{children:[" : ",jsxRuntimeExports.jsx("br",{})," ",Object.keys(tokenList).map(Gt=>{var Zt,Yt;return`${(Zt=NetworkUtil.getNetworkById(Number(Gt)))==null?void 0:Zt.name} ${(Yt=NetworkUtil.getNetworkById(Number(Gt)))==null?void 0:Yt.type}, `})," "]})]}),jt&&jsxRuntimeExports.jsxs(Alert,{variant:"light",color:"yellow",radius:"lg",title:"Open as Safe App",children:["Try this application as a ",jsxRuntimeExports.jsx("span",{}),jsxRuntimeExports.jsx(Anchor,{href:"https://app.safe.global/share/safe-app?appUrl=https://smart-drop.zenguard.xyz&chain=sep",children:"Safe App"})," ",jsxRuntimeExports.jsx("span",{}),"on Safe Wallet."]}),jsxRuntimeExports.jsx("div",{className:classes$c.inputContainer,children:jsxRuntimeExports.jsxs(Stepper,{size:"sm",active:mt,color:"green",children:[jsxRuntimeExports.jsxs(Stepper.Step,{label:"Create Drop",description:"Add claim conditions",children:[jsxRuntimeExports.jsxs("div",{className:classes$c.inputContainer,children:[jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginTop:"20px",marginBottom:"20px"},children:[jsxRuntimeExports.jsxs(Stack,{style:{width:"40%"},children:[jsxRuntimeExports.jsx(Input.Wrapper,{label:"Select Asset ",children:jsxRuntimeExports.jsxs(Combobox,{store:rr,withinPortal:!1,onOptionSubmit:Gt=>{lr(Gt),rr.closeDropdown()},children:[jsxRuntimeExports.jsx(Combobox.Target,{children:jsxRuntimeExports.jsx(InputBase,{component:"button",type:"button",pointer:!0,rightSection:jsxRuntimeExports.jsx(Combobox.Chevron,{}),onClick:()=>rr.toggleDropdown(),rightSectionPointerEvents:"none",multiline:!0,children:vt?jsxRuntimeExports.jsx(At,{...vt}):jsxRuntimeExports.jsx(Input.Placeholder,{children:"Pick value"})})}),jsxRuntimeExports.jsx(Combobox.Dropdown,{children:jsxRuntimeExports.jsx(Combobox.Options,{children:Et})})]})}),jsxRuntimeExports.jsx(Badge,{pl:0,color:"gray",variant:"light",leftSection:jsxRuntimeExports.jsx(Avatar,{alt:"Avatar for badge",size:20,mr:5,src:getIconForId(d)}),size:"sm",className:classes$c.network,children:Tt})]}),jsxRuntimeExports.jsx(DateTimePicker,{size:"lg",description:"Drop valid till",valueFormat:"DD MMM YYYY, hh:mm A",value:new Date(Mt*1e3),placeholder:"Pick date and time",onChange:Gt=>_t(Math.floor(Gt.getTime()/1e3))})]}),jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginTop:"20px",marginBottom:"20px"},children:[jsxRuntimeExports.jsx(Input.Wrapper,{label:"Drop Amount ",style:{width:"40%"},children:jsxRuntimeExports.jsx(TextInput,{type:"number",size:"lg",value:nt,onChange:Gt=>{var Zt;return tt((Zt=Gt==null?void 0:Gt.target)==null?void 0:Zt.value)},placeholder:"Enter the amount",className:classes$c.input,description:`Balance: ${Ct}`,inputWrapperOrder:["label","input","description"]})}),jsxRuntimeExports.jsx(Input.Wrapper,{label:"Drop Interval ",style:{width:"40%"},children:jsxRuntimeExports.jsx(TextInput,{type:"number",size:"lg",value:wt,onChange:Gt=>{var Zt;return St(parseInt((Zt=Gt==null?void 0:Gt.target)==null?void 0:Zt.value))},placeholder:"Enter the amount",className:classes$c.input,description:`${formatTime(wt)}`,inputWrapperOrder:["label","input","description"]})})]}),jsxRuntimeExports.jsxs(Combobox,{store:xt,onOptionSubmit:Ht,children:[jsxRuntimeExports.jsx(Combobox.DropdownTarget,{children:jsxRuntimeExports.jsx(PillsInput,{size:"lg",onClick:()=>xt.openDropdown(),description:"Drop account type",children:jsxRuntimeExports.jsxs(Pill.Group,{children:[Xt,jsxRuntimeExports.jsx(Combobox.EventsTarget,{children:jsxRuntimeExports.jsx(PillsInput.Field,{onFocus:()=>xt.openDropdown(),onBlur:()=>xt.closeDropdown(),value:ht,placeholder:"Select account type for the drop",onChange:Gt=>{xt.updateSelectedOptionIndex(),$t(Gt.currentTarget.value)},onKeyDown:Gt=>{Gt.key==="Backspace"&&ht.length===0&&(Gt.preventDefault(),tr(er[er.length-1]))}})})]})})}),jsxRuntimeExports.jsx(Combobox.Dropdown,{children:jsxRuntimeExports.jsx(Combobox.Options,{children:Ut.length>0?Ut:jsxRuntimeExports.jsx(Combobox.Empty,{children:"Nothing found..."})})})]}),jsxRuntimeExports.jsx(Button,{size:"lg",radius:"md",fullWidth:!0,color:"green",className:classes$c.btn,onClick:qt,loaderProps:{color:"white",type:"dots",size:"md"},loading:Nt,children:Nt?"Creating Drop ...":"Create Drop"})]}),jsxRuntimeExports.jsx("br",{})]}),jsxRuntimeExports.jsx(Stepper.Step,{label:"Share drop",description:"Confirm drop creation",children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h1",{className:classes$c.heading,style:{fontSize:30},children:"Smart Drop is Ready!"}),jsxRuntimeExports.jsxs("p",{className:classes$c.subheading,style:{textAlign:"center"},children:["This drop is like a magic wand. Check out the magic of this drop ",jsxRuntimeExports.jsx(Anchor,{target:"_blank",href:Lt,children:"here "})," ❤️ ❤️"]}),jsxRuntimeExports.jsxs("div",{className:classes$c.actions,children:[jsxRuntimeExports.jsx(Button,{size:"lg",radius:"md",onClick:()=>yt(0),style:{width:"180px"},color:a?"#49494f":"#c3c3c3",variant:"filled",children:"Create New"}),jsxRuntimeExports.jsx(lib.CopyToClipboard,{text:Lt,onCopy:()=>ir(!0),children:jsxRuntimeExports.jsx(Button,{size:"lg",radius:"md",style:{width:"180px"},color:"teal",children:Jt?"Link Copied":"Copy Link"})})]})]})}),jsxRuntimeExports.jsx(Stepper.Completed,{children:"Completed, click back button to get to previous step"})]})})]})})}),jsxRuntimeExports.jsx("div",{className:classes$c.avatarContainer,children:jsxRuntimeExports.jsxs(Group,{className:classes$c.mode,children:[jsxRuntimeExports.jsx(IconBrandX,{size:30,stroke:1.5,onClick:()=>window.open("https://x.com/zenguardxyz"),style:{cursor:"pointer"}}),jsxRuntimeExports.jsx(Ag,{size:30,stroke:1.5,onClick:()=>window.open("https://github.com/koshikraj/smart-drop"),style:{cursor:"pointer"}})]})})]})})}const accountContainer="_accountContainer_1ohy2_3",formContainer="_formContainer_1ohy2_15",avatarContainer="_avatarContainer_1ohy2_24",balance="_balance_1ohy2_32",avatar="_avatar_1ohy2_24",heading="_heading_1ohy2_50",btn="_btn_1ohy2_64",actionsContainer="_actionsContainer_1ohy2_78",subHeading="_subHeading_1ohy2_86",normaltext="_normaltext_1ohy2_93",card="_card_1ohy2_99",footerHeading="_footerHeading_1ohy2_108",balanceContainer="_balanceContainer_1ohy2_113",actions="_actions_1ohy2_78",inputContainer="_inputContainer_1ohy2_131",accountInputContainer="_accountInputContainer_1ohy2_141",classes={accountContainer,formContainer,avatarContainer,balance,avatar,heading,btn,actionsContainer,subHeading,normaltext,card,footerHeading,balanceContainer,actions,inputContainer,accountInputContainer},DropDark="/assets/drop-dark-4d4ab425.svg",DropLight="/assets/drop-light-6fd2db70.svg";var reactConfetti_min={exports:{}};(function(c,a){(function(d,et){c.exports=et(reactExports)})(typeof self<"u"?self:commonjsGlobal,function(d){return function(et){var nt={};function tt(bt){if(nt[bt])return nt[bt].exports;var gt=nt[bt]={i:bt,l:!1,exports:{}};return et[bt].call(gt.exports,gt,gt.exports,tt),gt.l=!0,gt.exports}return tt.m=et,tt.c=nt,tt.d=function(bt,gt,wt){tt.o(bt,gt)||Object.defineProperty(bt,gt,{enumerable:!0,get:wt})},tt.r=function(bt){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(bt,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(bt,"__esModule",{value:!0})},tt.t=function(bt,gt){if(1>&&(bt=tt(bt)),8>||4>&&typeof bt=="object"&&bt&&bt.__esModule)return bt;var wt=Object.create(null);if(tt.r(wt),Object.defineProperty(wt,"default",{enumerable:!0,value:bt}),2>&&typeof bt!="string")for(var St in bt)tt.d(wt,St,(function(Mt){return bt[Mt]}).bind(null,St));return wt},tt.n=function(bt){var gt=bt&&bt.__esModule?function(){return bt.default}:function(){return bt};return tt.d(gt,"a",gt),gt},tt.o=function(bt,gt){return Object.prototype.hasOwnProperty.call(bt,gt)},tt.p="",tt(tt.s=2)}([function(et,nt){et.exports=d},function(et,nt,tt){var bt={linear:function(gt,wt,St,Mt){return(St-wt)*gt/Mt+wt},easeInQuad:function(gt,wt,St,Mt){return(St-wt)*(gt/=Mt)*gt+wt},easeOutQuad:function(gt,wt,St,Mt){return-(St-wt)*(gt/=Mt)*(gt-2)+wt},easeInOutQuad:function(gt,wt,St,Mt){var _t=St-wt;return(gt/=Mt/2)<1?_t/2*gt*gt+wt:-_t/2*(--gt*(gt-2)-1)+wt},easeInCubic:function(gt,wt,St,Mt){return(St-wt)*(gt/=Mt)*gt*gt+wt},easeOutCubic:function(gt,wt,St,Mt){return(St-wt)*((gt=gt/Mt-1)*gt*gt+1)+wt},easeInOutCubic:function(gt,wt,St,Mt){var _t=St-wt;return(gt/=Mt/2)<1?_t/2*gt*gt*gt+wt:_t/2*((gt-=2)*gt*gt+2)+wt},easeInQuart:function(gt,wt,St,Mt){return(St-wt)*(gt/=Mt)*gt*gt*gt+wt},easeOutQuart:function(gt,wt,St,Mt){return-(St-wt)*((gt=gt/Mt-1)*gt*gt*gt-1)+wt},easeInOutQuart:function(gt,wt,St,Mt){var _t=St-wt;return(gt/=Mt/2)<1?_t/2*gt*gt*gt*gt+wt:-_t/2*((gt-=2)*gt*gt*gt-2)+wt},easeInQuint:function(gt,wt,St,Mt){return(St-wt)*(gt/=Mt)*gt*gt*gt*gt+wt},easeOutQuint:function(gt,wt,St,Mt){return(St-wt)*((gt=gt/Mt-1)*gt*gt*gt*gt+1)+wt},easeInOutQuint:function(gt,wt,St,Mt){var _t=St-wt;return(gt/=Mt/2)<1?_t/2*gt*gt*gt*gt*gt+wt:_t/2*((gt-=2)*gt*gt*gt*gt+2)+wt},easeInSine:function(gt,wt,St,Mt){var _t=St-wt;return-_t*Math.cos(gt/Mt*(Math.PI/2))+_t+wt},easeOutSine:function(gt,wt,St,Mt){return(St-wt)*Math.sin(gt/Mt*(Math.PI/2))+wt},easeInOutSine:function(gt,wt,St,Mt){return-(St-wt)/2*(Math.cos(Math.PI*gt/Mt)-1)+wt},easeInExpo:function(gt,wt,St,Mt){return gt==0?wt:(St-wt)*Math.pow(2,10*(gt/Mt-1))+wt},easeOutExpo:function(gt,wt,St,Mt){var _t=St-wt;return gt==Mt?wt+_t:_t*(1-Math.pow(2,-10*gt/Mt))+wt},easeInOutExpo:function(gt,wt,St,Mt){var _t=St-wt;return gt===0?wt:gt===Mt?wt+_t:(gt/=Mt/2)<1?_t/2*Math.pow(2,10*(gt-1))+wt:_t/2*(2-Math.pow(2,-10*--gt))+wt},easeInCirc:function(gt,wt,St,Mt){return-(St-wt)*(Math.sqrt(1-(gt/=Mt)*gt)-1)+wt},easeOutCirc:function(gt,wt,St,Mt){return(St-wt)*Math.sqrt(1-(gt=gt/Mt-1)*gt)+wt},easeInOutCirc:function(gt,wt,St,Mt){var _t=St-wt;return(gt/=Mt/2)<1?-_t/2*(Math.sqrt(1-gt*gt)-1)+wt:_t/2*(Math.sqrt(1-(gt-=2)*gt)+1)+wt},easeInElastic:function(gt,wt,St,Mt){var _t,Tt,Rt,kt=St-wt;return Rt=1.70158,gt===0?wt:(gt/=Mt)==1?wt+kt:((Tt=0)||(Tt=.3*Mt),(_t=kt)=1&&this.rotationDirection===gt.Positive?this.rotationDirection=gt.Negative:this.rotateY<=-1&&this.rotationDirection===gt.Negative&&(this.rotationDirection=gt.Positive);var Pr=.1*this.rotationDirection;if(this.rotateY+=Pr,this.angle+=this.angularSpin,this.context.save(),this.context.translate(this.x,this.y),this.context.rotate(this.angle),this.context.scale(1,this.rotateY),this.context.rotate(this.angle),this.context.beginPath(),this.context.fillStyle=this.color,this.context.strokeStyle=this.color,this.context.globalAlpha=cr,this.context.lineCap="round",this.context.lineWidth=2,ur&&typeof ur=="function")ur.call(this,this.context);else switch(this.shape){case bt.Circle:this.context.beginPath(),this.context.arc(0,0,this.radius,0,2*Math.PI),this.context.fill();break;case bt.Square:this.context.fillRect(-this.w/2,-this.h/2,this.w,this.h);break;case bt.Strip:this.context.fillRect(-this.w/6,-this.h/2,this.w/3,this.h)}this.context.closePath(),this.context.restore()}}])&&Rt(Gt.prototype,Zt),qt}();function Lt(qt,Gt,Zt){return Gt in qt?Object.defineProperty(qt,Gt,{value:Zt,enumerable:!0,configurable:!0,writable:!0}):qt[Gt]=Zt,qt}var Ot=function qt(Gt,Zt){var Yt=this;(function(ar,gr){if(!(ar instanceof gr))throw new TypeError("Cannot call a class as a function")})(this,qt),Lt(this,"canvas",void 0),Lt(this,"context",void 0),Lt(this,"getOptions",void 0),Lt(this,"x",0),Lt(this,"y",0),Lt(this,"w",0),Lt(this,"h",0),Lt(this,"lastNumberOfPieces",0),Lt(this,"tweenInitTime",Date.now()),Lt(this,"particles",[]),Lt(this,"particlesGenerated",0),Lt(this,"removeParticleAt",function(ar){Yt.particles.splice(ar,1)}),Lt(this,"getParticle",function(){var ar=Tt(Yt.x,Yt.w+Yt.x),gr=Tt(Yt.y,Yt.h+Yt.y);return new It(Yt.context,Yt.getOptions,ar,gr)}),Lt(this,"animate",function(){var ar=Yt.canvas,gr=Yt.context,cr=Yt.particlesGenerated,ur=Yt.lastNumberOfPieces,Pr=Yt.getOptions(),br=Pr.run,dr=Pr.recycle,Kr=Pr.numberOfPieces,xr=Pr.debug,Sr=Pr.tweenFunction,Zr=Pr.tweenDuration;if(!br)return!1;var $r=Yt.particles.length,Mr=dr?$r:cr,Xr=Date.now();if(MrZr?Zr:Math.max(0,Xr-Qt),Mr,Kr,Zr),Wt=Math.round(zt-Mr),nr=0;nrar.height||fr.y<-100||fr.x>ar.width+100||fr.x<-100)&&(dr&&Mr<=Kr?Yt.particles[Er]=Yt.getParticle():Yt.removeParticleAt(Er))}),$r>0||Mr0&&Pr.call(ar,ar),ar._options.run=!1)}),Vt(this,"reset",function(){ar.generator&&ar.generator.particlesGenerated>0&&(ar.generator.particlesGenerated=0,ar.generator.particles=[],ar.generator.lastNumberOfPieces=0)}),Vt(this,"stop",function(){ar.options={run:!1},ar.rafId&&(cancelAnimationFrame(ar.rafId),ar.rafId=void 0)}),this.canvas=Yt;var gr=this.canvas.getContext("2d");if(!gr)throw new Error("Could not get canvas context");this.context=gr,this.generator=new Ot(this.canvas,function(){return ar.options}),this.options=Kt,this.update()}var Gt,Zt;return Gt=qt,(Zt=[{key:"options",get:function(){return this._options},set:function(Yt){var Kt=this._options&&this._options.run,ar=this._options&&this._options.recycle;this.setOptionsWithDefaults(Yt),this.generator&&(Object.assign(this.generator,this.options.confettiSource),typeof Yt.recycle=="boolean"&&Yt.recycle&&ar===!1&&(this.generator.lastNumberOfPieces=this.generator.particles.length)),typeof Yt.run=="boolean"&&Yt.run&&Kt===!1&&this.update()}}])&&jt(Gt.prototype,Zt),qt}();function rr(qt){return function(Gt){if(Array.isArray(Gt))return vt(Gt)}(qt)||function(Gt){if(typeof Symbol<"u"&&Symbol.iterator in Object(Gt))return Array.from(Gt)}(qt)||yt(qt)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function er(qt){return(er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Gt){return typeof Gt}:function(Gt){return Gt&&typeof Symbol=="function"&&Gt.constructor===Symbol&&Gt!==Symbol.prototype?"symbol":typeof Gt})(qt)}function lr(){return(lr=Object.assign||function(qt){for(var Gt=1;Gt"u"||!(Symbol.iterator in Object(Zt)))){var Kt=[],ar=!0,gr=!1,cr=void 0;try{for(var ur,Pr=Zt[Symbol.iterator]();!(ar=(ur=Pr.next()).done)&&(Kt.push(ur.value),!Yt||Kt.length!==Yt);ar=!0);}catch(br){gr=!0,cr=br}finally{try{ar||Pr.return==null||Pr.return()}finally{if(gr)throw cr}}return Kt}}(qt,Gt)||yt(qt,Gt)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function yt(qt,Gt){if(qt){if(typeof qt=="string")return vt(qt,Gt);var Zt=Object.prototype.toString.call(qt).slice(8,-1);return Zt==="Object"&&qt.constructor&&(Zt=qt.constructor.name),Zt==="Map"||Zt==="Set"?Array.from(qt):Zt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Zt)?vt(qt,Gt):void 0}}function vt(qt,Gt){(Gt==null||Gt>qt.length)&&(Gt=qt.length);for(var Zt=0,Yt=new Array(Gt);Zt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var Zt,Yt=Rt(qt);if(Gt){var Kt=Rt(this).constructor;Zt=Reflect.construct(Yt,arguments,Kt)}else Zt=Yt.apply(this,arguments);return ht(this,Zt)}}function ht(qt,Gt){return!Gt||er(Gt)!=="object"&&typeof Gt!="function"?$t(qt):Gt}function $t(qt){if(qt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return qt}function Rt(qt){return(Rt=Object.setPrototypeOf?Object.getPrototypeOf:function(Gt){return Gt.__proto__||Object.getPrototypeOf(Gt)})(qt)}function Dt(qt,Gt,Zt){return Gt in qt?Object.defineProperty(qt,Gt,{value:Zt,enumerable:!0,configurable:!0,writable:!0}):qt[Gt]=Zt,qt}var Ht=St.a.createRef(),tr=function(qt){(function(ar,gr){if(typeof gr!="function"&&gr!==null)throw new TypeError("Super expression must either be null or a function");ar.prototype=Object.create(gr&&gr.prototype,{constructor:{value:ar,writable:!0,configurable:!0}}),gr&&Pt(ar,gr)})(Kt,qt);var Gt,Zt,Yt=xt(Kt);function Kt(ar){var gr;Et(this,Kt);for(var cr=arguments.length,ur=new Array(cr>1?cr-1:0),Pr=1;Pr{var Ut,qt,Gt;const{colorScheme:c,toggleColorScheme:a}=useMantineColorScheme(),d=c==="dark",{claimDetails:et}=useLinkStore(Zt=>Zt),[nt,tt]=reactExports.useState(!1);reactExports.useState(0);const[bt,gt]=reactExports.useState(!1),[wt,St]=reactExports.useState(!1),[Mt,_t]=reactExports.useState(""),[Tt,Bt]=reactExports.useState(!1),[kt,It]=reactExports.useState(!0),[Lt,Ot]=reactExports.useState(!1);reactExports.useState(""),reactExports.useState(!1);const[Nt,Ft]=reactExports.useState([]),[zt,Vt]=reactExports.useState(0),[Jt,ir]=reactExports.useState({width:window.innerWidth,height:window.innerHeight}),[rr,er]=reactExports.useState(et.chainId),[lr,Ct]=reactExports.useState("0x0000000000000000000000000000000000000000"),[dt,mt]=reactExports.useState(""),yt=Object.keys(tokenList).filter(Zt=>{var Yt;return((Yt=NetworkUtil.getNetworkById(Number(Zt)))==null?void 0:Yt.type)=="testnet"}).map(Zt=>{var Yt,Kt;return{label:`${(Yt=NetworkUtil.getNetworkById(Number(Zt)))==null?void 0:Yt.name}`,type:`${(Kt=NetworkUtil.getNetworkById(Number(Zt)))==null?void 0:Kt.type}`,image:getIconForId(Zt),value:Zt}}),Et=Object.keys(tokenList).filter(Zt=>{var Yt;return((Yt=NetworkUtil.getNetworkById(Number(Zt)))==null?void 0:Yt.type)=="mainnet"}).map(Zt=>{var Yt,Kt;return{label:`${(Yt=NetworkUtil.getNetworkById(Number(Zt)))==null?void 0:Yt.name}`,type:`${(Kt=NetworkUtil.getNetworkById(Number(Zt)))==null?void 0:Kt.type}`,image:getIconForId(Zt),value:Zt}}).map(Zt=>jsxRuntimeExports.jsx(Combobox.Option,{value:Zt.value,children:jsxRuntimeExports.jsx(Rt,{...Zt})},Zt.value)),At=yt.map(Zt=>jsxRuntimeExports.jsx(Combobox.Option,{value:Zt.value,children:jsxRuntimeExports.jsx(Rt,{...Zt})},Zt.value)),Pt=jsxRuntimeExports.jsxs(Combobox.Options,{children:[jsxRuntimeExports.jsx(Combobox.Group,{children:Et}),jsxRuntimeExports.jsx(Combobox.Group,{label:"TESTNETS",children:At})]}),xt=useCombobox({onDropdownClose:()=>xt.resetSelectedOption()}),ht=useCombobox({onDropdownClose:()=>ht.resetSelectedOption()}),$t=useCombobox({onDropdownClose:()=>$t.resetSelectedOption()});function Rt({image:Zt,label:Yt}){return jsxRuntimeExports.jsxs(Group,{style:{width:"100%"},children:[jsxRuntimeExports.jsx(Avatar,{src:Zt,children:jsxRuntimeExports.jsx(KD,{size:"1.5rem"})}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Text,{fz:"sm",fw:500,children:Yt})})]})}getTokenInfo(rr,lr),getTokenList(rr).map(Zt=>jsxRuntimeExports.jsx(Combobox.Option,{value:Zt.value,children:jsxRuntimeExports.jsx(Ht,{...Zt})},Zt.value));const Dt=Nt.map((Zt,Yt)=>jsxRuntimeExports.jsx(Combobox.Option,{value:Yt.toString(),children:jsxRuntimeExports.jsx(tr,{...Zt})},Yt));function Ht({image:Zt,label:Yt}){return jsxRuntimeExports.jsxs(Group,{style:{width:"100%"},children:[jsxRuntimeExports.jsx(Avatar,{src:Zt,children:jsxRuntimeExports.jsx(KD,{size:"1.5rem"})}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Text,{fz:"sm",fw:500,children:Yt})})]})}function tr(Zt){var Yt,Kt;return jsxRuntimeExports.jsxs(Group,{style:{width:"100%"},children:[jsxRuntimeExports.jsx(Avatar,{src:(Yt=getTokenInfo(rr,Zt[0]))==null?void 0:Yt.image,size:"md"}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Text,{fz:"sm",fw:500,children:Object.keys(dropDetail).includes(Zt[1])?(Kt=dropDetail[Zt[1]])==null?void 0:Kt.name:"Unknown Drop"})})]})}async function Xt(){gt(!1),Bt(!1),Ot(!0);try{let Zt,Yt="0x",Kt=Mt;if(Nt[zt].token==ZeroAddress)Zt=Nt[zt].limitAmount;else{const gr=await getJsonRpcProvider(rr.toString());Zt=Nt[zt].limitAmount,Yt=await buildTransferToken(Nt[zt].token,Kt,Zt,gr),Zt=0n,Kt=Nt[zt].token}const ar=await sendTransaction(rr.toString(),Kt,Zt,Yt,Nt[zt].account,zt);ar?(tt(!0),Ot(!1),await waitForExecution(rr.toString(),ar),Bt(!0),tt(!1)):Bt(!1)}catch(Zt){console.log(Zt),gt(!0),Ot(!1)}}return reactExports.useEffect(()=>{(async()=>{It(!0),Vt(0);const Zt=await fetchFaucets(rr.toString());if(Ft(Zt),Zt.length)if(Zt[zt].token==ZeroAddress)mt(formatEther$1(Zt[zt].limitAmount));else{const Yt=await getJsonRpcProvider(rr.toString());mt(formatUnits$1(Zt[zt].limitAmount,await getTokenDecimals(Zt[zt].token,Yt)))}It(!1),window.addEventListener("resize",()=>ir({width:window.innerWidth,height:window.innerHeight}))})()},[rr]),jsxRuntimeExports.jsxs(FixedBackground,{children:[jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Modal,{opened:wt,onClose:()=>{St(!1),Ct(ZeroAddress)},title:"Claim Now",centered:!0,children:jsxRuntimeExports.jsxs("div",{className:classes.formContainer,children:[jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("h1",{className:classes.heading,children:"Claim on your wallet"})}),jsxRuntimeExports.jsx("p",{className:classes.subHeading,children:"Claim your drop gas free."}),jsxRuntimeExports.jsx("p",{className:classes.normaltext,children:"Select a drop from the drop down list that would like to claim from."}),jsxRuntimeExports.jsxs("div",{className:classes.inputContainer,children:[jsxRuntimeExports.jsx(Input,{type:"string",style:{marginTop:"20px"},size:"lg",value:Mt,onChange:Zt=>{var Yt;return _t((Yt=Zt==null?void 0:Zt.target)==null?void 0:Yt.value)},placeholder:"Recipient Address",className:classes.input}),jsxRuntimeExports.jsx(Button,{size:"lg",radius:"md",style:{marginBottom:"20px"},fullWidth:!0,color:"green",className:classes.btn,onClick:async()=>await Xt(),loaderProps:{color:"white",type:"dots",size:"md"},loading:Lt,children:"Claim Now"}),Tt&&jsxRuntimeExports.jsx(Notification,{withBorder:!0,radius:"md",withCloseButton:!1,icon:jsxRuntimeExports.jsx(DW,{style:{width:rem(20),height:rem(20)}}),color:"teal",title:"Claim success!",mt:"md",children:"Your have successfully claimed the drop. Buckle up for a stellar financial journey! 🚀💰"}),nt&&jsxRuntimeExports.jsx(Notification,{withBorder:!0,radius:"md",loading:nt,withCloseButton:!1,icon:jsxRuntimeExports.jsx(DW,{style:{width:rem(20),height:rem(20)}}),color:"teal",title:"Waiting to confirm",mt:"md",children:"The transaction have been sent. Wait for the transacion to get confirmed ⌛️"}),bt&&jsxRuntimeExports.jsx(Notification,{withBorder:!0,radius:"md",withCloseButton:!1,icon:jsxRuntimeExports.jsx(qXe,{style:{width:rem(20),height:rem(20)}}),color:"red",title:"Claim Error!",mt:"md",children:"You have already claimed a drop or the recipient wallet is not supported 🤝"})]})]})}),jsxRuntimeExports.jsx(Paper,{className:classes.accountContainer,shadow:"md",withBorder:!0,radius:"md",p:"xl",children:jsxRuntimeExports.jsxs("div",{className:classes.formContainer,children:[jsxRuntimeExports.jsxs("div",{className:classes.avatarContainer,children:[jsxRuntimeExports.jsx("img",{src:d?DropDark:DropLight,alt:"avatar",height:65,width:65}),jsxRuntimeExports.jsx("h1",{className:classes.heading,children:" Claim Your Drops "}),jsxRuntimeExports.jsx("p",{className:classes.subHeading,children:"Claim your drop on this chain."}),jsxRuntimeExports.jsxs(Combobox,{store:xt,withinPortal:!1,onOptionSubmit:Zt=>{Ft([]),er(Number(Zt)),xt.closeDropdown()},children:[jsxRuntimeExports.jsx(Combobox.Target,{children:jsxRuntimeExports.jsx(Badge,{pl:0,style:{cursor:"pointer",width:"200px",height:"40px",padding:"10px"},color:"gray",variant:"light",leftSection:jsxRuntimeExports.jsx(Avatar,{alt:"Avatar for badge",size:24,mr:5,src:getIconForId(rr)}),rightSection:jsxRuntimeExports.jsx(gq,{size:20}),size:"lg",onClick:()=>xt.toggleDropdown(),children:`${(Ut=NetworkUtil.getNetworkById(Number(rr)))==null?void 0:Ut.name}`})}),jsxRuntimeExports.jsx(Combobox.Dropdown,{children:jsxRuntimeExports.jsx(Combobox.Options,{children:Pt})})]}),jsxRuntimeExports.jsx("p",{className:classes.normaltext,children:"Select a drop from the drop down list that would like to claim from."})]}),jsxRuntimeExports.jsxs("div",{className:classes.actionsContainer,children:[jsxRuntimeExports.jsxs("div",{className:classes.actions,children:[jsxRuntimeExports.jsxs(Combobox,{store:$t,withinPortal:!1,onOptionSubmit:async Zt=>{if(Vt(Number(Zt)),Nt.length)if(Nt[zt].token==ZeroAddress)mt(formatEther$1(Nt[zt].limitAmount));else{const Yt=await getJsonRpcProvider(rr.toString());mt(formatUnits$1(Nt[zt].limitAmount,await getTokenDecimals(Nt[zt].token,Yt)))}$t.closeDropdown()},children:[jsxRuntimeExports.jsx(Combobox.Target,{children:!kt&&Nt.length?jsxRuntimeExports.jsx(Badge,{pl:0,style:{cursor:"pointer",width:"200px",height:"54px",padding:"10px"},radius:"md",color:"gray",variant:"light",leftSection:jsxRuntimeExports.jsx(Avatar,{alt:"Avatar for badge",size:24,mr:5,src:(qt=getTokenInfo(rr,Nt[zt].token))==null?void 0:qt.image}),rightSection:jsxRuntimeExports.jsx(gq,{size:20}),size:"lg",onClick:()=>$t.toggleDropdown(),children:Object.keys(dropDetail).includes(Nt[zt].account)?(Gt=dropDetail[Nt[zt].account])==null?void 0:Gt.name:"Unknown Drop"}):jsxRuntimeExports.jsx(Badge,{})}),jsxRuntimeExports.jsx(Combobox.Dropdown,{children:jsxRuntimeExports.jsx(Combobox.Options,{children:Dt})})]}),jsxRuntimeExports.jsx(Button,{size:"lg",radius:"md",className:classes.btn,color:"teal",onClick:()=>St(!0),children:"Claim"})]}),!kt&&Nt.length&&jsxRuntimeExports.jsxs(Paper,{radius:"md",withBorder:!0,className:classes.card,mt:20,children:[jsxRuntimeExports.jsx(Text,{ta:"center",fw:700,className:classes.title,children:"Drop details"}),jsxRuntimeExports.jsxs(Group,{justify:"space-between",mt:"xs",children:[jsxRuntimeExports.jsx(Text,{fz:"sm",c:"dimmed",children:"Claimable:"}),jsxRuntimeExports.jsx(Text,{fz:"sm",c:"dimmed",children:dt})]}),jsxRuntimeExports.jsxs(Group,{justify:"space-between",mt:"xs",children:[jsxRuntimeExports.jsx(Text,{fz:"sm",c:"dimmed",children:"Token"}),jsxRuntimeExports.jsxs(Group,{children:[jsxRuntimeExports.jsx(Avatar,{src:getTokenInfo(rr,Nt[zt].token).image,size:"sm"}),jsxRuntimeExports.jsx(Text,{fz:"sm",c:"dimmed",children:getTokenInfo(rr,Nt[zt].token).label})]})]}),jsxRuntimeExports.jsxs(Group,{justify:"space-between",mt:"xs",children:[jsxRuntimeExports.jsx(Text,{fz:"sm",c:"dimmed",children:"Claim Every:"}),jsxRuntimeExports.jsx(Text,{fz:"sm",c:"dimmed",children:formatTime(Number(Nt[zt].refreshInterval))})]}),jsxRuntimeExports.jsxs(Group,{justify:"space-between",mt:"xs",children:[jsxRuntimeExports.jsx(Text,{fz:"sm",c:"dimmed",children:"Claimable Wallets"}),jsxRuntimeExports.jsxs(Group,{children:[Nt[zt].safe.supported&&jsxRuntimeExports.jsx(Avatar,{radius:"sm",src:Safe,size:"sm"}),Nt[zt].cbSW.supported&&jsxRuntimeExports.jsx(Avatar,{radius:"sm",src:Coinbase,size:"sm"}),Nt[zt].eoa.supported&&jsxRuntimeExports.jsx(Avatar,{radius:"sm",src:Metamask,size:"sm"})]})]})]})]})]})})]}),Tt&&jsxRuntimeExports.jsx(Confetti,{width:Jt.width-20,height:Jt.height-20})]})},Navigation=()=>jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:RoutePath.home,element:jsxRuntimeExports.jsx(AccountPage,{})}),jsxRuntimeExports.jsx(Route,{path:RoutePath.create,element:jsxRuntimeExports.jsx(HomePage,{})})]}),theme={fontFamily:"Inter, sans-serif"};function App(){return jsxRuntimeExports.jsx(MantineProvider,{theme,defaultColorScheme:"dark",children:jsxRuntimeExports.jsx(HashRouter,{children:jsxRuntimeExports.jsx(AppLayout,{children:jsxRuntimeExports.jsx(Navigation,{})})})})}client.createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(App,{}));export{BaseError as B,HttpRequestError as H,concat as a,isHex as b,call as c,decodeErrorResult as d,encodeAbiParameters as e,getUrl as g,isAddressEqual as i,stringify as s}; +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function yt(qt,Gt){if(qt){if(typeof qt=="string")return vt(qt,Gt);var Zt=Object.prototype.toString.call(qt).slice(8,-1);return Zt==="Object"&&qt.constructor&&(Zt=qt.constructor.name),Zt==="Map"||Zt==="Set"?Array.from(qt):Zt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Zt)?vt(qt,Gt):void 0}}function vt(qt,Gt){(Gt==null||Gt>qt.length)&&(Gt=qt.length);for(var Zt=0,Yt=new Array(Gt);Zt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var Zt,Yt=Bt(qt);if(Gt){var Kt=Bt(this).constructor;Zt=Reflect.construct(Yt,arguments,Kt)}else Zt=Yt.apply(this,arguments);return ht(this,Zt)}}function ht(qt,Gt){return!Gt||er(Gt)!=="object"&&typeof Gt!="function"?$t(qt):Gt}function $t(qt){if(qt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return qt}function Bt(qt){return(Bt=Object.setPrototypeOf?Object.getPrototypeOf:function(Gt){return Gt.__proto__||Object.getPrototypeOf(Gt)})(qt)}function Dt(qt,Gt,Zt){return Gt in qt?Object.defineProperty(qt,Gt,{value:Zt,enumerable:!0,configurable:!0,writable:!0}):qt[Gt]=Zt,qt}var Ht=St.a.createRef(),tr=function(qt){(function(ar,gr){if(typeof gr!="function"&&gr!==null)throw new TypeError("Super expression must either be null or a function");ar.prototype=Object.create(gr&&gr.prototype,{constructor:{value:ar,writable:!0,configurable:!0}}),gr&&Pt(ar,gr)})(Kt,qt);var Gt,Zt,Yt=xt(Kt);function Kt(ar){var gr;Et(this,Kt);for(var cr=arguments.length,ur=new Array(cr>1?cr-1:0),Pr=1;Pr{var Ut,qt,Gt;const{colorScheme:c,toggleColorScheme:a}=useMantineColorScheme(),d=c==="dark",{claimDetails:et}=useLinkStore(Zt=>Zt),[nt,tt]=reactExports.useState(!1);reactExports.useState(0);const[bt,gt]=reactExports.useState(!1),[wt,St]=reactExports.useState(!1),[Mt,_t]=reactExports.useState(""),[Tt,Rt]=reactExports.useState(!1),[kt,It]=reactExports.useState(!0),[Lt,Ot]=reactExports.useState(!1);reactExports.useState(""),reactExports.useState(!1);const[Nt,Ft]=reactExports.useState([]),[jt,Vt]=reactExports.useState(0),[Jt,ir]=reactExports.useState({width:window.innerWidth,height:window.innerHeight}),[rr,er]=reactExports.useState(et.chainId),[lr,Ct]=reactExports.useState("0x0000000000000000000000000000000000000000"),[dt,mt]=reactExports.useState(""),yt=Object.keys(tokenList).filter(Zt=>{var Yt;return((Yt=NetworkUtil.getNetworkById(Number(Zt)))==null?void 0:Yt.type)=="testnet"}).map(Zt=>{var Yt,Kt;return{label:`${(Yt=NetworkUtil.getNetworkById(Number(Zt)))==null?void 0:Yt.name}`,type:`${(Kt=NetworkUtil.getNetworkById(Number(Zt)))==null?void 0:Kt.type}`,image:getIconForId(Zt),value:Zt}}),Et=Object.keys(tokenList).filter(Zt=>{var Yt;return((Yt=NetworkUtil.getNetworkById(Number(Zt)))==null?void 0:Yt.type)=="mainnet"}).map(Zt=>{var Yt,Kt;return{label:`${(Yt=NetworkUtil.getNetworkById(Number(Zt)))==null?void 0:Yt.name}`,type:`${(Kt=NetworkUtil.getNetworkById(Number(Zt)))==null?void 0:Kt.type}`,image:getIconForId(Zt),value:Zt}}).map(Zt=>jsxRuntimeExports.jsx(Combobox.Option,{value:Zt.value,children:jsxRuntimeExports.jsx(Bt,{...Zt})},Zt.value)),At=yt.map(Zt=>jsxRuntimeExports.jsx(Combobox.Option,{value:Zt.value,children:jsxRuntimeExports.jsx(Bt,{...Zt})},Zt.value)),Pt=jsxRuntimeExports.jsxs(Combobox.Options,{children:[jsxRuntimeExports.jsx(Combobox.Group,{children:Et}),jsxRuntimeExports.jsx(Combobox.Group,{label:"TESTNETS",children:At})]}),xt=useCombobox({onDropdownClose:()=>xt.resetSelectedOption()}),ht=useCombobox({onDropdownClose:()=>ht.resetSelectedOption()}),$t=useCombobox({onDropdownClose:()=>$t.resetSelectedOption()});function Bt({image:Zt,label:Yt}){return jsxRuntimeExports.jsxs(Group,{style:{width:"100%"},children:[jsxRuntimeExports.jsx(Avatar,{src:Zt,children:jsxRuntimeExports.jsx(KD,{size:"1.5rem"})}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Text,{fz:"sm",fw:500,children:Yt})})]})}getTokenInfo(rr,lr),getTokenList(rr).map(Zt=>jsxRuntimeExports.jsx(Combobox.Option,{value:Zt.value,children:jsxRuntimeExports.jsx(Ht,{...Zt})},Zt.value));const Dt=Nt.map((Zt,Yt)=>jsxRuntimeExports.jsx(Combobox.Option,{value:Yt.toString(),children:jsxRuntimeExports.jsx(tr,{...Zt})},Yt));function Ht({image:Zt,label:Yt}){return jsxRuntimeExports.jsxs(Group,{style:{width:"100%"},children:[jsxRuntimeExports.jsx(Avatar,{src:Zt,children:jsxRuntimeExports.jsx(KD,{size:"1.5rem"})}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Text,{fz:"sm",fw:500,children:Yt})})]})}function tr(Zt){var Yt,Kt;return jsxRuntimeExports.jsxs(Group,{style:{width:"100%"},children:[jsxRuntimeExports.jsx(Avatar,{src:(Yt=getTokenInfo(rr,Zt[0]))==null?void 0:Yt.image,size:"md"}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Text,{fz:"sm",fw:500,children:Object.keys(dropDetail).includes(Zt[1])?(Kt=dropDetail[Zt[1]])==null?void 0:Kt.name:"Unknown Drop"})})]})}async function Xt(){gt(!1),Rt(!1),Ot(!0);try{let Zt,Yt="0x",Kt=Mt;if(Nt[jt].token==ZeroAddress)Zt=Nt[jt].limitAmount;else{const gr=await getJsonRpcProvider(rr.toString());Zt=Nt[jt].limitAmount,Yt=await buildTransferToken(Nt[jt].token,Kt,Zt,gr),Zt=0n,Kt=Nt[jt].token}const ar=await sendTransaction(rr.toString(),Kt,Zt,Yt,Nt[jt].account,jt);ar?(tt(!0),Ot(!1),await waitForExecution(rr.toString(),ar),Rt(!0),tt(!1)):Rt(!1)}catch(Zt){console.log(Zt),gt(!0),Ot(!1)}}return reactExports.useEffect(()=>{(async()=>{It(!0),Vt(0);const Zt=await fetchFaucets(rr.toString());if(Ft(Zt),Zt.length)if(Zt[0].token==ZeroAddress)mt(formatEther$1(Zt[0].limitAmount));else{const Yt=await getJsonRpcProvider(rr.toString());mt(formatUnits$1(Zt[0].limitAmount,await getTokenDecimals(Zt[0].token,Yt)))}It(!1),window.addEventListener("resize",()=>ir({width:window.innerWidth,height:window.innerHeight}))})()},[rr]),jsxRuntimeExports.jsxs(FixedBackground,{children:[jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Modal,{opened:wt,onClose:()=>{St(!1),Ct(ZeroAddress)},title:"Claim Now",centered:!0,children:jsxRuntimeExports.jsxs("div",{className:classes.formContainer,children:[jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("h1",{className:classes.heading,children:"Claim on your wallet"})}),jsxRuntimeExports.jsx("p",{className:classes.subHeading,children:"Claim your drop gas free."}),jsxRuntimeExports.jsx("p",{className:classes.normaltext,children:"Select a drop from the drop down list that would like to claim from."}),jsxRuntimeExports.jsxs("div",{className:classes.inputContainer,children:[jsxRuntimeExports.jsx(Input,{type:"string",style:{marginTop:"20px"},size:"lg",value:Mt,onChange:Zt=>{var Yt;return _t((Yt=Zt==null?void 0:Zt.target)==null?void 0:Yt.value)},placeholder:"Recipient Address",className:classes.input}),jsxRuntimeExports.jsx(Button,{size:"lg",radius:"md",style:{marginBottom:"20px"},fullWidth:!0,color:"green",className:classes.btn,onClick:async()=>await Xt(),loaderProps:{color:"white",type:"dots",size:"md"},loading:Lt,children:"Claim Now"}),Tt&&jsxRuntimeExports.jsx(Notification,{withBorder:!0,radius:"md",withCloseButton:!1,icon:jsxRuntimeExports.jsx(DW,{style:{width:rem(20),height:rem(20)}}),color:"teal",title:"Claim success!",mt:"md",children:"Your have successfully claimed the drop. Buckle up for a stellar financial journey! 🚀💰"}),nt&&jsxRuntimeExports.jsx(Notification,{withBorder:!0,radius:"md",loading:nt,withCloseButton:!1,icon:jsxRuntimeExports.jsx(DW,{style:{width:rem(20),height:rem(20)}}),color:"teal",title:"Waiting to confirm",mt:"md",children:"The transaction have been sent. Wait for the transacion to get confirmed ⌛️"}),bt&&jsxRuntimeExports.jsx(Notification,{withBorder:!0,radius:"md",withCloseButton:!1,icon:jsxRuntimeExports.jsx(qXe,{style:{width:rem(20),height:rem(20)}}),color:"red",title:"Claim Error!",mt:"md",children:"You have already claimed a drop or the recipient wallet is not supported 🤝"})]})]})}),jsxRuntimeExports.jsx(Paper,{className:classes.accountContainer,shadow:"md",withBorder:!0,radius:"md",p:"xl",children:jsxRuntimeExports.jsxs("div",{className:classes.formContainer,children:[jsxRuntimeExports.jsxs("div",{className:classes.avatarContainer,children:[jsxRuntimeExports.jsx("img",{src:d?DropDark:DropLight,alt:"avatar",height:65,width:65}),jsxRuntimeExports.jsx("h1",{className:classes.heading,children:" Claim Your Drops "}),jsxRuntimeExports.jsx("p",{className:classes.subHeading,children:"Claim your drop on this chain."}),jsxRuntimeExports.jsxs(Combobox,{store:xt,withinPortal:!1,onOptionSubmit:Zt=>{Ft([]),er(Number(Zt)),xt.closeDropdown()},children:[jsxRuntimeExports.jsx(Combobox.Target,{children:jsxRuntimeExports.jsx(Badge,{pl:0,style:{cursor:"pointer",width:"200px",height:"40px",padding:"10px"},color:"gray",variant:"light",leftSection:jsxRuntimeExports.jsx(Avatar,{alt:"Avatar for badge",size:24,mr:5,src:getIconForId(rr)}),rightSection:jsxRuntimeExports.jsx(gq,{size:20}),size:"lg",onClick:()=>xt.toggleDropdown(),children:`${(Ut=NetworkUtil.getNetworkById(Number(rr)))==null?void 0:Ut.name}`})}),jsxRuntimeExports.jsx(Combobox.Dropdown,{children:jsxRuntimeExports.jsx(Combobox.Options,{children:Pt})})]}),jsxRuntimeExports.jsx("p",{className:classes.normaltext,children:"Select a drop from the drop down list that would like to claim from."})]}),jsxRuntimeExports.jsxs("div",{className:classes.actionsContainer,children:[jsxRuntimeExports.jsxs("div",{className:classes.actions,children:[jsxRuntimeExports.jsxs(Combobox,{store:$t,withinPortal:!1,onOptionSubmit:async Zt=>{if(Vt(Number(Zt)),Nt.length)if(Nt[Number(Zt)].token==ZeroAddress)mt(formatEther$1(Nt[Number(Zt)].limitAmount));else{const Yt=await getJsonRpcProvider(rr.toString());mt(formatUnits$1(Nt[Number(Zt)].limitAmount,await getTokenDecimals(Nt[Number(Zt)].token,Yt)))}$t.closeDropdown()},children:[jsxRuntimeExports.jsx(Combobox.Target,{children:!kt&&Nt.length?jsxRuntimeExports.jsx(Badge,{pl:0,style:{cursor:"pointer",width:"200px",height:"54px",padding:"10px"},radius:"md",color:"gray",variant:"light",leftSection:jsxRuntimeExports.jsx(Avatar,{alt:"Avatar for badge",size:24,mr:5,src:(qt=getTokenInfo(rr,Nt[jt].token))==null?void 0:qt.image}),rightSection:jsxRuntimeExports.jsx(gq,{size:20}),size:"lg",onClick:()=>$t.toggleDropdown(),children:Object.keys(dropDetail).includes(Nt[jt].account)?(Gt=dropDetail[Nt[jt].account])==null?void 0:Gt.name:"Unknown Drop"}):jsxRuntimeExports.jsx(Skeleton,{height:50,width:200,mt:6,radius:"md"})}),jsxRuntimeExports.jsx(Combobox.Dropdown,{children:jsxRuntimeExports.jsx(Combobox.Options,{children:Dt})})]}),jsxRuntimeExports.jsx(Button,{size:"lg",radius:"md",className:classes.btn,color:"teal",onClick:()=>St(!0),children:"Claim"})]}),kt&&jsxRuntimeExports.jsxs(Paper,{radius:"md",withBorder:!0,className:classes.card,mt:20,children:[jsxRuntimeExports.jsx(Text,{ta:"center",fw:700,className:classes.title,children:"Drop details"}),jsxRuntimeExports.jsxs(Group,{justify:"space-between",mt:"xs",children:[jsxRuntimeExports.jsx(Skeleton,{height:20,width:100,mt:6,radius:"md"}),jsxRuntimeExports.jsx(Skeleton,{height:20,width:50,mt:6,radius:"md"})]}),jsxRuntimeExports.jsxs(Group,{justify:"space-between",mt:"xs",children:[jsxRuntimeExports.jsx(Skeleton,{height:20,width:70,mt:6,radius:"md"}),jsxRuntimeExports.jsx(Skeleton,{height:20,width:50,mt:6,radius:"md"})]}),jsxRuntimeExports.jsxs(Group,{justify:"space-between",mt:"xs",children:[jsxRuntimeExports.jsx(Skeleton,{height:20,width:50,mt:6,radius:"md"}),jsxRuntimeExports.jsx(Skeleton,{height:20,width:70,mt:6,radius:"md"})]}),jsxRuntimeExports.jsxs(Group,{justify:"space-between",mt:"xs",children:[jsxRuntimeExports.jsx(Skeleton,{height:20,width:100,mt:6,radius:"md"}),jsxRuntimeExports.jsx(Skeleton,{height:30,width:30,mt:6,radius:"md"})]})]}),!kt&&Nt.length&&jsxRuntimeExports.jsxs(Paper,{radius:"md",withBorder:!0,className:classes.card,mt:20,children:[jsxRuntimeExports.jsx(Text,{ta:"center",fw:700,className:classes.title,children:"Drop details"}),jsxRuntimeExports.jsxs(Group,{justify:"space-between",mt:"xs",children:[jsxRuntimeExports.jsx(Text,{fz:"sm",c:"dimmed",children:"Claimable Amount:"}),jsxRuntimeExports.jsx(Text,{fz:"sm",c:"dimmed",children:dt})]}),jsxRuntimeExports.jsxs(Group,{justify:"space-between",mt:"xs",children:[jsxRuntimeExports.jsx(Text,{fz:"sm",c:"dimmed",children:"Token"}),jsxRuntimeExports.jsxs(Group,{children:[jsxRuntimeExports.jsx(Avatar,{src:getTokenInfo(rr,Nt[jt].token).image,size:"sm"}),jsxRuntimeExports.jsx(Text,{fz:"sm",c:"dimmed",children:getTokenInfo(rr,Nt[jt].token).label})]})]}),jsxRuntimeExports.jsxs(Group,{justify:"space-between",mt:"xs",children:[jsxRuntimeExports.jsx(Text,{fz:"sm",c:"dimmed",children:"Claimable:"}),jsxRuntimeExports.jsx(Text,{fz:"sm",c:"dimmed",children:Number(Nt[jt].refreshInterval)?`Every ${formatTime(Number(Nt[jt].refreshInterval))}`:"Only Once"})]}),jsxRuntimeExports.jsxs(Group,{justify:"space-between",mt:"xs",children:[jsxRuntimeExports.jsx(Text,{fz:"sm",c:"dimmed",children:"Claimable Wallets"}),jsxRuntimeExports.jsxs(Group,{children:[Nt[jt].safe.supported&&jsxRuntimeExports.jsx(Avatar,{radius:"sm",src:Safe,size:"sm"}),Nt[jt].cbSW.supported&&jsxRuntimeExports.jsx(Avatar,{radius:"sm",src:Coinbase,size:"sm"}),Nt[jt].eoa.supported&&jsxRuntimeExports.jsx(Avatar,{radius:"sm",src:Metamask,size:"sm"})]})]})]})]})]})})]}),Tt&&jsxRuntimeExports.jsx(Confetti,{width:Jt.width-20,height:Jt.height-20})]})},Navigation=()=>jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:RoutePath.home,element:jsxRuntimeExports.jsx(AccountPage,{})}),jsxRuntimeExports.jsx(Route,{path:RoutePath.create,element:jsxRuntimeExports.jsx(HomePage,{})})]}),theme={fontFamily:"Inter, sans-serif"};function App(){return jsxRuntimeExports.jsx(MantineProvider,{theme,defaultColorScheme:"dark",children:jsxRuntimeExports.jsx(HashRouter,{children:jsxRuntimeExports.jsx(AppLayout,{children:jsxRuntimeExports.jsx(Navigation,{})})})})}client.createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(App,{}));export{BaseError as B,HttpRequestError as H,concat as a,isHex as b,call as c,decodeErrorResult as d,encodeAbiParameters as e,getUrl as g,isAddressEqual as i,stringify as s}; diff --git a/index.html b/index.html index f375b18..6fbdec3 100644 --- a/index.html +++ b/index.html @@ -25,8 +25,8 @@ href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600&display=swap" rel="stylesheet" /> - - + +